OSDN Git Service

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