OSDN Git Service

* doc/invoke.texi: Document -mbitops for SH.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
2
3         * doc/invoke.texi: Document -mbitops for SH.
4         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
5         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
6         * config/sh/sh.c (print_operand): Add %t operand code.
7         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
8         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
9         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
10         (extendqihi2): Likewise.
11         (movqi_i): Likewise.
12         (insv): Use bset, bclr and bst instructions for SH2A if possible.
13         (extv): Use bld instruction for SH2A if possible.
14         (extzv): Likewise.
15         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
16         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
17         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
18         (bset.b, bclr.b): Define peepholes.
19         * config/sh/sh.opt (mbitops): New option.
20
21 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
22
23         PR target/35620
24         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
25         and view convert expression.
26
27 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
28
29         PR target/35364
30         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
31
32 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
33
34         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
35
36         * config/i386/cpuid.h (bit_AES): New.
37         (bit_PCLMUL): Likewise.
38
39         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
40         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
41         SSE2 if AES or PCLMUL is enabled.
42         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
43         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
44         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
45         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
46         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
47         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
48         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
49         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
50         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
51         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
52         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
53         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
54         __builtin_ia32_aeskeygenassist128 and
55         __builtin_ia32_pclmulqdq128.
56         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
57         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
58         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
59
60         * config/i386/i386.h (TARGET_AES): New.
61         (TARGET_PCLMUL): Likewise.
62         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
63
64         * config/i386/i386.md (UNSPEC_AESENC): New.
65         (UNSPEC_AESENCLAST): Likewise.
66         (UNSPEC_AESDEC): Likewise.
67         (UNSPEC_AESDECLAST): Likewise.
68         (UNSPEC_AESIMC): Likewise.
69         (UNSPEC_AESKEYGENASSIST): Likewise.
70         (UNSPEC_PCLMUL): Likewise.
71
72         * config/i386/i386.opt (maes): New.
73         (mpclmul): Likewise.
74
75         * config/i386/sse.md (aesenc): New pattern.
76         (aesenclast): Likewise.
77         (aesdec): Likewise.
78         (aesdeclast): Likewise.
79         (aesimc): Likewise.
80         (aeskeygenassist): Likewise.
81         (pclmulqdq): Likewise.
82
83         * config/i386/wmmintrin.h: New.
84
85         * doc/extend.texi: Document AES and PCLMUL built-in function.
86
87         * doc/invoke.texi: Document -maes and -mpclmul.
88
89 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
90
91         * function.c (free_after_parsing): Replace with
92         cxx_push_function_context from C++ front-end.
93         (allocate_struct_function): Don't call langhook.
94         * langhooks.h (struct lang_hooks_for_functions): Delete.
95         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
96         member "function".
97         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
98         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
99         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
100         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
101         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
102         remove LANG_HOOKS_FUNCTION_INITIALIZER.
103         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
104
105         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
106         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
107         
108 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
109
110         PR c/35440
111         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
112         for all types.
113
114 2008-04-04  Richard Guenther  <rguenther@suse.de>
115
116         PR middle-end/35823
117         * fold-const.c (optimize_minmax_comparison): Use the correct
118         type for the constant in the simplified comparison.
119
120 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
121
122         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
123         Pass L2 size as "--param l2-cache-size" to the compiler.
124         (decode_l2_cache): New function to decode L2 cache parameters using
125         0x8000006 extended cpuid function.
126         (detect_caches_amd): Determine parameters of L2 cache using
127         decode_l2_caches function.
128         (decode_caches_intel): Decode L2 cache parameters.
129         (detect_caches_intel): Determine L2 cache parameters using
130         decode_caches_intel and decode_l2_caches functions.
131
132 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
133
134         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
135         secondary input reload for subword loads from the constant pool.
136
137 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
138
139         PR target/35713
140         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
141           constants of the appropriate size for runtime calculations.
142
143         PR c/35712
144         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
145           decimal-float literal constant zero.
146
147 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
148
149         PR c/35738
150         * c-parser.c (c_parser_omp_atomic): Call
151         default_function_array_conversion on the RHS.
152
153         PR middle-end/35818
154         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
155         call is_variable_sized if decl has incomplete type.
156
157 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
158
159         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
160
161 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
162
163         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
164         iterators.
165         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and
166         leu.
167         (sgt<u>): Merge sgt and sgtu into new expander.
168         (sgt, sgtu): Remove expanders.
169         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new
170         pattern.
171         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
172         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
173         *sgtu_<mode>_mips16 into new pattern.
174         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
175         (sge<u>): Merge sge and sgeu into new expander.
176         (sge, sgeu): Remove expanders.
177         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
178         new pattern.
179         (*sge_<mode>, second *sge_<mode>): Remove patterns.
180         (slt<u>): Merge slt and sltu into new expander.
181         (slt, sltu): Remove expanders.
182         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new
183         pattern.
184         (*slt_<mode>, *sltu_<mode>): Remove patterns.
185         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
186         *sltu_<mode>_mips16 into new pattern.
187         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
188         (sle<u>): Merge sle and sleu into new expander.
189         (sle, sleu): Remove expanders.
190         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new
191         pattern.
192         (*sle_<mode>, *sleu_<mode>): Remove patterns.
193         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
194         *sleu_<mode>_mips16 into new pattern.
195         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
196
197 2008-04-03  Jan Hubicka  <jh@suse.cz>
198
199         PR tree-optimization/35795
200         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
201         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
202         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
203         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
204         * score/score3.c (score3_output_mi_thunk): Likewise.
205         * score/score7.c (score7_output_mi_thunk): Likewise.
206         * mips/mips.c (mips_output_mi_thunk): Likewise.
207
208 2008-04-03  Richard Guenther  <rguenther@suse.de>
209
210         * tree-vrp.c (extract_range_from_unary_expr): Handle all
211         conversions.  Simplify code.
212
213 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
214
215         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
216
217 2008-04-03  Tom Tromey  <tromey@redhat.com>
218             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
219
220         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
221         * config/bfin/t-bfin-linux (generated_files): Add
222         linux-sysroot-suffix.h.
223         * doc/install.texi (Prerequisites): Require make 3.80.
224         * doc/sourcebuild.texi (Front End Directory): Document new
225         variable.
226         * Makefile.in (generated_files): New variable.
227         (ALL_HOST_OBJS): New variable.
228         ($(ALL_HOST_OBJS)): New target.
229
230 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
231
232         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
233         (remap_block): Call id->transform_lang_insert_block instead
234         of langhook.
235         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
236         Set id.transform_lang_insert_block to NULL.
237         (clone_body): Move to cp/optimize.c
238         * tree-inline.h (struct copy_body_data): Change
239         transform_lang_insert_block to function pointer.
240         (copy_generic_body, copy_decl_no_change): Export.
241         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
242         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
243         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
244
245         * c-tree.h (insert_block): Kill.
246         * c-decl.c (insert_block): Kill.
247
248 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
249
250         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
251         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
252         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
253         argument.
254         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
255         argument, call {push,pop}_function_context from here.
256         * c-parser.c: Use c_{push,pop}_function_context.
257
258         * function.c (push_function_context_to): Move meat ...
259         (push_function_context): ... here.  Simplify.
260         * function.c (pop_function_context_from): Move meat ...
261         (pop_function_context): ... here.  Simplify.
262         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
263         leave_nested).
264         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
265         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
266         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
267         * tree.h (push_function_context_to, pop_function_context_from): Remove.
268
269 2008-04-03  Ben Elliston  <bje@au.ibm.com>
270
271         * expmed.c (extract_force_align_mem_bit_field): Remove.
272
273 2008-04-03  Richard Guenther  <rguenther@suse.de>
274
275         PR middle-end/35800
276         * expr.h (try_casesi): Adjust prototype.
277         * expr.c (try_casesi): Take fallback label as extra parameter.
278         Use that for gen_casesi if default_label is NULL.
279         * stmt.c (expand_case): Pass fallback label to try_casesi,
280         make sure to fill gaps with a fallback label if default_label
281         is not present.
282
283 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
284
285         PR target/35801
286         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
287
288 2008-04-03  Ben Elliston  <bje@au.ibm.com>
289
290         * expmed.c (extract_split_bit_field): Remove if (0) code.
291         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
292         (do_ds_constraint): Likewise.
293
294 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
295
296         * doc/cppopts.texi (-dU): Document.
297         * c-common.h (flag_dump_macros): Update comment.
298         * c-opts.c (handle_OPT_d): Handle -dU.
299         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
300         dump_queued_macros, cb_used_define, cb_used_undef): New.
301         (init_pp_output): Handle -dU.
302         (cb_line_change): Call dump_queued_macros.
303         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
304
305 2008-04-02  Anatoly Sokolov <aesok@post.ru>
306
307         * config/avr/predicates.md (io_address_operand): New predicate. 
308         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
309         * config/avr/avr.c (avr_io_address_p): Remove function.
310         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
311         'avr_io_address_p' function.
312         (out_movhi_r_mr): (Ditto.).
313         (out_movqi_mr_r): (Ditto.).
314         (out_movhi_mr_r): (Ditto.).
315         (avr_address_cost): (Ditto.).
316
317 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
318
319         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
320         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
321         in 32bit mode when XMM registers are available to avoid store
322         forwarding stalls.
323         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
324         corresponding post-reload splitters.
325
326 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
327
328         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
329         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
330         __builtin_ia32_roundss.
331         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
332         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
333         __builtin_ia32_roundss.
334         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
335         IX86_BUILTIN_SHUFPD here.
336
337 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
338
339         * config/i386/i386.md (plogic): New.
340         (plogicprefix): Likewise.
341
342         * config/i386/mmx.md (mmx_<code><mode>3): New.
343         (mmx_and<mode>3): Removed.
344         (mmx_ior<mode>3): Likewise.
345         (mmx_xor<mode>3): Likewise.
346
347         * config/i386/sse.md (<code><mode>3): New.
348         (*<code><mode>3): Likewise.
349         (*<code><mode>3): Likewise.
350         (<code><mode>3): Likewise.
351         (*sse_<code><mode>3): Likewise.
352         (*sse2_<code><mode>3): Likewise.
353         (<code>tf3): Likewise.
354         (*<code>tf3): Likewise.
355         (and<mode>3): Likewise.
356         (*and<mode>3): Likewise.
357         (ior<mode>3): Removed.
358         (*ior<mode>3): Likewise.
359         (xor<mode>3): Likewise.
360         (*xor<mode>3): Likewise.
361         (*and<mode>3): Likewise.
362         (*ior<mode>3): Likewise.
363         (*xor<mode>3): Likewise.
364         (and<mode>3): Likewise.
365         (*sse_and<mode>3): Likewise.
366         (*sse2_and<mode>3): Likewise.
367         (andtf3): Likewise.
368         (*andtf3): Likewise.
369         (ior<mode>3): Likewise.
370         (*sse_ior<mode>3): Likewise.
371         (*sse2_ior<mode>3): Likewise.
372         (iortf3): Likewise.
373         (*iortf3): Likewise.
374         (xor<mode>3): Likewise.
375         (*sse_xor<mode>3): Likewise.
376         (*sse2_xor<mode>3): Likewise.
377         (xortf3): Likewise.
378         (*xortf3): Likewise.
379
380 2008-04-02  Richard Guenther  <rguenther@suse.de>
381
382         PR tree-optimization/14495
383         PR tree-optimization/34793
384         * tree-vrp.c (struct switch_update): New structure.
385         (to_remove_edges, to_update_switch_stmts): New VECs.
386         (simplify_switch_using_ranges): New function.  Remove not taken
387         case labels and edges.
388         (simplify_stmt_using_ranges): Call it.
389         (identify_jump_threads): Mark edges we have queued for removal
390         so we don't thread them.
391         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
392         case label vector.
393         * tree-cfg.c (group_case_labels): Deal with missing default label.
394         (tree_verify_flow_info): Allow missing default label.
395         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
396         (emit_case_nodes): Likewise.
397         (expand_case): Do not rely on the default label to be present.
398         * expr.c (try_casesi): Deal with NULL default_label.
399         (do_tablejump): Likewise.
400
401 2008-04-02  Richard Guenther  <rguenther@suse.de>
402
403         PR tree-optimization/14495
404         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
405         SWITCH_EXPR here ...
406         (vrp_visit_switch_stmt): ... but here (new function).
407         (find_case_label_index): New helper function.
408         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
409
410 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
411
412         * fwprop.c: Fix ISO-C99ism.
413
414 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
415
416         PR bootstrap/35752
417         * Makefile.in (objdir): Set it here.
418         * configure.ac: Not here.  Find dynamic linker characteristics.
419         * exec-tool.in: Use them.
420         * aclocal.m4: Regenerate.
421         * configure: Regenerate.
422
423 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
424
425         * expr.c (expand_var): Delete it.
426         * expr.h (expand_var): Delete prototype.
427         * function.c (expand_function_start): Use expand_decl instead.
428         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
429         langhook.
430
431 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
432
433         PR rtl-optimization/35542
434         * fwprop.c (forward_propagate_and_simplify): Replace
435         loc_reg_mentioned_in_p with reg_mentioned_p.
436
437 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
438
439         PR rtl-optimization/35281
440         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
441         (propagate_rtx_1): Handle PR_HANDLE_MEM.
442         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
443         (varying_mem_p): Move above propagate_rtx.
444         (all_uses_available_at): Do not check MEMs.
445
446 2008-04-02  Rafael Espindola  <espindola@google.com>
447
448         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
449         (register_edge_assert_for_2): Split the cond argument.
450         (register_edge_assert_for_1): Adjust for the change in
451         register_edge_assert_for_2.
452         (register_edge_assert_for): Split the cond argument.
453         (find_switch_asserts): Adjust for the change in
454         register_edge_assert_for.
455
456 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
457
458         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
459         * gcc/config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
460         offsets for 64-bit mingw.
461         * gcc/config/i386/i386.c (ix86_pass_by_reference): Correct calling
462         abi for x86_64-pc-mingw.
463
464 2008-04-02  Richard Guenther  <rguenther@suse.de>
465
466         * tree-vrp.c (extract_range_from_assert): Make sure to not
467         produce range min/max with TREE_OVERFOW set.
468         If merging a anti-range and a range keep the anti-range if
469         the range covers all values of the type.
470         (register_edge_assert_for_2): Only allow sign-changing
471         conversions in detecting canonical range checks.  Also
472         register an assert for the unsigned name if useful.
473
474         PR tree-optimization/35787
475         * tree-vrp.c (vrp_val_max): New function.
476         (vrp_val_min): Likewise.
477         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
478         (vrp_val_is_min): Likewise.
479         (supports_overflow_infinity): Use vrp_val_{min,max}.
480         (negative_overflow_infinity): Likewise.
481         (positive_overflow_infinity): Likewise.
482         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
483         (is_positive_overflow_infinity): Likewise.
484         (is_overflow_infinity): Likewise.
485         (avoid_overflow_infinity): Use vrp_val_{min,max} and
486         vrp_val_is_{min,max}.
487         (set_and_canonicalize_value_range): Canonicalize anti-ranges
488         to ranges if possible.  Avoid empty ranges.
489
490 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
491
492         PR middle-end/35705
493         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
494         the expression is a function address.
495
496 2008-04-01  George Helffrich  <george@gcc.gnu.org>
497
498         PR fortran/PR35154, fortran/PR23057
499         * fortran/trans-common.c (create_common):  Add decl to function
500         chain to preserve identifier scope in debug output.
501
502         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
503         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
504         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
505         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
506         in common.
507         (dbxout_syms): Check for COMMON-based symbol and wrap in
508         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
509         in bracket for efficiency.
510
511         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
512         using DW_TAG_common_block + member offset.
513         (add_pubname_string): New function.
514         (dw_expand_expr): New function to find block name and offset for
515         COMMON var.
516         (common_check): New function to check whether symbol in Fortran COMMON.
517         (gen_variable_die): If COMMON, use DW_TAG_common_block.
518
519         * testsuite/gcc.dg/debug/pr35154.c:  New test to check that non-Fortran
520         use of common is unchanged.
521
522         * testsuite/lib/gfortran-dg.exp:  New harness to compile Fortran progs
523         with all combinations of debug options available on target.
524         * testsuite/gfortran.dg/debug/debug.exp:  Ditto.
525         * testsuite/gfortran.dg/debug/trivial.f:  Ditto.
526         * testsuite/gfortran.dg/debug/pr35154-stabs.f:  New test case for
527         .stabs functionality.
528         * testsuite/gfortran.dg/debug/pr35154-dwarf2.f:  New test case for
529         DWARF functionality.
530
531 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
532
533         PR c/35436
534         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
535
536 2008-04-02  Ben Elliston  <bje@au.ibm.com>
537
538         * config/v850/v850.md (casesi): Remove if (0) code.
539         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
540         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
541
542 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
543
544         * config/i386/i386.md (rex64suffix): New mode attribute.
545         (floathi<mode>2): Disable expander for SSE math.
546         (*floathi<mode>2_1): New insn insn_and_split pattern.
547         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
548         corresponding post-reload splitters.
549         (*floathi<mode>2_i387): New macroized insn pattern.
550         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
551         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
552         insn_and_split pattern.
553         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
554         New macroized instruction patterns and corresponding post-reload
555         splitters.
556         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
557         and corresponding post-reload splitters.
558         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
559         New macroized instruction patterns.
560         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
561         macroized instruction patterns and corresponding post-reload splitters.
562         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
563         corresponding post-reload splitters.
564         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
565         New macroized instruction patterns.
566         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
567         corresponding post-reload splitters.
568         (*floatsi<mode>2_i387): New macroized instruction patterns.
569
570 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
571
572         * config/i386/i386.md (smaxmin): New.
573         (umaxmin): Likewise.
574         (maxminiprefix): Likewise.
575         (maxminfprefix): Likewise.
576         (<code><mode>3): Likewise.
577         (smin<mode>3): Removed.
578         (smax<mode>3): Likewise.
579
580         * config/i386/mmx.md (mmx_<code>v2sf3): New.
581         (mmx_<code>v4hi3): Likewise.
582         (mmx_<code>v8qi3): Likewise.
583         (mmx_smaxv2sf3): Removed.
584         (mmx_sminv2sf3): Likewise.
585         (mmx_umaxv8qi3): Likewise.
586         (mmx_smaxv4hi3): Likewise.
587         (mmx_uminv8qi3): Likewise.
588         (mmx_sminv4hi3): Likewise.
589
590         * config/i386/sse.md (<addsub><mode>3): New.
591         (*<addsub><mode>3): Likewise.
592         (<sse>_vm<addsub><mode>3): Likewise.
593         (<maxmin><mode>3): Likewise.
594         (*<maxmin><mode>3_finite): Likewise.
595         (*<maxmin><mode>3): Likewise.
596         (<sse>_vm<maxmin><mode>3): Likewise.
597         (sse3_h<addsub>v4sf3): Likewise.
598         (sse3_h<addsub>v2df3): Likewise.
599         (<maxmin>v16qi3): Likewise.
600         (*<maxmin>v16qi3): Likewise.
601         (<maxmin>v8hi3): Likewise.
602         (*<maxmin>v8hi3): Likewise.
603         (*sse4_1_<maxmin><mode>3): Likewise.
604         (*sse4_1_<maxmin><mode>3): Likewise.
605         (add<mode>3): Removed.
606         (*add<mode>3): Likewise.
607         (<sse>_vmadd<mode>3): Likewise.
608         (sub<mode>3): Likewise.
609         (*sub<mode>3): Likewise.
610         (<sse>_vmsub<mode>3): Likewise.
611         (smin<mode>3): Likewise.
612         (*smin<mode>3_finite): Likewise.
613         (*smin<mode>3): Likewise.
614         (<sse>_vmsmin<mode>3): Likewise.
615         (smax<mode>3): Likewise.
616         (*smax<mode>3_finite): Likewise.
617         (*smax<mode>3): Likewise.
618         (<sse>_vmsmax<mode>3): Likewise.
619         (sse3_haddv4sf3): Likewise.
620         (sse3_haddv2df3): Likewise.
621         (sse3_hsubv4sf3): Likewise.
622         (sse3_hsubv2df3): Likewise.
623         (umaxv16qi3): Likewise.
624         (*umaxv16qi3): Likewise.
625         (smaxv8hi3): Likewise.
626         (*smaxv8hi3): Likewise.
627         (*sse4_1_smax<mode>3): Likewise.
628         (*sse4_1_umax<mode>3): Likewise.
629         (uminv16qi3): Likewise.
630         (*uminv16qi3): Likewise.
631         (sminv8hi3): Likewise.
632         (*sminv8hi3): Likewise.
633         (*sse4_1_smin<mode>3): Likewise.
634         (*sse4_1_umin<mode>3): Likewise.
635
636 2008-04-01  Rafael Espindola  <espindola@google.com>
637
638         * tree-cfg.c (verify_expr): remove in_phi.
639         (verify_stmt): Don't call walk_tree with verify_expr. Use
640         is_gimple_min_invariant instead of is_gimple_val.
641
642 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
643
644         * doc/include/gpl_v3.texi: Update for manpage generation.
645         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
646         gpl.texi.
647         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
648         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
649         gpl_v3.texi instead of gpl.texi.
650         (gpl.pod): New.
651
652 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
653
654         PR pch/13675
655         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
656
657 2008-04-01  Rafael Espindola  <espindola@google.com>
658
659         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
660         (extract_code_and_val_from_cond): Use
661         extract_code_and_val_from_cond_with_ops.
662
663 2008-04-01  Jan Hubicka  <jh@suse.cz>
664
665         * function.c (free_after_compilation): Free epilogue_delay_list.
666         (prepare_function_start): Assert that previous compilation was freed.
667
668 2008-04-01  Jan Hubicka  <jh@suse.cz>
669             Jim Wilson  <wilson@tuliptree.org>
670             Andreas Tobler <andreast@gcc.gnu.org>
671
672         PR middle-end/35781
673         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
674         rtl.emit instead cfun->emit.
675         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
676         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
677
678 2008-04-01  Ben Elliston  <bje@au.ibm.com>
679
680         * doc/c-tree.texi (Function Basics): Fix grammatical error.
681
682 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
683
684         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
685         New options
686         (fprofile-use): Add var flag_profile_use
687         * coverage.c (coverage_begin_output): Do not open a gcno file for
688         output only if -ftest-coverage is set.
689         Do not add getpwd() to gcda file path.
690         (build_gcov_info): Check the new flag
691         flag_profile_datafile_relative_path.
692         (coverage_init): Use profile_data_prefix.
693         Read profile counter only if flag_profile_use is set.
694         * opts.c (common_handle_option): New option fprofile-use=,
695         fprofile-dir=, fprofile-generate=.
696         * toplev.c (profile_data_prefix): New variable definition.
697         * toplev.h (profile_data_prefix): New declaration.
698         * doc/invoke.tex (Option Summary, Optimization Options):
699         Add new options.
700
701 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
702
703         * varasm.c (output_constant_pool_1): In LABEL_REF check,
704         use tmp consistently.
705
706         PR target/35695
707         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
708         * config/ia64/ia64.c (rtx_needs_barrier): Handle
709         UNSPEC_FR_RECIP_APPROX_RES.
710         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
711
712 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
713
714         PR c/35750
715         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
716
717 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
718
719         PR middle-end/30186
720         * fold-const.c (fold_indirect_ref_1): Support accessing non first
721         element of the vector via a pointer.
722
723 2008-03-31  Ian Lance Taylor  <iant@google.com>
724
725         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
726
727 2008-03-31  Jan Hubicka  <jh@suse.cz>
728
729         * builtins.c (expand_builtin_setjmp_receiver): Update call of
730         get_arg_pointer_save_area.
731         * expr.c (init_expr): Just clear out rtl.expr.
732         * function.c (free_after_compilation): Clear out whole RTL structure.
733         (get_func_frame_size): Merge into ...
734         (get_frame_size): ... this one.
735         (assign_stack_local_1): Merge into ...
736         (assign_stack_local): ... this one.
737         (expand_function_end): Update call of get_arg_pointer_save_area.
738         (get_art_pointer_save_area): Remove cfun argument.
739         * function.h (emit_status): regno_pointer_align does not need length
740         attribute. Move x_regno_reg_rtx to ...
741         (regno_reg_rtx): ... new global array.
742         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
743         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
744         apply_args_value, forced_labels, stack_pointer_delta):
745         Update accestors.
746         (struct varasm_status): Move here from varasm.c
747         (struct rtl_data): New. Move here some fields from struct function.
748         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
749         frame_offset, stack_check_probe_note, arg_pointer_save_area,
750         used_temp_slots avail_temp_slots, temp_slot_level,
751         nonlocal_goto_handler_labels): Update accesstors.
752         (rtl): New global variable.
753         (struct function): Move some fileds to rtl_data.
754         (get_arg_pointer_save_area): Update prototype.
755         * emit-rtl.c (rtl): Declare.
756         (regno_reg_rtx): Declare.
757         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
758         Update.
759         (gen_reg_rtx): Update.
760         (init_virtual_regs): Do not tate emit_status argument.
761         (init_emit): Do not allocate emit.
762         * varasm.c (varasm_statuc): Move to function.h.
763         (n_deferred_constatns): Update accestor.
764         (init_varasm_status): Do not allocate varasm_status.
765         (force_const_mem, get_pool_size, output_constant_pool): Update.
766         * stmt.c (force_label_rtx): Do not use x_ prefixes.
767         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
768
769 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
770
771         PR rtl-optimization/35729
772         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
773         references.
774
775 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
776
777         PR target/32000
778         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
779         load/store if memory is unaligned.
780         (*movti_rex64): Likewise.
781
782         * config/i386/predicates.md (misaligned_operand): New.
783
784 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
785
786         PR tree-opt/35431
787         * tree-ssa-phiopt.c (conditional_replacement): Return early for
788         complex types.
789
790 2008-03-31  Jan Beulich  <jbeulich@novell.com>
791
792         * config/ia64/constraints.md: Add 'j' constraint.
793         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
794         (movdi_internal): Likewise.
795
796 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
797
798         PR c/35748
799         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
800
801 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
802
803         PR target/35757
804         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
805         proper error message for the third argument on blendpd and
806         blendps.
807
808         * config/i386/sse.md (blendbits): New.
809         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
810
811 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
812
813         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
814
815 2008-03-30  Richard Guenther  <rguenther@suse.de>
816
817         PR middle-end/31023
818         * fold-const.c (fold_sign_changed_comparison): Do leave
819         conversions to base-types alone.
820
821 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
822
823         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
824         the link register if one altivec register is be saved.
825
826 2008-03-30  Ben Elliston  <bje@au.ibm.com>
827
828         * final.c (final_scan_insn): Remove if (0) code.
829
830 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
831
832         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
833
834 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
835
836         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
837         of V4SFmode to ix86_binary_operator_ok.
838
839 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
840
841         * config/i386/i386.c (override_options): Initialize
842         ix86_veclib_handler to ix86_veclibabi_svml when
843         -mveclibabi=svml is used.
844         (ix86_veclibabi_svml): New function for SVML ABI style
845         vectorization support.
846         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
847
848 2008-03-28  Rafael Espindola  <espindola@google.com>
849
850         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
851         (tree_binary_nonnegative_warnv_p): Make it public.
852         (tree_single_nonnegative_warnv_p): Make it public.
853         (tree_invalid_nonnegative_warnv_p): Make it public.
854         (tree_unary_nonzero_warnv_p): Make it public.
855         (tree_binary_nonzero_warnv_p): Make it public
856         (tree_single_nonzero_warnv_p): Make it public.
857         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
858         (extract_range_from_binary_expr): Split the expr argument.
859         (extract_range_from_unary_expr): Split the expr argument.
860         (extract_range_from_comparison): Split the expr argument.
861         (extract_range_from_expr): Use the new aux functions.
862         (vrp_evaluate_conditional_warnv): Use
863         vrp_evaluate_conditional_warnv_with_ops.
864         * tree.h (tree_unary_nonzero_warnv_p): Declare.
865         (tree_binary_nonzero_warnv_p): Declare.
866         (tree_single_nonzero_warnv_p): Declare.
867         (tree_expr_nonzero_warnv_p): Declare.
868         (tree_unary_nonnegative_warnv_p): Declare.
869         (tree_binary_nonnegative_warnv_p): Declare.
870         (tree_single_nonnegative_warnv_p): Declare.
871         (tree_invalid_nonnegative_warnv_p): Declare.
872
873 2008-03-28  Richard Guenther  <rguenther@suse.de>
874
875         PR tree-optimization/30317
876         PR tree-optimization/30911
877         PR tree-optimization/34793
878         * tree-vrp.c (set_and_canonicalize_value_range): New function.
879         (struct assert_locus_d): New member EXPR.
880         (register_new_assert_for): Add EXPR parameter to support
881         ASSERT_EXPR <name, expr OP limit>.
882         (register_edge_assert_for_1): Adjust callers.
883         (find_assert_locations): Likewise.
884         (process_assert_insertions_for): Build condition from expression.
885         (extract_range_from_assert): Handle ASSERT_EXPRs
886         of the form ASSERT_EXPR <name, expr OP limit>.
887         (register_edge_assert_for_2): New helper registering
888         asserts for comparisons.  Recognize range tests of the form
889         (unsigned)i - CST1 OP CST2.
890         (register_edge_assert_for_1): Use it.
891         (register_edge_assert_for): Likewise.
892         (needs_overflow_infinity): Integer sub-types
893         do not need overflow infinities.
894         (vrp_val_is_max): The extreme values of integer sub-types
895         are those of the base type.
896         (vrp_val_is_min): Likewise.
897         * tree.def (ASSERT_EXPR): Document extra allowed conditional
898         expressions.
899
900 2008-03-28  Nick Clifton  <nickc@redhat.com>
901
902         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
903         Return GENERAL_REGS for stack adjustment reloads.
904
905 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
906
907         PR target/31334
908         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
909         const_vector when all the vectors are constant.
910
911 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
912
913         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
914         comparisons.
915         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
916         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
917         (scc_sf): New.
918         (s<code>_sf): Use new scc_sf attribute for opcode names.
919
920 2008-03-27  Tom Tromey  <tromey@redhat.com>
921
922         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
923         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
924         config/spu/t-spu-elf, config/i386/t-interix,
925         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
926         config/i386/x-darwin, config/i386/x-mingw32,
927         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
928         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
929         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
930         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
931         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
932         config/rs6000/x-darwin, config/rs6000/t-rs6000,
933         config/score/t-score-elf, config/arm/t-strongarm-pe,
934         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
935         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
936         Revert automatic dependency patch.
937
938 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
939
940         PR target/35657
941         * config/i386/i386.c (ix86_function_arg_boundary): Align
942         decimal floating point to its natural boundary.
943
944 2008-03-27  Richard Guenther  <rguenther@suse.de>
945
946         PR middle-end/35716
947         * fold-const.c (fold_comparison): Restrict distinct decl
948         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
949         solely rely on operand_equal_p.
950
951 2008-03-27  Richard Guenther  <rguenther@suse.de>
952
953         PR c/32511
954         * c-common.c (handle_weak_attribute): Reject combination of
955         weak and inline.
956
957 2008-03-27  Richard Guenther  <rguenther@suse.de>
958
959         PR tree-optimization/32810
960         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
961         conversions from DECL_INITIAL.
962         (fold_const_aggregate_ref): Likewise from constructor elements.
963
964 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
965
966         * tree-affine.h (aff_combination_expand): Declare.
967         (get_inner_reference_aff): Likewise.
968         * tree-affine.c (aff_combination_expand): Split out from
969         tree_to_aff_combination_expand.
970         (get_inner_reference_aff): New function.
971         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
972         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
973         (struct lim_aux_data): sm_done field removed.
974         (mem_ref_loc_p, mem_ref_locs_p): New types.
975         (struct mem_ref): Added id, stored, accesses_in_loop,
976         indep_loop, dep_loop, indep_ref, dep_ref fields.
977         Removed is_stored, locs and next fields.
978         (memory_accesses): New variable.
979         (movement_possibility): Do not allow moving statements
980         that store to memory.
981         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
982         New functions.
983         (determine_max_movement): For statements with memory references,
984         find the outermost loop in that the reference is independent.
985         (move_computations_stmt): Mark the virtual operands for renaming.
986         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
987         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
988         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
989         add_vop_ref_mapping, create_vop_ref_mapping_loop,
990         create_vop_ref_mapping, analyze_memory_references,
991         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
992         get_all_locs_in_loop, ref_always_accessed_p,
993         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
994         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
995         store_motion_loop, store_motion): New functions.
996         (struct vop_to_refs_elt): New type.
997         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
998         memref_hash, memref_eq, hoist_memory_references): Rewritten.
999         (schedule_sm): Replaced by...
1000         (execute_sm): ... this.
1001         (determine_lsm_ref, hoist_memory_references,
1002         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
1003         find_more_ref_vops, free_mem_ref, free_mem_refs,
1004         determine_lsm_loop, determine_lsm): Removed.
1005         (tree_ssa_lim_finalize): Free data structures used by store motion.
1006         (tree_ssa_lim): Call analyze_memory_references.  Use
1007         store_motion instead of determine_lsm.
1008
1009 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
1010
1011         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
1012         rename tmake_file to m68hc11/t-m68hc11.
1013         (mcore): Set inhibit_libc to true.
1014         * config.host (alpha*-dec-*vms*): Set extra_programs.
1015         (interix3*): Don't use host_xmake_file.
1016         * configure.ac: Let config.gcc override inhibit_libc.
1017         * configure: Regenerate.
1018
1019         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
1020         * config/t-openbsd-thread: Remove commented out lines.
1021         
1022         * config/x-interix: Remove.
1023
1024         * config/m68hc11/t-m68hc11-gas: Rename to...
1025         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
1026
1027         * config/mcore/t-mcore: Remove T_CFLAGS.
1028         * config/mcore/t-mcore-pe: Likewise.
1029
1030 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
1031
1032         * configure.ac: Replace custom __GNU_SOURCE test with
1033         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
1034         * aclocal.m4: Regenerate.
1035         * configure: Regenerate.
1036         * config.in: Regenerate.
1037
1038 2008-03-27  Richard Guenther  <rguenther@suse.de>
1039
1040         * fold-const.c (target.h): Include.
1041         (fold_comparison): Fold comparison of addresses of decls
1042         that bind locally or of constants.  Consolidate address folding code.
1043         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
1044         results from fold_binary_to_constant.
1045         (compare_values_warnv): Likewise.
1046
1047 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
1048
1049         PR middle-end/35429
1050         * fold-const.c (fold_truthop): Check for integeral types when folding
1051         a == 0 && b == 0 and a != 0 || b != 0 .
1052
1053 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
1054
1055         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
1056
1057 2008-03-26  Andreas Schwab  <schwab@suse.de>
1058
1059         * doc/invoke.texi: Fix use of @item vs. @itemx.
1060
1061 2008-03-26  Tom Tromey  <tromey@redhat.com>
1062
1063         * Makefile.in (build/gensupport.o, build/print-rtl.o,
1064         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
1065         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
1066         build/gencodes.o, build/genconditions.o, build/genconfig.o,
1067         build/genconstants.o, build/genemit.o, build/genextract.o,
1068         build/genflags.o, build/genmddeps.o, build/genopinit.o,
1069         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
1070         options.h.
1071
1072 2008-03-26  Richard Guenther  <rguenther@suse.de>
1073
1074         Revert
1075         2008-03-26  Richard Guenther  <rguenther@suse.de>
1076
1077         * fold-const.c (target.h): Include.
1078         (fold_comparison): Fold comparison of addresses of two decls
1079         that bind locally.  Consolidate address folding code.
1080
1081 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1082
1083         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
1084         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
1085         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
1086         dconstsqrt2, dconstthird, dconste and/or dconst10.
1087         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
1088         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
1089         dconstsqrt2, dconste): Delete.
1090         (init_emit_once): Likewise.  Simplify initializing dconstm1.
1091         Constify variable.
1092         * real.c (get_real_const): New.
1093         * real.h (dconst3, dconst10, dconstm2, dconstthird,
1094         dconstsqrt2, dconste): Delete.
1095         (real_value_const, get_real_const): New.
1096
1097 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
1098
1099         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
1100
1101         * config/i386/i386.c (ix86_function_arg_boundary): Check
1102         BIGGEST_ALIGNMENT instead of 128.
1103         (setup_incoming_varargs_64): Likewise.
1104
1105 2008-03-26  Tom Tromey  <tromey@redhat.com>
1106
1107         * Makefile.in (DEPFILES): Add missing '/'.
1108
1109 2008-03-26  Richard Guenther  <rguenther@suse.de>
1110
1111         * fold-const.c (target.h): Include.
1112         (fold_comparison): Fold comparison of addresses of two decls
1113         that bind locally.  Consolidate address folding code.
1114
1115 2008-03-26  Nick Clifton  <nickc@redhat.com>
1116
1117         PR target/31232
1118         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
1119         not allow INT+INT as a legitimate addressing mode.
1120
1121 2008-03-26  Richard Guenther  <rguenther@suse.de>
1122
1123         * tree-flow.h (widen_bitfield): Remove declaration.
1124         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
1125         (widen_bitfield): Remove function.
1126         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
1127         code.
1128
1129 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1130
1131         PR target/31558
1132         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
1133         error_mark_node's.
1134
1135 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
1136
1137         PR rtl-optimization/35232
1138         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
1139         (forget_old_reloads_1, forget_marked_reloads): Don't clear
1140         reg_reloaded_call_part_clobbered here.
1141         (reload_regs_reach_end_p): New function.
1142         (reload_reg_rtx_for_input): New variable.
1143         (reload_reg_rtx_for_output): Likewise.
1144         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
1145         when reassigning a pseudo register.  Load reloadreg from 
1146         reload_reg_rtx_for_input, moving the mode and register
1147         calculation to...
1148         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
1149         instead of the original when deciding whether an input reload
1150         would be a no-op or whether an output reload can be deleted.
1151         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
1152         when setting up new_spill_reg_store.  Load it from
1153         reload_reg_rtx_for_output, moving the mode and register
1154         calculation to...
1155         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
1156         instead of the original when deciding whether an output reload
1157         would be a no-op.  Do the same when modifying insn notes.
1158         Use rtx_equal_p instead of == to compare the registers.
1159         (inherit_piecemeal_p): Take a mode and two register numbers
1160         as argument.
1161         (emit_reload_insns): Clear new_spill_reg_store for every hard
1162         register in the reload register.  Remove spill registers
1163         from reg_reloaded_valid before considering whether to record
1164         inheritance information for them.  Use reload_reg_rtx_for_output
1165         instead of reg_rtx when recording output reloads.  Use
1166         reload_reg_rtx_for_input instead of reg_rtx when recording
1167         input reloads.  Set or clear reg_reloaded_call_part_clobbered
1168         at the same time as setting reg_reloaded_valid.
1169         (delete_output_reload): Add a new_reload_reg parameter and use it
1170         instead of rld[j].reg_rtx.
1171         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
1172         calls accordingly.
1173
1174 2008-03-25  Tom Tromey  <tromey@redhat.com>
1175
1176         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
1177         (build/genattr.o): Likewise.
1178         (build/genattrtab.o): Likewise.
1179         (build/gencodes.o): Likewise.
1180         (build/genconfig.o): Likewise.
1181         (build/genconstants.o): Likewise.
1182         (build/genemit.o): Likewise.
1183         (build/genextract.o): Likewise.
1184         (build/genflags.o): Likewise.
1185
1186 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
1187         
1188         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
1189         instead of size_int for integer types.
1190         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
1191         to match type of MINUS_EXPR.
1192         
1193 2008-03-25  Tom Tromey  <tromey@redhat.com>
1194
1195         * configure: Rebuilt.
1196         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
1197         Makefile.
1198
1199 2008-03-25  Tom Tromey  <tromey@redhat.com>
1200
1201         * config/x-solaris (host-solaris.o): Update.
1202         * config/x-linux (host-linux.o): Update.
1203         * config/x-hpux (host-hpux.o): Update.
1204         * config/x-darwin (host-darwin.o): Update.
1205         * config/v850/t-v850e (v850-c.o): Update.
1206         * config/v850/t-v850 (v850-c.o): Update.
1207         * config/t-vxworks (vxworks.o): Update.
1208         * config/t-sol2 (sol2-c.o, sol2.o): Update.
1209         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
1210         * config/spu/t-spu-elf (spu-c.o): Update.
1211         (spu.o): Remove.
1212         * config/sh/t-symbian (sh-c.o): Update.
1213         (symbian.o): Update.
1214         * config/sh/t-sh (sh-c.o): Update.
1215         * config/score/t-score-elf (score7.o, score3.o): Update.
1216         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
1217         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
1218         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
1219         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
1220         (rs6000.o): Remove.
1221         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
1222         * config/m32c/t-m32c (m32c-pragma.o): Update.
1223         * config/ia64/t-ia64 (ia64-c.o): Update.
1224         * config/i386/x-mingw32 (host-mingw32.o): Update.
1225         * config/i386/x-i386 (driver-i386.o): Update.
1226         * config/i386/x-darwin (host-i386-darwin.o): Update.
1227         * config/i386/x-cygwin (host-cygwin.o): Update.
1228         * config/i386/t-nwld (nwld.o): Update.
1229         * config/i386/t-netware (netware.o): Update.
1230         * config/i386/t-interix (winnt.o): Update.
1231         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
1232         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
1233         msformat-c.o): Update.
1234         * config/bfin/t-bfin-linux (generated_files): Add
1235         linux-sysroot-suffix.h.
1236         * config/arm/t-wince-pe (pe.o): Update.
1237         * config/arm/t-strongarm-pe (pe.o): Update.
1238         * config/arm/t-pe (pe.o): Update.
1239         * config/arm/t-arm (arm-c.o): Update.
1240         * doc/install.texi (Prerequisites): Require make 3.80.
1241         * Makefile.in: Remove .o targets.
1242         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
1243         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
1244         (simple_generated_h, simple_generated_c): Move earlier.
1245         (generated_files): New variable.
1246         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
1247         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
1248         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
1249         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
1250         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
1251         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
1252         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
1253         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
1254         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
1255         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
1256         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
1257         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
1258         (.c.o): Remove.
1259         (COMPILE.base, COMPILE): New variables.
1260         (%.o): New pattern rule.
1261         (ALL_HOST_OBJS): New variable.
1262         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
1263         (dummy-checksum.o, cc1-checksum.o): Remove.
1264         (DRIVER_SHLIB): New variable.
1265         (DRIVER_DEFINES): Use it.
1266         (gencondmd.c): Move out of build/.
1267         (s-conditions): Update.
1268         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
1269         (ALL_BUILD_OBJS): Likewise.
1270         (build/%.o): Use BUILDCOMPILE.
1271         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
1272         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
1273         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
1274         build/gencheck.o, build/gencodes.o, build/genconditions.o,
1275         build/genconfig.o, build/genconstants.o, build/genemit.o,
1276         build/genextract.o, build/genflags.o, build/genmddeps.o,
1277         build/genopinit.o, build/genoutput.o, build/genpeep.o,
1278         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
1279         build/gen-protos.o, build/scan.o, build/fix-header.o,
1280         build/scan-decls.o): Simplify.
1281         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
1282         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
1283         prefix.o, toplev.o): Reduce to variable setting.
1284         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
1285         ($(out_object_file), gcc-options.o): New targets.
1286         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
1287         * configure: Rebuilt.
1288         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
1289         * doc/sourcebuild.texi (Front End Directory): Document new variable.
1290
1291 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
1292
1293         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
1294         complain when we hit an error, return ERROR_MARK_NODE.
1295
1296 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
1297
1298         * config/sh/constraints.md (Pso, Psz): New constraints.
1299         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
1300         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
1301
1302 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
1303
1304         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
1305         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
1306
1307 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
1308
1309         * config/sh/sh.md (prefetch): Add condition for SH2A target.
1310         (prefetch_sh2a): New.   
1311
1312 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
1313             Naveen.H.S  <naveen.hs@kpitcummins.com>
1314
1315         * config/sh/constraints.md (I28): New constraint.
1316         * config/sh/sh.c (broken_move): Add support for movi20s.
1317         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
1318
1319 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
1320             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
1321             Naveen.H.S  <naveen.hs@kpitcummins.com>
1322
1323         * config/sh/sh.c (SH_ATTRIBUTES): Define.
1324         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
1325         (print_operand): Handle resbank in %@ operand code.
1326         (sh_encode_section_info): New.
1327         (push_regs): Add conditions for resbank.
1328         (sh_expand_epilogue): Likewise.
1329         (sh_insert_attributes): Likewise.
1330         (sh_attribute_table): Likewise.
1331         (sh_handle_resbank_handler_attribute): New.
1332         (sh2a_handle_function_vector_handler_attribute): New.
1333         (sh2a_is_function_vector_call): New.
1334         (sh2a_get_function_vector_number): New.
1335         (sh2a_function_vector_p): New.
1336         (sh_cfun_resbank_handler_p): New.
1337         * config/sh/sh.md (calli): Emit jsr/n if possible.
1338         (calli_tbr_rel): New.
1339         (calli_pcrel): Emit jsr/n if possible.
1340         (return_i): Emit rts/n if possible.
1341         (call_valuei_tbr_rel): New.
1342         (call_valuei_pcrel): Add condition for SH2A target.
1343         (call_value): Likewise.
1344         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
1345         (sh2a_get_function_vector_number): Likewise.
1346         (sh2a_is_function_vector_call): Likewise.
1347         * doc/extend.texi: Document TBR relative addressing of SH2A.
1348         (resbank): Add description for SH2A.
1349
1350 2008-03-24  Richard Guenther  <rguenther@suse.de>
1351
1352         PR c/22371
1353         * gimplify.c (gimplify_modify_expr): For frontend type-correct
1354         pointer assignments change conversions according to middle-end rules.
1355         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
1356         * configure.ac: Include type checking in yes.
1357         * configure: Regenerate.
1358
1359 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1360
1361         * diagnostic.c (diagnostic_count_diagnostic): Delete.
1362         (diagnostic_report_diagnostic): Update. Handle ICEs here.
1363         
1364 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
1365
1366         * gthr-vxworks.h (UNUSED): Define.
1367
1368 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
1369
1370         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
1371
1372 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
1373
1374         * doc/extend.texi (Function Attributes): Add missing comma in the
1375         example of the "alloc_size" attribute.
1376         
1377 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
1378
1379         Revert:
1380         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
1381
1382         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
1383         32bit host.
1384
1385         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
1386
1387         PR target/35496
1388         * stor-layout.c (update_alignment_for_field): Set minimum alignment
1389         of the underlying type of a MS bitfield layout to the natural
1390         alignment of the type.
1391
1392         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
1393
1394         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
1395         to their natural alignment to avoid store forwarding stalls.
1396
1397 2008-03-22  Richard Guenther  <rguenther@suse.de>
1398
1399         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
1400         For PHI nodes verify the address is invariant.
1401         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
1402         (get_symbol_constant_value): Use is_gimple_min_invariant.
1403         (maybe_fold_stmt_indirect): Likewise.
1404
1405 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
1406
1407         PR rtl-optimization/33927
1408         * Makefile.in (dse.o): Depend on $(TM_P_H).
1409         * expr.h (extract_low_bits): Declare.
1410         * expmed.c (extract_low_bits): New function.
1411         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
1412         * dse.c: Include tm_p.h.
1413         (find_shift_sequence): Remove the read_reg argument and return the
1414         read value.  Emit the instructions instead of returning them.
1415         Iterate on new_mode rather than calculating it each time.
1416         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
1417         source to NEW_MODE and extract_low_bits to convert the shifted
1418         value to READ_MODE.
1419         (replace_read): Allow the load and store to have different mode
1420         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
1421         or extraction instructions before trying the replacement.  Update
1422         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
1423
1424 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
1425
1426         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
1427         to their natural alignment to avoid store forwarding stalls.
1428
1429 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1430
1431         PR target/27946
1432         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
1433         encouraging but not allowing gprs for input;
1434         change the input constraint to !f#r.
1435         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
1436         gprs for output;
1437         change the output constraint to !f#r.
1438
1439 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
1440
1441         PR target/13958
1442         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
1443         corresponding post-reload splitters.
1444         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
1445         when x87 FP math is selected.
1446         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
1447         New function prototype.
1448         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
1449         unreachable function to ease macroization of insn patterns.
1450
1451 2008-03-21  Martin Jambor  <mjambor@suse.cz>
1452
1453         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
1454         reference dumps if ddr is NULL or dependence is unknown.
1455
1456 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1457
1458         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
1459         unsigned extension into account.
1460         (ATOMIC_COMPARE_AND_SWAP): Likewise.
1461         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
1462         Do computations on a scratch register.
1463
1464 2008-03-21  Richard Guenther  <rguenther@suse.de>
1465
1466         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1467         Use is_gimple_min_invariant instead of TREE_INVARIANT.
1468         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
1469         * tree-ssa-dom.c (record_equality): Likewise.
1470         * tree-inline.c (copy_body_r): Likewise.
1471         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
1472         TREE_INVARIANT.
1473
1474 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1475
1476         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
1477         as 'delete_unused' argument.
1478
1479 2008-03-20  Richard Guenther  <rguenther@suse.de>
1480
1481         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
1482         special casing of constant qualifiers.
1483         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
1484         care about them in general.
1485         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
1486         regardless of their type.
1487         (fold_stmt_r): Forcefully fold *& if we end up with that.
1488
1489 2008-03-20  Paul Brook  <paul@codesourcery.com>
1490
1491         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
1492         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
1493         linker flags.
1494         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
1495         definition.
1496         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
1497         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
1498
1499 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
1500
1501         * common.opt (Wmudflap): New option.
1502         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
1503         (mx_register_decls): Likewise.
1504         (mudflap_finish_file): Likewise.
1505         * doc/invoke.texi: Document -Wno-mudflap.
1506
1507 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
1508
1509         * c-format.c (replace_format_name_to_system_name): New.
1510         (cmp_attribs): New.
1511         (convert_format_name_to_system_name): New.
1512         (decode_format_attr): Add use of convert_format_name_to_system_name.
1513         (format_types_orig): Add gnu_ prefix to names.
1514         (check_format_info_main): Special treating of \0 escaped names for
1515         supporting multi-character format specifiers as I32, I64.
1516         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
1517         (gnu_target_overrides_format_attributes): New.
1518         * c-format.h: Add structure target_ovr_attr to hold
1519         system specific formatter names.
1520         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
1521         msformat-c.o file to c_target_objs and cxx_target_objs.
1522         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
1523         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
1524         (TARGET_N_FORMAT_TYPES): New.
1525         * config/i386/msformat-c.c: New.
1526         * config/i386/t-cygming: Add build rule for msformat-c.o.
1527         * doc/extend.texi: Add new format names gnu_* and ms_* and
1528         further details.
1529         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
1530
1531 2008-03-20  Ira Rosen  <irar@il.ibm.com>
1532
1533         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
1534         optimizations turned on under -O3.
1535         (ftree-vectorize): Add that the flag is turned on with -O3.
1536
1537 2008-03-20  Ben Elliston  <bje@au.ibm.com>
1538
1539         * regmove.c (try_auto_increment): Fix spelling error in comment.
1540         * final.c (final_scan_insn): Likewise.
1541
1542 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
1543
1544         PR target/14552
1545         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
1546         allocator preferences for "y" and "r" class registers.
1547         ("*mov<mode>_internal"): Ditto.
1548         ("*movv2sf_internal_rex64"): Ditto.
1549         ("*movv2sf_internal"): Ditto.
1550
1551 2008-03-19  Michael Matz  <matz@suse.de>
1552
1553         PR middle-end/35616
1554         * calls.c (expand_call): Check overlap of arguments with call
1555         address for sibcalls.
1556
1557 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
1558
1559         PR target/35496
1560         * stor-layout.c (update_alignment_for_field): Set minimum alignment
1561         of the underlying type of a MS bitfield layout to the natural
1562         alignment of the type.
1563
1564 2008-03-19  Jan Hubicka  <jh@suse.cz>
1565
1566         PR other/35094
1567         * toplev.c (decode_d_option): Handle all CPP flags.
1568         * tree-vrp.c: Update tree_pass descriptors.
1569         * regrename.c: Update tree_pass descriptors.
1570         * fwprop.c: Update tree_pass descriptors.
1571         * doc/invoke.texi: Remove documentation of dropped -d? flags.
1572         * tree-into-ssa.c: Update tree_pass descriptors.
1573         * tree-dump.c: Update tree_pass descriptors.
1574         * tree-complex.c: Update tree_pass descriptors.
1575         * tree-dump.h: Update tree_pass descriptors.
1576         * see.c: Update tree_pass descriptors.
1577         * cgraphbuild.c: Update tree_pass descriptors.
1578         * tracer.c: Update tree_pass descriptors.
1579         * tree-loop-distribution.c: Update tree_pass descriptors.
1580         * cgraph.c: Update tree_pass descriptors.
1581         * postreload-gcse.c: Update tree_pass descriptors.
1582         * postreload.c: Update tree_pass descriptors.
1583         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
1584         * tree-tailcall.c: Update tree_pass descriptors.
1585         * tree-pass.h (tree_opt_pass): Rename to ...
1586         (opt_pass) ... this one; add "type" field and remove letter field.
1587         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
1588         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
1589         all_lowering_passes): Update declaration.
1590         * ipa-cp.c: Update tree_pass descriptors.
1591         * final.c: Update tree_pass descriptors.
1592         * omp-low.c: Update tree_pass descriptors.
1593         * tree-ssa-dse.c: Update tree_pass descriptors.
1594         * ipa-reference.c: Update tree_pass descriptors.
1595         * tree-ssa-uncprop.c: Update tree_pass descriptors.
1596         * auto-inc-dec.c: Update tree_pass descriptors.
1597         * reorg.c: Update tree_pass descriptors.
1598         * cgraphunit.c: Update tree_pass descriptors.
1599         * tree-ssa-copyrename.c: Update tree_pass descriptors.
1600         * tree-ssa-ccp.c: Update tree_pass descriptors.
1601         * df-core.c: Update tree_pass descriptors.
1602         * mode-switching.c: Update tree_pass descriptors.
1603         * tree-nomudflap.c: Update tree_pass descriptors.
1604         * modulo-sched.c: Update tree_pass descriptors.
1605         * ipa-pure-const.c: Update tree_pass descriptors.
1606         * cse.c: Update tree_pass descriptors.
1607         * web.c: Update tree_pass descriptors.
1608         * tree-stdarg.c: Update tree_pass descriptors.
1609         * tree-ssa-math-opts.c: Update tree_pass descriptors.
1610         * tree-ssa-dom.c: Update tree_pass descriptors.
1611         * tree-nrv.c: Update tree_pass descriptors.
1612         * tree-ssa-alias.c: Update tree_pass descriptors.
1613         * loop-init.c: Update tree_pass descriptors.
1614         * gimple-low.c: Update tree_pass descriptors.
1615         * ipa-inline.c: Update tree_pass descriptors.
1616         * tree-ssa-sink.c: Update tree_pass descriptors.
1617         * global.c: Update tree_pass descriptors.
1618         * ifcvt.c: Update tree_pass descriptors.
1619         * jump.c: Update tree_pass descriptors.
1620         * predict.c: Update tree_pass descriptors.
1621         * tree-ssa-loop.c: Update tree_pass descriptors.
1622         * recog.c: Update tree_pass descriptors.
1623         * dse.c: Update tree_pass descriptors.
1624         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
1625         * tree-eh.c: Update tree_pass descriptors.
1626         * regmove.c: Update tree_pass descriptors.
1627         * local-alloc.c
1628         * function.c: Update tree_pass descriptors.
1629         * tree-vectorizer.c: Update tree_pass descriptors.
1630         * gcse.c: Update tree_pass descriptors.
1631         * ipa-type-escape.c: Update tree_pass descriptors.
1632         * tree-if-conv.c: Update tree_pass descriptors.
1633         * init-regs.c: Update tree_pass descriptors.
1634         * ipa.c: Update tree_pass descriptors.
1635         * tree-ssa-phiopt.c: Update tree_pass descriptors.
1636         * rtl-factoring.c: Update tree_pass descriptors.
1637         * lower-subreg.c: Update tree_pass descriptors.
1638         * bt-load.c: Update tree_pass descriptors.
1639         * tree-dfa.c: Update tree_pass descriptors.
1640         * except.c: Update tree_pass descriptors.
1641         * emit-rtl.c: Update tree_pass descriptors.
1642         * cfgexpand.c: Update tree_pass descriptors.
1643         * tree-cfgcleanup.c: Update tree_pass descriptors.
1644         * cfgcleanup.c: Update tree_pass descriptors.
1645         * tree-ssa-pre.c: Update tree_pass descriptors.
1646         * tree-sra.c: Update tree_pass descriptors.
1647         * tree-mudflap.c: Update tree_pass descriptors.
1648         * tree-ssa-copy.c: Update tree_pass descriptors.
1649         * cfglayout.c: Update tree_pass descriptors.
1650         * tree-ssa-forwprop.c: Update tree_pass descriptors.
1651         * tree-ssa-dce.c: Update tree_pass descriptors.
1652         * tree-ssa.c: Update tree_pass descriptors.
1653         * regclass.c: Update tree_pass descriptors.
1654         * integrate.c: Update tree_pass descriptors.
1655         * tree-optimize.c: Update tree_pass descriptors.
1656         * tree-ssa-phiprop.c: Update tree_pass descriptors.
1657         * tree-object-size.c: Update tree_pass descriptors.
1658         * combine.c: Update tree_pass descriptors.
1659         * tree-outof-ssa.c: Update tree_pass descriptors.
1660         * bb-reorder.c: Update tree_pass descriptors.
1661         * stack-ptr-mod.c: Update tree_pass descriptors.
1662         * var-tracking.c: Update tree_pass descriptors.
1663         * tree-profile.c: Update tree_pass descriptors.
1664         * tree-vect-generic.c: Update tree_pass descriptors.
1665         * reg-stack.c: Update tree_pass descriptors.
1666         * sched-rgn.c: Update tree_pass descriptors.
1667         * tree-ssa-structalias.c: Update tree_pass descriptors.
1668         * tree-cfg.c: Update tree_pass descriptors.
1669         * passes.c (current_pass): Update declaration.
1670         (finish_optimization_passes): Update.
1671         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
1672         (register_one_dump_file, register_dump_files_1, next_pass_1):
1673         Update arguments.
1674         (init_optimization_passes): Update handling of new types.
1675         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
1676         * ipa-struct-reorg.c: Update tree_pass descriptors.
1677         * tree-ssa-reassoc.c: Update tree_pass descriptors.
1678         * combine-stack-adj.c: Update tree_pass descriptors.
1679         * cfgrtl.c: Update tree_pass descriptors.
1680         * dce.c: Update tree_pass descriptors.
1681         * tree-ssanames.c: Update tree_pass descriptors.
1682
1683 2008-03-19  Richard Guenther  <rguenther@suse.de>
1684
1685         PR middle-end/35609
1686         * tree-ssa.c (walk_data): New structure.
1687         (warn_uninitialized_var): If not always_executed warn with "maybe"
1688         instead of "is".
1689         (execute_early_warn_uninitialized): Compute post-dominators.
1690         Initialize always_executed before processing each basic block.
1691
1692 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
1693
1694         PR target/35504
1695         * config/i386/i386.c (x86_this_parameter): Calculate correct location
1696         of "this" pointer when "regparm = N" or "fastcall" is in effect.
1697
1698 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1699
1700         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
1701
1702 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
1703
1704         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
1705         is true.
1706         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
1707         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
1708         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
1709         target after ignore has been set, and move there also the commputation
1710         of subtarget and original_target.
1711         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
1712         (LANG_HOOKS_INITIALIZER): Remove it.
1713         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
1714
1715 2008-03-18  Richard Guenther  <rguenther@suse.de>
1716
1717         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
1718         found an expression with constants, note that in the VN for the lhs.
1719         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
1720         fold them to constants if possible.  Run cleanup_cfg if done so.
1721         (execute_pre): Return todo.
1722         (do_pre): Likewise.
1723         (execute_fre): Likewise.
1724         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
1725         of constants.
1726         (get_prop_source_stmt): Look through pointer conversions.
1727
1728 2008-03-18  Jan Hubicka  <jh@suse.cz>
1729
1730         * tree-pretty-print.c: Include predict.h.
1731         (dump_generic_node): Dump predictor.
1732         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
1733         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
1734         * gimple-low.c (lower_stmt): Likewise.
1735         * expr.c (expand_expr_real): Likewise.
1736         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
1737         them.
1738         (build_predict_expr, build_predict_expr): New.
1739         * predict.h (predictor_name, build_predict_expr): Update.
1740         * c-typeck.c (c_finish_bc_stmt): Add prediction.
1741         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
1742         * predict.def (PRED_CONTINUE): Update hitrate.
1743         * tree.def (PREDICT_EXPR): Define.
1744         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
1745         do not handle BIND_EXPR.
1746         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
1747         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
1748         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
1749         operands.
1750
1751 2008-03-18  Michael Matz  <matz@suse.de>
1752
1753         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
1754
1755 2008-03-18  Richard Guenther  <rguenther@suse.de>
1756
1757         * tree-gimple.h (is_gimple_invariant_address): Declare.
1758         (is_gimple_constant): Likewise.
1759         * tree-gimple.c (is_gimple_constant): New function.
1760         (is_gimple_invariant_address): Likewise.
1761         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
1762         and is_gimple_invariant_address.
1763         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
1764         previous change.
1765         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
1766         an addressable base.
1767
1768 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1769
1770         PR middle-end/35611
1771         * gimplify.c (gimplify_expr): Gimplify second operand of
1772         OMP_ATOMIC_LOAD.
1773
1774 2008-03-17  Richard Guenther  <rguenther@suse.de>
1775
1776         PR tree-optimization/19637
1777         * fold-const.c (fold_unary): Remove restrictions of removing
1778         intermediate pointer-conversions (P2)(P1)P0.
1779         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
1780         conversion to void pointer.
1781         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
1782
1783 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
1784
1785         PR debug/31510
1786         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
1787         emulated thread local variables.
1788
1789 2008-03-16  Richard Guenther  <rguenther@suse.de>
1790
1791         PR middle-end/35607
1792         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1793         expand TREE_INVARIANT operations that are not gimple invariant.
1794
1795 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
1796
1797         * doc/extend.texi (Alignment): Say that the ABI controls
1798         the __alignof__ for non-strict-alignment targets rather
1799         than being a recommendation.
1800
1801 2008-03-15  Paul Brook  <paul@codesourcery.com>
1802
1803         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
1804         annotations.
1805         (arm_output_fn_unwind): Mark functions that can not be unwound.
1806
1807 2008-03-15  Paul Brook  <paul@codesourcery.com>
1808
1809         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
1810         extension instructions.
1811
1812 2008-03-15  Richard Guenther  <rguenther@suse.de>
1813
1814         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
1815         and fold constant aggregate refs.
1816         (fold_const_aggregate_ref): Handle string constants
1817         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
1818         (evaluate_stmt): Simplify now that ccp_fold folds constant
1819         aggregate refs.
1820
1821 2008-03-15  Paul Brook  <paul@codesourcery.com>
1822
1823         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
1824         (extzv): Use gen_extzv_t2.
1825         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
1826
1827 2008-03-15  Richard Guenther  <rguenther@suse.de>
1828
1829         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
1830         (fold_const_aggregate_ref): Likewise.
1831         (get_value): Return NULL if we don't have any values.
1832         (ccp_finalize): Set const_val to NULL after freeing it.
1833         * tree-flow.h (get_symbol_constant_value): Declare.
1834         (fold_const_aggregate_ref): Likewise.
1835         * tree-ssa-sccvn.c (try_to_simplify): Use them.
1836
1837 2008-03-15  Richard Guenther  <rguenther@suse.de>
1838
1839         PR middle-end/35593
1840         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
1841         to not produce negative array indices if not allowed.  Add
1842         parameter to indicate that.
1843         (maybe_fold_offset_to_component_ref): Allow negative array
1844         indices only for the first member of a structure.
1845         (maybe_fold_offset_to_reference): Allow negative array indices.
1846         (maybe_fold_stmt_addition): Likewise.
1847
1848 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
1849             Anatoly Sokolov <aesok@post.ru>
1850
1851         * gcc/gcc/config/avr/avr.c (avr_arch_types): Add avr6 entry.
1852         (avr_arch): Add ARCH_AVR6.
1853         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
1854         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
1855         instead of fixed value 2.
1856         (print_operand_address): Use gs() asm specifier instead of pm().
1857         (avr_assemble_integer): (Ditto.).
1858         (avr_output_addr_vec_elt): (Ditto.).
1859         (print_operand): Handle "!" code.
1860         * gcc/gcc/config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
1861         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
1862         (AVR_HAVE_EIJMP_EICALL): Define.
1863         (AVR_3_BYTE_PC): Redefine.
1864         (AVR_2_BYTE_PC): (Ditto.).
1865         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
1866         (LINK_SPEC): Add atmega2560 and atmega2561.
1867         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
1868         (crtm2561.o).
1869         * gcc/gcc/config/avr/avr.md (call_insn): Use eicall instead of icall 
1870         for 3 byte PC devices.
1871         (call_value_insn): (Ditto.).
1872         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
1873         (indirect_jump): Use only for for 2 byte PC devices.
1874         (*tablejump): (Ditto.).
1875         (*indirect_jump_avr6): Add insn.
1876         (*tablejump_rjmp): Don't use for 3 byte PC devices.
1877         * gcc/gcc/config/avr/libgcc.S (__prologue_saves__): Use eijmp 
1878         instead of ijmp for 3 byte PC devices.
1879         (__tablejump2__): (Ditto.).
1880         * gcc/gcc/config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
1881         (MULITLIB_DIRNAMES): (Ditto.). 
1882         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
1883
1884 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
1885
1886         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
1887         "sse2_umulsidi3".  Use V1DI mode for operand 0.
1888         ("mmx_psadbw"): Use V1DI mode for operand 0.
1889         * config/i386/i386-modes.def (V1SI): New vector mode.
1890         * config/i386/i386.c (struct builtin_description)
1891         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
1892         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
1893         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
1894         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
1895         v1di_ftype_v8qi_v8qi type.
1896         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
1897
1898         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
1899         __builtin_ia32_pmuludq]: Fix the mode of return value.
1900
1901 2008-03-15  Richard Guenther  <rguenther@suse.de>
1902
1903         PR middle-end/35595
1904         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
1905         being a PHI_NODE.
1906
1907 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
1908         
1909         * doc/invoke.texi (Option Summary, Xtensa Options): Document
1910         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
1911         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
1912         unless TARGET_SERIALIZE_VOLATILE is enabled.
1913         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
1914         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
1915         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
1916
1917 2008-03-14  Richard Guenther  <rguenther@suse.de>
1918
1919         PR tree-optimization/34172
1920         * tree-flow.h (refs_may_alias_p): Declare.
1921         (get_single_def_stmt): Likewise.
1922         (get_single_def_stmt_from_phi): Likewise.
1923         (get_single_def_stmt_with_phi): Likewise.
1924         * tree-dfa.c (refs_may_alias_p): New function.
1925         (get_single_def_stmt): Likewise.
1926         (get_single_def_stmt_from_phi): Likewise.
1927         (get_single_def_stmt_with_phi): Likewise.
1928         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
1929         (vn_reference_lookup_1): New helper function.
1930         (vn_reference_lookup): Walk the virtual use-def chain to
1931         continue searching for a match if the def does not alias the
1932         reference we are looking for.
1933
1934 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
1935
1936         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
1937         archive and Perzl.  Update The Written Word listing.
1938
1939 2008-03-14  Richard Guenther  <rguenther@suse.de>
1940
1941         PR tree-optimization/34043
1942         PR tree-optimization/33989
1943         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
1944         when doing FRE.
1945         (bitmap_find_leader): Use extra argument to verify dominance
1946         relationship inside a basic-block.
1947         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
1948         (find_leader_in_sets): Adjust.
1949         (create_component_ref_by_pieces): Take extra argument for
1950         dominance check, handle lookup failures.
1951         (find_or_generate_expression): Likewise.
1952         (create_expression_by_pieces): Likewise.
1953         (insert_into_preds_of_block): Adjust.
1954         (create_value_expr_from): If asked for, verify all operands
1955         are in the blocks AVAIL_OUT set.
1956         (make_values_for_stmt): Check for SSA_NAMEs that are life
1957         over an abnormal edge.
1958         (compute_avail): Remove such check.
1959         (do_SCCVN_insertion): New function.
1960         (eliminate): If we do not find a leader suitable for replacement
1961         insert a replacement expression from SCCVN if available.
1962         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
1963         (struct vn_ssa_aux): Add needs_insertion flag.
1964         * tree-ssa-sccvn.c (may_insert): New global flag.
1965         (copy_reference_ops_from_ref): Value-number union member access
1966         based on its size, not type and member if insertion is allowed.
1967         (visit_reference_op_load): For a weak match from union type
1968         punning lookup a view-converted value and insert a SSA_NAME
1969         for that value if that is not found.
1970         (visit_use): Make dumps shorter.  Do not disallow value numbering
1971         SSA_NAMEs that are life over an abnormal edge to constants.
1972         (free_scc_vn): Release inserted SSA_NAMEs.
1973         (run_scc_vn): New flag to specify whether insertion is allowed.
1974         Process SSA_NAMEs in forward order.
1975         * tree-ssa-loop-im.c (for_each_index): Handle invariant
1976         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
1977         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
1978         pointer type to/from integral types that do not change the
1979         precision to regular conversions.
1980
1981 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
1982
1983         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
1984         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
1985         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
1986         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
1987         input arguments and the mode of return value.  Built-in functions
1988         that operate on whole 64-bit MMX register now use V1DI mode.
1989
1990 2008-03-13  Alon Dayan  <alond@il.ibm.com>
1991             Olga Golovanevsky  <olga@il.ibm.com>
1992
1993         PR tree-optimization/35041
1994         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
1995         to locate the right position in a statement.
1996
1997 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
1998
1999         PR target/34000
2000         PR target/35553
2001         * config/i386/xmmintrin.h:  Change all static inline functions to
2002         extern inline and add __gnu_inline__ attribute.
2003         * config/i386/bmintrin.h: Ditto.
2004         * config/i386/smmintrin.h: Ditto.
2005         * config/i386/tmmintrin.h: Ditto.
2006         * config/i386/mmintrin-common.h: Ditto.
2007         * config/i386/ammintrin.h: Ditto.
2008         * config/i386/emmintrin.h: Ditto.
2009         * config/i386/pmmintrin.h: Ditto.
2010         * config/i386/mmintrin.h: Ditto.
2011         * config/i386/mm3dnow.h: Ditto.
2012
2013 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
2014
2015         PR middle-end/35185
2016         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
2017         (lower_omp_2): New function.
2018         (lower_omp_1, lower_omp): Rewritten.
2019
2020 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
2021
2022         PR 35054
2023         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
2024         with the phrase "Microsoft Windows compilers".
2025         (Push/Pop Macro Pragmas): New subsection. Document
2026         #pragma push_macro and pragma pop_macro.
2027
2028 2008-03-12  Paul Brook  <paul@codesourcery.com>
2029
2030         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
2031
2032 2008-03-12  Paul Brook  <paul@codesourcery.com>
2033
2034         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
2035         (thumb2_alusi3_short): Exclude PLUS and MINUS.
2036         (thumb2_addsi_shortim): Rename ...
2037         (thumb2_addsi_short): ... to this.  Allow register operands.
2038         (thumb2_subsi_short): New pattern.
2039         (thumb2_one_cmplsi2_short,
2040         thumb2_negsi2_short): New patterns and peepholes.
2041
2042 2008-03-12  Paul Brook  <paul@codesourcery.com>
2043
2044         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
2045
2046 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
2047
2048         * config/i386/i386.md (int_cond): New code iterator.
2049         (fp_cond): Ditto.
2050         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
2051         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
2052         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
2053         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
2054         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
2055         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
2056         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
2057         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
2058
2059 2008-03-12  Paul Brook  <paul@codesourcery.com>
2060
2061         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
2062         instead of {arm,thumb}_compute_save_reg_mask.
2063         (output_return_instruction): Ditto.
2064         (thumb_unexpanded_epilogue): Ditto.
2065         (thumb1_expand_prologue): Ditto.
2066         (thumb1_output_function_prologue): Ditto.
2067         (arm_set_return_address): Ditto.
2068         (thumb_set_return_address): Ditto.
2069         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
2070         regs to achieve stack alignment.
2071         (thumb1_compute_save_reg_mask): Fix compiler warning.
2072         (arm_output_epilogue): Use offsets->saved_regs_mask.
2073         Adjust stack pointer by poping call clobered registers.
2074         (arm_expand_prologue): Use offsets->saved_regs_mask.
2075         Adjust stack pointer by pushing extra registers.
2076         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
2077
2078 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
2079
2080         PR tree-opt/35422
2081         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
2082         conversion to the operands of a multiplication.
2083
2084 2008-03-12  Richard Guenther  <rguenther@suse.de>
2085
2086         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
2087         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
2088         * timevar.def (TV_TREE_PHIPROP): Add.
2089         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
2090         pass description.  Use TV_TREE_PHIPROP.
2091         * tree-ssa-forwprop.c: Remove phiprop code.
2092
2093 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
2094
2095         PR middle-end/35549
2096         * omp-low.c (maybe_lookup_decl): Constify first argument.
2097         (use_pointer_for_field): Change last argument from bool to
2098         omp_context *.  Disallow shared copy-in/out in nested
2099         parallel if decl is shared in outer parallel too.
2100         (build_outer_var_ref, scan_sharing_clauses,
2101         lower_rec_input_clauses, lower_copyprivate_clauses,
2102         lower_send_clauses, lower_send_shared_vars): Adjust callers.
2103
2104 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
2105             Ira Rosen  <irar@il.ibm.com>
2106
2107         * tree-vectorizer.c (free_stmt_vec_info): New function.
2108         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
2109         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
2110         * tree-vectorizer.h (free_stmt_vec_info): Declare.
2111         * tree-vect-transform.c (vectorizable_conversion): Free
2112         vec_oprnds0 if it was allocated.
2113         (vect_permute_store_chain): Remove unused VECs.
2114         (vectorizable_store): Free VECs that are allocated in the..
2115         function.
2116         (vect_transform_strided_load, vectorizable_load): Likewise.
2117         (vect_remove_stores): Simplify the code.
2118         (vect_transform_loop): Move code to vect_remove_stores().
2119         Call vect_remove_stores() and free_stmt_vec_info().
2120
2121 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2122
2123         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
2124         TARGET_HPUX.  Revise comment.
2125         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
2126         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
2127         Use sr4 variant of `be' instruction when not generating PIC code.
2128         (attr_length_call): Adjust for above change.
2129
2130 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2131
2132         * ipa-reference.c (static_execute): Remove module_statics_const and
2133         associated setting code.
2134
2135 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
2136
2137         PR target/35540
2138         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
2139         predicate for operand 1.
2140         (paritysi2_cmp): Use register_operand predicate for operand 2.
2141         Use earlyclobber modifier for operand 1.  Remove support for
2142         memory operands.
2143         (paritydi2_cmp): Use register_operand predicate for operand 3.
2144         Use earlyclobber modifier for operand 1.  Remove support for
2145         memory operands.
2146
2147 2008-03-11  Paul Brook  <paul@codesourcery.com>
2148             Vladimir Prus  <vladimir@codesourcery.com>
2149
2150         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
2151         (arm_compute_save_reg0_reg12_mask): Always
2152         check if register 11 must be saved.  Always safe hard frame pointer
2153         when frame_pointer_needeed.
2154         (arm_compute_save_reg_mask): Save IP and PC
2155         only with apcs frames.
2156         (arm_output_epilogue): Adjust Thumb2 codepath to
2157         be also invoked and work for ARM non-apcs frames.
2158         (arm_expand_prologue): Don't bother saving IP
2159         for non-apcs frame, since it's not clobbered by
2160         prologue code.  Implement non-apcs frame
2161         layout.
2162
2163 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
2164
2165         PR rtl-optimization/35281
2166         * expr.c (convert_move): Use a new pseudo for the intermediate
2167         from_mode->word_mode result.
2168
2169 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
2170
2171         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
2172         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
2173         * toplev.c (compile_file): Don't call it.
2174
2175 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
2176
2177         PR middle-end/35526
2178         * expr.c (store_expr): Call emit_block_move if the mode
2179         of "temp" RTX is BLKmode.
2180
2181 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2182             Richard Guenther  <rguenther@suse.de>
2183
2184         PR tree-optimization/31358
2185         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
2186         the step with a NULL_TREE.
2187         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
2188         to sizetype if type is a pointer type.
2189         (add_candidate_1): Don't convert the base and step to
2190         the generic type if the orginal type is a pointer type.
2191         (add_iv_value_candidates): Use sizetype for the step
2192         if type is a pointer type.
2193         (cand_value_at): Likewise.
2194         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
2195         for pointer types.
2196         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
2197         Don't convert the tem affine to the type.
2198         (add_elt_to_tree): Use sizetype for the step if a pointer.
2199         Use POINTER_PLUS_EXPR for pointers.
2200         (aff_combination_to_tree): Use sizetype for the step if a
2201         pointer.
2202
2203 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
2204
2205         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
2206         Remove commutativity hint.
2207
2208 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
2209
2210         PR c/35438
2211         PR c/35439
2212         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
2213         errorneous type.  Check that v is a VAR_DECL.
2214
2215         PR middle-end/35099
2216         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
2217
2218 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
2219
2220         PR tree-optimization/35494
2221         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
2222         may be overriden at link and run time.
2223
2224 2008-03-10  Richard Guenther  <rguenther@suse.de>
2225
2226         PR tree-optimization/34677
2227         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
2228         (poolify_tree): Likewise.
2229         (modify_expr_template): Likewise.
2230         (poolify_modify_stmt): Likewise.
2231         (insert_fake_stores): Handle all component-ref style stores
2232         in addition to INDIRECT_REF.  Also handle complex types.
2233         Do not poolify the inserted load.
2234         (realify_fake_stores): Do not rebuild the tree but only
2235         make it a SSA_NAME copy.
2236         (init_pre): Remove initialzation of modify_expr_template.
2237         Do not allocate modify_expr_node_pool.
2238         (fini_pre): Do not free modify_expr_node_pool.
2239
2240 2008-03-10  Paul Brook  <paul@codesourcery.com>
2241
2242         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
2243         to avoid conflicts.
2244
2245 2008-03-10  Paul Brook  <paul@codesourcery.com>
2246             Mark Shinwell  <shinwell@codesourcery.com>
2247
2248         * config/arm/cortex-r4.md: New.
2249         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
2250         insn attributes.
2251         * config/arm/arm.md: Include cortex-r4.md.
2252         (insn): Add smmls, sdiv and udiv values.
2253         (generic_sched): Don't use generic scheduling for Cortex-R4.
2254         (arm_issue_rate): New function.
2255         (TARGET_SCHED_ISSUE_RATE): Define.
2256
2257 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
2258
2259         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
2260
2261 2008-03-10  Richard Guenther  <rguenther@suse.de>
2262
2263         * tree-ssa-pre.c (get_sccvn_value): Simplify.
2264         (compute_avail): Do not add stmt uses to AVAIL_OUT.
2265
2266 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
2267
2268         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
2269         Set default to true.
2270
2271 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2272
2273         * c.opt (Wsynth): Deprecate.
2274         * doc/invoke.texi (Option Summary, Warning Options): Document
2275         -Wno-format-contains-nul.
2276
2277 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
2278
2279         PR target/35496
2280         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
2281         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
2282
2283 2008-03-09  Ira Rosen  <irar@il.ibm.com>
2284
2285         * config/rs6000/rs6000.c (builtin_description): Rename vector
2286         left shift operations.
2287         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
2288         (altivec_vsl<VI_char>): Rename to ...
2289         (ashl<mode>3): ... new name.
2290         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
2291         gen_ashlv4si3.
2292         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
2293
2294 2008-03-08  Richard Guenther  <rguenther@suse.de>
2295
2296         * coverage.h (tree_coverage_counter_addr): Declare.
2297         * coverage.c (tree_coverage_counter_addr): New function.
2298         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
2299         before using again.
2300         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
2301         (tree_gen_one_value_profiler): Likewise.
2302         (tree_gen_ic_profiler): Likewise.
2303         (tree_gen_average_profiler): Likewise.
2304         (tree_gen_ior_profiler): Likewise.
2305
2306 2008-03-08  Richard Guenther  <rguenther@suse.de>
2307
2308         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
2309         (vn_binary_op_insert): Likewise.
2310         (vn_unary_op_lookup): Likewise.
2311         (vn_unary_op_insert): Likewise.
2312         (vn_nary_op_lookup): Declare.
2313         (vn_nary_op_insert): Likewise.
2314         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
2315         and binary hashes, use a single obstack for unary_op_pool
2316         and binary_op_pool.
2317         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
2318         a single struct vn_nary_op_s.  Store tree code length and
2319         a variable number of operands.
2320         (struct vn_reference_op_struct): Remove unused op2.
2321         (vn_reference_op_eq): Do not compare op2.
2322         (vn_reference_op_compute_hash): Do not compute hash of op2.
2323         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
2324         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
2325         with vn_nary_op_compute_hash.
2326         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
2327         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
2328         vn_nary_op_lookup.
2329         (vn_unary_op_insert, vn_binary_op_insert): Replace with
2330         vn_nary_op_insert.
2331         (visit_unary_op): Call nary functions.
2332         (visit_binary_op): Likewise.
2333         (process_scc): Adjust for struct vn_tables_s changes.
2334         (allocate_vn_table): Likewise.
2335         (free_vn_table): Likewise.
2336         * tree-vn.c (vn_add): Call nary functions.
2337         (vn_lookup): Likewise.
2338
2339 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
2340
2341         PR target/35498
2342         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
2343         wdst back after sync_compare_and_swapqhi_internal.
2344
2345 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
2346
2347         PR target/22152
2348         * config/i386/i386-modes.def (V1DI): New vector mode.
2349         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
2350         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
2351         (MMXMODE248): Ditto.
2352         (MMXMODE): Add V1DI mode.
2353         (mmxvecsize): Change DI mode to V1DI mode.
2354         ("mov<mode>): Use MMXMODEI8 mode iterator.
2355         ("*mov<mode>_internal_rex64"): Ditto.
2356         ("*mov<mode>_internal"): Ditto.
2357         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
2358         ("mmx_sub<mode>3"): Ditto.
2359         ("mmx_adddi3"): Remove insn pattern.
2360         ("mmx_subdi3"): Ditto.
2361         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
2362         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
2363         ("mmx_ashl<mode>3"): Ditto.
2364         ("mmx_lshrdi3"): Remove insn pattern.
2365         ("mmx_ashldi3"): Ditto.
2366         * config/i386/i386.c (classify_argument): Handle V1DImode.
2367         (function_arg_advance_32): Ditto.
2368         (function_arg_32): Ditto.
2369         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
2370         mmx_addv1di3 insn pattern.
2371         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
2372         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
2373         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
2374         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
2375         Remove definitions of built-in functions.
2376         (V1DI_type_node): New node.
2377         (v1di_ftype_v1di_int): Ditto.
2378         (v1di_ftype_v1di_v1di): Ditto.
2379         (v2si_ftype_v2si_si): Ditto.
2380         (v4hi_ftype_v4hi_di): Remove node.
2381         (v2si_ftype_v2si_di): Ditto.
2382         (ix86_init_mmx_sse_builtins): Handle V1DImode.
2383         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
2384         Redefine builtins using def_builtin_const with *_ftype_*_int node.
2385         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
2386         Add new builtins using def_builtin_const.
2387         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
2388         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
2389         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
2390         * config/i386/mmintrin.h (__v1di): New typedef.
2391         (_mm_add_si64): Cast arguments to __v1di type.
2392         (_mm_sub_si64): Ditto.
2393         (_mm_sll_pi16): Cast __count to __v4hi type.
2394         (_mm_sll_pi32): Cast __count to __v2si type.
2395         (_mm_sll_si64): Cast arguments to __v1di type.
2396         (_mm_srl_pi16): Cast __count to __v4hi type.
2397         (_mm_srl_pi32): Cast __count to __v2si type.
2398         (_mm_srl_si64): Cast arguments to __v1di type.
2399         (_mm_sra_pi16): Cast __count to __v4hi type.
2400         (_mm_sra_pi32): Cast __count to __v2si type.
2401         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
2402         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
2403         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
2404         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
2405         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
2406         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
2407         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
2408         (_mm_srai_pi32): Use __builtin_ia32_psradi.
2409         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
2410         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
2411         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
2412         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
2413
2414 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
2415
2416         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
2417
2418 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
2419
2420         PR target/35373
2421         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
2422         reg+const addressing for Altivec modes.  Don't generate reg+reg
2423         addressing for TFmode or TDmode quantities.
2424
2425 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
2426
2427         * c-common.c (vector_types_convertible_p): Call langhook
2428         instead of comptypes.
2429
2430 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2431
2432         PR tree-opt/35402
2433         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
2434         integral and scalar float variables which have a
2435         NULL DECL_INITIAL.
2436
2437 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
2438
2439         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
2440         dwarf_register_span hook when emitting unwind information for
2441         register-to-memory saves.
2442         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
2443         (rs6000_frame_related): Remove call to spe_synthesize_frame.
2444
2445 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
2446
2447         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
2448         for the same VAR_DECL.
2449
2450 2008-03-06  Tom Tromey  <tromey@redhat.com>
2451
2452         * treelang: Delete.
2453         * doc/standards.texi (Standards): Don't mention treelang.
2454         * doc/invoke.texi (Overall Options): Don't mention treelang.
2455         * doc/install.texi (Prerequisites): Don't mention bison or
2456         treelang.
2457         (Configuration): Don't mention treelang.
2458         (Building): Likewise.
2459         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
2460
2461 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
2462
2463         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
2464         word-extractions out of a multi-word object.
2465
2466 2008-03-06  Richard Guenther  <rguenther@suse.de>
2467
2468         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
2469         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
2470         result type and precision.
2471         * expr.c (get_inner_reference): Set unsignedp based on the result
2472         type of BIT_FIELD_REF.
2473         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
2474         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
2475         (try_instantiate_multiple_fields): Likewise.  Use the correct type
2476         for BIT_FIELD_REF.
2477         (sra_build_assignment): Likewise.
2478         (sra_build_elt_assignment): Likewise.
2479         (sra_explode_bitfield_assignment): Likewise.
2480         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
2481         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
2482         set BIT_FIELD_REF_UNSIGNED.
2483         (vectorizable_load): Likewise.
2484
2485 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
2486
2487         * cse.c (cse_extended_basic_block): Invalidate artificial defs
2488         at bb start.
2489
2490 2008-03-06  Richard Guenther  <rguenther@suse.de>
2491
2492         * alias.c (struct alias_set_entry): Move has_zero_child field
2493         to pack with alias_set.
2494
2495 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
2496
2497         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2498         32bit host.
2499
2500 2008-03-05  Ian Lance Taylor  <iant@google.com>
2501
2502         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
2503
2504 2008-03-05  Kenneth Zadeck <zadeck@naturalbridge.com>
2505
2506         * fwprop.c (update_df): Support width and offset parameters of
2507         df_ref_create.
2508         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
2509         global_conflicts): Change DF_REF_EXTRACT to either
2510         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
2511         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2512         * df-scan.c (df_ref_record, df_defs_record,
2513         df_ref_create_structure, df_def_record_1, df_uses_record,
2514         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
2515         df_bb_refs_collect, df_entry_block_defs_collect,
2516         df_exit_block_uses_collect): Support new width and offset fields.
2517         (ref_extract_pool): New storage pool.
2518         (df_free_ref): New function.
2519         (df_reg_chain_unlink, df_free_collection_rec,
2520         df_sort_and_compress_refs): Call df_free_ref.
2521         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
2522         of df_ref_extract.
2523         (df_ref_create_structure): Allocate df_ref_extract if offset and
2524         width fields are used.
2525         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
2526         (df_uses_record): Get offset and width from ZERO_EXTRACT 
2527         and SIGN_EXTRACT.
2528         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
2529         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
2530         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2531         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
2532         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
2533         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2534         (df_ref_extract): New structure.
2535         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
2536         (df_ref_create): Add width and offset parameters.
2537         
2538 2008-03-05  Richard Guenther  <rguenther@suse.de>
2539
2540         * tree-ssa-structalias.c (get_constraint_for_component_ref):
2541         Use ranges_overlap_p.
2542         (offset_overlaps_with_access): Rename
2543         to ranges_overlap_p and move ...
2544         * tree-flow-inline.h (ranges_overlap_p): ... here.
2545
2546         * tree.h (get_inner_reference, handled_component_p): Update
2547         comments.
2548
2549         * tree.h (record_component_aliases, get_alias_set,
2550         alias_sets_conflict_p, alias_sets_must_conflict_p,
2551         objects_must_conflict_p): Move declarations ...
2552         * alias.h (record_component_aliases, get_alias_set,
2553         alias_sets_conflict_p, alias_sets_must_conflict_p,
2554         objects_must_conflict_p): ... here.
2555         Include coretypes.h.
2556         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
2557
2558 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
2559
2560         * cfg.c: Include tree-flow.h.
2561         (remove_edge_raw): Call redirect_edge_var_map_clear.
2562         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
2563         * tree-flow-inline.h (redirect_edge_var_map_def): New.
2564         (redirect_edge_var_map_result): New.
2565         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
2566         PENDING_STMT use with redirect_edge_var_map_*.
2567         * tree-ssa.c (edge_var_maps): New definition.
2568         (redirect_edge_var_map_add): New.
2569         (redirect_edge_var_map_clear): New.
2570         (redirect_edge_var_map_dup): New.
2571         (redirect_edge_var_map_vector): New.
2572         (redirect_edge_var_map_destroy): New.
2573         (ssa_redirect_edge): Replace PENDING_STMT use with
2574         redirect_edge_var_map_*.
2575         (flush_pending_stmts): Same.
2576         (delete_tree_ssa): Destroy edge var map.
2577         * tree-flow.h (struct _edge_var_map): New.
2578         Define edge_var_map vector type.
2579         Declare redirect_edge_var_map_* prototypes.
2580         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
2581         * tree-cfg.c (reinstall_phi_args): Replace
2582         PENDING_STMT use with redirect_edge_var_map_*.
2583
2584 2008-03-05  Richard Guenther  <rguenther@suse.de>
2585
2586         PR tree-optimization/35472
2587         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
2588         whose single use_stmt has a overlapping set of loaded and
2589         stored symbols as that use_stmt might be a noop assignment then.
2590
2591 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
2592
2593         * gthr-rtems.h: Implement __gthread_mutex_destroy.
2594
2595 2008-03-05  Richard Guenther  <rguenther@suse.de>
2596
2597         PR c++/35336
2598         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
2599         should be constants.
2600         * tree-cfg.c (verify_expr): Verify it.
2601         * fold-const.c (fold_truthop): Remove code generating
2602         BIT_FIELD_REFs of structure bases.
2603         (fold_binary): Likewise.
2604         (fold_ternary): Position and size of BIT_FIELD_REFs are
2605         always host integers.
2606         (make_bit_field_ref): Remove.
2607         (optimize_bit_field_compare): Remove.
2608         (all_ones_mask_p): Remove.
2609
2610 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
2611
2612         PR gcc/33009
2613         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
2614         (split_block_and_df_analyze): New. Split basic block and rebuild
2615         dataflow.
2616         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
2617         SPLIT_BLOCK.
2618         (split_pattern_seq): Likewise.
2619         (erase_matching_seqs): Likewise.
2620         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
2621
2622 2008-03-04  Geoff Keating  <geoffk@apple.com>
2623
2624         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
2625         declaration and code.
2626         (tree_invalid_nonnegative_warnv_p): Likewise.
2627
2628 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
2629
2630         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
2631         examples.  Truncate option-names then causing overfull hbox.
2632
2633 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2634
2635         PR target/35222
2636         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
2637         on hpux10.
2638         * configure: Rebuilt.
2639
2640 2008-03-04  Rafael Espindola  <espindola@google.com>
2641
2642         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
2643         (tree_unary_nonnegative_warnv_p): New.
2644         (tree_binary_nonnegative_warnv_p): New.
2645         (tree_single_nonnegative_warnv_p): New.
2646         (tree_invalid_nonnegative_warnv_p): New.
2647         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
2648
2649 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2650
2651         PR 28322
2652         * opts.c (handle_option): Postpone 'unknown option' errors only for
2653         warning options.
2654
2655 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
2656
2657         PR target/35453
2658         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
2659         (_SIDD_XXX): This.
2660
2661 2008-03-04  Rafael Espindola  <espindola@google.com>
2662
2663         * fold-const.c (tree_unary_nonzero_warnv_p): New.
2664         (tree_binary_nonzero_warnv_p): New.
2665         (tree_single_nonzero_warnv_p): New.
2666         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
2667
2668 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
2669
2670         PR middle-end/35456
2671         * fold-const.c (fold_cond_expr_with_comparison): Prevent
2672         transformations for modes that have signed zeros.
2673         * ifcvt.c (noce_try_abs): Ditto.
2674
2675 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
2676
2677         * config/i386/i386.c (override_options): Force
2678         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
2679
2680 2008-03-04  Jan Hubicka  <jh@suse.cz>
2681
2682         PR c++/35262
2683         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
2684         in last commit.
2685
2686 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
2687
2688         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
2689         label to probe the stack.
2690
2691 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
2692
2693         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
2694         (__gthr_win32_mutex_destroy): Declare.
2695         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
2696         __gthr_win32_mutex_destroy.
2697         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
2698
2699 2008-03-03  Jan Hubicka  <jh@suse.cz>
2700
2701         PR c++/35262
2702         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
2703         aggressive on inlining cold calls.
2704
2705 2008-03-03  Richard Guenther  <rguenther@suse.de>
2706
2707         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
2708         struct copies into the expression table.
2709         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
2710         (try_to_simplify): Likewise.
2711         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
2712         integral and pointer arguments which do not change the
2713         precision to NOP_EXPRs.
2714         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
2715         VIEW_CONVERT_EXPR case.
2716
2717 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
2718
2719         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
2720         defined in a loop at depth 0 is invariant.
2721         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
2722         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
2723         be called at loop depth 0.
2724
2725 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
2726
2727         PR driver/35420
2728         * gcc.c (process_command): Update copyright notice dates.
2729         * gcov.c (print_version): Likewise.
2730         * gcov-dump.c (print_version): Likewise.
2731         * mips-tfile.c (main): Likewise.
2732         * mips-tdump.c (main): Likewise.
2733
2734 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2735
2736         PR 24924
2737         * c-common.c (flag_permissive): Delete.
2738         (constant_expression_warnings): Check flags first.
2739         (constant_expression_error): New.
2740         * c-common.h (flag_permissive): Delete.
2741         (constant_expression_error): Declare.
2742         * flags.h (flag_permissive): Declare. Update description.
2743         * diagnostic.c (pedwarn): Update.
2744         (permerror): New.
2745         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
2746         (permissive_error_kind): New.
2747         * toplev.c (flag_permissive): Define. Update description.
2748         * toplev.h (permissive_error_kind): Declare.
2749         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
2750         (pedwarn_c90): Use pedantic_warning_kind.
2751         * c-opts.c (c_common_post_options): flag_permissive does not affect
2752         flag_pedantic_errors.
2753
2754 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
2755
2756         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
2757         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
2758         __absvsi2, __absvDI2): Use unsigned arithmetic.
2759
2760 2008-03-02  Andi Kleen  <ak@suse.de>
2761             Richard Guenther  <rguenther@suse.de>
2762
2763         * struct-equiv.c: Remove file.
2764         * cfg_cleanup.c (condjump_equiv_p): Remove.
2765         * Makefile.in (OBJS-common): Remove struct-equiv.o.
2766         (struct-equiv.o): Remove rule.
2767         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
2768         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
2769         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
2770
2771 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
2772
2773         * ifcvt.c (noce_process_if_block): Try to handle only the then
2774         block if the else block exists but isn't suitable.
2775
2776 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
2777
2778         PR gcc/35063
2779         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
2780         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
2781         regression from previous patch.
2782
2783 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
2784
2785         PR gcc/35063
2786         * gthr.h: Add __gthread_mutex_destroy as a function that must be
2787         implemented.
2788         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
2789         * gthr-single.h (__gthread_mutex_destroy): Likewise.
2790         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
2791         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
2792         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
2793         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
2794         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
2795         (__gthread_mutex_destroy_function): Rename to
2796         __gthread_mutex_destroy.
2797         * gthr-dce.h (__gthread_mutex_destroy): Call
2798         pthread_mutex_destroy.
2799         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
2800         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
2801         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
2802
2803 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
2804
2805         * df-scan.c (df_ref_chain_change_bb): Simplify.
2806         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
2807         set_block_for_insn if there's any change.
2808         * df.h ((df_insn_change_bb): Fix prototype.
2809         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
2810         df_insn_change_bb, don't call set_block_for_insn.
2811         * emit-rtl.c (reorder_insns): Likewise.
2812         * haifa-sched.c (move_insn): Likewise.
2813
2814 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
2815
2816         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
2817
2818 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
2819
2820         * tree-flow-inline.h (next_readonly_imm_use): Return
2821         NULL_USE_OPERAND_P after the end.
2822
2823 2008-03-01  Richard Guenther  <rguenther@suse.de>
2824
2825         PR tree-optimization/35411
2826         * tree-sra.c (sra_build_assignment): Split conversion to
2827         final type to a separate statement if we are not assigning
2828         to a register.
2829
2830 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2831
2832         * fold-const.c (fold_convertible_p): Correct the logic to follow
2833         that in fold_convert().
2834
2835 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
2836
2837         PR c++/35315
2838         * tree-inline.c (build_duplicate_type): When we make a
2839         duplicate type, make it unique in the canonical types system.
2840
2841 2008-02-29  Tom Tromey  <tromey@redhat.com>
2842
2843         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
2844         input_file_stack_history, input_file_stack_restored): Remove.
2845         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
2846         * input.h (struct file_stack): Remove.
2847         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
2848         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
2849         Likewise.
2850         * diagnostic.h (struct diagnostic_context) <last_module>: Change
2851         type.
2852         (diagnostic_last_module_changed): Add 'map' argument.
2853         (diagnostic_set_last_function): Likewise.
2854         * diagnostic.c (undiagnostic_report_current_module): Iterate using
2855         line map, not input_file_stack.
2856         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
2857
2858 2008-02-29  Paul Brook  <paul@codesourcery.com>
2859
2860         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
2861
2862 2008-02-29  Paul Brook  <paul@codesourcery.com>
2863
2864         * config/arm/ieee754-df.S (muldf3): Use RET macros.
2865
2866 2008-02-29  Richard Guenther  <rguenther@suse.de>
2867
2868         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
2869         vn_lookup_or_add.
2870         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
2871         value for comparing for a store match.
2872         (simplify_unary_expression): Do nothing for SSA_NAMEs.
2873         (try_to_simplify): Do not do a full-blown reference lookup.
2874
2875 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2876
2877         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
2878         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
2879
2880         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
2881
2882 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
2883
2884         * tree-loop-linear.c (try_interchange_loops): Compare memory access
2885         strides against cache sizes.
2886
2887 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2888
2889         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
2890         constant to fpul.
2891
2892 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
2893
2894         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
2895         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
2896         is smaller than the original promoted value.
2897         (simplify_subreg): If OP is a SUBREG, try to preserve its
2898         SUBREG_PROMOTED_VAR_P information.
2899
2900 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
2901
2902         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
2903         (VN_INFO_GET): Allocate new objects on the obstack.
2904         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
2905         for rpo_numbers_temp, for consistency.
2906         (free_scc_vn): Free the obstack.
2907
2908 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
2909
2910         * doc/invoke.texi: Document -ftree-loop-distribution.
2911         * tree-loop-distribution.c: New.
2912         * tree-pass.h (pass_loop_distribution): New.
2913         * graphds.h (struct graph): Add htab_t indices.
2914         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
2915         * tree-vectorizer.c (rename_variables_in_loop): Extern.
2916         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
2917         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
2918         * tree-data-ref.c (debug_data_dependence_relations): New.
2919         (dump_data_dependence_relation): Also print data references.
2920         (free_data_ref): Extern.
2921         (same_access_functions): Moved...
2922         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
2923         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
2924         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
2925         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
2926         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
2927         (stmts_from_loop): Skip LABEL_EXPR.
2928         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
2929         New.
2930         (build_rdg): Initialize rdg->indices htab.
2931         (free_rdg, stores_from_loop, ref_base_address,
2932         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
2933         have_similar_memory_accesses_1, ref_base_address_1,
2934         remove_similar_memory_refs): New.
2935         * tree-data-ref.h: Depend on tree-chrec.h.
2936         (debug_data_dependence_relations, free_data_ref): Declared.
2937         (same_access_functions): ... here.
2938         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
2939         New.
2940         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
2941         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
2942         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
2943         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
2944         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
2945         rdg_vertex_for_stmt): Declared.
2946         (struct rdg_edge): Add level.
2947         (RDGE_LEVEL): New.
2948         (free_rdg, stores_from_loop, remove_similar_memory_refs,
2949         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
2950         Declared.
2951         (rdg_has_similar_memory_accesses): New.
2952         * tree-vect-analyze.c: Remove unused static decls.
2953         * lambda.h (dependence_level): New.
2954         * common.opt (ftree-loop-distribution): New.
2955         * tree-flow.h (mark_virtual_ops_in_bb, 
2956         slpeel_tree_duplicate_loop_to_edge_cfg,
2957         rename_variables_in_loop): Declared.
2958         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
2959         (OBJS-common): Add tree-loop-distribution.o.
2960         (tree-loop-distribution.o): New rule.
2961         * tree-cfg.c (mark_virtual_ops_in_bb): New.
2962         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
2963         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
2964
2965 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
2966
2967         PR target/33963
2968         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
2969         other than structures and unions.
2970
2971 2008-02-28  Richard Guenther  <rguenther@suse.de>
2972
2973         Revert:
2974         2008-02-26  Richard Guenther  <rguenther@suse.de>
2975
2976         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
2977         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
2978         (lookup_decl_from_uid): Declare.
2979         (remove_decl_from_map): Likewise.
2980         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
2981         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
2982         (decl_for_uid_map): New global hashtable mapping DECL_UID
2983         to the decl tree.
2984         (init_ttree): Allocate it.
2985         (insert_decl_to_uid_decl_map): New helper function.
2986         (make_node_stat): Insert new decls into the map.
2987         (copy_node_stat): Likewise.
2988         (lookup_decl_from_uid): New function.
2989         (remove_decl_from_map): Likewise.
2990         (print_decl_for_uid_map_statistics): New helper.
2991         (dump_tree_statistics): Call it.
2992
2993         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
2994         (referenced_var_iterator): Adjust.
2995         (FOR_EACH_REFERENCED_VAR): Adjust.
2996         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
2997         (num_referenced_vars): Adjust.
2998         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
2999         (first_referenced_var): Remove.
3000         (end_referenced_vars_p): Likewise.
3001         (next_referenced_var): Likewise.
3002         (referenced_var_iterator_set): New helper function.
3003         * tree-dfa.c (referenced_var_lookup): Adjust.
3004         (referenced_var_check_and_insert): Likewise.
3005         (remove_referenced_var): Likewise.
3006         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3007         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3008         (verify_call_clobbering): Likewise.
3009         (verify_memory_partitions): Likewise.
3010         (init_tree_ssa): Allocate bitmap instead of hashtable for
3011         referenced_vars.
3012         (delete_tree_ssa): Adjust.
3013         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3014         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3015         (compute_tag_properties): Likewise.
3016         (set_initial_properties): Likewise.
3017         (find_partition_for): Likewise.
3018         (update_reference_counts): Likewise.
3019         (dump_may_aliases_for): Likewise.
3020         * tree-ssa-operands.c (add_virtual_operand): Likewise.
3021         (add_call_clobber_ops): Likewise.
3022         (add_call_read_ops): Likewise.
3023         (get_asm_expr_operands): Likewise.
3024         * tree-into-ssa.c (dump_decl_set): Likewise.
3025         (update_ssa): Likewise.
3026         * tree-sra.c (scan_function): Likewise.
3027         (decide_instantiations): Likewise.
3028         (scalarize_parms): Likewise.
3029         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3030         (dsa_named_for): Likewise.
3031         * tree-ssa-structalias.c (update_alias_info): Likewise.
3032         (merge_smts_into): Likewise.
3033
3034 2008-02-27  David Daney  <ddaney@avtrex.com>
3035
3036         PR target/34409
3037         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
3038         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
3039         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
3040         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
3041         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
3042
3043 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
3044
3045         PR target/25477
3046         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
3047         (BUILT_IN_NEXTTOWARD): Remove.
3048         (BUILT_IN_NEXTTOWARDF): Ditto.
3049         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
3050         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
3051
3052 2008-02-27  Tom Tromey  <tromey@redhat.com>
3053
3054         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
3055         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
3056
3057 2008-02-27  Jan Beulich  <jbeulich@novell.com>
3058
3059         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
3060         update the respective field on newdecl.
3061
3062 2008-02-27  Revital Eres  <eres@il.ibm.com>
3063
3064         PR rtl-optimization/34999
3065         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
3066         crossing edges that ends with a call insn.
3067         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
3068         call insn and clear the EDGE_CROSSING flag of the crossing edge
3069         when fixing fallthru edges.
3070
3071 2008-02-27  Richard Guenther  <rguenther@suse.de>
3072
3073         PR middle-end/35390
3074         * fold-const.c (fold_unary): Return the correct argument,
3075         converted to the result type.
3076
3077 2008-02-27  Richard Guenther  <rguenther@suse.de>
3078
3079         PR middle-end/34971
3080         * expr.c (expand_expr_real_1): Assert on rotates that operate
3081         on partial modes.
3082         * fold-const.c (fold_binary): Use the types precision, not the
3083         bitsize of the mode if folding rotate expressions.  Build rotates
3084         only for full modes.
3085
3086 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
3087
3088         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
3089         and CPP_PRAGMA_EOL.
3090         * c-pragma.c (pragma_ns_name): New typedef.
3091         (registered_pp_pragmas): New variable.
3092         (c_pp_lookup_pragma): New function.
3093         (c_register_pragma_1): If flag_preprocess_only, do nothing
3094         for non-expanded pragmas, for expanded ones push pragma's
3095         namespace and name into registered_pp_pragmas vector.
3096         (c_invoke_pragma_handler): Register OpenMP pragmas even when
3097         flag_preprocess_only, don't register GCC pch_preprocess
3098         pragma if flag_preprocess_only.
3099         * c-opts.c (c_common_init): Call init_pragma even if
3100         flag_preprocess_only.
3101         * c-pragma.c (c_pp_lookup_pragma): New prototype.
3102         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
3103         cpp_register_pragma if flag_preprocess_only.
3104
3105 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3106
3107         PR c/28800
3108         * c-parser.c (c_parser_translation_unit): Warn for empty
3109         translation unit, not empty source file.
3110
3111 2008-02-26  Paul Brook  <paul@codesourcery.com>
3112
3113         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
3114         operand for Thumb-2.
3115         * config/arm/arm.h (reg_class): Add CORE_REGS.
3116         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
3117         (BASE_REG_CLASS): Use CORE_REGS.
3118         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
3119         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
3120         (REGNO_OK_FOR_INDEX_P): Exclude SP.
3121         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
3122         ARM_REGNO_OK_FOR_INDEX_P.
3123         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
3124         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
3125         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
3126         (ldm/stm peepholes): Ditto.
3127         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
3128         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
3129         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
3130         * config/arm/constraints.md: Enable "k" constraint on ARM.
3131
3132 2008-02-27  Ben Elliston  <bje@au.ibm.com>
3133
3134         * config/rs6000/rs6000.c: Annotate cache line size field in all
3135         instances of struct processor_costs.
3136
3137 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
3138
3139         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
3140         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
3141         jump_bypass): New counters.
3142         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
3143         * dce.c (gate_ud_dce): Same.
3144         (gate_fast_dce): Same.
3145         * dse.c (gate_dse1): New function.
3146         (gate_dse2): New function.
3147         (gate_dse): Merge results of new gate functions.
3148         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
3149         (gate_handle_jump_bypass): Add dbg_cnt.
3150         (gate_handle_gcse): Add dbg_cnt.
3151         * ifcvt.c (gate_handle_if_conversion): Same.
3152         (gate_handle_if_after_combine): Same.
3153         (gate_handle_if_after_reload): Same.
3154         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
3155
3156 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
3157
3158         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
3159         line sizes.
3160         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
3161
3162 2008-02-26  Jason Merrill  <jason@redhat.com>
3163
3164         PR c++/35315
3165         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
3166         alone if it's the naming decl for the type's main variant.
3167
3168 2008-02-26  Tom Tromey  <tromey@redhat.com>
3169
3170         * system.h (USE_MAPPED_LOCATION): Poison.
3171         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
3172         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
3173         (make_goto_expr_edges): Likewise.
3174         (remove_bb): Likewise.
3175         (execute_warn_function_return): Likewise.
3176         * basic-block.h (struct edge_def) <goto_locus>: Change type to
3177         location_t.
3178         * c-common.c (fname_decl): Remove old location code.
3179         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
3180         location code.
3181         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
3182         variant.
3183         (ASM_INPUT_SOURCE_LOCATION): Likewise.
3184         (gen_rtx_ASM_INPUT): Likewise.
3185         (gen_rtx_ASM_INPUT_loc): Likewise.
3186         (get_rtx_asm_OPERANDS): Remove.
3187         * cfglayout.c (insn_locators_alloc): Remove old location code.
3188         (set_curr_insn_source_location): Likewise.
3189         (curr_insn_locator): Likewise.
3190         * print-tree.c (print_node): Remove old location code.
3191         * tree-mudflap.c (mf_varname_tree): Remove old location code.
3192         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
3193         * cfgexpand.c (expand_gimple_cond_expr): Don't use
3194         location_from_locus.
3195         (construct_exit_block): Remove old location code.
3196         * emit-rtl.c (force_next_line_note): Remove old location code.
3197         * profile.c (branch_prob): Remove old location code.
3198         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
3199         LOC_LINE): Remove old-location variants.
3200         * langhooks.c (lhd_print_error_function): Remove old location
3201         code.
3202         * configure, config.in: Rebuilt.
3203         * configure.ac (--enable-mapped-location): Remove.
3204         * c-decl.c (c_init_decl_processing): Remove old location code.
3205         (finish_function): Likewise.
3206         * recog.c (decode_asm_operands): Remove old location code.
3207         * c-pch.c (c_common_read_pch): Remove old location code.
3208         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
3209         variants.
3210         * gimple-low.c (lower_function_body): Remove old location code.
3211         * toplev.c (unknown_location): Remove.
3212         (push_srcloc): Remove old-location variant.
3213         (process_options): Remove old location code.
3214         (lang_dependent_init): Likewise.
3215         * input.h (UNKNOWN_LOCATION): Move definition.
3216         (location_t): Undeprecate.
3217         (source_locus): Remove.
3218         (location_from_locus): Remove.
3219         (struct location_s): Remove.
3220         Remove all old-location code.
3221         (input_line, input_filename): Remove.
3222         * final.c (final_scan_insn): Remove old location code.
3223         * diagnostic.c (diagnostic_build_prefix): Remove
3224         USE_MAPPED_LOCATION test.
3225         * tree.h (gimple_stmt) <locus>: Now a location_t.
3226         (tree_exp) <locus>: Likewise.
3227         (DECL_IS_BUILTIN): Remove old-location variant.
3228         (annotate_with_file_line, annotate_with_locus): Likewise.
3229         (expr_locus, set_expr_locus): Update.
3230         * tree.c (build1_stat): Remove old location code.
3231         (last_annotated_node): Remove.
3232         (annotate_with_file_line): Remove old-location variant.
3233         (annotate_with_locus): Likewise.
3234         (expr_location): Remove old location code.
3235         (set_expr_location): Likewise.
3236         (expr_has_location): Likewise.
3237         (expr_locus): Likewise.
3238         (set_expr_locus): Likewise.
3239         (expr_filename): Don't use location_from_locus.
3240         (expr_lineno): Likewise.
3241         * rtl-error.c (location_for_asm): Remove old location code.
3242         * c-lex.c (cb_line_change): Remove old location code.
3243         (fe_file_change): Likewise.
3244         (cb_def_pragma): Likewise.
3245         (c_lex_with_flags): Likewise.
3246         * gengtype.c (do_typedef): Don't special-case location types.
3247         (define_location_structures): Remove.
3248         (main): Don't call define_location_structures.
3249         * tree-pretty-print.c (dump_implicit_edges): Remove old location
3250         code.
3251
3252 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3253
3254         PR 26264
3255         * builtins.def (BUILT_IN_STDARG_START): Remove.
3256         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
3257         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3258         * tree-inline.c (inline_forbidden_p_1): Likewise.
3259         
3260 2008-02-26  Richard Guenther  <rguenther@suse.de>
3261
3262         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3263         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3264         (lookup_decl_from_uid): Declare.
3265         (remove_decl_from_map): Likewise.
3266         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3267         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3268         (decl_for_uid_map): New global hashtable mapping DECL_UID
3269         to the decl tree.
3270         (init_ttree): Allocate it.
3271         (insert_decl_to_uid_decl_map): New helper function.
3272         (make_node_stat): Insert new decls into the map.
3273         (copy_node_stat): Likewise.
3274         (lookup_decl_from_uid): New function.
3275         (remove_decl_from_map): Likewise.
3276         (print_decl_for_uid_map_statistics): New helper.
3277         (dump_tree_statistics): Call it.
3278
3279         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3280         (referenced_var_iterator): Adjust.
3281         (FOR_EACH_REFERENCED_VAR): Adjust.
3282         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3283         (num_referenced_vars): Adjust.
3284         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3285         (first_referenced_var): Remove.
3286         (end_referenced_vars_p): Likewise.
3287         (next_referenced_var): Likewise.
3288         (referenced_var_iterator_set): New helper function.
3289         * tree-dfa.c (referenced_var_lookup): Adjust.
3290         (referenced_var_check_and_insert): Likewise.
3291         (remove_referenced_var): Likewise.
3292         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3293         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3294         (verify_call_clobbering): Likewise.
3295         (verify_memory_partitions): Likewise.
3296         (init_tree_ssa): Allocate bitmap instead of hashtable for
3297         referenced_vars.
3298         (delete_tree_ssa): Adjust.
3299         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3300         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3301         (compute_tag_properties): Likewise.
3302         (set_initial_properties): Likewise.
3303         (find_partition_for): Likewise.
3304         (update_reference_counts): Likewise.
3305         (dump_may_aliases_for): Likewise.
3306         * tree-ssa-operands.c (add_virtual_operand): Likewise.
3307         (add_call_clobber_ops): Likewise.
3308         (add_call_read_ops): Likewise.
3309         (get_asm_expr_operands): Likewise.
3310         * tree-into-ssa.c (dump_decl_set): Likewise.
3311         (update_ssa): Likewise.
3312         * tree-sra.c (scan_function): Likewise.
3313         (decide_instantiations): Likewise.
3314         (scalarize_parms): Likewise.
3315         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3316         (dsa_named_for): Likewise.
3317         * tree-ssa-structalias.c (update_alias_info): Likewise.
3318         (merge_smts_into): Likewise.
3319
3320 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3321
3322         PR 34351
3323         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
3324         * c-opts.c (c_common_handle_option): Wall enables
3325         Wvolatile-register-var.
3326         * common.opt: Move Wvolatile-register-var to...
3327         * c.opt: ...here.
3328         
3329 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3330
3331         * common.opt (Wlarger-than=): New.
3332         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
3333         -Wlarger-than=.
3334         * opts.c (common_handle_option): Handle -Wlarger-than=.
3335         * optc-gen.awk: Likewise.
3336         * opth-gen.awk: Likewise.
3337         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
3338         * tree-optimize.c (tree_rest_of_compilation): Likewise.
3339         
3340 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3341
3342         * c-common.c (match_case_to_enum_1): Add appropriate
3343         OPT_W* parameter to warning.
3344         (c_do_switch_warnings): Likewise.
3345         * c-typeck.c (warning_init): Add one more parameter following
3346         'warning' function.
3347         (push_init_level): Update call to warning_init.
3348         (pop_init_level): Likewise.
3349         (add_pending_init): Likewise.
3350         (output_init_element: Likewise.
3351
3352 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3353
3354         PR 28322
3355         * toplev.c (toplev_main): If there are warnings or error, print
3356         errors for ignored options.
3357         * opts.c (ignored_options): New static variable.
3358         (postpone_unknown_option_error): New.
3359         (print_ignored_options): New.
3360         (handle_option): Postpone errors for unknown -Wno-* options.
3361         * opts.h (print_ignored_options): Declare.
3362         
3363 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
3364
3365         * config/mips/mips.md (loadgp_blockage, blockage): Change type
3366         to "ghost".
3367
3368 2008-02-25  Richard Guenther  <rguenther@suse.de>
3369
3370         Revert:
3371         2008-02-25  Richard Guenther  <rguenther@suse.de>
3372
3373         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3374         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3375         (lookup_decl_from_uid): Declare.
3376         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3377         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3378         (decl_for_uid_map): New global hashtable mapping DECL_UID
3379         to the decl tree.
3380         (init_ttree): Allocate it.
3381         (insert_decl_to_uid_decl_map): New helper function.
3382         (make_node_stat): Insert new decls into the map.
3383         (copy_node_stat): Likewise.
3384         (lookup_decl_from_uid): New function.
3385         (print_decl_for_uid_map_statistics): New helper.
3386         (dump_tree_statistics): Call it.
3387
3388         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3389         (referenced_var_iterator): Adjust.
3390         (FOR_EACH_REFERENCED_VAR): Adjust.
3391         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3392         (num_referenced_vars): Adjust.
3393         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3394         (first_referenced_var): Remove.
3395         (end_referenced_vars_p): Likewise.
3396         (next_referenced_var): Likewise.
3397         (referenced_var_iterator_set): New helper function.
3398         * tree-dfa.c (referenced_var_lookup): Adjust.
3399         (referenced_var_check_and_insert): Likewise.
3400         (remove_referenced_var): Likewise.
3401         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3402         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3403         (verify_call_clobbering): Likewise.
3404         (verify_memory_partitions): Likewise.
3405         (init_tree_ssa): Allocate bitmap instead of hashtable for
3406         referenced_vars.
3407         (delete_tree_ssa): Adjust.
3408         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
<