OSDN Git Service

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