OSDN Git Service

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