OSDN Git Service

b54350e503fd99c0b21becb3e61dfcdbb507dee7
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
2
3         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
4         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
5
6 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7
8         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
9         sizes of operand array from 8/4 to 4/2.
10         (ix86_expand_vector_init_general): Change size of operand array
11         from 32 to 16.  Remove op0, op1 and half_mode.
12
13 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
14
15         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
16         (ix86_expand_vector_init_interleave): Likewise.
17         (ix86_expand_vector_init_general): Use them.  Assert word_mode
18         == SImode when n_words == 4.
19
20 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
21
22         * config/i386/i386.c (ix86_secondary_reload): New static function.
23         (TARGET_SECONDARY_RELOAD): New define.
24         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
25         * config/i386/i386.md (reload_outqi): Remove.
26
27 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
28
29         PR middle-end/35509
30         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
31         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
32         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
33         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
34         (fold_builtin_1): Likewise.
35         * builtins.def (BUILT_IN_ISINF_SIGN): New.
36         c-common.c (check_builtin_function_arguments): Handle
37         BUILT_IN_ISINF_SIGN.
38         * doc/extend.texi: Document __builtin_isinf_sign.
39         * fold-const.c (operand_equal_p): Handle COND_EXPR.
40
41 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
42
43         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
44         EH cleanup at the end of the pass, search for those that have been
45         turned into forwarder blocks and do the cleanup on their successor.
46
47 2008-05-18  Richard Guenther  <rguenther@suse.de>
48
49         * tree-cfg.c (verify_gimple_expr): Allow conversions from
50         pointers to sizetype and vice versa.
51
52 2008-05-18 Xinliang David Li   <davidxl@google.com>
53
54         * gcc/tree-ssa-dce.c: Coding style fix.
55         (check_pow): Documentation comment. 
56         (check_log): Documenation comment. Coding style fix.
57         (is_unnecessary_except_errno_call): Ditto.
58         (gen_conditions_for_pow): Ditto.
59         (gen_conditions_for_log): Ditto.
60         (gen_shrink_wrap_conditions): Ditto.
61         (shrink_wrap_one_built_in_calls): Ditto.
62         * gcc/doc/invoke.texi: Better documentation string.
63         * ChangeLog: Fix wrong change log entries from 
64         May 17 checkin on function call DCE.
65
66 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
67
68         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
69
70 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
71
72         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
73         * df-problems.c (simulation routines): Fixed block comment to
74         properly say how to add forwards scanning functions.
75         
76 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
77
78         * tree-inline.c (setup_one_parameter): Remove dead code.
79
80 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
81
82         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
83         a BIT_AND_EXPR only for an INTEGER_TYPE.
84
85 2008-05-17 Xinliang David Li   <davidxl@google.com>
86
87         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
88         (check_pow, check_log, is_unnecessary_except_errno_call): New 
89         functions to check for eliminating math functions that are pure 
90         except for setting errno.
91         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
92         general condition expressions for shrink-wrapping pow/log calls.
93         (gen_shrink_wrap_conditions): Ditto.
94         (shrink_wrap_one_built_in_call): Ditto.
95         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
96         (mark_operand_necessary): If debugging, output if OP is necessary.
97         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
98         unnecessary.
99         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
100         opt level >= 2.
101         * gcc/common.opt: New user flag -ftree-builtin-dce.
102         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
103
104 2008-05-16  David S. Miller  <davem@davemloft.net>
105
106         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
107         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
108
109 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
110
111         PR target/36246
112         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
113
114 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
115
116         * ifcvt.c (dead_or_predicable): Rename
117         df_simulate_one_insn_backwards to df_simulate_one_insn.
118         * recog.c (peephole2_optimize): Ditto.
119         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
120         Ditto.
121         * df.h: Rename df_simulate_one_insn_backwards to
122         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
123         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
124         scanning of defs and uses.
125         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
126         (df_simulate_one_insn_forwards): Removed.
127
128 2008-05-16  Doug Kwan  <dougkwan@google.com>
129
130         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
131         QNaN & SNaN.
132         (real_from_string): Handle NaNs and Inf as approriate.
133
134 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
135
136         * doc/gty.texi (Source Files Containing Type Information): Note
137         that headers should appear first in the gtfiles list.
138
139 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
140
141         * tree.def (COND_EXEC): Properly documented this code.
142
143 2008-05-16  Diego Novillo  <dnovillo@google.com>
144
145         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
146         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
147         the new field.
148
149 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
150
151         * tree-ssa-dse (max_stmt_uid): Removed.
152         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
153         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
154         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
155         * function.h (cfun.last_stmt_uid): New field.
156         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
157         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
158         New functions.
159         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
160         (create_stmt_ann): Initialize the ann->uid field.
161         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
162         with new calls.
163         * tree-flow.h (renumber_gimple_stmt_uids): New function.
164
165 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
166
167         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
168         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
169         (init_empty_tree_cfg): Call it.
170
171 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
172
173         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
174         Update all users.
175
176 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
177
178         * doc/invoke.text (-fdump-tree-*-verbose): New option.
179         * tree-dump.c (dump_options): New verbose option.
180         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
181         Add verbose dump.
182         * tree-pass.h (TDF_VERBOSE): New dump flag.
183         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
184         (tree-flow.h): Added include.
185         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
186
187 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
188
189         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
190
191         From Jie Zhang  <jie.zhang@analog.com>
192         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
193         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
194         mcpu=bf561-none and mcpu=bf561-0.2.
195         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
196         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
197         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
198         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
199         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
200         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
201         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
202         option.
203         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
204         (cputype_selected): Remove.
205         (bfin_handle_option): Don't use cputype_selected.
206         (override_options): When no mcpu option, enable all workarounds.
207         Don't use bfin_workarounds.
208         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
209         processor type.
210         (DEFAULT_CPU_TYPE): Don't define.
211
212 2008-05-16  Richard Guenther  <rguenther@suse.de>
213
214         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
215         on deletion of the last stmt.
216
217 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
218
219         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
220         V8HImode for SSE2 and V16QImode for SSE4.1.
221
222 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
223
224         * cgraph.h (compute_inline_parameters): Made public.
225         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
226         variable_generate_summary, function_write_summary,
227         variable_write_summary, variable_read_summary.  Added generate_summary,
228         write_summary, read_summary.
229         * cgraphunit.c (cgraph_process_new_functions): Changed call from
230         pass_ipa_inline.function_generate_summary, to
231         compute_inline_parameters. 
232         * ipa-inline.c (compute_inline_parameters): Made public and added
233         node parameter.
234         (compute_inline_parameters_for_current): New function.
235         (pass_inline_param): Now calls compute_inline_parameters_for_current.
236         (inline_generate_summary): Removed parameter and made to loop over
237         all cgraph nodes.
238         (pass_ipa_inline): Updated for new IPA_PASS structure.
239         * passes.c (execute_ipa_summary_passes): Now is called once per
240         pass rather than once per node*pass.
241         
242 2008-05-15  Anatoly Sokolov <aesok@post.ru>
243
244         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
245         avr_have_mul_p, avr_asm_only_p): Remove variables.
246         (avr_override_options): Remove initialization of removed variables.
247         (avr_file_start):  Convert removed variables to fields of 
248         'struct base_arch_s *avr_current_arch'. 
249         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
250         (AVR_HAVE_MUL): (Ditto.).
251         (AVR_HAVE_MOVW): (Ditto.).
252         (AVR_HAVE_LPMX): (Ditto.). 
253         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
254         avr_asm_only_p): Remove declaration.
255
256 2008-05-15  Diego Novillo  <dnovillo@google.com>
257
258         * config/arm/arm.c (arm_return_in_memory): Fix return type.
259         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
260
261 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
262
263         PR middle-end/36194
264         * combine.c (check_conversion): Rename back to check_promoted_subreg.
265         Don't call record_truncated_value from here.
266         (record_truncated_value): Turn it into a for_each_rtx callback.
267         (record_truncated_values): New function.
268         (combine_instructions): Call note_uses with record_truncated_values.
269         Change name of check_conversion to check_promoted_subreg. 
270
271 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
272
273         * doc/sourcebuild.texi: Document support for torture tests.
274
275 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
276
277         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
278         to alternative 4 of operand 2.
279
280 2008-05-15  Richard Guenther  <rguenther@suse.de>
281
282         * tree-pass.h (current_pass): Declare.
283         (get_pass_for_id): Likewise.
284         * passes.c (passes_by_id, passes_by_id_size): New globals.
285         (set_pass_for_id): New function.
286         (get_pass_for_id): Likewise.
287         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
288         (execute_function_todo): Flush per function statistics.
289         * toplev.c (compile_file): Init statistics.
290         (general_init): Do early statistics initialization.
291         (finalize): Finish statistics.
292         * statistics.h (statistics_early_init): Declare.
293         (statistics_init): Likewise.
294         (statistics_fini): Likewise.
295         (statistics_fini_pass): Likewise.
296         (statistics_counter_event): Likewise.
297         (statistics_histogram_event): Likewise.
298         * statistics.c: New file.
299         * Makefile.in (OBJS-common): Add statistics.o.
300         (statistics.o): Add dependencies.
301         * doc/invoke.texi (-fdump-statistics): Document.
302
303         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
304         (insert): Likewise.
305         (execute_pre): Use statistics_counter_event.
306         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
307         (substitute_and_fold): Increment it.  Use statistics_counter_event.
308
309 2008-05-15  Diego Novillo  <dnovillo@google.com>
310
311         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
312
313         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
314         * tree-ssa-alias.c (new_type_alias): Remove references to
315         sub-variables from comment.
316         * tree-ssa-operands.c (swap_tree_operands): Likewise.
317
318 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
319
320         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
321         attribute to 1 only for insertps alternative.
322
323 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
324
325         * config/bfin/bfin.md (loadbytes): New pattern.
326         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
327         (bfin_init_builtins): Initialize it.
328         (bdesc_1arg): Add it.
329
330 2008-05-15  Sa Liu  <saliu@de.ibm.com>
331
332         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
333         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
334         * testsuite/lib/target-supports.exp: Add
335         check_effective_target_fortran_integer_16.
336
337 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
338
339         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
340         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
341         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
342         (TARGET_RETURN_IN_MEMORY): Define.
343
344 2008-05-15  Richard Guenther  <rguenther@suse.de>
345
346         PR middle-end/36244
347         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
348         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
349         represent unmodifiable vars.
350
351 2008-05-15  Richard Guenther  <rguenther@suse.de>
352
353         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
354         INDIRECT_REF and TARGET_MEM_REF.
355         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
356         TARGET_MEM_REF.
357
358 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
359             H.J. Lu  <hongjiu.lu@intel.com>
360
361         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
362         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
363         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
364         insn alternatives.  Add missing alternatives.
365         (*vec_concatv2di_rex64_sse4_1): Likewise.
366         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
367         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
368         Require TARGET_SSE.
369
370 2008-05-15  Richard Guenther  <rguenther@suse.de>
371
372         PR tree-optimization/36009
373         PR tree-optimization/36204
374         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
375         (determine_invariantness_stmt): Record the loop a store is
376         always executed in.
377         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
378         dependency.
379
380 2008-05-15  Richard Guenther  <rguenther@suse.de>
381
382         PR tree-optimization/34330
383         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
384         through the pointer will alias the SMT.
385
386 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
387
388         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
389
390 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
391
392         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
393
394 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
395             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
396
397         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
398         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
399         (vashl_optab): New optab for vector/vector shifts.
400         (vashr_optab): Ditto.
401         (vlshr_optab): Ditto.
402         (vrotl_optab): Ditto.
403         (vrotr_optab): Ditto.
404         (optab_subtype): New enum for optab_for_tree_code call.
405         (optab_for_tree_code): Add enum optab_subtype argument.
406
407         * optabs.c (optab_for_tree_code): Take an additional argument to
408         distinguish between a vector shift by a scalar and vector shift by
409         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
410         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
411         vector shift by a vector.
412         (expand_widen_pattern_expr): Pass additional argument to
413         optab_for_tree_code.
414
415         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
416         vrotl_optab, vrotr_optab.
417
418         * expr.c (expand_expr_real_1): Update calls to
419         optab_for_tree_code to distinguish between vector shifted by a
420         scalar and vector shifted by a vector.
421         * tree-vectorizer.c (supportable_widening_operation): Ditto.
422         (supportable_narrowing_operation): Ditto.
423         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
424         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
425         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
426         (vect_create_epilog_for_reduction): Ditto.
427         (vectorizable_reduction): Ditto.
428         (vectorizable_operation): Ditto.
429         (vect_strided_store_supported): Ditto.
430         (vect_strided_load_supported): Ditto.
431         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
432         * expmed.c (expand_shift): Ditto.
433
434         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
435         scalar type.
436         (ashr@var{m}3): Ditto.
437         (vashl@var{m}3): Document new vector/vector shift standard name.
438         (vashr@var{m}3): Ditto.
439         (vlshr@var{m}3): Ditto.
440         (vrotl@var{m}3): Ditto.
441         (vrotr@var{m}3): Ditto.
442
443         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
444         (PPERM_INVERT): Ditto.
445         (PPERM_REVERSE): Ditto.
446         (PPERM_REV_INV): Ditto.
447         (PPERM_ZERO): Ditto.
448         (PPERM_ONES): Ditto.
449         (PPERM_SIGN): Ditto.
450         (PPERM_INV_SIGN): Ditto.
451         (PPERM_SRC1): Ditto.
452         (PPERM_SRC2): Ditto.
453
454         * config/i386/sse.md (mulv2di3): Add SSE5 support.
455         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
456         allows a memory operand to be the value being added, and split it
457         to improve vectorization.
458         (sse5_pmacsdqh_mem): Ditto.
459         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
460         (sse5_mulv2div2di3_high): Ditto.
461         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
462         (vec_pack_trunc_v4si): Ditto.
463         (vec_pack_trunc_v2di): Ditto.
464         (sse5_pcmov_<mode>): Remove code that tried to use use
465         andps/andnps instead of pcmov.
466         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
467         pmacsdqh instructions.
468         (vec_widen_smult_lo_v4si): Ditto.
469
470         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
471         (PPERM_INVERT): Ditto.
472         (PPERM_REVERSE): Ditto.
473         (PPERM_REV_INV): Ditto.
474         (PPERM_ZERO): Ditto.
475         (PPERM_ONES): Ditto.
476         (PPERM_SIGN): Ditto.
477         (PPERM_INV_SIGN): Ditto.
478         (PPERM_SRC1): Ditto.
479         (PPERM_SRC2): Ditto.
480         (ix86_expand_sse_movcc): Move the SSE5 test after the if
481         true/false tests.
482         (ix86_expand_int_vcond): If SSE5 generate all possible integer
483         comparisons.
484         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
485         says ignore whether the last reference is a memory operand.
486
487 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
488             Paolo Bonzini <bonzini at gnu dot org>
489
490         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
491         shift patterns.
492
493         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
494         (vlshr<mode>3): Rename from vlshr<mode>3.
495         (vashr<mode>3): Rename from vashr<mode>3.
496         (mulv4sf3): Change the names of vector shift patterns.
497         (mulv4si3): Ditto.
498         (negv4sf2): Ditt.
499
500         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
501         shift insns.
502
503         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
504         (SI_SHLHI): Ditto.
505         (SI_SHL): Ditto.
506         (SI_SHLI): Ditto.
507         (SI_ROTH): Ditto.
508         (SI_ROTHI): Ditto.
509         (SI_ROT): Ditto.
510         (SI_ROTI): Ditto.
511         (SPU_RL_0): Ditto.
512         (SPU_RL_1): Ditto.
513         (SPU_RL_2): Ditto.
514         (SPU_RL_3): Ditto.
515         (SPU_RL_4): Ditto.
516         (SPU_RL_5): Ditto.
517         (SPU_RL_6): Ditto.
518         (SPU_RL_7): Ditto.
519         (SPU_SL_0): Ditto.
520         (SPU_SL_1): Ditto.
521         (SPU_SL_2): Ditto.
522         (SPU_SL_3): Ditto.
523         (SPU_SL_4): Ditto.
524         (SPU_SL_5): Ditto.
525         (SPU_SL_6): Ditto.
526         (SPU_SL_7): Ditto.
527
528         * config/spu/spu.md (v): New iterator macro to add v for vector types.
529         (floatunssidf2_internal): Change vector/vector shift names.
530         (floatunsdidf2_internal): Ditto.
531         (mulv8hi3): Ditto.
532         (ashrdi3): Ditto.
533         (ashrti3): Ditto.
534         (cgt_df): Ditto.
535         (cgt_v2df): Ditto.
536         (dftsv): Ditto.
537         (vashl<mode>3): Rename from ashl<mode>3.
538         (vashr<mode>3): Rename from ashr<mode>3.
539         (vlshr<mode>3): Rename from lshr<mode>3.
540         (vrotl<mode>3): Rename from rotl<mode>3.
541
542 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
543
544         PR target/36224
545         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
546         multiply gives the wrong value when doing widening multiplies.
547         (vec_widen_smult_lo_v4si): Ditto.
548
549 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
550
551         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
552         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
553         emit_library_call_value. 
554         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
555         * tree.h (ECF_LIBCALL_BLOCK): Removed.
556         * calls.c (initialize_argument_information, precompute_arguments, 
557         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
558         (precompute_arguments): Removed flags parameter.
559         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
560         
561 2008-05-14  Richard Guenther  <rguenther@suse.de>
562
563         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
564         Make sure to register the store if the use is a PHI_NODE.
565
566 2008-05-14  Olivier Hainque  <hainque@adacore.com>
567
568         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
569         memory if the component is to be referenced in BLKmode according
570         to get_inner_reference.
571
572 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
573
574         * calls.c (emit_library_call_value_1): Restore code clearing
575         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
576
577 2008-05-14  Olivier Hainque  <hainque@adacore.com>
578             Nicolas Roche  <roche@adacore.com>
579
580         * configure.ac: Add support for a "gcc_subdir" variable in
581         config-lang.in, to denote a subdirectory where the language/GCC
582         integration files are to be found.
583         * configure: Regenerate.
584
585 2008-05-14  Ira Rosen  <irar@il.ibm.com>
586
587         PR tree-optimization/36098
588         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
589         value for the first load in the group in case of a gap.
590         (vect_build_slp_tree): Check that there are no gaps in loads.
591
592 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
593
594         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
595         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
596         expand_copysign_bit, ): Change call to emit_no_conflict_block to
597         emit_insn and remove unneeded code to construct extra args.
598         (emit_no_conflict_block): Removed.
599         * optabls.h: (emit_no_conflict_block): Removed.
600         * cse.c (cse_extended_basic_block): Remove search for
601         REG_NO_CONFLICT note.
602         * global.c: Removed incorrect comment added in revision 117.
603         * expr.c (convert_move): Change call to emit_no_conflict_block to
604         emit_insn.
605         * recog.c: Change comments so that they do not mention
606         REG_NO_CONFLICT.
607         * local_alloc.c (combine_regs): Removed last parameter.
608         (no_conflict_p): Removed.
609         (block_alloc): Removed note, no_conflict_combined_regno and set
610         local vars. Removed all code to process REG_NO_CONFLICT blocks.
611         (combine_regs): Removed already_dead and code to look for
612         REG_NO_CONFLICT notes.
613         * lower_subreg (remove_retval_note): Removed code to look for
614         REG_NO_CONFLICT block.
615         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
616         (resolve_clobber): Remove code to process libcalls that have
617         REG_NO_CONFLICT notes.
618         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
619         case.
620         * combine.c (can_combine_p, distribute_notes):  Removed
621         REG_NO_CONFLICT case.
622         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
623         to emit_insns.
624         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
625         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
626         Ditto.
627         * reg-notes.def (NO_CONFLICT): Removed.
628
629 2008-05-14  David S. Miller  <davem@davemloft.net>
630
631         * config/sparc/sparc.c (sparc_profile_hook): If
632         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
633         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
634         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
635
636 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
637
638         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
639
640 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
641
642         PR target/36222
643         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
644         and op1 expansion before vector concat to have less live pseudos.
645
646 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
647
648         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
649         ix86_expand_vector_set if supported.
650
651 2008-05-13  Diego Novillo  <dnovillo@google.com>
652             Kenneth Zadeck  <zadeck@naturalbridge.com>
653
654         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
655
656         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
657         phinodes_print_statistics, init_ssanames, fini_ssanames,
658         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
659         release_ssa_name, release_defs, replace_ssa_name_symbol,
660         ssanames_print_statistics): Move ...
661         * tree-flow.h: ... here.
662         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
663         Use FN instead of cfun.
664         (make_ssa_name_fn): Rename from make_ssa_name.
665         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
666         * tree-flow-inline.h (make_ssa_name): Move from
667         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
668         * omp-low.c (expand_omp_parallel):
669         * tree-flow-inline.h (redirect_edge_var_map_result):
670         * tree-ssa.c (init_tree_ssa): Add argument FN.
671         Use it instead of cfun.  Update all users.
672
673 2008-05-13  Tom Tromey  <tromey@redhat.com>
674
675         PR preprocessor/22168:
676         * doc/cpp.texi (Top): Update menu.
677         (Alternatives to Wrapper #ifndef): New node.
678         (Other Directives): Document deprecation.
679         (Obsolete Features): Remove menu.
680         (Assertions): Merge node into Obsolete Features.
681         (Obsolete once-only headers): Move earlier; rename to Alternatives
682         to Wrapper #ifndef.
683         * doc/cppopts.texi: Update.
684         * c.opt (Wdeprecated): Enable for C and ObjC.
685         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
686         (C++ Dialect Options): Move -Wno-deprecated from here to...
687         (Warning Options): ... here.
688
689 2008-05-13  Richard Guenther  <rguenther@suse.de>
690
691         PR middle-end/36227
692         * fold-const.c (fold_sign_changed_comparison): Do not allow
693         changes in pointer-ness.
694
695 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
696
697         PR target/24713
698         * config/sh/sh.c (sh_expand_prologue): Don't clear
699         RTX_FRAME_RELATED_P for push insns.
700
701 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
702
703         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
704
705 2008-05-12  Anatoly Sokolov <aesok@post.ru>
706
707         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
708         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
709         Use 'machine->is_leaf' instead of 'leaf_func_p'.
710
711 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
712
713         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
714         (*vec_concatv4sf_sse): This.
715         (*sse2_concatv2si): Renamed to ...
716         (*vec_concatv2si_sse2): This.
717         (*sse1_concatv2si): Renamed to ...
718         (*vec_concatv2si_sse): This.
719         (*vec_concatv2di_rex): Renamed to ...
720         (*vec_concatv2di_rex64): This.
721         (*vec_concatv2si_sse4_1): New.
722         (*vec_concatv2di_rex64_sse4_1): Likewise.
723
724 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
725
726         PR rtl-optimization/36111
727         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
728         that was created for swappable operands.
729
730 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
731
732         PR ada/36001
733         * Makefile.in: Substitute GNATMAKE and GNATBIND.
734         * configure.ac: Add call to ACX_PROG_GNAT.
735
736 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
737
738         * optc-gen.awk: Fix comment typo.
739
740 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
741
742         * pretty-print.c (pp_integer_with_precision): Use
743         HOST_LONG_LONG_FORMAT.
744
745 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
746
747         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
748                 
749 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
750
751         * config/i386/i386.c (bdesc_ptest): Removed.
752         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
753         (bdesc_args): Add __builtin_ia32_ptestz128,
754         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
755         (ix86_init_mmx_sse_builtins): Updated.
756         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
757         (ix86_expand_builtin): Updated.
758
759 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
760
761         * tree-cfg.c (valid_fixed_convert_types_p): New function.
762         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
763
764 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
765
766         * value-prof.c (interesting_stringop_to_profile): Do not
767         return early for BUILT_IN_MEMPCPY.
768
769 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
770
771         * calls.c (expand_call): Don't use callgraph to increase
772         preferred_stack_boundary.
773
774         * cgraph.h (cgraph_rtl_info): Use unsigned on
775         preferred_incoming_stack_boundary.
776
777         * final.c (rest_of_clean_state): Use unsigned on
778         preferred_stack_boundary.
779
780 2008-05-09  Tom Tromey  <tromey@redhat.com>
781
782         PR preprocessor/22231:
783         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
784         proceeding.
785
786 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
787
788         PR tree-optimization/36129
789         * tree-ssa-ccp.c: Include value-prof.h.
790         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
791         built-in function was folded to a constant.
792         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
793
794 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
795             Sebastian Pop  <sebastian.pop@amd.com>
796
797         * tree-scalar-evolution.c: Document instantiate_scev.
798         (instantiate_parameters_1): Renamed instantiate_scev_1.
799         Don't use the same loop for instantiation_loop and evolution_loop.
800         (instantiate_scev): New.
801         (instantiate_parameters): Moved...
802         (resolve_mixers): Update call to instantiate_scev_1 to pass the
803         same loop twice.  Maintains the semantics for this function.
804         * tree-scalar-evolution.h (instantiate_scev): Declare.
805         (instantiate_parameters): ...here.  Now static inline.
806         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
807         instead of resolve_mixers.
808
809 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
810
811         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
812
813 2008-05-09  Tomas Bily  <tbily@suse.cz>
814
815         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
816         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
817         * tree-ssa-structalias.c (get_constraint_for): Likewise.
818         * c-common.c (c_common_truthvalue_conversion): Likewise.
819         * tree-object-size.c (compute_object_offset): Likewise.
820         * tree-inline.c (estimate_num_insns_1): Likewise.
821         * varasm.c (const_hash_1, compare_constant, copy_constant)
822         (compute_reloc_for_constant, output_addressed_constants)
823         (initializer_constant_valid_p): Likewise.
824         * c-omp.c (check_omp_for_incr_expr): Likewise.
825         * gimplify.c (gimplify_expr): Likewise.
826         * c-typeck.c (c_finish_return): Likewise.
827         * tree-vectorizer.c (supportable_widening_operation)
828         (supportable_narrowing_operation): Likewise.
829         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
830         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
831         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
832         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
833         (descr_info_loc): Likewise.
834         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
835         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
836         (fold_unary): Likewise.
837         * builtins.c (get_pointer_alignment): Likewise.
838         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
839         (instantiate_parameters_1): Likewise.
840         * tree.c (expr_align, stabilize_reference): Likewise.
841         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
842         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
843         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
844         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
845         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
846         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
847         Likewise.
848         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
849         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
850         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
851         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
852         (forward_propagate_comparison)
853         (tree_ssa_forward_propagate_single_use_vars): Likewise.
854         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
855         * emit-rtl.c (component_ref_for_mem_expr)
856         (set_mem_attributes_minus_bitpos): Likewise.
857         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
858         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
859         Likewise.
860         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
861         (build_function_call, pointer_diff, build_compound_expr)
862         (c_finish_return): Likewise.
863         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
864         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
865         Likewise.
866         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
867         * expr.c (is_aligning_offset): Likewise.
868         * tree-ssa-alias.c (is_escape_site): Likewise.
869         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
870         (check_all_va_list_escapes): Likewise.
871         * tree-ssa-loop-ivopts.c (determine_base_object)
872         (determine_common_wider_type): Likewise.
873         * dojump.c (do_jump): Likewise.
874         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
875         * tree-gimple.c (is_gimple_cast): Likewise.
876         * fold-const.c (decode_field_reference, )
877         (fold_sign_changed_comparison, fold_unary, fold_comparison)
878         (fold_binary): Likewise.
879         * tree-ssa-alias-warnings.c (find_alias_site_helper)
880         (already_warned_in_frontend_p): Likewise.
881         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
882         * tree.c (really_constant_p, get_unwidened): Likewise.
883         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
884         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
885         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
886         Likewise.
887         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
888         CONVERT_EXPR_P.
889         (CONVERT_EXPR_P): Define.
890         (CASE_CONVERT): Define.
891         
892 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
893
894         PR middle-end/36117
895         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
896         (delete_unmarked_insns): When deleting a call, call
897         delete_unreachable_blocks.
898         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
899         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
900
901 2008-05-08  Richard Guenther  <rguenther@suse.de>
902
903         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
904         (-ftree-salias): Likewise.
905         (salias-max-implicit-fields): Remove param documentation.
906         (salias-max-array-elements): Likewise.
907         * tree-pass.h (pass_create_structure_vars): Remove.
908         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
909         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
910         * tree-ssa-alias.c (create_structure_vars): Remove.
911         (gate_structure_vars): Likewise.
912         (pass_create_structure_vars): Likewise.
913         (gate_build_alias): Likewise.
914         (pass_build_alias): Adjust to run always and dump the function.
915         * common.opt (ftree-salias): Hide.
916         * passes.c (init_optimization_passes): Remove
917         pass_create_structure_vars, adjust comment.
918         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
919         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
920         * opts.c (decode_options): Do not set flag_tree_salias.
921         (common_handle_option): Add OPT_ftree_salias to the backward
922         compatibility section.
923
924 2008-05-08  Richard Guenther  <rguenther@suse.de>
925
926         * tree-flow-inline.h (var_can_have_subvars): Move ...
927         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
928         * tree-flow.h (var_can_have_subvars): Remove.
929         (push_fields_onto_fieldstack): Remove.
930         (sort_fieldstack): Likewise.
931         (struct fieldoff): Move ...
932         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
933         alias_set and base_for_components fields.
934         (sort_fieldstack): Make static.
935         (push_fields_onto_fieldstack): Likewise.  Remove code that
936         handles anything but RECORD_TYPEs.  Remove alias_set and
937         base_for_components handling.
938         (create_variable_info_for): Adjust.
939
940 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
941
942         * common.opt (Wframe-larger-than=): Shorten the help message
943         to one line.
944         * doc/invoke.texi (Wframe-larger-than=): Add more description.
945
946 2008-05-08  Rafael Espindola  <espindola@google.com>
947
948         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
949         trap.
950         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
951         trap and that both operands are gimple values.
952         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
953         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
954         is a fp operation.
955
956 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
957
958         * read-rtl.c (join_c_conditions): Return the first string if the
959         two strings are equal.
960
961 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
962
963         * gensupport.h (pred_data): Add a "num_codes" field.
964         (add_predicate_code): Declare.
965         * gensupport.c (add_predicate_code): New function.
966         (std_pred_table): Add an "allows_const_p" field.
967         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
968         Remove the (incomplete) list of such codes from the codes field.
969         (init_predicate_table): Use add_predicate_code.  Add all
970         RTX_CONST_OBJs if allows_const_p is true.
971         * genrecog.c (process_define_predicate): Use add_predicate_code.
972
973 2008-05-08  David Daney  <ddaney@avtrex.com>
974             Richard Sandiford  <rsandifo@nildram.co.uk>
975         
976         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
977         special case of constant zero operands.
978         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
979         old and new values.  Special case constant zero values.
980         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
981         fails.
982         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
983         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
984
985 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
986
987         PR target/36090
988         * simplify-rtx.c (simplify_plus_minus): Create CONST of
989         similar RTX_CONST_OBJ before CONST_INT.
990
991 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
992
993         * stmt.c (expand_stack_restore): Change sa mode if needed.
994
995 2008-05-08  Richard Guenther  <rguenther@suse.de>
996
997         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
998         return type to bool.
999         (ix86_sol10_return_in_memory): Likewise.
1000         (ix86_i386elf_return_in_memory): Likewise.
1001         (ix86_i386interix_return_in_memory): Likewise.
1002         * config/i386/i386.c (ix86_return_in_memory): Likewise.
1003         (ix86_sol10_return_in_memory): Likewise.
1004         (ix86_i386elf_return_in_memory): Likewise.
1005         (ix86_i386interix_return_in_memory): Likewise.
1006
1007 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
1008
1009         PR bootstrap/36180
1010         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
1011         fndecl argument.
1012         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
1013         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
1014         declared in front.
1015
1016 2008-05-08  Richard Guenther  <rguenther@suse.de>
1017
1018         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
1019         * tree-data-ref.h (struct dr_alias): Remove subvars field.
1020         (DR_SUBVARS): Remove.
1021         * tree-dfa.c (dump_subvars_for): Remove.
1022         (debug_subvars_for): Likewise.
1023         (dump_variable): Do not dump subvars.
1024         (remove_referenced_var): Do not remove subvars.
1025         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
1026         (lookup_subvars_for_var): Remove.
1027         (get_subvars_for_var): Likewise.
1028         (get_subvars_at): Likewise.
1029         (get_first_overlapping_subvar): Likewise.
1030         (overlap_subvar): Likewise.
1031         * tree-flow.h (subvar_t): Remove.
1032         (struct var_ann_d): Remove subvars field.
1033         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
1034         argument.  Remove special handling of SFTs.
1035         (compute_tag_properties): Likewise.
1036         (set_initial_properties): Likewise.
1037         (compute_call_clobbered): Likewise.
1038         (count_mem_refs): Likewise.
1039         (compute_memory_partitions): Likewise.
1040         (compute_flow_insensitive_aliasing): Likewise.
1041         (setup_pointers_and_addressables): Likewise.
1042         (new_type_alias): Likewise.
1043         (struct used_part): Remove.
1044         (used_portions): Likewise.
1045         (struct used_part_map): Likewise.
1046         (used_part_map_eq): Likewise.
1047         (used_part_map_hash): Likewise.
1048         (free_used_part_map): Likewise.
1049         (up_lookup): Likewise.
1050         (up_insert): Likewise.
1051         (get_or_create_used_part_for): Likewise.
1052         (create_sft): Likewise.
1053         (create_overlap_variables_for): Likewise.
1054         (find_used_portions): Likewise.
1055         (create_structure_vars): Likewise.
1056         * tree.def (STRUCT_FIELD_TAG): Remove.
1057         * tree.h (MTAG_P): Adjust.
1058         (struct tree_memory_tag): Remove base_for_components and
1059         unpartitionable flags.
1060         (struct tree_struct_field_tag): Remove.
1061         (SFT_PARENT_VAR): Likewise.
1062         (SFT_OFFSET): Likewise.
1063         (SFT_SIZE): Likewise.
1064         (SFT_NONADDRESSABLE_P): Likewise.
1065         (SFT_ALIAS_SET): Likewise.
1066         (SFT_UNPARTITIONABLE_P): Likewise.
1067         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
1068         (union tree_node): Remove sft field.
1069         * alias.c (get_alias_set): Remove special handling of SFTs.
1070         * print-tree.c (print_node): Remove handling of SFTs.
1071         * tree-dump.c (dequeue_and_dump): Likewise.
1072         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
1073         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
1074         * tree-predcom.c (set_alias_info): Do not set subvars.
1075         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
1076         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
1077         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
1078         (add_vars_for_offset): Remove.
1079         (add_virtual_operand): Remove special handling of SFTs.
1080         (add_call_clobber_ops): Likewise.
1081         (add_call_read_ops): Likewise.
1082         (get_asm_expr_operands): Likewise.
1083         (get_modify_stmt_operands): Likewise.
1084         (get_expr_operands): Likewise.
1085         (add_to_addressable_set): Likewise.
1086         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
1087         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
1088         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
1089         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
1090         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
1091         (tree_node_structure): Likewise.
1092         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
1093         handling of SFTs.
1094         (find_what_p_points_to): Likewise.
1095
1096 2008-05-08  Sa Liu  <saliu@de.ibm.com>
1097
1098         * config/spu/spu.md: Fixed subti3 pattern.
1099
1100 2008-05-08  Richard Guenther  <rguenther@suse.de>
1101
1102         PR middle-end/36154
1103         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
1104         sure to create a representative for trailing arrays for PTA.
1105
1106 2008-05-08  Richard Guenther  <rguenther@suse.de>
1107
1108         PR middle-end/36172
1109         * fold-const.c (operand_equal_p): Two objects which types
1110         differ in pointerness are not equal.
1111
1112 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
1113
1114         * calls.c (compute_argument_block_size): Add argument tree fndecl.
1115         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
1116         (emit_library_call_value_1): Add new variable fndecl initialized by
1117         NULL_TREE. It should be the decl type of orgfun, but this information
1118         seems not to be available here, so it uses the default calling abi.
1119         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
1120         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
1121         by TARGET_RETURN_IN_MEMORY.
1122         * config/i386/i386-interix.h: Likewise.
1123         * config/i386/i386.h: Likewise.
1124         * config/i386/i386elf.h: Likewise.
1125         * config/i386/ptx4-i.h: Likewise.
1126         * config/i386/sol2-10.h: Likewise.
1127         * config/i386/sysv4.h: Likewise.
1128         * config/i386/vx-common.h: Likewise.
1129         * config/cris/cris.h: Removed #if 0 clause.
1130         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
1131         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
1132         argument.
1133         (ix86_sol10_return_in_memory): Likewise.
1134         (ix86_i386elf_return_in_memory): New.
1135         (ix86_i386interix_return_in_memory): New.
1136         * config/mt/mt-protos.h (mt_return_in_memory): New.
1137         * config/mt/mt.c: Likewise.
1138         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
1139         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
1140         * config/bfin/bfin.h: Likewise.
1141         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
1142         argument.
1143         * config/bfin/bfin.c: Likewise.
1144         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
1145         * config/alpha/unicosmk.h: Likewise.
1146         * config/i386/cygming.h: Likewise.
1147         * config/iq2000/iq2000.h: Likewise.
1148         * config/mips/mips.h: Likewise.
1149         * config/mn10300/mn10300.h: Likewise.
1150         * config/rs6000/rs6000.h: Likewise.
1151         * config/score/score.h: Likewise.
1152         * config/spu/spu.h: Likewise.
1153         * config/v850/v850.h: Likewise.
1154         * defaults.h: Likewise.
1155         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
1156         * expr.c (emit_block_move): Adjust use of
1157         OUTGOING_REG_PARM_STACK_SPACE.
1158         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
1159         OUTGOING_REG_PARM_STACK_SPACE.
1160         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
1161
1162 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
1163
1164         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
1165         on OMP_RETURN for OMP_FOR.
1166
1167         PR debug/35896
1168         * dwarf2out.c (dw_expand_expr, common_check): Removed.
1169         (fortran_common): New function.
1170         (gen_variable_die): Call fortran_common instead of common_check,
1171         adjust for it returning tree instead of rtx.  Formatting.
1172
1173 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
1174
1175         PR rtl/7335
1176         PR rtl/33826
1177         * see.c (see_copy_insn): Copy new pure const attributes for new call.
1178         * c-decl.c (merge_decls): Ditto.
1179         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
1180         to RTL_CONST_OR_PURE_CALL_P.
1181         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
1182         Initialized DECL_LOOPING_CONST_PURE.
1183         (process_call_operands): Set tree_side_effects properly.
1184         * tree.h (TREE_READONLY_DECL_P): Removed.
1185         (DECL_IS_PURE): Renamed to DECL_PURE_P.
1186         (DECL_LOOPING_OR_CONST_P): New macro.
1187         (struct tree_function_decl): Added looping_const_or_pure_p.
1188         (ECF_*) Renumbered.
1189         (ECF_LOOPING_OR_CONST_P): New macro.
1190         * rtlanal.c (pure_const_p): Removed.
1191         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
1192         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
1193         to RTL_CONST_CALL_P.
1194         * ipa-pure-const.c (pure_const_state_e): Added looping field.
1195         (check_decl, check_tree, check_call, scan_function): Initialize
1196         looping.
1197         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
1198         (static_execute): Set looping true for recursive functions.
1199         Undo setting state to IPA_NEITHER for recursive functions.
1200         * cse.c (cse_insn): 
1201         * ifcvt.c (noce_can_store_speculate_p): Changed
1202         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
1203         RTL_CONST_OR_PURE_CALL_P.
1204         * dse.c (scan_insn): Ditto.
1205         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
1206         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
1207         RTL_CONST_OR_PURE_CALL_P.
1208         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
1209         pure_call_p to RTL_CONST_CALL_P.
1210         * gimplify.c (gimplify_call_expr): Clear side effects for
1211         non-looping pure and constant calls.
1212         * calls.c (emit_call_1): Set rtl flags from ecf flags.
1213         (flags_from_decl_or_type): Set ecf flags from decl flags.
1214         (initialize_argument_information): Turn off
1215         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
1216         Change const to pure if callee_copies is true rather than just
1217         turning off const.
1218         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
1219         way of marking pure calls.
1220         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
1221         Remove hack that was supposed to fix pr7335 and remove old
1222         way of marking pure calls.
1223         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
1224         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
1225         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
1226         RTL_CONST_OR_PURE_CALL_P.
1227         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
1228         * loop-invariant.c (find_exits, find_invariant_bb): Changed
1229         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
1230         * sched-deps.c (schedule_analyze): Ditto.
1231         * rtl.h (struct rtx_def): Use call field, unchanging field, and
1232         return_val field of calls to represent pure and const function info.
1233         (CONST_OR_PURE_CALL_P): Deleted macro.
1234         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
1235         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
1236         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
1237         TREE_READONLY.
1238         * tree-optimize.c (execute_fixup_cfg): Added test for
1239         ECF_LOOPING_CONST_OR_PURE.
1240         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
1241         DECL_PURE_P.
1242         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
1243         effects for looping pure or const calls.
1244         (verify_gimple_expr): Added verification code. 
1245         * config/alpha/alpha.c (alpha_legitimize_address,
1246         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
1247         RTL_CONST_CALL_P.
1248         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
1249         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
1250         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
1251         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
1252         RTL_CONST_OR_PURE_CALL_P.
1253         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
1254         and const calls to be deleted.
1255
1256 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
1257
1258         PR target/35714
1259         * config/i386/mmx.md (mmx_subv2sf3): New expander.
1260         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
1261         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
1262         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
1263         to handle nonimmediate operands.
1264         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
1265         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
1266         to handle nonimmediate operands.
1267         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
1268         (mmx_pmulhrwv4hi3): New expander.  Use
1269         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1270         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
1271         (sse2_umulv1siv1di3): New expander.  Use
1272         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1273         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
1274         (mmx_eq<mode>3): New expander.  Use
1275         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1276         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
1277         (mmx_uavgv8qi3): New expander.  Use
1278         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1279         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
1280         (mmx_uavgv4hi3): New expander.  Use
1281         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1282
1283         * config/i386/sse.md
1284         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
1285         to handle nonimmediate operands.
1286         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
1287         to handle nonimmediate operands.
1288         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
1289         to handle nonimmediate operands.
1290         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
1291         to handle nonimmediate operands.
1292         (sse2_unpckhpd_exp): New expander.  Use
1293         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1294         (sse2_unpcklpd_exp): New expander.  Use
1295         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1296         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
1297         to handle nonimmediate operands.
1298         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
1299         to handle nonimmediate operands.
1300         (*sse2_<plusminus_insn><mode>3): Rename from
1301         sse2_<plusminus_insn><mode>3 insn pattern.
1302         (sse2_<plusminus_insn><mode>3): New expander.  Use
1303         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1304         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
1305         (sse2_umulv2siv2di3): New expander.  Use
1306         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1307         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
1308         (sse4_1_mulv2siv2di3): New expander.  Use
1309         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1310         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
1311         (sse2_pmaddwd): New expander.  Use
1312         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1313         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
1314         (sse2_eq<mode>3): New expander.  Use
1315         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1316         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
1317         (sse4_1_eqv2di3): New expander.  Use
1318         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1319         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
1320         (sse2_uavgv16qi3): New expander.  Use
1321         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1322         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
1323         (sse2_uavgv16qi3): New expander.  Use
1324         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1325         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
1326         (sse2_uavgv8hi3): New expander.  Use
1327         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1328         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
1329         (ssse3_pmulhrswv8hi3): New expander.  Use
1330         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1331         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
1332         (ssse3_pmulhrswv4hi3): New expander.  Use
1333         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1334
1335         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
1336         (<sse>_vmmul<mode>3): Ditto.
1337         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
1338         (divv2df3): Ditto.
1339         (ssse3_pmaddubsw128): Use register_operand for operand 1.
1340         (ssse3_pmaddubsw): Ditto.
1341
1342         * config/i386/i386.c (struct_builtin_description)
1343         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
1344         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
1345         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
1346         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
1347         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
1348         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
1349         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
1350         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
1351         (ix86_fixup_binary_operands): Assert that src1
1352         and src2 must have the same mode when swapped.
1353         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
1354         and ix86_binary_operator_ok.  Do not force operands in registers
1355         when optimizing.
1356
1357 2008-05-07  Jan Hubicka  <jh@suse.cz>
1358
1359         * cgraph.c (dump_cgraph_node): Update.
1360         * cgraph.h (cgraph_local_info): Break out inline summary.
1361         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
1362         hook.
1363         * ipa-inline (inline_summary): New accestor function.
1364         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
1365         cgraph_decide_inlining, compute_inline_parameters): Update.
1366         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
1367
1368 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
1369
1370         Cleanup ColdFire scheduling support and add V4 pipeline model.
1371
1372         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
1373         (define_attr cpu): Add cfv4 value.
1374         (define_attr type, define_attr type1): Merge into a single 'type'
1375         attribute.  Update all uses.
1376         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
1377         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
1378         Update all uses.
1379         (define_attr opx_mem, define_attr opy_mem): Remove.
1380         (define_attr op_mem): Clean up, update comment.
1381         (define_attr size): Use specific values instead of general int.
1382         (define_attr guess, define_attr split): Remove.  Update all uses.
1383         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
1384         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
1385         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
1386         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
1387         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
1388         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
1389         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
1390         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
1391         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
1392         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
1393         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
1394         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
1395         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
1396         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
1397         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
1398         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
1399         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
1400         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
1401         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
1402         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
1403         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
1404         Update or set attributes.
1405         (stack_tie): New fake instruction.
1406
1407         * config/m68k/m68k.h (TUNE_CFV4): New macro.
1408         (m68k_sched_attr_size): Update declaration.
1409         (m68k_sched_attr_type2): Remove.
1410         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
1411         Declare new bypass predicates.
1412
1413         * config/m68k/m68k.c (m68k_sched_issue_rate,
1414         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
1415         implementations.
1416         (TARGET_SCHED_ISSUE_RATE,
1417         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
1418         (override_options): Handle scheduling for ColdFire V4 core.
1419         (m68k_expand_prologue): Emit stack_tie.
1420         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
1421         'OP_TYPE_FPN'.  Update all uses.
1422         (sched_guess_p): Remove.
1423         (sched_address_type): Handle symbolic addresses.
1424         (sched_get_operand): New static function.
1425         (sched_operand_type): Merge into sched_attr_op_type.
1426         (sched_attr_op_type): Handle FP registers, handle quick constants,
1427         update.
1428         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
1429         (m68k_sched_attr_size): Update.  Move logic to ...
1430         (sched_get_attr_size_int): New static function.
1431         (sched_get_opxy_mem_type): New static function.
1432         (m68k_sched_attr_op_mem): Update.
1433         (m68k_sched_attr_type2): Remove.
1434         (sched_cfv4_bypass_data): New static variable.
1435         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
1436         (m68k_sched_issue_rate): Implement scheduler hook.
1437         (struct _sched_ib: enabled_p): New field.
1438         (m68k_sched_variable_issue): Update.  Handle V4.
1439         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
1440         sched_dump_class_func_t, sched_dump_split_class,
1441         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
1442         sched_dump_dfa_class, m68k_sched_dump): Remove.
1443         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
1444         hook.
1445         (m68k_sched_init_global): Remove statisctics dumping, introduce
1446         sanity check that all instructions have pipeline reservations.  Handle
1447         ColdFire V4 core.
1448         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
1449         Handle ColdFire V4 core.
1450         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
1451         New static functions.
1452         (m68k_sched_address_bypass_p): New bypass predicate.
1453         (sched_get_indexed_address_scale): New static function.
1454         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
1455
1456         * cf.md: Update comments.
1457         (define_attr type2): Remove.  Use 'type' attribute instead.
1458         Update all uses.
1459         (cf_ib): Rename to cfv123_ib.  Update all uses.
1460         (cf_oep): Rename to cfv123_oep.  Update all uses.
1461         (cf_chr): Rename to cfv123_chr.  Update all uses.
1462         (cf_mem): Rename to cfv123_mem.  Update all uses.
1463         (cf_mac): Move to more appropriate place.
1464         (cfv123_guess): New automaton and cpu_unit.
1465         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
1466         Update uses of 'size' attribute.  Handle before reload scheduling.
1467         (cfv123_guess): New dummy reservation for unhandled instructions.
1468         (cfv4_*): Pipeline description of ColdFire V4 core.
1469         (ignore): New reservation to handle 'ignore' type.
1470
1471 2008-05-07  Ian Lance Taylor  <iant@google.com>
1472
1473         PR middle-end/36013
1474         * gimplify.c (find_single_pointer_decl_1): Don't look through
1475         indirections.
1476         (find_single_pointer_decl): Adjust comments.
1477
1478 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1479
1480         PR middle-end/36137
1481         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
1482         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
1483
1484         PR middle-end/36106
1485         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
1486         integral type rather than floating point, then VIEW_CONVERT_EXPR
1487         to the floating point type.
1488
1489 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
1490
1491         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
1492         TFmode op0 to register.
1493
1494 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
1495
1496         * c-decl.c (grokdeclarator): Comment typo.
1497
1498 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
1499
1500         * tree-flow.h: Remove prototype for computed_goto_p.
1501         * tree-cfg.c (computed_goto_p): Make static.
1502
1503 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
1504
1505         PR target/35657
1506         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
1507         (contains_aligned_value_p): This.  Handle _Decimal128.
1508         (ix86_function_arg_boundary): Only align _Decimal128 to its
1509         natural boundary and handle it properly.
1510
1511 2008-05-06  Martin Jambor  <mjambor@suse.cz>
1512
1513         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
1514         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
1515         (ipcp_method_set_orig_node): Removed.
1516         (ipcp_cval_get_cvalue_type): Removed.
1517         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
1518         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
1519         (ipcp_cval_set_cvalue_type): Removed.
1520         (ipcp_cval_get_cvalue): Removed.
1521         (ipcp_cval_set_cvalue): Removed.
1522         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
1523         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
1524         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
1525         (ipcp_cval_meet): Renamed to ipa_lattice_meet
1526         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
1527         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
1528         (ipcp_get_ith_lattice): Changed parameters.
1529         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
1530         (ipcp_lattice_from_jfunc): Changed parameters.
1531         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
1532         (ipcp_method_cval_print): Added temporary variable info.
1533         (ipcp_redirect): Removed already unused local variable caller.
1534         (ipcp_redirect): New temporary variable orig_callee_info
1535         (ipcp_redirect): Removed newly unused local variable callee.
1536         (ipcp_redirect): Removed (a bit confusing) local variable type.
1537         (ipcp_insert_stage): Added local variable info.
1538         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
1539         renamed too
1540         (ipcp_formal_create): Removed.
1541         (ipcp_method_cval_set): Removed.
1542         (ipcp_propagate_stage): Renamed lattice variables.
1543         (ipcp_method_cval_set_cvalue_type): Removed.
1544         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
1545         (ipcp_print_all_lattices): Changed printed strings to refer to 
1546         lattices rather than cvals.
1547         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
1548         (ipcp_propagate_const): Changed formal parameters.
1549         (build_const_val): Changed formal parameters.
1550         (ipcp_insert_stage): Removed useless variable cvalue
1551         (build_const_val): Changed formal parameters.
1552         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
1553         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
1554         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
1555         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
1556         (ipcp_print_func_profile_counts): Changed string from "method" to 
1557         "function"
1558         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
1559         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
1560         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
1561         (ipcp_structures_print): Renamed to ipcp_print_all_structures
1562         (ipcp_profile_print): Renamed to ipcp_print_profile_data
1563         (ipcp_lat_is_const): Changed parameters and made inline.
1564         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
1565         (ipcp_redirect): Renamed to ipcp_need_redirect_p
1566         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
1567         the predicate condition directly
1568         (ipcp_propagate_stage): Added local variable args. Removed local
1569         variable callee.  (Both are mere code simplifications.)
1570         (ipcp_method_dont_insert_const): Renamed to
1571         ipcp_node_not_modifiable_p.
1572         (ipcp_node_not_modifiable_p): Made inline.
1573         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
1574         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
1575         (ipcp_print_all_lattices): Removed variable cvalue
1576         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
1577         Updated comments.
1578
1579 2008-05-06  Olivier Hainque  <hainque@adacore.com>
1580
1581         * tree-sra.c (try_instantiate_multiple_fields): Early return
1582         if field has POINTER_TYPE.
1583
1584 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
1585
1586         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
1587         by using 'q' specifier for instruction.
1588         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
1589
1590 2008-05-06  Anatoly Sokolov <aesok@post.ru>
1591
1592         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
1593         Change mode of zero_extract from QImode to HImode.
1594         (sign bit tests peepholes): (Ditto.).
1595
1596 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
1597
1598         * config/i386/mmx.md: Remove double backslashes from asm templates.
1599         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
1600         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
1601         to handle nonimmediate operands.
1602         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
1603         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
1604         to handle nonimmediate operands.
1605         (*mmx_<code>v2sf3_finite): New insn pattern.
1606         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
1607         (mmx_<code>v2sf3): New expander.  Use
1608         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1609         (mmx_<plusminus_insn><mode>3): New expander.  Use
1610         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1611         (*mmx_<plusminus_insn><mode>3): New insn pattern.
1612         (mmx_add<mode>3): Removed.
1613         (mmx_ssadd<mode>3): Ditto.
1614         (mmx_usadd<mode>3): Ditto.
1615         (mmx_sub<mode>3): Ditto.
1616         (mmx_sssub<mode>3): Ditto.
1617         (mmx_ussub<mode>3): Ditto.
1618         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
1619         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
1620         to handle nonimmediate operands.
1621         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
1622         insn pattern.
1623         (mmx_smulv4hi3_highpart): New expander.  Use
1624         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1625         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
1626         insn pattern.
1627         (mmx_umulv4hi3_highpart): New expander.  Use
1628         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1629         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
1630         (mmx_<code>v4hi3): New expander.  Use
1631         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1632         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
1633         (mmx_<code>v8qi3): New expander.  Use
1634         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1635         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
1636         (mmx_<code><mode>3): New expander.  Use
1637         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1638
1639 2008-05-05  Jan Hubicka  <jh@suse.cz>
1640
1641         PR tree-optimization/36118
1642         * passes.c (pass_init_dump_file): Fix dump header.
1643
1644 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1645
1646         PR middle-end/36141
1647         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
1648         VCE for function decls.
1649
1650 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
1651
1652         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
1653
1654 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
1655
1656         * config/i386/i386.md (sat_plusminus): New.
1657         (plusminus_insn): Likewise.
1658         (plusminus_mnemonic): Likewise.
1659         (addsub): Removed.
1660         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
1661         (*<addsub><mode>3_cc_overflow): Renamed to ...
1662         (*<plusminus_insn><mode>3_cc_overflow): This.
1663         (*<addsub>si3_zext_cc_overflow): Renamed to ...
1664         (*<plusminus_insn>si3_zext_cc_overflow): This.
1665
1666         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
1667         (<plusminus_insn><mode>3): This.
1668         (*<addsub><mode>3): Renamed to ...
1669         (*<plusminus_insn><mode>3): This.
1670         (<sse>_vm<addsub><mode>3): Renamed to ...
1671         (<sse>_vm<plusminus_insn><mode>3): This.
1672         (sse3_h<addsub>v4sf3): Renamed to ...
1673         (sse3_h<plusminus_insn>v4sf3): This.
1674         (sse3_h<addsub>v2df3): Renamed to ...
1675         (sse3_h<plusminus_insn>v2df3): This.
1676         (<plusminus_insn><mode>3): New.
1677         (*<plusminus_insn><mode>3): Likewise.
1678         (sse2_<plusminus_insn><mode>3): Likewise.
1679         (add<mode>): Removed.
1680         (*add<mode>3): Likewise.
1681         (sse2_ssadd<mode>3): Likewise.
1682         (sse2_usadd<mode>3): Likewise.
1683         (sub<mode>3): Likewise.
1684         (*sub<mode>3): Likewise.
1685         (sse2_sssub<mode>3): Likewise.
1686         (sse2_ussub<mode>3): Likewise.
1687
1688 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
1689
1690         * gthr-single.h: Add in required interface elements as per gthr.h.
1691         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
1692         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
1693         Generalize UNUSED macro. 
1694         (__gthread_once): Add.
1695         (__gthread_key_create): Add.
1696         (__gthread_key_delete): Add.
1697         (__gthread_getspecific): Add.
1698         (__gthread_setspecific): Add.
1699         
1700 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
1701
1702         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
1703         the same size types for the indirect reference on the rhs, then
1704         create a VCE.
1705
1706 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
1707
1708         * config/i386/i386.md
1709         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
1710         one insn template instead of template series.
1711         (*xordi_1_rex64): Ditto.
1712         (*xordi_2_rex64): Ditto.
1713
1714 2008-05-05  Ira Rosen  <irar@il.ibm.com>
1715
1716         PR tree-optimization/36119
1717         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
1718         in case of SLP.
1719
1720 2008-06-04  Jan Hubicka  <jh@suse.cz>
1721
1722         tree-optimization/36100
1723         * tree-pass.h (pass_O0_always_inline): Declare.
1724         * ipa-inline.c (inline_transform): Remove dead code.
1725         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
1726         pass_O0_always_inline): New.
1727         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
1728
1729 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
1730
1731         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
1732         mnemonic in this_param move for TARGET_64BIT.
1733
1734 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
1735
1736         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
1737         (*strmovsi_rex_1): Ditto.
1738         (*strsetsi_1): Ditto.
1739         (*strsetsi_rex_1): Ditto.
1740
1741         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
1742         adddicc expanders using SWI mode iterator.
1743
1744 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1745
1746         PR target/36121
1747         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
1748         argument handling.
1749
1750 2008-05-04  David S. Miller  <davem@davemloft.net>
1751
1752         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
1753         (sparc*-*-linux*): Use linux.h in tm_file.
1754         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
1755         compiler defaulting to 32-bit.
1756         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
1757         no longer needed.
1758         * config/sparc/linux.h: Remove definitions now obtained
1759         properly from linux.h
1760         * config/sparc/linux64.h: Likewise.
1761         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
1762         don't want this setting for 32-bit builds in a biarch compiler.
1763         * doc/install.texi: Add sparc-linux to list of targets
1764         supporting --enable-targets=all.
1765
1766 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
1767
1768         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
1769
1770 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
1771
1772         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
1773         after V4SI_FTYPE_V8HI.
1774         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
1775         case V4SI_FTYPE_V2DF.
1776
1777 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
1778
1779         * doc/invoke.texi (max-flow-memory-locations): Removed.
1780         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
1781         
1782 2008-05-03  Richard Guenther  <rguenther@suse.de>
1783
1784         PR middle-end/34973
1785         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
1786
1787 2008-05-02  David S. Miller  <davem@davemloft.net>
1788
1789         * config.gcc (need_64bit_hwint): Document libcpp dependency.
1790
1791 2008-05-02  Simon Baldwin <simonb@google.com>
1792
1793         PR bootstrap/36108
1794         * c-common.h (warn_array_subscript_range): Removed.
1795         * c-common.c (warn_array_subscript_range): Ditto.
1796         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
1797         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
1798
1799 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1800
1801         * config/i386/i386.c (ix86_special_builtin_type): New.
1802         (bdesc_special_args): Likewise.
1803         (ix86_expand_special_args_builtin): Likewise.
1804         (ix86_init_mmx_sse_builtins): Updated.
1805         (ix86_expand_builtin): Updated.
1806         (ix86_expand_store_builtin): Removed.
1807         (ix86_expand_unop_builtin): Likewise.
1808
1809         * config/i386/mm3dnow.h (__v2sf): Moved to ...
1810         * config/i386/mmintrin.h (__v2sf): Here.
1811
1812         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
1813         const __v2sf.
1814         (_mm_loadl_pi): Likewise.
1815         (_mm_storeh_pi): Replace __v2si with __v2sf.
1816         (_mm_storel_pi): Likewise.
1817
1818         * doc/extend.texi: Correct __builtin_ia32_loadhps,
1819         __builtin_ia32_loadlps, __builtin_ia32_storehps,
1820         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
1821         __builtin_ia32_loadlpd.
1822
1823 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1824
1825         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
1826         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
1827         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
1828         (ix86_init_mmx_sse_builtins): Updated.
1829         (ix86_expand_args_builtin): Likewise.
1830         (ix86_expand_builtin): Likewise.
1831         (ix86_expand_unop1_builtin): Renamed to ...
1832         (ix86_expand_unop_vec_merge_builtin): This.
1833
1834 2008-05-01  Jan Hubicka  <jh@suse.cz>
1835
1836         PR bootstrap/36100
1837         * ipa-inline.c (inline_generate_summary): Make static.
1838         (inline_transform): Do not call inlining at -O0; make static.
1839         * passes.c (execute_todo): Add sanity check.
1840         (execute_one_ipa_transform_pass): Execute proper flags.
1841
1842 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
1843
1844         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
1845         (DECL_NONADDRESSABLE_P): Likewise.
1846         * alias.c (record_component_aliases): Fix comment.
1847
1848 2008-05-01  Simon Baldwin <simonb@google.com>
1849
1850         * c-common.h (warn_array_subscript_range): New function.
1851         * c-common.c (warn_array_subscript_range): Ditto.
1852         * tree-vrp.c (check_array_ref): Corrected code to agree with
1853         comment, ignoring only arrays of size 0 or size 1.
1854         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
1855
1856 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1857
1858         * config/i386/i386.c (ix86_builtin_type): Replace
1859         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
1860         (bdesc_args): Updated.
1861         (ix86_init_mmx_sse_builtins): Likewise.
1862         (ix86_expand_args_builtin): Likewise.
1863
1864         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
1865         with __v1di.
1866
1867         * doc/extend.texi: Correct __builtin_ia32_palignr.
1868
1869 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1870
1871         PR target/36095
1872         * config/i386/i386.c (bdesc_crc32): Removed.
1873         (ix86_expand_crc32): Likewise.
1874         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
1875         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
1876         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
1877         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
1878         UINT_FTYPE_UINT_UCHAR.
1879         (bdesc_args): Updated. Add crc32 builtins.
1880         (ix86_init_mmx_sse_builtins): Updated.
1881         (ix86_expand_args_builtin): Updated to support subreg.
1882
1883         * doc/extend.texi: Correct __builtin_ia32_crc32di.
1884
1885 2008-05-01  Jan Hubicka  <jh@suse.cz>
1886
1887         * tree-pass.h (opt_pass): Add IPA_PASS.
1888         (varpool_node, cgraph_node): Forward declare.
1889         (ipa_opt_pass): Define.
1890         (pass_ipa_inline): Turn into ipa_opt_pass.
1891         (pass_apply_inline): Remove.
1892         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
1893         (apply_inline): Turn into ....
1894         (inline_transform): ... this one.
1895         (inline_generate_summary): New function.
1896         (pass_apply_inline): Remove.
1897         * function.h (ipa_opt_pass): Forward declare structure; typedef;
1898         vector.
1899         (struct function): Add ipa_transforms_to_apply.
1900         * passes.c (register_one_dump_file): Work on IPA_PASS.
1901         (init_optimization_passes): Remove pass_inline_parameters and
1902         pass_apply_inline.
1903         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
1904         (execute_one_pass) ... here; apply transforms when possible.
1905         (add_ipa_transform_pass, execute_ipa_summary_asses,
1906         execute_one_ipa_transform_pass): New.
1907         (execute_ipa_pass_list): Update for IPA_PASS type.
1908
1909 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1910
1911         * config/i386/i386.c (ix86_builtin_type): Add
1912         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
1913         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
1914         (bdesc_args): Add SSE4a builtins.
1915         (ix86_init_mmx_sse_builtins): Updated.
1916         (ix86_expand_args_builtin): Likewise.
1917         (ix86_expand_builtin): Likewise.
1918
1919 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1920
1921         * config/i386/i386.c (ix86_builtin_type): Add
1922         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
1923         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
1924         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
1925         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
1926         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
1927         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
1928         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
1929         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
1930         and DI_FTYPE_DI_DI_INT.
1931         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
1932         (ix86_init_mmx_sse_builtins): Updated.
1933         (ix86_expand_args_builtin): Likewise.
1934         (ix86_expand_builtin): Likewise.
1935         (ix86_expand_binop_imm_builtin): Removed.
1936
1937         * doc/extend.texi: Correct __builtin_ia32_palignr128.
1938
1939 2008-04-30  Richard Guenther  <rguenther@suse.de>
1940
1941         PR tree-optimization/32921
1942         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
1943
1944 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
1945
1946         * config/arm/arm.c (arm_unwind_emit): Use
1947         crtl->all_throwers_are_sibcalls instead of
1948         cfun->all_throwers_are_sibcalls.
1949         (arm_output_fn_unwind): Likewise.
1950         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
1951         instead of cfun->uses_pic_offset_table.
1952         (frv_expand_prologue): Likewise.
1953         (frv_frame_pointer_required): Likewise.
1954         (frv_expand_fdpic_call): Likewise.
1955         (frv_emit_movsi): Likewise.
1956         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
1957         cfun->returns_pcc_struct instead of
1958         current_function_returns_pcc_struct.
1959         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
1960         instead of cfun->calls_eh_return.
1961         (m32c_pushm_popm): Likewise.
1962         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
1963         "extern" declaration.
1964
1965 2008-04-30  Richard Guenther  <rguenther@suse.de>
1966
1967         PR tree-optimization/21636
1968         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
1969         constant address.
1970         (evaluate_stmt): Print the likely value.
1971         (ccp_visit_stmt): Avoid excessive vertical spacing.
1972
1973 2008-04-30  Rafael Espindola  <espindola@google.com>
1974
1975         * builtins.c (fold_call_expr): Return realret.
1976         * tree-ssa-threadedge.c
1977         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
1978         __builtin_object_size.
1979
1980 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
1981
1982         * gcc.c (wrapper_string): New variable.
1983         (insert_wrapper): New function.
1984         (execute): New option -wrapper.
1985         * doc/invoke.texi (Overall Options): New driver option -wrapper.
1986
1987 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
1988
1989         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
1990         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
1991         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
1992         from...
1993         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
1994         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
1995         config/rs6000/e500crtres64gprctr.asm,
1996         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
1997         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
1998         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
1999         config/rs6000/e500crtsav64gprctr.asm,
2000         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
2001         config/rs6000/e500crtsavg64gprctr.asm: New files.
2002         * config/rs6000/t-ppccomm: Add build rules for new files.
2003         (LIB2FUNCS_STATIC_EXTRA): Add new files.
2004         * config/rs6000/t-netbsd: Add build rules for new files.
2005         (LIB2FUNCS_STATIC_EXTRA): New variable.
2006         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
2007         (CRTSAVRES_DEFAULT_SPEC): Likewise.
2008         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
2009
2010 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
2011
2012         * config/i386/i386.c (ix86_builtin_type): Add
2013         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
2014         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
2015         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
2016         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
2017         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
2018         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
2019         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
2020         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
2021         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
2022         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
2023         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
2024         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
2025         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
2026         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
2027         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
2028         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
2029         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
2030         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
2031         V1DI_FTYPE_V2SI_V2SI.
2032         (bdesc_2arg): Moved to ...
2033         (bdesc_args): Here.
2034         (ix86_init_mmx_sse_builtins): Updated.
2035         (ix86_expand_args_builtin): Updated.  Take a pointer
2036         to const struct builtin_description.  Handle comparison
2037         builtin functions.
2038         (ix86_expand_sse_compare): Take a new argument for swapping operands.
2039         (ix86_expand_builtin): Updated.
2040
2041         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
2042         (ssse3_pmaddubsw128): This.
2043         (ssse3_pmaddubswv4hi3): Renamed to ...
2044         (ssse3_pmaddubsw): This.
2045
2046         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
2047         (__builtin_ia32_packssdw128): Likewise.
2048         (__builtin_ia32_packuswb128): Likewise.
2049         (__builtin_ia32_pmaddubsw): Likewise.
2050         (__builtin_ia32_pmaddubsw128): Likewise.
2051
2052 2008-04-30  Richard Guenther  <rguenther@suse.de>
2053
2054         PR tree-optimization/14847
2055         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
2056         (recognize_bits_test): Use it.
2057         (recognize_single_bit_test): Likewise.
2058
2059 2008-04-30  Martin Jambor  <mjambor@suse.cz>
2060
2061         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
2062         instead of setting number of formal parameters to zero.
2063         (ipcp_init_stage): Do not set the number of actual parameters to zero 
2064         either.
2065         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
2066         which are called with variable number of arguments.
2067         (ipcp_insert_stage): Explicitely skipping all nodes which are
2068         called with variable number of arguments.
2069         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
2070         number of parameters.
2071
2072         * ipa-prop.h (struct ipa_node_params): Added flag
2073         called_with_var_arguments
2074         (ipa_set_param_count): Added.  Changed sole setter to use it.
2075         (ipa_get_param_count): Added.  All readers of param_count
2076         converted to use it instead.
2077         (ipa_set_called_with_variable_arg): Added.
2078         (ipa_is_called_with_var_arguments): Added.
2079         (ipa_get_ith_param): Added.  All readers of param_decls converted
2080         to use it instead.
2081         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
2082         changed to use it. 
2083         (ipa_get_cs_argument_count): Added, all readers of argument_count
2084         changed to cal it.
2085         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
2086         to use it.
2087         
2088         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
2089         (struct ipcp_lattice): Renamed cval_type to type
2090         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
2091
2092         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
2093         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
2094         (ipcp_insert_stage): Changed the type of variable cvalue to tree
2095         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
2096         (build_const_val): Changed the type of parameter cvalue to tree
2097         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
2098         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
2099         
2100         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
2101         constant 
2102
2103         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
2104         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
2105         (ipa_add_method): Renamed to ipa_push_func_to_list
2106         (ipa_remove_method): Renamed to ipa_pop_func_from_list
2107         (ipa_callsite_param_count): Removed.
2108         (ipa_callsite_param_count_set): Removed.
2109         (ipa_callsite_param): Removed.
2110         (ipa_callsite_callee): Removed.
2111         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
2112         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
2113         (ipa_method_formal_count): Removed.
2114         (ipa_method_formal_count_set): Removed.
2115         (ipa_method_get_tree): Removed.
2116         (ipa_method_tree_map_create): Removed.
2117         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
2118         (ipa_create_param_decls_array): Creates the array itself
2119         (ipa_create_param_decls_array): Temporary variable info instead of 
2120         a few dereferences.
2121         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
2122         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
2123         (get_type): Removed.
2124         (ipa_jf_get_info_type): Removed.
2125         (ipa_node_create): Renamed to ipa_create_node_params
2126         (ipa_free): Renamed to ipa_free_all_node_params
2127         (ipa_nodes_create): Renamed to ipa_create_all_node_params
2128         (ipa_edges_create): Renamed to ipa_create_all_edge_args
2129         (ipa_edges_free): Renamed to ipa_free_all_edge_args
2130         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
2131         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
2132         ipa_free_all_edge_args
2133         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
2134         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
2135         (ipa_create_methodlist_node): Removed.
2136         (ipa_methodlist_method): Removed.
2137         (ipa_methodlist_method_set): Removed.
2138         (ipa_methodlist_next_method): Removed.
2139         (ipa_methodlist_next_method_set): Removed.
2140         (ipa_method_is_modified): Removed.
2141         (ipa_method_modify_create): Removed.
2142         (ipa_method_modify_init): Temporary variable info instead of a few 
2143         dereferences.
2144         (ipa_detect_param_modifications): Temporary variable info instead of 
2145         a few dereferences.
2146         (ipa_compute_jump_functions): Temporary variable info instead of 
2147         a few dereferences.
2148         (ipa_method_modify_set): Removed.
2149         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
2150         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
2151         than craph_node as the first parameter.
2152         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
2153         (ipa_method_modify_init): Removed.
2154         (ipa_compute_jump_functions): Added a temp variable instead of 
2155         repeatadly dereferencing the cgraph_edge.aux pointer
2156         (ipa_callsite_param_set_type): Removed.
2157         (ipa_compute_jump_functions): i renamed to index and moved to 
2158         an inner block
2159         (ipa_callsite_param_set_info_type_formal): Removed.
2160         (ipa_callsite_param_set_info_type): Removed.
2161         (ipa_callsite_param_map_create): Removed.
2162         (ipa_callsite_tree): Removed.
2163         (ipa_callsite_caller): Removed.
2164         (ipa_pop_func_from_list): return_method removed to return_func
2165
2166         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
2167         prefixed all values with IPA_. Changed all users.
2168         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
2169         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
2170         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
2171         (union parameter_info): Renamed to jump_func_value.
2172         (union jump_func_value): Renamed value to constant
2173         (struct ipa_jump_func): Renamed info_type to value
2174         (struct ipa_node): Renamed to ipa_node_params
2175         (struct ipa_node_params): Renamed ipa_arg_num to param_count
2176         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
2177         (struct ipa_node_params): Renamed ipa_mod to modified_flags
2178         (struct ipa_edge): Renamed to ipa_edge_args
2179         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
2180         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
2181         (struct ipa_methodlist): Renamed to ipa_func_list
2182         (struct ipa_func_list): method_p renamed to node, next_method
2183         renamed to next
2184         (ipa_methodlist_p): Removed, switched all users to struct pointer
2185         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
2186
2187 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
2188
2189         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
2190         (rs6000_emit_epilogue): Use backchain to restore only when we
2191         have a large frame.  Make use of frame pointer to restore if we
2192         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
2193
2194 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
2195
2196         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
2197         Add mode to zero_extract.
2198         (sign bit tests peepholes): (Ditto.).
2199
2200 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
2201
2202         * config/i386/i386.c (ix86_builtins): Replace Prescott New
2203         Instructions in comments with SSE3.
2204         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
2205         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
2206         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
2207         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
2208         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
2209         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
2210         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
2211         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
2212         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
2213         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
2214         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
2215         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
2216         (bdesc_sse_args): Renamed to ...
2217         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
2218         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
2219         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
2220         IX86_BUILTIN_FABSQ.
2221         (bdesc_1arg): Moved to ...
2222         (bdesc_args): Here.
2223         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
2224         Instructions in comments with SSE3.
2225         (ix86_expand_sse_operands_builtin): Renamed to ...
2226         (ix86_expand_args_builtin): This.  Updated.
2227         (ix86_expand_unop1_builtin): Update comments.
2228         (ix86_expand_builtin): Updated.
2229
2230 2008-04-29  Richard Guenther  <rguenther@suse.de>
2231
2232         PR tree-optimization/36078
2233         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
2234         Update virtual SSA form after cleaning up the CFG.
2235
2236 2008-04-29  Richard Guenther  <rguenther@suse.de>
2237
2238         PR middle-end/15255
2239         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
2240
2241 2008-04-29  Richard Guenther  <rguenther@suse.de>
2242
2243         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
2244         (compute_may_aliases): Do not call finalize_ref_all_pointers.
2245         (compute_flow_insensitive_aliasing): Do not treat
2246         PTR_IS_REF_ALL pointers special.
2247         (get_smt_for): Likewise.
2248         (may_alias_p): Re-structure.
2249         (is_escape_site): A ref-all pointer conversion is not an escape site.
2250         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
2251         PTR_IS_REF_ALL pointers special.
2252         * tree-ssa-structalias.h (struct alias_info): Remove
2253         ref_all_symbol_mem_tag field.
2254         (PTR_IS_REF_ALL): Remove.
2255
2256 2008-04-29  Richard Guenther  <rguenther@suse.de>
2257
2258         PR middle-end/36077
2259         * fold-const.c (extract_muldiv_1): In combining division constants
2260         make sure to never overflow.
2261
2262 2008-04-29  Nick Clifton  <nickc@redhat.com>
2263
2264         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
2265
2266 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2267
2268         PR bootstrap/35169
2269         * optc-gen.awk: Work around HP-UX/IA awk bug.
2270
2271 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
2272
2273         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
2274         2008-04-25 commit.
2275
2276 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
2277
2278         PR target/36073
2279         * config/i386/i386.md
2280         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
2281         Change operand 1 predicate to nonimmediate_operand.
2282
2283 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
2284
2285         PR debug/36060
2286         * dwarf2out.c (struct die_struct): Mark as chain_circular through
2287         die_sub field.
2288         * gengtype.c (walk_type, write_func_for_structure): Handle
2289         chain_circular.
2290         * doc/gty.texi: Document chain_circular.
2291
2292 2008-04-28  Richard Guenther  <rguenther@suse.de>
2293
2294         PR tree-optimization/36066
2295         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
2296         SCEV and loop.
2297
2298 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
2299
2300         PR target/36064
2301         * config/i386/i386.md
2302         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
2303         Use match_scratch instead of match_operand for operands 3 and 4.
2304
2305 2008-04-27  Richard Guenther  <rguenther@suse.de>
2306
2307         PR tree-optimization/18754
2308         PR tree-optimization/34223
2309         * tree-pass.h (pass_complete_unrolli): Declare.
2310         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
2311         loop size before and after unconditionally of UL_NO_GROWTH in effect.
2312         Rewrite loop into loop closed SSA form if it is not already.
2313         (tree_unroll_loops_completely): Re-structure to iterate over
2314         innermost loops with intermediate CFG cleanups.
2315         Unroll outermost loops only if requested or the code does not grow
2316         doing so.
2317         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
2318         loops are available.
2319         (tree_vectorize): Instead do so here.
2320         (tree_complete_unroll): Also unroll outermost loops.
2321         (tree_complete_unroll_inner): New function.
2322         (gate_tree_complete_unroll_inner): Likewise.
2323         (pass_complete_unrolli): New pass.
2324         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
2325         uses outside of the loop.
2326         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
2327         form if it is available.  
2328         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
2329         * passes.c (init_optimization_passes): Schedule complete inner
2330         loop unrolling pass before the first CCP pass after final inlining.
2331
2332 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
2333
2334         * targhooks.h (default_emutls_var_fields,
2335         default_emutls_var_init): Declare.
2336         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
2337         * target.h (struct gcc_target): Add struct emutls member.
2338         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
2339         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
2340         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
2341         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
2342         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
2343         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
2344         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
2345         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
2346         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
2347         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
2348         emit debug information.
2349         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
2350         * varasm.c: Include targhooks.h.
2351         (emutls_object_section, emutls_tmpl_section): New.
2352         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
2353         (EMUTLS_SEPARATOR): New.
2354         (prefix_name): New.
2355         (get_emutls_object_name): New.
2356         (default_emutls_var_fields): New, broken out of ...
2357         (get_emutls_object_type): ... here.  Adjust to use target hooks.
2358         (get_emutls_init_templ_addr): Adjust to use target hooks.
2359         (emutls_decl): Adjust to use target hooks.
2360         (emutls_finish): Likewise.
2361         (default_emutls_var_init): New, broken out of ...
2362         (assemble_variable): ... here.  Adjust to use target hooks.
2363         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
2364         SECCAT_EMUTLS_TMPL.
2365         * c-common.c (handle_section_attribute): Prevent overriding
2366         sections for emulated tls with special sections.
2367         * config/i386/i386.c (x86_64_elf_select_section): Add
2368         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
2369         (x86_64_elf_unique_section): Likewise.
2370         * config/vxworks.c: Include tree.h.
2371         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
2372         (vxworks_override_options): Set TLS scheme.
2373         * doc/tm.texi (Emulated TLS): New node.
2374
2375 2008-04-26  Simon Baldwin <simonb@google.com>
2376
2377         PR c/35652
2378         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
2379         with propagated string constants.
2380
2381 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
2382
2383         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
2384         constraint for operand 2 when operand 0 is memory operand.
2385         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
2386         operand 0 is memory operand.
2387         (fix_trunc<mode>_i387_with_temp): Ditto.
2388         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
2389         operand 2 when operand 1 is memory operand.
2390         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
2391         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
2392         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
2393         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
2394         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
2395         operands 2,3 and 4 when operand 1 is memory operand.
2396         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
2397         is memory operand.
2398         (fistdi2_floor_with_temp): Ditto.
2399         (fist<mode>2_floor_with_temp): Ditto.
2400         (fistdi2_ceil_with_temp): Ditto.
2401         (fist<mode>2_ceil_with_temp): Ditto.
2402         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
2403
2404 2008-04-26  David Daney  <ddaney@avtrex.com>
2405
2406         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
2407         unspec_volitile.
2408         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
2409         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
2410         UNSPEC_UPDATE_GOT_VERSION): Renumber.
2411         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
2412         (compare_and_swap_12): New insn.
2413         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
2414         * config/mips/mips.c (mips_force_binary): New function.
2415         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
2416         (mips_expand_compare_and_swap_12): New function.
2417         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
2418
2419 2008-04-25  Jan Hubicka  <jh@suse.cz>
2420
2421         PR testsuite/35843
2422         * cfgexpand.c (pass_expand): Turn into RTL pass.
2423         * passes.c (execute_one_pass): Do pass typechecking after execution.
2424         * tree-pass.h (pass_expand): Turn into RTL pass.
2425
2426         * function.h (struct rtl_data): Move here fields
2427         accesses_prior_frames, calls_eh_return, saves_all_registers,
2428         has_nonlocal_goto, has_asm_statement, is_thunk,
2429         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
2430         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
2431         arg_pointer_save_area_init from struct function; turn into bool.
2432         (struct function): Move
2433         calls_eh_return, saves_all_registers, has_nonlocal_goto,
2434         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
2435         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
2436         tail_call_emit, arg_pointer_save_area_init
2437         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
2438         (current_function_returns_struct, current_function_returns_pcc_struct,
2439         current_function_calls_setjmp, current_function_calls_alloca,
2440         current_function_accesses_prior_frames,
2441         current_function_calls_eh_return, current_function_is_thunk,
2442         current_function_stdarg, current_function_profile,
2443         current_function_limit_stack, current_function_uses_pic_offset_table,
2444         current_function_uses_const_pool, current_function_has_nonlocal_label,
2445         current_function_saves_all_registers,
2446         current_function_has_nonlocal_goto,
2447         current_function_has_asm_statement): Remove accesor macros.
2448         * ra-conflict.c (global_conflicts): Update.
2449         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
2450         (suitable_for_tail_call_opt_p): Update.
2451         * builtins.c (expand_builtin_return_addr): Update.
2452         (expand_builtin_setjmp_setup): Update.
2453         (expand_builtin_nonlocal_goto): Update.
2454         * final.c (final_start_function): Update.
2455         (profile_function): Update.
2456         (leaf_function_p): Update.
2457         (only_leaf_regs_used): Update.
2458         * df-scan.c (df_get_exit_block_use_set): Update.
2459         * dojump.c (clear_pending_stack_adjust): Update.
2460         * tree-stdarg.c (gate_optimize_stdarg): Update.
2461         * gimple-low.c (lower_function_body): Update.
2462         * global.c (compute_regsets): Update.
2463         (global_alloc): Update.
2464         * dwarf2out.c (dwarf2out_begin_prologue): Update.
2465         * expr.c (expand_assignment): Update.
2466         * dse.c (dse_step0): Update.
2467         (dse_step1): Update.
2468         * c-decl.c (store_parm_decls): Update.
2469         * local-alloc.c (combine_regs): Update.
2470         (find_free_reg): Update.
2471         * function.c (assign_parms_augmented_arg_list): Update.
2472         (assign_parm_find_data_types): Update.
2473         (assign_parms): Update.
2474         (allocate_struct_function): Update.
2475         (expand_function_start): Update.
2476         (expand_function_end): Update.
2477         (get_arg_pointer_save_area): Update.
2478         (thread_prologue_and_epilogue_insns): Update.
2479         (rest_of_match_asm_constraints): Update.
2480         * stor-layout.c (variable_size): Update.
2481         * gcse.c (gcse_main): Update.
2482         (bypass_jumps): Update.
2483         * gimplify.c (gimplify_function_tree): Update.
2484         * calls.c (emit_call_1): Update.
2485         (expand_call): Update.
2486         * bt-load.c (compute_defs_uses_and_gen): Update.
2487         * except.c (sjlj_assign_call_site_values): Update.
2488         (sjlj_emit_function_enter): Update.
2489         (can_throw_external): Update.
2490         (set_nothrow_function_flags): Update.
2491         (expand_builtin_unwind_init): Update.
2492         (expand_eh_return): Update.
2493         (convert_to_eh_region_ranges): Update.
2494         (output_function_exception_table): Update.
2495         * emit-rtl.c (gen_tmp_stack_mem): Update.
2496         * cfgexpand.c (expand_used_vars): Update.
2497         (tree_expand_cfg): Update.
2498         * cfgcleanup.c (rest_of_handle_jump): Update.
2499         * explow.c (allocate_dynamic_stack_space): Update.
2500         * varasm.c (assemble_start_function): Update.
2501         (force_const_mem): Update.
2502         (mark_constant_pool): Update.
2503         * tree-optimize.c (tree_rest_of_compilation): Update.
2504         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
2505         * tree-cfg.c (notice_special_calls): Update.
2506         (is_ctrl_altering_stmt): Update.
2507         (tree_can_make_abnormal_goto): Update.
2508         (tree_purge_dead_abnormal_call_edges): Update.
2509         * config/alpha/predicates.md: Update.
2510         * config/alpha/alpha.c (alpha_sa_mask): Update.
2511         (alpha_sa_size): Update.
2512         (alpha_does_function_need_gp): Update.
2513         (alpha_expand_prologue): Update.
2514         (alpha_start_function): Update.
2515         (alpha_output_function_end_prologue): Update.
2516         (alpha_expand_epilogue): Update.
2517         * config/frv/frv.c (frv_stack_info): Update.
2518         (frv_expand_epilogue): Update.
2519         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
2520         (s390_register_info): Update.
2521         (s390_frame_info): Update.
2522         (s390_init_frame_layout): Update.
2523         (s390_can_eliminate): Update.
2524         (save_gprs): Update.
2525         * config/spu/spu.c (spu_split_immediate): Update.
2526         (need_to_save_reg): Update.
2527         (spu_expand_prologue): Update.
2528         (spu_expand_epilogue): Update.
2529         * config/sparc/sparc.md: Update.
2530         * config/sparc/sparc.c (eligible_for_return_delay): Update.
2531         (sparc_tls_got): Update.
2532         (legitimize_pic_address): Update.
2533         (sparc_emit_call_insn): Update.
2534         (sparc_expand_prologue): Update.
2535         (output_return): Update.
2536         (print_operand): Update.
2537         (sparc_function_ok_for_sibcall): Update.
2538         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
2539         * config/m32r/m32r.md: Update.
2540         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
2541         (m32r_compute_frame_size): Update.
2542         (m32r_expand_prologue): Update.
2543         (m32r_expand_epilogue): Update.
2544         (m32r_legitimize_pic_address): Update.
2545         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
2546         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
2547         * config/i386/i386.c (ix86_frame_pointer_required): Update.
2548         (gen_push): Update.
2549         (ix86_save_reg): Update.
2550         (ix86_compute_frame_layout): Update.
2551         (ix86_expand_prologue): Update.
2552         (ix86_expand_epilogue): Update.
2553         * config/sh/sh.c (output_stack_adjust): Update.
2554         (calc_live_regs): Update.
2555         (sh5_schedule_saves): Update.
2556         (sh_expand_prologue): Update.
2557         (sh_expand_epilogue): Update.
2558         (sh_setup_incoming_varargs): Update.
2559         (sh_allocate_initial_value): Update.
2560         (sh_get_pr_initial_val): Update.
2561         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
2562         * config/sh/sh.md (label:): Update.
2563         * config/avr/avr.c (out_movhi_mr_r): Update.
2564         * config/crx/crx.h (enum): Update.
2565         * config/xtensa/xtensa.h (along): Update.
2566         * config/stormy16/stormy16.c Update.
2567         (xstormy16_compute_stack_layout): Update.
2568         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
2569         (fr30_expand_prologue): Update.
2570         * config/cris/cris.c (cris_conditional_register_usage): Update.
2571         (cris_reg_saved_in_regsave_area): Update.
2572         (cris_initial_frame_pointer_offset): Update.
2573         (cris_simple_epilogue): Update.
2574         (cris_expand_prologue): Update.
2575         (cris_expand_epilogue): Update.
2576         (cris_expand_pic_call_address): Update.
2577         (cris_asm_output_symbol_ref): Update.
2578         (cris_asm_output_label_ref): Update.
2579         * config/cris/cris.md Update.
2580         * config/iq2000/iq2000.c (compute_frame_size): Update.
2581         (iq2000_expand_epilogue): Update.
2582         * config/mt/mt.h (save_direction): Update.
2583         * config/mn10300/mn10300.c (mn10300_function_value): Update.
2584         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
2585         (ia64_secondary_reload_class): Update.
2586         * config/m68k/m68k.c (m68k_save_reg): Update.
2587         (m68k_expand_prologue): Update.
2588         (m68k_expand_epilogue): Update.
2589         (legitimize_pic_address): Update.
2590         * config/rs6000/rs6000.c (rs6000_got_register): Update.
2591         (first_reg_to_save): Update.
2592         (first_altivec_reg_to_save): Update.
2593         (compute_vrsave_mask): Update.
2594         (compute_save_world_info): Update.
2595         (rs6000_stack_info): Update.
2596         (spe_func_has_64bit_regs_p): Update.
2597         (rs6000_ra_ever_killed): Update.
2598         (rs6000_emit_eh_reg_restore): Update.
2599         (rs6000_emit_allocate_stack): Update.
2600         (rs6000_emit_prologue): Update.
2601         (rs6000_emit_epilogue): Update.
2602         (rs6000_output_function_epilogue): Update.
2603         (output_profile_hook): Update.
2604         (rs6000_elf_declare_function_name): Update.
2605         * config/rs6000/rs6000.h (rs6000_args): Update.
2606         * config/rs6000/rs6000.md: Update.
2607         * config/mcore/mcore.c (mcore_expand_prolog): Update.
2608         * config/arc/arc.c (arc_output_function_epilogue): Update.
2609         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
2610         * config/darwin.c (machopic_function_base_name): Update.
2611         * config/score/score3.c (score3_compute_frame_size): Update.
2612         (rpush): Update.
2613         (rpop): Update.
2614         (score3_epilogue): Update.
2615         * config/score/score7.c (score7_compute_frame_size): Update.
2616         (score7_prologue): Update.
2617         (score7_epilogue): Update.
2618         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
2619         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
2620         * config/arm/arm.c (use_return_insn): Update.
2621         (require_pic_register): Update.
2622         (arm_load_pic_register): Update.
2623         (arm_compute_save_reg0_reg12_mask): Update.
2624         (arm_compute_save_reg_mask): Update.
2625         (thumb1_compute_save_reg_mask): Update.
2626         (output_return_instruction): Update.
2627         (arm_output_function_prologue): Update.
2628         (arm_output_epilogue): Update.
2629         (arm_get_frame_offsets): Update.
2630         (arm_expand_prologue): Update.
2631         (thumb_pushpop): Update.
2632         (thumb_exit): Update.
2633         (thumb1_expand_prologue): Update.
2634         (thumb1_expand_epilogue): Update.
2635         (arm_unwind_emit): Update.
2636         (arm_output_fn_unwind): Update.
2637         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
2638         * config/arm/arm.md: Update.
2639         * config/pa/pa.md: Update.
2640         * config/pa/pa.c (legitimize_pic_address): Update.
2641         (compute_frame_size): Update.
2642         (hppa_expand_prologue): Update.
2643         (hppa_expand_epilogue): Update.
2644         (borx_reg_operand): Update.
2645         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
2646         (HARD_REGNO_RENAME_OK): Update.
2647         * config/mips/mips.c (mips_global_pointer): Update.
2648         (mips_save_reg_p): Update.
2649         (mips_compute_frame_info): Update.
2650         (mips_frame_pointer_required): Update.
2651         (mips_expand_prologue): Update.
2652         (mips_expand_epilogue): Update.
2653         (mips_can_use_return_insn): Update.
2654         (mips_reorg_process_insns): Update.
2655         * config/v850/v850.c (compute_register_save_size): Update.
2656         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
2657         * config/mmix/mmix.c (along): Update.
2658         (mmix_expand_epilogue): Update.
2659         * config/bfin/bfin.c (legitimize_pic_address): Update.
2660         (must_save_p): Update.
2661         (stack_frame_needed_p): Update.
2662         (add_to_reg): Update.
2663         (bfin_expand_prologue): Update.
2664         * stmt.c (expand_asm_operands): Update.
2665         * reload1.c (reload): Update.
2666         (init_elim_table): Update.
2667
2668 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
2669         
2670         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
2671         
2672 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
2673
2674         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
2675         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
2676         (mov<mode>): Removed.
2677         (*movv4sf_internal): Likewise.
2678         (*movv2df_internal): Likewise.
2679
2680 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
2681
2682         * config.gcc (crx-*-elf): Remove deprecation.
2683
2684 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
2685
2686         * config/i386/cygming-crtend.c (register_frame_ctor): Register
2687         __gcc_deregister_frame with atexit.
2688         (deregister_frame_dtor): Remove.
2689
2690 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
2691             Nathan Sidwell  <nathan@codesourcery.com>
2692
2693         * config/rs6000/rs6000.opt (mspe): Remove Var property.
2694         (misel): Likewise.
2695         * config/rs6000/rs6000.h (rs6000_spe): Declare.
2696         (rs6000_isel): Likewise.
2697         * config/rs6000/rs6000.c (rs6000_spe): New variable.
2698         (rs6000_isel): New variable.
2699         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
2700
2701 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2702
2703         PR c++/35758
2704         * c-common.c (handle_vector_size_attribute): Call
2705         lang_hooks.types.reconstruct_complex_type instead of
2706         reconstruct_complex_type.
2707         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
2708         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
2709         * langhooks.h (struct lang_hooks_for_types): Add
2710         reconstruct_complex_type hook.
2711         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
2712         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
2713
2714 2008-04-24  Richard Guenther  <rguenther@suse.de>
2715
2716         * c-common.h (check_builtin_function_arguments): Declare.
2717         * c-common.c (validate_nargs): New function.
2718         (check_builtin_function_arguments): Likewise.
2719         * c-typeck.c (build_function_call): Call
2720         check_builtin_function_arguments.
2721         * builtins.c (fold_builtin_classify): Remove error reporting code.
2722         (fold_builtin_unordered_cmp): Likewise.
2723         (fold_builtin_1): Likewise.
2724         (fold_builtin_n): Likewise.
2725
2726 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2727
2728         PR tree-optimization/36008
2729         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
2730         the original op1, rather than delta by step.
2731
2732 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
2733             Sebastian Pop  <sebastian.pop@amd.com>
2734
2735         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
2736         eliminate_local_variables_stmt, eliminate_local_variables,
2737         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
2738         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
2739         of code delimited by two edges in the CFG.
2740         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
2741         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
2742         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
2743         the case of parallelisation of reductions.
2744         (expr_invariant_in_region_p): New.
2745
2746         * tree-flow.h (gather_blocks_in_sese_region): Declared.
2747         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
2748
2749 2008-04-24  Ira Rosen  <irar@il.ibm.com>
2750             Richard Guenther  <rguenther@suse.de>
2751
2752         PR tree-optimization/36034
2753         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
2754         incapable of dealing with loads with gaps.
2755
2756 2008-04-24  Rafael Espindola  <espindola@google.com>
2757
2758         * tree-flow.h (vrp_evaluate_conditional): Change signature.
2759         * tree-ssa-propagate.c (fold_predicate_in): Update call to
2760         vrp_evaluate_conditional.
2761         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
2762         (vrp_evaluate_conditional): Split the cond argument.
2763         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
2764         (simplify_stmt_for_jump_threading): Update call to
2765         vrp_evaluate_conditional.
2766
2767 2008-04-24  Ira Rosen  <irar@il.ibm.com>
2768
2769         PR tree-optimization/35982
2770         * tree-vect-analyze.c (vect_check_interleaving): Check that the
2771         interleaved data-refs are of the same type.
2772
2773 2008-04-24  Danny Smith  <dannysmith@users.net>
2774
2775         * c-format.c (check_format_info_main): Use strncmp rather than a
2776         magic prefix to handle multichar length specs.
2777         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
2778         Don't prefix "I64" and "I32" with '\0'.
2779
2780 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2781
2782         PR target/36015
2783         * config/i386/i386.c (init_cumulative_args): Don't pass anything
2784         in registers for -m32 only if stdarg_p (fntype).
2785
2786 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
2787
2788         PR rtl-optimization/36006
2789         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
2790         temp to op0 in order to avoid invalid rtx sharing.
2791
2792 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
2793
2794         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
2795         check TREE_INVARIANT.
2796         * tree-gimple.c (is_gimple_address): New.
2797         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
2798         * tree-gimple.h (is_gimple_address): New.
2799         * tree.h (decl_address_invariant_p): New.
2800         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
2801         (build_string): Likewise.
2802         (decl_address_invariant_p): New, from is_gimple_invariant_address.
2803         (tree_invariant_p_1): Likewise.
2804         (save_expr): Use it.
2805         (tree_invariant_p): New.
2806         (skip_simple_arithmetic): Use it.
2807         (stabilize_reference_1): Use it.
2808         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
2809         simplify.
2810         (build1_stat): Drop code to compute TREE_INVARIANT.
2811         (build2_stat): Drop code to compute TREE_INVARIANT.
2812         (build3_stat): Drop code to compute TREE_INVARIANT.
2813         (build4_stat): Drop code to compute TREE_INVARIANT.
2814         (build5_stat): Drop code to compute TREE_INVARIANT.
2815         (build7_stat): Drop code to compute TREE_INVARIANT.
2816         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
2817         * tree.h (struct tree_base): Remove invariant_flag.
2818         (TREE_INVARIANT): Remove.
2819         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
2820         (fold_builtin_expect): Check TREE_CONSTANT.
2821         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
2822         * c-tree.h (c_expr_to_decl): Drop third parameter.
2823         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
2824         (build_c_cast): Don't set TREE_INVARIANT.
2825         (pop_init_level): Don't set TREE_INVARIANT.
2826         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
2827         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
2828         TREE_CONSTANT.
2829         (gimplify_init_constructor): Don't set TREE_INVARIANT.
2830         (gimplify_addr_expr): Adjust comment.
2831         * tree-mudflap.c (mf_build_string):
2832         * print-tree.c (print_node): Don't print TREE_INVARIANT.
2833         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
2834         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
2835         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
2836         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
2837         * langhooks.h (struct lang_hooks): Drop third parameter from
2838         expr_to_decl.
2839
2840 2008-04-23  Richard Guenther  <rguenther@suse.de>
2841
2842         PR tree-optimization/27799
2843         PR tree-optimization/32921
2844         PR tree-optimization/32624
2845         * tree-ssa-structalias.c (merge_smts_into): Only merge the
2846         SMTs aliases and the tag itself into the solution.
2847         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
2848         merge the points-to solution back into the SMT aliases.
2849         (may_alias_p): Use alias_set_subset_of instead of
2850         aliases_conflict_p.  A pointer which points to
2851         memory with alias set zero may access any variable.
2852
2853 2008-04-23  Richard Guenther  <rguenther@suse.de>
2854
2855         * alias.c (alias_set_subset_of): Correctly handle asking
2856         if zero is a subset of an alias set with zero child.
2857         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
2858         (compute_flow_insensitive_aliasing): Correctly walk all
2859         pointers.  Do not unnecessarily union sets.
2860
2861 2008-04-23  Richard Guenther  <rguenther@suse.de>
2862
2863         PR middle-end/36021
2864         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
2865
2866 2008-04-22  Tomas Bily  <tbily@suse.cz>
2867
2868         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
2869         unreachable case.
2870         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
2871         NON_LVALUE_EXPR.
2872         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
2873         * tree-ssa-structalias.c (get_constraint_for): Likewise.
2874         * tree-inline.c (estimate_num_insns_1): Likewise.
2875         * varasm.c (const_hash_1, compare_constant, copy_constant)
2876         (compute_reloc_for_constant, output_addressed_constants): Likewise.
2877         * emit-rtl.c (component_ref_for_mem_expr)
2878         (set_mem_attributes_minus_bitpos): Likewise.
2879         * expr.c (highest_pow2_factor, expand_expr_real_1, )
2880         (is_aligning_offset): Likewise.
2881         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
2882         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
2883         * dojump.c (do_jump): Likewise.
2884         * builtins.c (get_pointer_alignment, get_memory_rtx)
2885         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
2886         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
2887
2888 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
2889
2890         PR rtl-optimization/36017
2891         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
2892         expanding the library call.
2893
2894 2008-04-22  Ian Lance Taylor  <iant@google.com>
2895
2896         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
2897         than size_in_bytes.
2898
2899 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
2900
2901         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
2902         of LR/CTR moves for Power6.
2903
2904 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
2905
2906         PR middle-end/36003
2907         * passes.c (init_optimization_passes): Remove
2908         pass_fast_rtl_byte_dce.
2909         
2910 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
2911
2912         PR target/29096
2913         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
2914         builtin functions to generate faster code.
2915         (_mm_cvtpu16_ps): Ditto.
2916         (_mm_cvtpi32x2_ps): Ditto.
2917
2918 2008-04-22  Nick Clifton  <nickc@redhat.com>
2919
2920         * common.opt (ftree-loop-distribution): Add Optimization
2921         attribute.
2922
2923         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
2924         (frv_expand_builtin_va_start): Likewise.
2925
2926         * config/arm/arm.c (thumb_find_work_register): Fix location of
2927         argument register count.
2928
2929 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2930
2931         Support scheduling for ColdFire V1 and V3 microarchitecture.
2932         Improve scheduling of multiplication instructions.
2933
2934         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
2935         (mac): New instruction attribute.
2936         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
2937         (m68k_sched_mac): New variable.
2938         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
2939         Handle cfv1 and cfv3.
2940         (max_insn_size): New static variable.
2941         (struct _sched_ib): New type.
2942         (sched_ib): New static variable.
2943         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
2944         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
2945         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
2946         Update.
2947         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
2948         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
2949         new variables.  Update.
2950         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2951         Add modeling of cfv3 instruction buffer.  Update.
2952         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
2953         * config/m68k/m68k.h (TUNE_CFV3): New macro.
2954         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
2955         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
2956         a particular reservation applies to.
2957         (type2): Reorganize attribute values.  Rename alu to alu_reg,
2958         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
2959         to mul_l and mul_w.
2960         (cf_ib_*): Simplify description of instruction buffer.
2961         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
2962         (cf_mem): Split into cf_mem1 and cf_mem2.
2963         (cf_v2_move_??): Rename to cfv12_alu_??.
2964         (cf_v2_move_l_??): Rename to cfv12_omove_??.
2965         (cf_v2_mul_??): Remove reservations.
2966         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
2967         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
2968         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
2969         appropriate place.
2970         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
2971         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
2972         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
2973         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
2974         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
2975         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
2976         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
2977         expansions of the above reservations for instructions of sizes
2978         1, 2 and 3 words.
2979
2980 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2981
2982         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
2983
2984 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
2985
2986         * coverage.c: Include tree-pass.h.
2987         (coverage_counter_alloc): Print da_file_name to the dump file.
2988
2989 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
2990
2991         * sbitmap.c (sbitmap_range_empty_p): New function.
2992         * sbitmap.h (sbitmap_range_empty_p): New function.
2993         * bitmap.h: Now includes obstack.h.
2994
2995 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
2996             Kenneth Zadeck  <zadeck@naturalbridge.com>
2997
2998         * dbgcnt.def (ra_byte_scan): Added.
2999         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
3000         when the last hit happens for a counter.  
3001         * timevar.def (TV_DF_BYTE_LR): New variable.
3002         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
3003         * passes.c (pass_fast_rtl_byte_dce): New pass.
3004         * fwprop.c (update_df): Added mode to call df_ref_create.
3005         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
3006         DF_REF_EXTRACT_OFFSET.
3007         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
3008         DF_BYTE_LR_OUT, df_byte_lr): New macro.
3009         (df_mm): New enum.
3010         (df_ref_extract): Added mode field.
3011         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
3012         DF_REF_EXTRACT_OFFSET.
3013         (DF_REF_EXTRACT_MODE): New macro.
3014         (df_byte_lr_bb_info): New structure.
3015         (df_print_byte_regset, df_compute_accessed_bytes, 
3016         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
3017         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
3018         df_byte_lr_simulate_uses,
3019         df_byte_lr_simulate_artificial_refs_at_top,
3020         df_byte_lr_simulate_artificial_refs_at_end,
3021         df_compute_accessed_bytes): New function.
3022         (df_ref_create): Add parameter.
3023         (df_byte_lr_get_bb_info): New inline function.
3024         * df-scan.c (df_ref_record, df_uses_record,
3025         df_ref_create_structure): Added mode parameter.
3026         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
3027         df_defs_record, df_uses_record, df_get_conditional_uses,
3028         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
3029         df_entry_block_defs_collect, df_exit_block_uses_collect):
3030         Added mode parameter to calls to df_ref_record, df_uses_record,
3031         df_ref_create_structure.
3032         (df_ref_equal_p, df_ref_compare): Added test for modes.
3033         (df_ref_create_structure): Added code to set mode.  Renamed
3034         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
3035         DF_REF_EXTRACT_OFFSET.
3036         * df-core.c (df_print_byte_regset): New function.
3037         * df-byte-scan.c: New file.
3038         * df-problems.c (df_rd_transfer_function): Removed unnecessary
3039         calls to BITMAP_FREE.  
3040         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
3041         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
3042         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
3043         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
3044         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
3045         df_byte_lr_local_compute, df_byte_lr_init,
3046         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
3047         df_byte_lr_transfer_function, df_byte_lr_free, 
3048         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
3049         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
3050         df_byte_lr_simulate_uses,
3051         df_byte_lr_simulate_artificial_refs_at_top,
3052         df_byte_lr_simulate_artificial_refs_at_end): New function.
3053         * dce.c (byte_dce_process_block): New function.
3054         (dce_process_block): au is now passed in rather than computed
3055         locally.  Changed loops that look at artificial defs to not look
3056         for conditional or partial ones, because there never are any.  
3057         (fast_dce): Now is able to drive byte_dce_process_block or 
3058         dce_process_block depending on the kind of dce being done.
3059         (rest_of_handle_fast_dce): Add parameter to fast_dce.
3060         (rest_of_handle_fast_byte_dce): New function.
3061         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
3062         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
3063
3064 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
3065
3066         PR fortran/35019
3067         * gcc.h: Added fortran options that take arguments to
3068         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
3069         macros.
3070
3071 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3072
3073         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
3074         scalarization if on the LHS and not a full access.
3075
3076 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3077
3078         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
3079
3080 2008-04-18  Rafael Espindola  <espindola@google.com>
3081
3082         * tree-vrp.c (find_case_label_index): Fix the binary search.
3083         (find_case_label_range): New.
3084         (vrp_visit_switch_stmt): Use find_case_label_range.
3085         (simplify_switch_using_ranges): Use find_case_label_range.
3086
3087 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3088
3089         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
3090         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
3091
3092 2008-04-18  Tom Tromey  <tromey@redhat.com>
3093
3094         PR libcpp/15500:
3095         * doc/cpp.texi (Implementation-defined behavior): Mention
3096         -finput-charset.
3097
3098 2008-04-18  Ian Lance Taylor  <iant@google.com>
3099
3100         * fold-const.c (pointer_may_wrap_p): New static function.
3101         (fold_comparison): Add another test for pointer overflow.  Use
3102         pointer_may_wrap_p to disable some false positives.
3103
3104 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
3105           
3106         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
3107         (fname_as_string): Match updated cpp_interpret_string prototype.
3108         (fix_string_type): Support char16_t* and char32_t*.
3109         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
3110         derivative) nodes.  Register as builtin if C++0x.
3111         (c_parse_error): Support CPP_CHAR{16,32}.
3112         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
3113         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
3114         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
3115         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
3116         CTI_CHAR32_ARRAY_TYPE>: New elements.
3117         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
3118         char32_type_node, signed_char32_type_node, char16_array_type_node,
3119         char32_array_type_node): New defines.
3120         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
3121         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
3122         (lex_string): Support CPP_STRING{16,32}, match updated
3123         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
3124         (lex_charconst): Support CPP_CHAR{16,32}.
3125         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
3126         and CPP_STRING{16,32}.
3127
3128 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
3129
3130         PR bootstrap/35457
3131         * aclocal.m4: Regenerate.
3132         * configure: Regenerate.
3133
3134 2008-04-18  Jan Hubicka  <jh@suse.cz>
3135
3136         * except.c (dw2_size_of_call_site_table,
3137         sjlj_size_of_call_site_table): Use vector API for call_site_record.
3138
3139         * cgraphbuild.c (build_cgraph_edges): Update.
3140         * tree-pass.h: Update comment.
3141         * final.c (leaf_function_p): Update.
3142         (leaf_renumber_regs): Update.
3143         (rest_of_clean_state): Update.
3144         * omp-low.c (expand_omp_parallel): Update.
3145         * ipa-reference.c (analyze_function): Update.
3146         * reorg.c (find_end_label): Update.
3147         (optimize_skip): Update.
3148         (fill_simple_delay_slots): Update.
3149         (fill_simple_delay_slots): Update.
3150         (make_return_insns): Update.
3151         (dbr_schedule): Update.
3152         * gimple-low.c (record_vars_into): Update.
3153         * cfgbuild.c (make_edges): Update.
3154         * function.c (assign_stack_local): Update.
3155         (assign_parm_adjust_stack_rtl): Update.
3156         (locate_and_pad_parm): Update.
3157         (allocate_struct_function): Do not initialize stack_alignment_needed
3158         and preferred_stack_boundary here.
3159         (stack_protect_prologue): Update.
3160         (stack_protect_epilogue): Update.
3161         (expand_function_start): Initialize stack_alignment_needed,
3162         preferred_stack_boundary and max_jumptable_ents.
3163         (expand_function_end): Update.
3164         (free_after_compilation): Do not NULLify epilogue_delay_list.
3165         * function.h (struct rtl_data): Add stack_protect_guard,
3166         stack_alignment_needed,
3167         preferred_stack_boundary, epilogue_delay_list.
3168         (struct function): Remove value_histograms, stack_alignment_needed,
3169         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
3170         last_label_uid,
3171         unexpanded_var_list, stack_protect_guard.
3172         (current_function_epilogue_delay_list): Remove.
3173         * ipa-type-escape.c (analyze_function): Update.
3174         * gimplify.c (pop_gimplify_context): Update comment.
3175         * calls.c (expand_call): Update.
3176         (emit_library_call_value_1): Update.
3177         * except.c (set_nothrow_function_flags): Update.
3178         * cfgexpand.c (get_decl_align_unit): Update.
3179         (create_stack_guard): Update.
3180         (estimated_stack_frame_size): Update.
3181         (expand_used_vars): Update.
3182         (tree_expand_cfg): Free histogram earliers, init expansion variables.
3183         * explow.c (allocate_dynamic_stack_space): Update.
3184         * tree-ssa-live.c (remove_unused_locals): Update.
3185         * varasm.c (mark_constant_pool): Update.
3186         * tree-inline.c (remap_decls): Update.
3187         (initialize_cfun): Update.
3188         (declare_return_variable): Update.
3189         (inline_forbidden_p): Update.
3190         (expand_call_inline): Update.
3191         (declare_inline_vars): Update.
3192         (tree_function_versioning): Update.
3193         * tree-flow.h (value_histograms): New.
3194         (VALUE_HISTOGRAMS): New macro.
3195         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
3196         last_label_uid.
3197         * tree-cfg.c (set_bb_for_stmt): Update.
3198         (replace_by_duplicate_decl): Update.
3199         (move_block_to_fn): Update.
3200         (new_label_mapper): Update.
3201         (dump_function_to_file): Update.
3202         * ipa-struct-reorg.c (build_data_structure): Update.
3203         * cfgrtl.c (print_rtl_with_bb): Update.
3204         * reload1.c (reload): Update.
3205         (reload): Update.
3206         * config/i386/i386.c (setup_incoming_varargs_64,
3207         ix86_compute_frame_layout): Update.
3208         * config/arc/arc.c (arc_output_function_epilogue): Update.
3209
3210 2008-04-18  Marius Strobl <marius@FreeBSD.org>
3211
3212         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
3213         for FreeBSD as well.
3214         * gthr-posix95.h: Likewise.
3215
3216 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
3217
3218         PR rtl-optimization/35838
3219         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
3220         out the byte offset of the first subreg.
3221
3222 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
3223
3224         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
3225         to split_ti instead of three separate calls with single member arrays.
3226         (subti3 splitter): Ditto.
3227         (adddi3 splitter): Ditto with split_di.
3228         (subdi3 splitter): Ditto.
3229         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
3230         two separate calls with single member arrays.  Swap match_dup
3231         operands 1 and 2 to better fit into the array.
3232         (negdi2 splitter): Ditto with split_di.
3233         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
3234         two separate calls with single member arrays.  Swap match_dup operands
3235         6 and 7 to better fit into the array.
3236
3237 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
3238
3239         * config/i386/i386.c (sse_builtin_type): New.
3240         (bdesc_sse_args): Likewise.
3241         (bdesc_sse_3arg): Removed.
3242         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
3243         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
3244         IX86_BUILTIN_ROUNDPS.
3245         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
3246         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
3247         IX86_BUILTIN_ROUNDPS.
3248         (ix86_expand_sse_4_operands_builtin): Removed.
3249         (ix86_expand_sse_operands_builtin): New.
3250         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
3251         and CODE_FOR_sse4_1_roundps.
3252         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
3253         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
3254
3255 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
3256
3257         PR target/35907
3258         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
3259         regs before frame pop when needed.  If use_backchain_to_restore_sp
3260         then load backchain into a temp reg to restore vr and vrsave.  Add
3261         code to restore vr after frame pop if possible.
3262
3263 2008-04-17  Richard Guenther  <rguenther@suse.de>
3264
3265         * tree-vn.c (expressions_equal_p): Do not check type
3266         equality or compatibility before calling operand_equal_p.
3267         * fold-const.c (operand_equal_p): Check equivalence of
3268         integer constants before bailing out due to signedness or
3269         precision differences.
3270         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
3271         spurious differences in type qualification.  Ignore types
3272         for COMPONENT_REFs at all.
3273
3274 2008-04-17  Christian Bruel  <christian.bruel@st.com>
3275
3276         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
3277         msw_skip comparison.
3278         
3279 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
3280
3281         PR c/35739
3282         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
3283         reg type.
3284
3285         PR tree-optimization/35899
3286         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
3287         rather than TREE_OPERAND.
3288
3289 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
3290
3291         PR target/35944
3292         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
3293         temporary registers.  Change operand predicate to general_operand.
3294         (remainderxf3): Ditto.
3295
3296 2008-04-16  Richard Guenther  <rguenther@suse.de>
3297
3298         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
3299         * tree-affine.c (aff_combination_expand): Look through some
3300         conversions.
3301
3302 2008-04-15  Doug Kwan  <dougkwan@google.com>
3303
3304         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
3305         for hex printing.
3306         * tree-pretty-print.c (dump_generic_node): Ditto.
3307         * final.c (output_addr_const): Ditto.
3308         * dwarf2out.c (output_cfi): Ditto.
3309         * c-pretty-print.c (pp_c_integer_constant): Ditto.
3310         * print-rtl.c (print_rtx): Ditto.
3311         * print-tree.c (print_node_brief, print_node): Ditto.
3312         * c-common.c (match_case_to_enum_1): Ditto.
3313         * sched-vis.c (print_value): Ditto.
3314         * config/i386/i386.c (print_operand): Cast to long unsigned int
3315         for hex printing.
3316
3317 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
3318         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
3319         MS Windows VirtualProtect function.
3320
3321 2008-04-15  Jan Hubicka  <jh@suse.cz>
3322
3323         * gengtype.c (write_root): Param_is argument is OK.
3324         * expr.c (expand_expr_real_1): Update call of get_exception_*.
3325         * function.h: Include varray.h
3326         (rtl_eh): New stucture based on except.c one.
3327         (call_site_record): New forward declaration and vector type.
3328         * calls.c (emit_call_1): Do not call
3329         note_current_region_may_contain_throw.
3330         * except.c (eh_status): Remove cur_region, try_region since they are
3331         unused.
3332         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
3333         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
3334         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
3335         Remove call_site_data_used, call_site_data_size.
3336         Turn call_site_record into vector in function.h.
3337         (note_current_region_may_contain_throw): Remove.
3338         (get_exception_pointer, get_exception_filter): Do not take struct
3339         function argument; update.
3340         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
3341         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
3342         build_post_landing_pads, dw2_build_landing_pads,
3343         sjlj_assign_call_site_values, sjlj_mark_call_sites,
3344         sjlj_emit_function_enter, sjlj_emit_function_enter, 
3345         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
3346         sjlj_build_landing_pads, finish_eh_generation,
3347         remove_exception_handler_label, remove_eh_handler,
3348         maybe_remove_eh_handler, add_reachable_handler,
3349         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
3350         add_action_record, collect_one_action_chain, add_call_site,
3351         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
3352         sjlj_output_call_site_table, output_function_exception_table,
3353         * except.h (note_current_region_may_contain_throw): Remove
3354         (get_exception_pointer, get_exception_filter): Do not take struct
3355         function argument.
3356         * Makefile.in (GTFILES): Put varargs before struct function.
3357
3358 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3359
3360         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
3361         punt for STRING_CST.
3362         (get_constraint_for): Deal with STRING_CST here instead.
3363
3364 2008-04-15  Richard Guenther  <rguenther@suse.de>
3365
3366         * tree-ssa-propagate.c (substitute_and_fold): Substitute
3367         statements in a basic-block with a backward walk.  Do not
3368         substitute into dead statements but instead remove those.
3369
3370 2008-04-15  Richard Guenther  <rguenther@suse.de>
3371
3372         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
3373         to zero, thus disable creation of SFTs.
3374
3375 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3376
3377         * tree-predcom.c (suitable_reference_p): Return false if the
3378         reference can throw.
3379
3380 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
3381
3382         PR c/35751
3383         * c-decl.c (finish_decl): If extern or static var has variable
3384         size, set TREE_TYPE (decl) to error_mark_node.
3385
3386 2008-04-15  Rafael Espindola  <espindola@google.com>
3387
3388         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
3389         variable arg1.
3390
3391 2008-04-15  Richard Guenther  <rguenther@suse.de>
3392
3393         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
3394         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
3395         (visit_reference_op_load): Do walk vuse-vdef chains on
3396         vn_reference_lookup.
3397         (visit_reference_op_store): But do not here.
3398         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
3399         vn_reference_lookup.
3400         (vn_lookup_with_vuses): But do so here.
3401
3402 2008-04-14  Ian Lance Taylor  <iant@google.com>
3403
3404         * fold-const.c (fold_overflow_warning): Remove assertion.
3405
3406 2008-04-15  Ben Elliston  <bje@au.ibm.com>
3407
3408         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
3409         temp1 local variables.
3410
3411 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
3412
3413         PR target/35661
3414         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
3415         ".text.unlikely" section as executable.
3416
3417 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
3418
3419         * config/ia64/ia64.c (rtx_needs_barrier): Handle
3420         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
3421         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
3422         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
3423         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
3424         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
3425         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
3426
3427 2008-04-14  Ian Lance Taylor  <iant@google.com>
3428
3429         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
3430         * fold-const.c (fold_comparison): If appropriate, test
3431         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
3432         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
3433         reassociating a pointer type.
3434         * doc/invoke.texi (Optimize Options): Document that
3435         -fstrict-overflow applies to pointer wraparound.
3436
3437 2008-04-13  Jan Hubicka  <jh@suse.cz>
3438
3439         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
3440
3441 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
3442
3443         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
3444         we are going to "save the world".
3445
3446 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
3447
3448         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
3449         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
3450         operand 0 constraint, not "=".
3451
3452 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
3453
3454         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
3455
3456 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
3457
3458         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
3459         of size of positions_needed * CHAR_BIT.
3460
3461 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
3462
3463         PR middle-end/35897
3464         * dse.c (store_info): Change positions_needed to unsigned
3465         HOST_WIDE_INT.
3466         (lowpart_bitmask): New.
3467         (record_store): Cast to unsigned HOST_WIDE_INT for
3468         positions_needed.  Assert width <= size of positions_needed *
3469         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
3470         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
3471         lowpart_bitmask to set mask.
3472
3473 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3474
3475         * config/bfin/constraints.md: New file.
3476         * config/bfin/bfin.md: Include it.
3477         (adddi3): Use satisfies_constraint functions instead of the old macros.
3478         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
3479         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
3480         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
3481         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
3482         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
3483         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
3484         EXTRA_CONSTRAINT): Delete.
3485         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
3486         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
3487         of the old macros.
3488         * config/bfin/bfin.c: Include "tm-constrs.h".
3489         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
3490         Use satisfies_constraint functions instead of the old macros.
3491         * doc/md.texi (Blackfin Constraints): Update file name reference.
3492
3493 2008-04-11  Richard Guenther  <rguenther@suse.de>
3494
3495         PR tree-optimization/35869
3496         * tree-vrp.c (execute_vrp): Move switch statement update after
3497         jump threading.  Schedule another cfg cleanup run.
3498
3499 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
3500
3501         PR c/35744
3502         * attribs.c (decl_attributes): Return early on errorneous node.
3503
3504 2008-04-10  Oleg Ryjkov  <olegr@google.com>
3505
3506         * tree.h (struct tree_base): Added a new flag default_def_flag.
3507         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
3508
3509 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
3510
3511         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
3512
3513 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3514
3515         PR target/35768
3516         * pa.md: Define mode iterator P.  Define mode attribute dwc.
3517         (dcacheflush): Update pattern to use iterator P and attribute dwc.
3518         (icacheflush): Likewise.
3519         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
3520         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
3521
3522 2008-04-11  Ben Elliston  <bje@au.ibm.com>
3523
3524         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
3525
3526 2008-04-10  Rafael Espindola  <espindola@google.com>
3527
3528         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
3529         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
3530         (extract_range_from_expr): The same.
3531
3532 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
3533
3534         * config/mips/mips.md (GPR2): New mode iterator.
3535         (seq): Add comment.
3536         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
3537         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
3538         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
3539         Rewrite these to take two modes, the mode of comparison and the
3540         mode of the destination.
3541         * config/mips/mips.c (mips_expand_scc): Instead of having
3542         paradoxical subreg as destination, expand "narrowing" scc if mode
3543         of comparison is SI and target is requested in DI mode.
3544         (mips_emit_int_order_test): Update comment.  Make mode of
3545         comparison match CMP0 rather than TARGET.  When creating inverse
3546         target use mode of TARGET.
3547
3548 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
3549
3550         * gcov-dump.c (tag_summary): Only print summaries for the first
3551         GCOV_COUNTERS_SUMMABLE counters.
3552
3553 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
3554
3555         * config/i386/i386.md (absneg): New code iterator.
3556         (absnegprefix): New code attribute.
3557         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
3558         patterns using absneg code iterator.
3559         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
3560         using absneg code iterator.
3561         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
3562         *neg<mode>2 patterns using absneg code iterator.
3563         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
3564         *negextendsfdf2 patterns using absneg code iterator.
3565         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
3566         *negextendsfxf2 patterns using absneg code iterator.
3567         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
3568         *negextendsfdf2 patterns using absneg code iterator.
3569         * config/i386/sse.md (<code><mode>2): Macroize expander from
3570         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
3571
3572 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
3573
3574         * config/s390/s390.h: Remove the remains of the recent search
3575         & replace action of current_function_outgoing_args_size.
3576
3577 2008-04-10  Ira Rosen  <irar@il.ibm.com>
3578
3579         PR tree-optimization/35821
3580         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
3581         NEW_STMT_LIST is not NULL.
3582
3583 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
3584
3585         PR libstdc++/35597
3586         * toplev.c (process_options): Remove -ffunction-sections debugging
3587         warning.
3588
3589 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
3590
3591         PR middle-end/PR28690
3592         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
3593         than gen_rtx_fmt_ee to perform more canonicalizations.
3594
3595 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3596
3597         PR driver/35665
3598         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
3599
3600 2008-04-09  Richard Guenther  <rguenther@suse.de>
3601
3602         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
3603         (dump_function_to_file): Dump function arguments with types.
3604
3605 2008-04-08  Richard Guenther  <rguenther@suse.de>
3606
3607         * fold-const.c (fold_widened_comparison): Do not allow
3608         sign-changes that change the result.
3609
3610 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
3611
3612         PR target/35839
3613         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
3614         kinds of indirect references.
3615
3616 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
3617
3618         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
3619         GNU Fortran language string.
3620
3621 2008-04-08  Rafael Espindola  <espindola@google.com>
3622
3623         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
3624         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
3625         * tree.h (tree_call_nonnegative_warnv_p): New.
3626
3627 2008-04-08  Jan Hubicka  <jh@suse.cz>
3628
3629         * function.c (free_after_compilation): Clear out regno_reg_rtx
3630         pointer.
3631
3632 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
3633
3634         Revert
3635         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
3636
3637         PR middle-end/PR28690
3638         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
3639         same precedence as REG_POINTER and MEM_POINTER operands.
3640
3641 2008-04-08  Richard Guenther  <rguenther@suse.de>
3642
3643         PR middle-end/35834
3644         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
3645         for adding index to base.
3646
3647 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
3648
3649         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
3650         (MINGW_ENABLE_EXECUTE_STACK): New.
3651         (IN_LIBGCC2): For libgcc include windows.h file for
3652         function declarations.
3653
3654 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
3655
3656         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
3657         and tem2 if tem1 is not a REG or MULT.
3658
3659 2008-04-08  Jan Hubicka  <jh@suse.cz>
3660
3661         * function.h (incomming_args): Break out of struct function.
3662         (function_subsections): Break out of struct function.
3663         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
3664         return_rtx and hard_reg_initial_vals from struct function.
3665         Kill inl_max_label_num.
3666         (current_function_pops_args, current_function_args_info,
3667         current_function_args_size, current_function_args_size,
3668         current_function_pretend_args_size,
3669         current_function_outgoing_args_size,
3670         current_function_internal_arg_pointer, current_function_return_rtx):
3671         Kill compatibility accestor macros.
3672         * builtins.c (expand_builtin_apply_args_1): Update.
3673         (expand_builtin_next_arg): Update.
3674         * df-scan.c (df_get_call_refs): Update.
3675         * dbxout.c (dbxout_function_end): Update.
3676         * dwarf2out.c (dwarf2out_switch_text_section): Update.
3677         (output_line_info): Update.
3678         (secname_for_decl): Update.
3679         (dwarf2out_var_location): Update.
3680         * function.c (free_after_compilation): Update.
3681         (assign_parm_find_stack_rtl): Update.
3682         (assign_parms): Update.
3683         (expand_dummy_function_end): Update.
3684         (expand_function_end): Update.
3685         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
3686         (expand_call): Update.
3687         (emit_library_call_value_1): Update.
3688         (store_one_arg): Update.
3689         * varasm.c (initialize_cold_section_name): Update.
3690         (unlikely_text_section): Update.
3691         (unlikely_text_section_p): Update.
3692         (assemble_start_function): Update.
3693         (assemble_end_function): Update.
3694         (default_section_type_flags): Update.
3695         (switch_to_section): Update.
3696         * integrate.c (set_decl_abstract_flags): Update.
3697         (get_hard_reg_initial_val): Update.
3698         (has_hard_reg_initial_val): Update.
3699         (allocate_initial_values): Update.
3700         * resource.c (init_resource_info): Update.
3701         * config/alpha/alpha.c (NUM_ARGS): Update.
3702         (direct_return): Update.
3703         (alpha_va_start): Update.
3704         (alpha_sa_size): Update.
3705         (alpha_initial_elimination_offset): Update.
3706         (alpha_expand_prologue): Update.
3707         (alpha_start_function): Update.
3708         (alpha_expand_epilogue): Update.
3709         (unicosmk_initial_elimination_offset):
3710         * config/alpha/alpha.md (call expander): Update.
3711         * config/s390/s390.c (s390_register_info): Update.
3712         (s390_register_info): Update.
3713         (s390_frame_info): Update.
3714         (s390_initial_elimination_offset): Update.
3715         (s390_build_builtin_va_list): Update.
3716         (s390_va_start): Update.
3717         * config/spu/spu.c (direct_return): Update.
3718         (spu_expand_prologue): Update.
3719         (spu_initial_elimination_offset): Update.
3720         (spu_build_builtin_va_list): Update.
3721         (spu_va_start): Update.
3722         * config/sparc/sparc.c (sparc_init_modes): Update.
3723         (sparc_compute_frame_size): Update.
3724         (function_value): Update.
3725         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
3726         * config/i386/i386.md (return expander): Update.
3727         * config/i386/i386.c (ix86_va_start): Update.
3728         (ix86_can_use_return_insn_p): Update.
3729         (ix86_compute_frame_layout): Update.
3730         (ix86_expand_epilogue): Update.
3731         * config/sh/sh.c (output_stack_adjust): Update.
3732         (calc_live_regs): Update.
3733         (sh_expand_prologue): Update.
3734         (sh_builtin_saveregs): Update.
3735         (sh_va_start): Update.
3736         (initial_elimination_offset): Update.
3737         (sh_allocate_initial_value): Update.
3738         (sh_function_ok_for_sibcall): Update.
3739         (sh_get_pr_initial_val): Update.
3740         * config/sh/sh.md (return expander): Update.
3741         * config/avr/avr.c (frame_pointer_required_p): UPdate.
3742         * config/crx/crx.c (crx_compute_frame): UPdate.
3743         (crx_initial_elimination_offset): UPdate.
3744         * config/xtensa/xtensa.c (compute_frame_size): Update
3745         (xtensa_builtin_saveregs): Update.
3746         (xtensa_va_start): Update.
3747         (order_regs_for_local_alloc): Update.
3748         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
3749         (xstormy16_expand_builtin_va_start): Update.
3750         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
3751         * config/m68hc11/m68hc11.md (return expanders): Update.
3752         * config/m68hc11/m68hc11.c (expand_prologue): Update.
3753         (expand_epilogue): Update.
3754         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
3755         (cris_simple_epilogue): Update.
3756         (cris_expand_prologue): Update.
3757         (cris_expand_epilogue): Update.
3758         * config/iq2000/iq2000.c (iq2000_va_start): Update.
3759         (compute_frame_size): Update.
3760         * config/mt/mt.c (mt_compute_frame_size): Update.
3761         * config/mn10300/mn10300.c (expand_prologue): Update.
3762         (expand_epilogue): Update.
3763         (initial_offset): Update.
3764         (mn10300_builtin_saveregs):
3765         * config/mn10300/mn10300.md (return expander): Update.
3766         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
3767         (ia64_initial_elimination_offset): Update.
3768         (ia64_initial_elimination_offset): Update.
3769         (ia64_expand_prologue): Update.
3770         * config/m68k/m68k.md (return expander): Update.
3771         * config/rs6000/rs6000.c (rs6000_va_start): Update.
3772         (rs6000_stack_info): Update.
3773         * config/mcore/mcore.c (layout_mcore_frame): Update.
3774         (mcore_expand_prolog): Update.
3775         * config/arc/arc.c (arc_compute_frame_size): Update.
3776         * config/score/score3.c (score3_compute_frame_size): Update.
3777         * config/score/score7.c (score7_compute_frame_size): Update.
3778         * config/arm/arm.c (use_return_insn): Update.
3779         (thumb_find_work_register): Update.
3780         (arm_compute_save_reg_mask): Update.
3781         (arm_output_function_prologue): Update.
3782         (arm_output_epilogue): Update.
3783         (arm_size_return_regs): Update.
3784         (arm_get_frame_offsets): Update.
3785         (arm_expand_prologue): Update.
3786         (thumb_exit): Update.
3787         (thumb_unexpanded_epilogue): Update.
3788         (thumb1_output_function_prologue): Update.
3789         * config/pa/pa.md (return expander): Update.
3790         * config/pa/pa.c (compute_frame_size): Update.
3791         (hppa_builtin_saveregs): Update.
3792         * config/mips/mips.c (mips_va_start): Update.
3793         (mips16_build_function_stub): Update.
3794         (mips_compute_frame_info): Update.
3795         (mips_restore_gp): Update.
3796         (mips_output_function_prologue): Update.
3797         (mips_expand_prologue): Update.
3798         * config/v850/v850.c (compute_frame_size): Update.
3799         (expand_prologue): * config/mmix/mmix.c (along): update.
3800         (mmix_initial_elimination_offset): update.
3801         (mmix_reorg): update.
3802         (mmix_use_simple_return): update.
3803         (mmix_expand_prologue): update.
3804         (mmix_expand_epilogue): Update.
3805         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
3806         (emit_link_insn): Update.
3807
3808 2008-04-08  Anatoly Sokolov <aesok@post.ru>
3809
3810         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
3811         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
3812         instructions.
3813         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
3814         atmega103 device.
3815
3816 2008-04-07  Jan Hubicka  <jh@suse.cz>
3817
3818         * function.h (rtl): Rename to x_rtl.
3819         (crtl): New define.
3820         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
3821         frame_offset, stack_check_probe_note, arg_pointer_save_area,
3822         used_temp_slots avail_temp_slots, temp_slot_level,
3823         nonlocal_goto_handler_labels): Update accesstors.
3824         (rtl): New global variable.
3825         (struct function): Move some fileds to rtl_data.
3826         (get_arg_pointer_save_area): Update prototype.
3827         * builtins.c (expand_builtin_setjmp_receiver): Update call of
3828         get_arg_pointer_save_area.
3829         * expr.c (init_expr): Update
3830         * function.c (get_frame_size): Update
3831         (assign_stack_local): Update
3832         (expand_function_end): Update.
3833         (get_art_pointer_save_area): Update
3834         * function.h 
3835         * emit-rtl.c (rtl): Declare.
3836         (regno_reg_rtx): Declare.
3837         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
3838         Update.
3839         (gen_reg_rtx): Update.
3840         * varasm.c (n_deferred_constatns): Update accestor.
3841         (init_varasm_status): Do not allocate varasm_status.
3842         (force_const_mem, get_pool_size, output_constant_pool): Update.
3843         * stmt.c (force_label_rtx): Do not use x_ prefixes.
3844         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
3845         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
3846         * sparc/sparc.h (INIT_EXPANDERS): Update.
3847         * ia64/ia64.h (INIT_EXPANDERS): Update.
3848
3849 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
3850
3851         * reload.c (push_secondary_reload): Add missing break to for loop.
3852
3853 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
3854
3855         PR middle-end/PR28690
3856         * rtlanal.c: Update copyright years.
3857         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
3858         as REG_POINTER and MEM_POINTER operands.
3859         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
3860         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
3861         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
3862         * gcse.c: Update copyright years.
3863         (pre_delete): Call gen_reg_rtx_and_attrs.
3864         (hoist_code): Likewise.
3865         (build_store_vectors): Likewise.
3866         (delete_store): Likewise.
3867         * loop-invariant.c (move_invariant_reg): Likewise.
3868         Update copyright years.
3869
3870 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
3871
3872         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
3873         control string instead of quoted.
3874
3875 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
3876
3877         * doc/rtl.texi: Rewrite of subreg section.
3878
3879 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
3880
3881         PR/35842
3882         * config/i386/i386.c (legitimize_pic_address): Add treating
3883         of dllimport SYM_REF's.
3884         (legitimize_dllimport_symbol): Add prototype.
3885
3886 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3887
3888         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
3889         reference in constructor with non self-referential type.
3890
3891 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3892
3893         Removal of Return with Depressed Stack Pointer support
3894         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
3895         (ECF_SP_DEPRESSED): Likewise.
3896         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
3897         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
3898         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3899         (expand_call): Do not test ECF_SP_DEPRESSED.
3900         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3901         * function.c (keep_stack_depressed): Delete.
3902         (handle_epilogue_set): Likewise.
3903         (update_epilogue_consts): Likewise.
3904         (emit_equiv_load): Likewise.
3905         (thread_prologue_and_epilogue_insns): Remove support for Return with
3906         Depressed Stack Pointer.
3907         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3908
3909 2008-04-06  Richard Guenther  <rguenther@suse.de>
3910
3911         PR tree-optimization/35400
3912         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
3913         information from SSA_NAMEs.
3914
3915 2008-04-06  Anatoly Sokolov <aesok@post.ru>
3916
3917         * config/avr/avr.h (avr_mega_p): Remove declaration.
3918         (AVR_MEGA): Remove macro.
3919         * config/avr/avr.c (avr_mega_p): Remove variable.
3920         (avr_override_options): Remove inicializion of avr_mega_p.
3921         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3922         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3923         (avr_jump_mode): (Ditto.).
3924         (avr_output_progmem_section_asm_op): (Ditto.).
3925         (avr_asm_init_sections): (Ditto.).
3926         (avr_asm_init_sections): (Ditto.).
3927         (avr_rtx_costs): (Ditto.).
3928         * config/avr/avr.md: (Ditto.).
3929         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
3930         '__AVR_MEGA__'.
3931
3932 2008-04-06  Richard Guenther  <rguenther@suse.de>
3933
3934         PR tree-optimization/35842
3935         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
3936         is_gimple_invariant_address.
3937
3938 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3939
3940         * gcc.c (default_compilers): Sync Fortran extensions list with
3941         that in fortran/lang-specs.h.
3942         * doc/invoke.texi: Likewise.
3943         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
3944         * dwarf2out.c (gen_compile_unit_die): Likewise.
3945
3946 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
3947
3948         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
3949
3950 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
3951
3952         PR target/12329
3953         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
3954         attribute is used for nested functions.
3955
3956 2008-04-05  Jan Hubicka  <jh@suse.cz>
3957
3958         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
3959
3960         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
3961         letter argument.
3962         (dump_files): Update.
3963         (enable_rtl_dump_file): Do not accept letter argument.
3964         * tree-pass.h (dump_file_info): Remove letter argument.
3965         * toplev.c (decode_d_option): Update -da handling.
3966         * toplev.h (enable_rtl_dump_file): Update prototype.
3967         * passes.c (register_one_dump_file): Do not accept IPA argument; work
3968         it out based on pass type.
3969         (register_dump_files_1): Likewise.
3970         (init_optimization_passes): Update register_one_dump_file calls.
3971         (execute_one_pass): Sanity check that IPA passes are called at IPA
3972         level and RTL passes at RTL level.
3973         (execute_pass_list): IPA pass can not be after or subpass of
3974         GIMPLE/RTL pass.
3975         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
3976         disallov RTL subpasses of IPA subpasses.
3977
3978 2008-04-05  Ben Elliston  <bje@au.ibm.com>
3979
3980         * tree-cfg.c (need_fake_edge_p): Return false for calls to
3981         builtins that return exactly once and do not throw. Cache call to
3982         call_expr_flags.
3983
3984 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
3985
3986         PR rtl-optimization/34916
3987         PR middle-end/35519
3988         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
3989         between instruction pairs.
3990
3991 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
3992
3993         * doc/invoke.texi: Document -mbitops for SH.
3994         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
3995         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
3996         * config/sh/sh.c (print_operand): Add %t operand code.
3997         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
3998         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
3999         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
4000         (extendqihi2): Likewise.
4001         (movqi_i): Likewise.
4002         (insv): Use bset, bclr and bst instructions for SH2A if possible.
4003         (extv): Use bld instruction for SH2A if possible.
4004         (extzv): Likewise.
4005         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
4006         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
4007         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
4008         (bset.b, bclr.b): Define peepholes.
4009         * config/sh/sh.opt (mbitops): New option.
4010
4011 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
4012
4013         PR target/35620
4014         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
4015         and view convert expression.
4016
4017 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
4018
4019         PR target/35364
4020         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
4021
4022 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
4023
4024         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
4025
4026         * config/i386/cpuid.h (bit_AES): New.
4027         (bit_PCLMUL): Likewise.
4028
4029         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
4030         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
4031         SSE2 if AES or PCLMUL is enabled.
4032         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
4033         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
4034         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
4035         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
4036         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
4037         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
4038         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
4039         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
4040         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
4041         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
4042         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
4043         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
4044         __builtin_ia32_aeskeygenassist128 and
4045         __builtin_ia32_pclmulqdq128.
4046         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
4047         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
4048         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
4049
4050         * config/i386/i386.h (TARGET_AES): New.
4051         (TARGET_PCLMUL): Likewise.
4052         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
4053
4054         * config/i386/i386.md (UNSPEC_AESENC): New.
4055         (UNSPEC_AESENCLAST): Likewise.
4056         (UNSPEC_AESDEC): Likewise.
4057         (UNSPEC_AESDECLAST): Likewise.
4058         (UNSPEC_AESIMC): Likewise.
4059         (UNSPEC_AESKEYGENASSIST): Likewise.
4060         (UNSPEC_PCLMUL): Likewise.
4061
4062         * config/i386/i386.opt (maes): New.
4063         (mpclmul): Likewise.
4064
4065         * config/i386/sse.md (aesenc): New pattern.
4066         (aesenclast): Likewise.
4067         (aesdec): Likewise.
4068         (aesdeclast): Likewise.
4069         (aesimc): Likewise.
4070         (aeskeygenassist): Likewise.
4071         (pclmulqdq): Likewise.
4072
4073         * config/i386/wmmintrin.h: New.
4074
4075         * doc/extend.texi: Document AES and PCLMUL built-in function.
4076
4077         * doc/invoke.texi: Document -maes and -mpclmul.
4078
4079 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
4080
4081         * function.c (free_after_parsing): Replace with
4082         cxx_push_function_context from C++ front-end.
4083         (allocate_struct_function): Don't call langhook.
4084         * langhooks.h (struct lang_hooks_for_functions): Delete.
4085         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
4086         member "function".
4087         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
4088         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
4089         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
4090         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
4091         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
4092         remove LANG_HOOKS_FUNCTION_INITIALIZER.
4093         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
4094
4095         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
4096         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
4097         
4098 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
4099
4100         PR c/35440
4101         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
4102         for all types.
4103
4104 2008-04-04  Richard Guenther  <rguenther@suse.de>
4105
4106         PR middle-end/35823
4107         * fold-const.c (optimize_minmax_comparison): Use the correct
4108         type for the constant in the simplified comparison.
4109
4110 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
4111
4112         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
4113         Pass L2 size as "--param l2-cache-size" to the compiler.
4114         (decode_l2_cache): New function to decode L2 cache parameters using
4115         0x8000006 extended cpuid function.
4116         (detect_caches_amd): Determine parameters of L2 cache using
4117         decode_l2_caches function.
4118         (decode_caches_intel): Decode L2 cache parameters.
4119         (detect_caches_intel): Determine L2 cache parameters using
4120         decode_caches_intel and decode_l2_caches functions.
4121
4122 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
4123
4124         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
4125         secondary input reload for subword loads from the constant pool.
4126
4127 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
4128
4129         PR target/35713
4130         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
4131           constants of the appropriate size for runtime calculations.
4132
4133         PR c/35712
4134         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
4135           decimal-float literal constant zero.
4136
4137 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
4138
4139         PR c/35738
4140         * c-parser.c (c_parser_omp_atomic): Call
4141         default_function_array_conversion on the RHS.
4142
4143         PR middle-end/35818
4144         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
4145         call is_variable_sized if decl has incomplete type.
4146
4147 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
4148
4149         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
4150
4151 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
4152
4153         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
4154         iterators.
4155         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
4156         (sgt<u>): Merge sgt and sgtu into new expander.
4157         (sgt, sgtu): Remove expanders.
4158         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
4159         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
4160         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
4161         *sgtu_<mode>_mips16 into new pattern.
4162         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
4163         (sge<u>): Merge sge and sgeu into new expander.
4164         (sge, sgeu): Remove expanders.
4165         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
4166         new pattern.
4167         (*sge_<mode>, second *sge_<mode>): Remove patterns.
4168         (slt<u>): Merge slt and sltu into new expander.
4169         (slt, sltu): Remove expanders.
4170         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
4171         (*slt_<mode>, *sltu_<mode>): Remove patterns.
4172         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
4173         *sltu_<mode>_mips16 into new pattern.
4174         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
4175         (sle<u>): Merge sle and sleu into new expander.
4176         (sle, sleu): Remove expanders.
4177         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
4178         (*sle_<mode>, *sleu_<mode>): Remove patterns.
4179         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
4180         *sleu_<mode>_mips16 into new pattern.
4181         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
4182
4183 2008-04-03  Jan Hubicka  <jh@suse.cz>
4184
4185         PR tree-optimization/35795
4186         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
4187         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
4188         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
4189         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
4190         * score/score3.c (score3_output_mi_thunk): Likewise.
4191         * score/score7.c (score7_output_mi_thunk): Likewise.
4192         * mips/mips.c (mips_output_mi_thunk): Likewise.
4193
4194 2008-04-03  Richard Guenther  <rguenther@suse.de>
4195
4196         * tree-vrp.c (extract_range_from_unary_expr): Handle all
4197         conversions.  Simplify code.
4198
4199 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
4200
4201         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
4202
4203 2008-04-03  Tom Tromey  <tromey@redhat.com>
4204             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4205
4206         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
4207         * config/bfin/t-bfin-linux (generated_files): Add
4208         linux-sysroot-suffix.h.
4209         * doc/install.texi (Prerequisites): Require make 3.80.
4210         * doc/sourcebuild.texi (Front End Directory): Document new
4211         variable.
4212         * Makefile.in (generated_files): New variable.
4213         (ALL_HOST_OBJS): New variable.
4214         ($(ALL_HOST_OBJS)): New target.
4215
4216 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
4217
4218         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
4219         (remap_block): Call id->transform_lang_insert_block instead
4220         of langhook.
4221         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
4222         Set id.transform_lang_insert_block to NULL.
4223         (clone_body): Move to cp/optimize.c
4224         * tree-inline.h (struct copy_body_data): Change
4225         transform_lang_insert_block to function pointer.
4226         (copy_generic_body, copy_decl_no_change): Export.
4227         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
4228         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
4229         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
4230
4231         * c-tree.h (insert_block): Kill.
4232         * c-decl.c (insert_block): Kill.
4233
4234 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
4235
4236         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4237         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
4238         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
4239         argument.
4240         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
4241         argument, call {push,pop}_function_context from here.
4242         * c-parser.c: Use c_{push,pop}_function_context.
4243
4244         * function.c (push_function_context_to): Move meat ...
4245         (push_function_context): ... here.  Simplify.
4246         * function.c (pop_function_context_from): Move meat ...
4247         (pop_function_context): ... here.  Simplify.
4248         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
4249         leave_nested).
4250         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4251         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
4252         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
4253         * tree.h (push_function_context_to, pop_function_context_from): Remove.
4254
4255 2008-04-03  Ben Elliston  <bje@au.ibm.com>
4256
4257         * expmed.c (extract_force_align_mem_bit_field): Remove.
4258
4259 2008-04-03  Richard Guenther  <rguenther@suse.de>
4260
4261         PR middle-end/35800
4262         * expr.h (try_casesi): Adjust prototype.
4263         * expr.c (try_casesi): Take fallback label as extra parameter.
4264         Use that for gen_casesi if default_label is NULL.
4265         * stmt.c (expand_case): Pass fallback label to try_casesi,
4266         make sure to fill gaps with a fallback label if default_label
4267         is not present.
4268
4269 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
4270
4271         PR target/35801
4272         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
4273
4274 2008-04-03  Ben Elliston  <bje@au.ibm.com>
4275
4276         * expmed.c (extract_split_bit_field): Remove if (0) code.
4277         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
4278         (do_ds_constraint): Likewise.
4279
4280 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
4281
4282         * doc/cppopts.texi (-dU): Document.
4283         * c-common.h (flag_dump_macros): Update comment.
4284         * c-opts.c (handle_OPT_d): Handle -dU.
4285         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
4286         dump_queued_macros, cb_used_define, cb_used_undef): New.
4287         (init_pp_output): Handle -dU.
4288         (cb_line_change): Call dump_queued_macros.
4289         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
4290
4291 2008-04-02  Anatoly Sokolov <aesok@post.ru>
4292
4293         * config/avr/predicates.md (io_address_operand): New predicate. 
4294         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
4295         * config/avr/avr.c (avr_io_address_p): Remove function.
4296         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
4297         'avr_io_address_p' function.
4298         (out_movhi_r_mr): (Ditto.).
4299         (out_movqi_mr_r): (Ditto.).
4300         (out_movhi_mr_r): (Ditto.).
4301         (avr_address_cost): (Ditto.).
4302
4303 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
4304
4305         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
4306         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
4307         in 32bit mode when XMM registers are available to avoid store
4308         forwarding stalls.
4309         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
4310         corresponding post-reload splitters.
4311
4312 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
4313
4314         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
4315         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
4316         __builtin_ia32_roundss.
4317         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
4318         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
4319         __builtin_ia32_roundss.
4320         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
4321         IX86_BUILTIN_SHUFPD here.
4322
4323 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
4324
4325         * config/i386/i386.md (plogic): New.
4326         (plogicprefix): Likewise.
4327
4328         * config/i386/mmx.md (mmx_<code><mode>3): New.
4329         (mmx_and<mode>3): Removed.
4330         (mmx_ior<mode>3): Likewise.
4331         (mmx_xor<mode>3): Likewise.
4332
4333         * config/i386/sse.md (<code><mode>3): New.
4334         (*<code><mode>3): Likewise.
4335         (*<code><mode>3): Likewise.
4336         (<code><mode>3): Likewise.
4337         (*sse_<code><mode>3): Likewise.
4338         (*sse2_<code><mode>3): Likewise.
4339         (<code>tf3): Likewise.
4340         (*<code>tf3): Likewise.
4341         (and<mode>3): Likewise.
4342         (*and<mode>3): Likewise.
4343         (ior<mode>3): Removed.
4344         (*ior<mode>3): Likewise.
4345         (xor<mode>3): Likewise.
4346         (*xor<mode>3): Likewise.
4347         (*and<mode>3): Likewise.
4348         (*ior<mode>3): Likewise.
4349         (*xor<mode>3): Likewise.
4350         (and<mode>3): Likewise.
4351         (*sse_and<mode>3): Likewise.
4352         (*sse2_and<mode>3): Likewise.
4353         (andtf3): Likewise.
4354         (*andtf3): Likewise.
4355         (ior<mode>3): Likewise.
4356         (*sse_ior<mode>3): Likewise.
4357         (*sse2_ior<mode>3): Likewise.
4358         (iortf3): Likewise.
4359         (*iortf3): Likewise.
4360         (xor<mode>3): Likewise.
4361         (*sse_xor<mode>3): Likewise.
4362         (*sse2_xor<mode>3): Likewise.
4363         (xortf3): Likewise.
4364         (*xortf3): Likewise.
4365
4366 2008-04-02  Richard Guenther  <rguenther@suse.de>
4367
4368         PR tree-optimization/14495
4369         PR tree-optimization/34793
4370         * tree-vrp.c (struct switch_update): New structure.
4371         (to_remove_edges, to_update_switch_stmts): New VECs.
4372         (simplify_switch_using_ranges): New function.  Remove not taken
4373         case labels and edges.
4374         (simplify_stmt_using_ranges): Call it.
4375         (identify_jump_threads): Mark edges we have queued for removal
4376         so we don't thread them.
4377         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
4378         case label vector.
4379         * tree-cfg.c (group_case_labels): Deal with missing default label.
4380         (tree_verify_flow_info): Allow missing default label.
4381         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
4382         (emit_case_nodes): Likewise.
4383         (expand_case): Do not rely on the default label to be present.
4384         * expr.c (try_casesi): Deal with NULL default_label.
4385         (do_tablejump): Likewise.
4386
4387 2008-04-02  Richard Guenther  <rguenther@suse.de>
4388
4389         PR tree-optimization/14495
4390         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
4391         SWITCH_EXPR here ...
4392         (vrp_visit_switch_stmt): ... but here (new function).
4393         (find_case_label_index): New helper function.
4394         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
4395
4396 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
4397
4398         * fwprop.c: Fix ISO-C99ism.
4399
4400 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
4401
4402         PR bootstrap/35752
4403         * Makefile.in (objdir): Set it here.
4404         * configure.ac: Not here.  Find dynamic linker characteristics.
4405         * exec-tool.in: Use them.
4406         * aclocal.m4: Regenerate.
4407         * configure: Regenerate.
4408
4409 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
4410
4411         * expr.c (expand_var): Delete it.
4412         * expr.h (expand_var): Delete prototype.
4413         * function.c (expand_function_start): Use expand_decl instead.
4414         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
4415         langhook.
4416
4417 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
4418
4419         PR rtl-optimization/35542
4420         * fwprop.c (forward_propagate_and_simplify): Replace
4421         loc_reg_mentioned_in_p with reg_mentioned_p.
4422
4423 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
4424
4425         PR rtl-optimization/35281
4426         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
4427         (propagate_rtx_1): Handle PR_HANDLE_MEM.
4428         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
4429         (varying_mem_p): Move above propagate_rtx.
4430         (all_uses_available_at): Do not check MEMs.
4431
4432 2008-04-02  Rafael Espindola  <espindola@google.com>
4433
4434         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
4435         (register_edge_assert_for_2): Split the cond argument.
4436         (register_edge_assert_for_1): Adjust for the change in
4437         register_edge_assert_for_2.
4438         (register_edge_assert_for): Split the cond argument.
4439         (find_switch_asserts): Adjust for the change in
4440         register_edge_assert_for.
4441
4442 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
4443
4444         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
4445         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
4446         offsets for 64-bit mingw.
4447         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
4448         abi for x86_64-pc-mingw.
4449
4450 2008-04-02  Richard Guenther  <rguenther@suse.de>
4451
4452         * tree-vrp.c (extract_range_from_assert): Make sure to not
4453         produce range min/max with TREE_OVERFOW set.
4454         If merging a anti-range and a range keep the anti-range if
4455         the range covers all values of the type.
4456         (register_edge_assert_for_2): Only allow sign-changing
4457         conversions in detecting canonical range checks.  Also
4458         register an assert for the unsigned name if useful.
4459
4460         PR tree-optimization/35787
4461         * tree-vrp.c (vrp_val_max): New function.
4462         (vrp_val_min): Likewise.
4463         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
4464         (vrp_val_is_min): Likewise.
4465         (supports_overflow_infinity): Use vrp_val_{min,max}.
4466         (negative_overflow_infinity): Likewise.
4467         (positive_overflow_infinity): Likewise.
4468         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
4469         (is_positive_overflow_infinity): Likewise.
4470         (is_overflow_infinity): Likewise.
4471         (avoid_overflow_infinity): Use vrp_val_{min,max} and
4472         vrp_val_is_{min,max}.
4473         (set_and_canonicalize_value_range): Canonicalize anti-ranges
4474         to ranges if possible.  Avoid empty ranges.
4475
4476 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4477
4478         PR middle-end/35705
4479         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
4480         the expression is a function address.
4481
4482 2008-04-01  George Helffrich  <george@gcc.gnu.org>
4483
4484         PR fortran/35154, fortran/23057
4485         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
4486         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
4487         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
4488         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
4489         in common.
4490         (dbxout_syms): Check for COMMON-based symbol and wrap in
4491         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
4492         in bracket for efficiency.
4493
4494         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
4495         using DW_TAG_common_block + member offset.
4496         (add_pubname_string): New function.
4497         (dw_expand_expr): New function to find block name and offset for
4498         COMMON var.
4499         (common_check): New function to check whether symbol in Fortran COMMON.
4500         (gen_variable_die): If COMMON, use DW_TAG_common_block.
4501
4502 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
4503
4504         PR c/35436
4505         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
4506
4507 2008-04-02  Ben Elliston  <bje@au.ibm.com>
4508
4509         * config/v850/v850.md (casesi): Remove if (0) code.
4510         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4511         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
4512
4513 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
4514
4515         * config/i386/i386.md (rex64suffix): New mode attribute.
4516         (floathi<mode>2): Disable expander for SSE math.
4517         (*floathi<mode>2_1): New insn insn_and_split pattern.
4518         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
4519         corresponding post-reload splitters.
4520         (*floathi<mode>2_i387): New macroized insn pattern.
4521         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
4522         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
4523         insn_and_split pattern.
4524         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
4525         New macroized instruction patterns and corresponding post-reload
4526         splitters.
4527         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
4528         and corresponding post-reload splitters.
4529         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
4530         New macroized instruction patterns.
4531         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
4532         macroized instruction patterns and corresponding post-reload splitters.
4533         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
4534         corresponding post-reload splitters.
4535         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
4536         New macroized instruction patterns.
4537         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
4538         corresponding post-reload splitters.
4539         (*floatsi<mode>2_i387): New macroized instruction patterns.
4540
4541 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
4542
4543         * config/i386/i386.md (smaxmin): New.
4544         (umaxmin): Likewise.
4545         (maxminiprefix): Likewise.
4546         (maxminfprefix): Likewise.
4547         (<code><mode>3): Likewise.
4548         (smin<mode>3): Removed.
4549         (smax<mode>3): Likewise.
4550
4551         * config/i386/mmx.md (mmx_<code>v2sf3): New.
4552         (mmx_<code>v4hi3): Likewise.
4553         (mmx_<code>v8qi3): Likewise.
4554         (mmx_smaxv2sf3): Removed.
4555         (mmx_sminv2sf3): Likewise.
4556         (mmx_umaxv8qi3): Likewise.
4557         (mmx_smaxv4hi3): Likewise.
4558         (mmx_uminv8qi3): Likewise.
4559         (mmx_sminv4hi3): Likewise.
4560
4561         * config/i386/sse.md (<addsub><mode>3): New.
4562         (*<addsub><mode>3): Likewise.
4563         (<sse>_vm<addsub><mode>3): Likewise.
4564         (<maxmin><mode>3): Likewise.
4565         (*<maxmin><mode>3_finite): Likewise.
4566         (*<maxmin><mode>3): Likewise.
4567         (<sse>_vm<maxmin><mode>3): Likewise.
4568         (sse3_h<addsub>v4sf3): Likewise.
4569         (sse3_h<addsub>v2df3): Likewise.
4570         (<maxmin>v16qi3): Likewise.
4571         (*<maxmin>v16qi3): Likewise.
4572         (<maxmin>v8hi3): Likewise.
4573         (*<maxmin>v8hi3): Likewise.
4574         (*sse4_1_<maxmin><mode>3): Likewise.
4575         (*sse4_1_<maxmin><mode>3): Likewise.
4576         (add<mode>3): Removed.
4577         (*add<mode>3): Likewise.
4578         (<sse>_vmadd<mode>3): Likewise.
4579         (sub<mode>3): Likewise.
4580         (*sub<mode>3): Likewise.
4581         (<sse>_vmsub<mode>3): Likewise.
4582         (smin<mode>3): Likewise.
4583         (*smin<mode>3_finite): Likewise.
4584         (*smin<mode>3): Likewise.
4585         (<sse>_vmsmin<mode>3): Likewise.
4586         (smax<mode>3): Likewise.
4587         (*smax<mode>3_finite): Likewise.
4588         (*smax<mode>3): Likewise.
4589         (<sse>_vmsmax<mode>3): Likewise.
4590         (sse3_haddv4sf3): Likewise.
4591         (sse3_haddv2df3): Likewise.
4592         (sse3_hsubv4sf3): Likewise.
4593         (sse3_hsubv2df3): Likewise.
4594         (umaxv16qi3): Likewise.
4595         (*umaxv16qi3): Likewise.
4596         (smaxv8hi3): Likewise.
4597         (*smaxv8hi3): Likewise.
4598         (*sse4_1_smax<mode>3): Likewise.
4599         (*sse4_1_umax<mode>3): Likewise.
4600         (uminv16qi3): Likewise.
4601         (*uminv16qi3): Likewise.
4602         (sminv8hi3): Likewise.
4603         (*sminv8hi3): Likewise.
4604         (*sse4_1_smin<mode>3): Likewise.
4605         (*sse4_1_umin<mode>3): Likewise.
4606
4607 2008-04-01  Rafael Espindola  <espindola@google.com>
4608
4609         * tree-cfg.c (verify_expr): remove in_phi.
4610         (verify_stmt): Don't call walk_tree with verify_expr. Use
4611         is_gimple_min_invariant instead of is_gimple_val.
4612
4613 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
4614
4615         * doc/include/gpl_v3.texi: Update for manpage generation.
4616         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
4617         gpl.texi.
4618         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
4619         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
4620         gpl_v3.texi instead of gpl.texi.
4621         (gpl.pod): New.
4622
4623 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
4624
4625         PR pch/13675
4626         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
4627
4628 2008-04-01  Rafael Espindola  <espindola@google.com>
4629
4630         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
4631         (extract_code_and_val_from_cond): Use
4632         extract_code_and_val_from_cond_with_ops.
4633
4634 2008-04-01  Jan Hubicka  <jh@suse.cz>
4635
4636         * function.c (free_after_compilation): Free epilogue_delay_list.
4637         (prepare_function_start): Assert that previous compilation was freed.
4638
4639 2008-04-01  Jan Hubicka  <jh@suse.cz>
4640             Jim Wilson  <wilson@tuliptree.org>
4641             Andreas Tobler <andreast@gcc.gnu.org>
4642
4643         PR middle-end/35781
4644         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
4645         rtl.emit instead cfun->emit.
4646         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
4647         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
4648
4649 2008-04-01  Ben Elliston  <bje@au.ibm.com>
4650
4651         * doc/c-tree.texi (Function Basics): Fix grammatical error.
4652
4653 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
4654
4655         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
4656         New options
4657         (fprofile-use): Add var flag_profile_use
4658         * coverage.c (coverage_begin_output): Do not open a gcno file for
4659         output only if -ftest-coverage is set.
4660         Do not add getpwd() to gcda file path.
4661         (build_gcov_info): Check the new flag
4662         flag_profile_datafile_relative_path.
4663         (coverage_init): Use profile_data_prefix.
4664         Read profile counter only if flag_profile_use is set.
4665         * opts.c (common_handle_option): New option fprofile-use=,
4666         fprofile-dir=, fprofile-generate=.
4667         * toplev.c (profile_data_prefix): New variable definition.
4668         * toplev.h (profile_data_prefix): New declaration.
4669         * doc/invoke.tex (Option Summary, Optimization Options):
4670         Add new options.
4671
4672 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
4673
4674         * varasm.c (output_constant_pool_1): In LABEL_REF check,
4675         use tmp consistently.
4676
4677         PR target/35695
4678         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
4679         * config/ia64/ia64.c (rtx_needs_barrier): Handle
4680         UNSPEC_FR_RECIP_APPROX_RES.
4681         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
4682
4683 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
4684
4685         PR c/35750
4686         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
4687
4688 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4689
4690         PR middle-end/30186
4691         * fold-const.c (fold_indirect_ref_1): Support accessing non first
4692         element of the vector via a pointer.
4693
4694 2008-03-31  Ian Lance Taylor  <iant@google.com>
4695
4696         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
4697
4698 2008-03-31  Jan Hubicka  <jh@suse.cz>
4699
4700         * builtins.c (expand_builtin_setjmp_receiver): Update call of
4701         get_arg_pointer_save_area.
4702         * expr.c (init_expr): Just clear out rtl.expr.
4703         * function.c (free_after_compilation): Clear out whole RTL structure.
4704         (get_func_frame_size): Merge into ...
4705         (get_frame_size): ... this one.
4706         (assign_stack_local_1): Merge into ...
4707         (assign_stack_local): ... this one.
4708         (expand_function_end): Update call of get_arg_pointer_save_area.
4709         (get_art_pointer_save_area): Remove cfun argument.
4710         * function.h (emit_status): regno_pointer_align does not need length
4711         attribute. Move x_regno_reg_rtx to ...
4712         (regno_reg_rtx): ... new global array.
4713         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
4714         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
4715         apply_args_value, forced_labels, stack_pointer_delta):
4716         Update accestors.
4717         (struct varasm_status): Move here from varasm.c
4718         (struct rtl_data): New. Move here some fields from struct function.
4719         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
4720         frame_offset, stack_check_probe_note, arg_pointer_save_area,
4721         used_temp_slots avail_temp_slots, temp_slot_level,
4722         nonlocal_goto_handler_labels): Update accesstors.
4723         (rtl): New global variable.
4724         (struct function): Move some fileds to rtl_data.
4725         (get_arg_pointer_save_area): Update prototype.
4726         * emit-rtl.c (rtl): Declare.
4727         (regno_reg_rtx): Declare.
4728         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
4729         Update.
4730         (gen_reg_rtx): Update.
4731         (init_virtual_regs): Do not tate emit_status argument.
4732         (init_emit): Do not allocate emit.
4733         * varasm.c (varasm_statuc): Move to function.h.
4734         (n_deferred_constatns): Update accestor.
4735         (init_varasm_status): Do not allocate varasm_status.
4736         (force_const_mem, get_pool_size, output_constant_pool): Update.
4737         * stmt.c (force_label_rtx): Do not use x_ prefixes.
4738         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
4739
4740 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
4741
4742         PR rtl-optimization/35729
4743         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
4744         references.
4745
4746 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
4747
4748         PR target/32000
4749         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
4750         load/store if memory is unaligned.
4751         (*movti_rex64): Likewise.
4752
4753         * config/i386/predicates.md (misaligned_operand): New.
4754
4755 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
4756
4757         PR tree-opt/35431
4758         * tree-ssa-phiopt.c (conditional_replacement): Return early for
4759         complex types.
4760
4761 2008-03-31  Jan Beulich  <jbeulich@novell.com>
4762
4763         * config/ia64/constraints.md: Add 'j' constraint.
4764         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
4765         (movdi_internal): Likewise.
4766
4767 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
4768
4769         PR c/35748
4770         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
4771
4772 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4773
4774         PR target/35757
4775         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
4776         proper error message for the third argument on blendpd and
4777         blendps.
4778
4779         * config/i386/sse.md (blendbits): New.
4780         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
4781
4782 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
4783
4784         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
4785
4786 2008-03-30  Richard Guenther  <rguenther@suse.de>
4787
4788         PR middle-end/31023
4789         * fold-const.c (fold_sign_changed_comparison): Do leave
4790         conversions to base-types alone.
4791
4792 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4793
4794         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
4795         the link register if one altivec register is be saved.
4796
4797 2008-03-30  Ben Elliston  <bje@au.ibm.com>
4798
4799         * final.c (final_scan_insn): Remove if (0) code.
4800
4801 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
4802
4803         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
4804
4805 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4806
4807         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
4808         of V4SFmode to ix86_binary_operator_ok.
4809
4810 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
4811
4812         * config/i386/i386.c (override_options): Initialize
4813         ix86_veclib_handler to ix86_veclibabi_svml when
4814         -mveclibabi=svml is used.
4815         (ix86_veclibabi_svml): New function for SVML ABI style
4816         vectorization support.
4817         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
4818
4819 2008-03-28  Rafael Espindola  <espindola@google.com>
4820
4821         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
4822         (tree_binary_nonnegative_warnv_p): Make it public.
4823         (tree_single_nonnegative_warnv_p): Make it public.
4824         (tree_invalid_nonnegative_warnv_p): Make it public.
4825         (tree_unary_nonzero_warnv_p): Make it public.
4826         (tree_binary_nonzero_warnv_p): Make it public
4827         (tree_single_nonzero_warnv_p): Make it public.
4828         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
4829         (extract_range_from_binary_expr): Split the expr argument.
4830         (extract_range_from_unary_expr): Split the expr argument.
4831         (extract_range_from_comparison): Split the expr argument.
4832         (extract_range_from_expr): Use the new aux functions.
4833         (vrp_evaluate_conditional_warnv): Use
4834         vrp_evaluate_conditional_warnv_with_ops.
4835         * tree.h (tree_unary_nonzero_warnv_p): Declare.
4836         (tree_binary_nonzero_warnv_p): Declare.
4837         (tree_single_nonzero_warnv_p): Declare.
4838         (tree_expr_nonzero_warnv_p): Declare.
4839         (tree_unary_nonnegative_warnv_p): Declare.
4840         (tree_binary_nonnegative_warnv_p): Declare.
4841         (tree_single_nonnegative_warnv_p): Declare.
4842         (tree_invalid_nonnegative_warnv_p): Declare.
4843
4844 2008-03-28  Richard Guenther  <rguenther@suse.de>
4845
4846         PR tree-optimization/30317
4847         PR tree-optimization/30911
4848         PR tree-optimization/34793
4849         * tree-vrp.c (set_and_canonicalize_value_range): New function.
4850         (struct assert_locus_d): New member EXPR.
4851         (register_new_assert_for): Add EXPR parameter to support
4852         ASSERT_EXPR <name, expr OP limit>.
4853         (register_edge_assert_for_1): Adjust callers.
4854         (find_assert_locations): Likewise.
4855         (process_assert_insertions_for): Build condition from expression.
4856         (extract_range_from_assert): Handle ASSERT_EXPRs
4857         of the form ASSERT_EXPR <name, expr OP limit>.
4858         (register_edge_assert_for_2): New helper registering
4859         asserts for comparisons.  Recognize range tests of the form
4860         (unsigned)i - CST1 OP CST2.
4861         (register_edge_assert_for_1): Use it.
4862         (register_edge_assert_for): Likewise.
4863         (needs_overflow_infinity): Integer sub-types
4864         do not need overflow infinities.
4865         (vrp_val_is_max): The extreme values of integer sub-types
4866         are those of the base type.
4867         (vrp_val_is_min): Likewise.
4868         * tree.def (ASSERT_EXPR): Document extra allowed conditional
4869         expressions.
4870
4871 2008-03-28  Nick Clifton  <nickc@redhat.com>
4872
4873         PR target/31110
4874         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
4875         Return GENERAL_REGS for stack adjustment reloads.
4876
4877 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4878
4879         PR target/31334
4880         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
4881         const_vector when all the vectors are constant.
4882
4883 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
4884
4885         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
4886         comparisons.
4887         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
4888         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
4889         (scc_sf): New.
4890         (s<code>_sf): Use new scc_sf attribute for opcode names.
4891
4892 2008-03-27  Tom Tromey  <tromey@redhat.com>
4893
4894         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
4895         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
4896         config/spu/t-spu-elf, config/i386/t-interix,
4897         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
4898         config/i386/x-darwin, config/i386/x-mingw32,
4899         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
4900         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
4901         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
4902         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
4903         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
4904         config/rs6000/x-darwin, config/rs6000/t-rs6000,
4905         config/score/t-score-elf, config/arm/t-strongarm-pe,
4906         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
4907         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
4908         Revert automatic dependency patch.
4909
4910 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4911
4912         PR target/35657
4913         * config/i386/i386.c (ix86_function_arg_boundary): Align
4914         decimal floating point to its natural boundary.
4915
4916 2008-03-27  Richard Guenther  <rguenther@suse.de>
4917
4918         PR middle-end/35716
4919         * fold-const.c (fold_comparison): Restrict distinct decl
4920         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
4921         solely rely on operand_equal_p.
4922
4923 2008-03-27  Richard Guenther  <rguenther@suse.de>
4924
4925         PR c/32511
4926         * c-common.c (handle_weak_attribute): Reject combination of
4927         weak and inline.
4928
4929 2008-03-27  Richard Guenther  <rguenther@suse.de>
4930
4931         PR tree-optimization/32810
4932         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
4933         conversions from DECL_INITIAL.
4934         (fold_const_aggregate_ref): Likewise from constructor elements.
4935
4936 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
4937
4938         * tree-affine.h (aff_combination_expand): Declare.
4939         (get_inner_reference_aff): Likewise.
4940         * tree-affine.c (aff_combination_expand): Split out from
4941         tree_to_aff_combination_expand.
4942         (get_inner_reference_aff): New function.
4943         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
4944         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
4945         (struct lim_aux_data): sm_done field removed.
4946         (mem_ref_loc_p, mem_ref_locs_p): New types.
4947         (struct mem_ref): Added id, stored, accesses_in_loop,
4948         indep_loop, dep_loop, indep_ref, dep_ref fields.
4949         Removed is_stored, locs and next fields.
4950         (memory_accesses): New variable.
4951         (movement_possibility): Do not allow moving statements
4952         that store to memory.
4953         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
4954         New functions.
4955         (determine_max_movement): For statements with memory references,
4956         find the outermost loop in that the reference is independent.
4957         (move_computations_stmt): Mark the virtual operands for renaming.
4958         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
4959         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
4960         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
4961         add_vop_ref_mapping, create_vop_ref_mapping_loop,
4962         create_vop_ref_mapping, analyze_memory_references,
4963         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
4964         get_all_locs_in_loop, ref_always_accessed_p,
4965         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
4966         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
4967         store_motion_loop, store_motion): New functions.
4968         (struct vop_to_refs_elt): New type.
4969         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
4970         memref_hash, memref_eq, hoist_memory_references): Rewritten.
4971         (schedule_sm): Replaced by...
4972         (execute_sm): ... this.
4973         (determine_lsm_ref, hoist_memory_references,
4974         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
4975         find_more_ref_vops, free_mem_ref, free_mem_refs,
4976         determine_lsm_loop, determine_lsm): Removed.
4977         (tree_ssa_lim_finalize): Free data structures used by store motion.
4978         (tree_ssa_lim): Call analyze_memory_references.  Use
4979         store_motion instead of determine_lsm.
4980
4981 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
4982
4983         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
4984         rename tmake_file to m68hc11/t-m68hc11.
4985         (mcore): Set inhibit_libc to true.
4986         * config.host (alpha*-dec-*vms*): Set extra_programs.
4987         (interix3*): Don't use host_xmake_file.
4988         * configure.ac: Let config.gcc override inhibit_libc.
4989         * configure: Regenerate.
4990
4991         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
4992         * config/t-openbsd-thread: Remove commented out lines.
4993         
4994         * config/x-interix: Remove.
4995
4996         * config/m68hc11/t-m68hc11-gas: Rename to...
4997         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
4998
4999         * config/mcore/t-mcore: Remove T_CFLAGS.
5000         * config/mcore/t-mcore-pe: Likewise.
5001
5002 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
5003
5004         * configure.ac: Replace custom __GNU_SOURCE test with
5005         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
5006         * aclocal.m4: Regenerate.
5007         * configure: Regenerate.
5008         * config.in: Regenerate.
5009
5010 2008-03-27  Richard Guenther  <rguenther@suse.de>
5011
5012         * fold-const.c (target.h): Include.
5013         (fold_comparison): Fold comparison of addresses of decls
5014         that bind locally or of constants.  Consolidate address folding code.
5015         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
5016         results from fold_binary_to_constant.
5017         (compare_values_warnv): Likewise.
5018
5019 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
5020
5021         PR middle-end/35429
5022         * fold-const.c (fold_truthop): Check for integeral types when folding
5023         a == 0 && b == 0 and a != 0 || b != 0 .
5024
5025 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
5026
5027         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
5028
5029 2008-03-26  Andreas Schwab  <schwab@suse.de>
5030
5031         * doc/invoke.texi: Fix use of @item vs. @itemx.
5032
5033 2008-03-26  Tom Tromey  <tromey@redhat.com>
5034
5035         * Makefile.in (build/gensupport.o, build/print-rtl.o,
5036         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
5037         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
5038         build/gencodes.o, build/genconditions.o, build/genconfig.o,
5039         build/genconstants.o, build/genemit.o, build/genextract.o,
5040         build/genflags.o, build/genmddeps.o, build/genopinit.o,
5041         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
5042         options.h.
5043
5044 2008-03-26  Richard Guenther  <rguenther@suse.de>
5045
5046         Revert
5047         2008-03-26  Richard Guenther  <rguenther@suse.de>
5048
5049         * fold-const.c (target.h): Include.
5050         (fold_comparison): Fold comparison of addresses of two decls
5051         that bind locally.  Consolidate address folding code.
5052
5053 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5054
5055         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
5056         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
5057         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
5058         dconstsqrt2, dconstthird, dconste and/or dconst10.
5059         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
5060         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
5061         dconstsqrt2, dconste): Delete.
5062         (init_emit_once): Likewise.  Simplify initializing dconstm1.
5063         Constify variable.
5064         * real.c (get_real_const): New.
5065         * real.h (dconst3, dconst10, dconstm2, dconstthird,
5066         dconstsqrt2, dconste): Delete.
5067         (real_value_const, get_real_const): New.
5068
5069 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
5070
5071         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
5072
5073         * config/i386/i386.c (ix86_function_arg_boundary): Check
5074         BIGGEST_ALIGNMENT instead of 128.
5075         (setup_incoming_varargs_64): Likewise.
5076
5077 2008-03-26  Tom Tromey  <tromey@redhat.com>
5078
5079         * Makefile.in (DEPFILES): Add missing '/'.
5080
5081 2008-03-26  Richard Guenther  <rguenther@suse.de>
5082
5083         * fold-const.c (target.h): Include.
5084         (fold_comparison): Fold comparison of addresses of two decls
5085         that bind locally.  Consolidate address folding code.
5086
5087 2008-03-26  Nick Clifton  <nickc@redhat.com>
5088
5089         PR target/31232
5090         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
5091         not allow INT+INT as a legitimate addressing mode.
5092
5093 2008-03-26  Richard Guenther  <rguenther@suse.de>
5094
5095         * tree-flow.h (widen_bitfield): Remove declaration.
5096         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
5097         (widen_bitfield): Remove function.
5098         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
5099         code.
5100
5101 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5102
5103         PR target/31558
5104         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
5105         error_mark_node's.
5106
5107 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
5108
5109         PR rtl-optimization/35232
5110         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
5111         (forget_old_reloads_1, forget_marked_reloads): Don't clear
5112         reg_reloaded_call_part_clobbered here.
5113         (reload_regs_reach_end_p): New function.
5114         (reload_reg_rtx_for_input): New variable.
5115         (reload_reg_rtx_for_output): Likewise.
5116         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
5117         when reassigning a pseudo register.  Load reloadreg from 
5118         reload_reg_rtx_for_input, moving the mode and register
5119         calculation to...
5120         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
5121         instead of the original when deciding whether an input reload
5122         would be a no-op or whether an output reload can be deleted.
5123         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
5124         when setting up new_spill_reg_store.  Load it from
5125         reload_reg_rtx_for_output, moving the mode and register
5126         calculation to...
5127         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
5128         instead of the original when deciding whether an output reload
5129         would be a no-op.  Do the same when modifying insn notes.
5130         Use rtx_equal_p instead of == to compare the registers.
5131         (inherit_piecemeal_p): Take a mode and two register numbers
5132         as argument.
5133         (emit_reload_insns): Clear new_spill_reg_store for every hard
5134         register in the reload register.  Remove spill registers
5135         from reg_reloaded_valid before considering whether to record
5136         inheritance information for them.  Use reload_reg_rtx_for_output
5137         instead of reg_rtx when recording output reloads.  Use
5138         reload_reg_rtx_for_input instead of reg_rtx when recording
5139         input reloads.  Set or clear reg_reloaded_call_part_clobbered
5140         at the same time as setting reg_reloaded_valid.
5141         (delete_output_reload): Add a new_reload_reg parameter and use it
5142         instead of rld[j].reg_rtx.
5143         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
5144         calls accordingly.
5145
5146 2008-03-25  Tom Tromey  <tromey@redhat.com>
5147
5148         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
5149         (build/genattr.o): Likewise.
5150         (build/genattrtab.o): Likewise.
5151         (build/gencodes.o): Likewise.
5152         (build/genconfig.o): Likewise.
5153         (build/genconstants.o): Likewise.
5154         (build/genemit.o): Likewise.
5155         (build/genextract.o): Likewise.
5156         (build/genflags.o): Likewise.
5157
5158 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
5159         
5160         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
5161         instead of size_int for integer types.
5162         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
5163         to match type of MINUS_EXPR.
5164         
5165 2008-03-25  Tom Tromey  <tromey@redhat.com>
5166
5167         * configure: Rebuilt.
5168         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
5169         Makefile.
5170
5171 2008-03-25  Tom Tromey  <tromey@redhat.com>
5172
5173         * config/x-solaris (host-solaris.o): Update.
5174         * config/x-linux (host-linux.o): Update.
5175         * config/x-hpux (host-hpux.o): Update.
5176         * config/x-darwin (host-darwin.o): Update.
5177         * config/v850/t-v850e (v850-c.o): Update.
5178         * config/v850/t-v850 (v850-c.o): Update.
5179         * config/t-vxworks (vxworks.o): Update.
5180         * config/t-sol2 (sol2-c.o, sol2.o): Update.
5181         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
5182         * config/spu/t-spu-elf (spu-c.o): Update.
5183         (spu.o): Remove.
5184         * config/sh/t-symbian (sh-c.o): Update.
5185         (symbian.o): Update.
5186         * config/sh/t-sh (sh-c.o): Update.
5187         * config/score/t-score-elf (score7.o, score3.o): Update.
5188         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
5189         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
5190         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
5191         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
5192         (rs6000.o): Remove.
5193         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
5194         * config/m32c/t-m32c (m32c-pragma.o): Update.
5195         * config/ia64/t-ia64 (ia64-c.o): Update.
5196         * config/i386/x-mingw32 (host-mingw32.o): Update.
5197         * config/i386/x-i386 (driver-i386.o): Update.
5198         * config/i386/x-darwin (host-i386-darwin.o): Update.
5199         * config/i386/x-cygwin (host-cygwin.o): Update.
5200         * config/i386/t-nwld (nwld.o): Update.
5201         * config/i386/t-netware (netware.o): Update.
5202         * config/i386/t-interix (winnt.o): Update.
5203         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
5204         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
5205         msformat-c.o): Update.
5206         * config/bfin/t-bfin-linux (generated_files): Add
5207         linux-sysroot-suffix.h.
5208         * config/arm/t-wince-pe (pe.o): Update.
5209         * config/arm/t-strongarm-pe (pe.o): Update.
5210         * config/arm/t-pe (pe.o): Update.
5211         * config/arm/t-arm (arm-c.o): Update.
5212         * doc/install.texi (Prerequisites): Require make 3.80.
5213         * Makefile.in: Remove .o targets.
5214         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
5215         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
5216         (simple_generated_h, simple_generated_c): Move earlier.
5217         (generated_files): New variable.
5218         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
5219         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
5220         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
5221         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
5222         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
5223         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
5224         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
5225         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
5226         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
5227         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
5228         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
5229         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
5230         (.c.o): Remove.
5231         (COMPILE.base, COMPILE): New variables.
5232         (%.o): New pattern rule.
5233         (ALL_HOST_OBJS): New variable.
5234         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
5235         (dummy-checksum.o, cc1-checksum.o): Remove.
5236         (DRIVER_SHLIB): New variable.
5237         (DRIVER_DEFINES): Use it.
5238         (gencondmd.c): Move out of build/.
5239         (s-conditions): Update.
5240         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
5241         (ALL_BUILD_OBJS): Likewise.
5242         (build/%.o): Use BUILDCOMPILE.
5243         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
5244         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
5245         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
5246         build/gencheck.o, build/gencodes.o, build/genconditions.o,
5247         build/genconfig.o, build/genconstants.o, build/genemit.o,
5248         build/genextract.o, build/genflags.o, build/genmddeps.o,
5249         build/genopinit.o, build/genoutput.o, build/genpeep.o,
5250         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
5251         build/gen-protos.o, build/scan.o, build/fix-header.o,
5252         build/scan-decls.o): Simplify.
5253         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
5254         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
5255         prefix.o, toplev.o): Reduce to variable setting.
5256         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
5257         ($(out_object_file), gcc-options.o): New targets.
5258         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
5259         * configure: Rebuilt.
5260         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
5261         * doc/sourcebuild.texi (Front End Directory): Document new variable.
5262
5263 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
5264
5265         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
5266         complain when we hit an error, return ERROR_MARK_NODE.
5267
5268 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
5269
5270         * config/sh/constraints.md (Pso, Psz): New constraints.
5271         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
5272         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
5273
5274 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
5275
5276         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
5277         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
5278
5279 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
5280
5281         * config/sh/sh.md (prefetch): Add condition for SH2A target.
5282         (prefetch_sh2a): New.   
5283
5284 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
5285             Naveen.H.S  <naveen.hs@kpitcummins.com>
5286
5287         * config/sh/constraints.md (I28): New constraint.
5288         * config/sh/sh.c (broken_move): Add support for movi20s.
5289         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
5290
5291 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
5292             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
5293             Naveen.H.S  <naveen.hs@kpitcummins.com>
5294
5295         * config/sh/sh.c (SH_ATTRIBUTES): Define.
5296         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
5297         (print_operand): Handle resbank in %@ operand code.
5298         (sh_encode_section_info): New.
5299         (push_regs): Add conditions for resbank.
5300         (sh_expand_epilogue): Likewise.
5301         (sh_insert_attributes): Likewise.
5302         (sh_attribute_table): Likewise.
5303         (sh_handle_resbank_handler_attribute): New.
5304         (sh2a_handle_function_vector_handler_attribute): New.
5305         (sh2a_is_function_vector_call): New.
5306         (sh2a_get_function_vector_number): New.
5307         (sh2a_function_vector_p): New.
5308         (sh_cfun_resbank_handler_p): New.
5309         * config/sh/sh.md (calli): Emit jsr/n if possible.
5310         (calli_tbr_rel): New.
5311         (calli_pcrel): Emit jsr/n if possible.
5312         (return_i): Emit rts/n if possible.
5313         (call_valuei_tbr_rel): New.
5314         (call_valuei_pcrel): Add condition for SH2A target.
5315         (call_value): Likewise.
5316         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
5317         (sh2a_get_function_vector_number): Likewise.
5318         (sh2a_is_function_vector_call): Likewise.
5319         * doc/extend.texi: Document TBR relative addressing of SH2A.
5320         (resbank): Add description for SH2A.
5321
5322 2008-03-24  Richard Guenther  <rguenther@suse.de>
5323
5324         PR c/22371
5325         * gimplify.c (gimplify_modify_expr): For frontend type-correct
5326         pointer assignments change conversions according to middle-end rules.
5327         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
5328         * configure.ac: Include type checking in yes.
5329         * configure: Regenerate.
5330
5331 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5332
5333         * diagnostic.c (diagnostic_count_diagnostic): Delete.
5334         (diagnostic_report_diagnostic): Update. Handle ICEs here.
5335         
5336 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
5337
5338         * gthr-vxworks.h (UNUSED): Define.
5339
5340 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
5341
5342         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
5343
5344 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
5345
5346         * doc/extend.texi (Function Attributes): Add missing comma in the
5347         example of the "alloc_size" attribute.
5348         
5349 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
5350
5351         Revert:
5352         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
5353
5354         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
5355         32bit host.
5356
5357         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
5358
5359         PR target/35496
5360         * stor-layout.c (update_alignment_for_field): Set minimum alignment
5361         of the underlying type of a MS bitfield layout to the natural
5362         alignment of the type.
5363
5364         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
5365
5366         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
5367         to their natural alignment to avoid store forwarding stalls.
5368
5369 2008-03-22  Richard Guenther  <rguenther@suse.de>
5370
5371         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
5372         For PHI nodes verify the address is invariant.
5373         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
5374         (get_symbol_constant_value): Use is_gimple_min_invariant.
5375         (maybe_fold_stmt_indirect): Likewise.
5376
5377 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
5378
5379         PR rtl-optimization/33927
5380         * Makefile.in (dse.o): Depend on $(TM_P_H).
5381         * expr.h (extract_low_bits): Declare.
5382         * expmed.c (extract_low_bits): New function.
5383         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
5384         * dse.c: Include tm_p.h.
5385         (find_shift_sequence): Remove the read_reg argument and return the
5386         read value.  Emit the instructions instead of returning them.
5387         Iterate on new_mode rather than calculating it each time.
5388         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
5389         source to NEW_MODE and extract_low_bits to convert the shifted
5390         value to READ_MODE.
5391         (replace_read): Allow the load and store to have different mode
5392         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
5393         or extraction instructions before trying the replacement.  Update
5394         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
5395
5396 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
5397
5398         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
5399         to their natural alignment to avoid store forwarding stalls.
5400
5401 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5402
5403         PR target/27946
5404         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
5405         encouraging but not allowing gprs for input;
5406         change the input constraint to !f#r.
5407         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
5408         gprs for output;
5409         change the output constraint to !f#r.
5410
5411 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
5412
5413         PR target/13958
5414         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
5415         corresponding post-reload splitters.
5416         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
5417         when x87 FP math is selected.
5418         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
5419         New function prototype.
5420         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
5421         unreachable function to ease macroization of insn patterns.
5422
5423 2008-03-21  Martin Jambor  <mjambor@suse.cz>
5424
5425         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
5426         reference dumps if ddr is NULL or dependence is unknown.
5427
5428 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
5429
5430         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
5431         unsigned extension into account.
5432         (ATOMIC_COMPARE_AND_SWAP): Likewise.
5433         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
5434         Do computations on a scratch register.
5435
5436 2008-03-21  Richard Guenther  <rguenther@suse.de>
5437
5438         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5439         Use is_gimple_min_invariant instead of TREE_INVARIANT.
5440         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
5441         * tree-ssa-dom.c (record_equality): Likewise.
5442         * tree-inline.c (copy_body_r): Likewise.
5443         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
5444         TREE_INVARIANT.
5445
5446 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
5447
5448         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
5449         as 'delete_unused' argument.
5450
5451 2008-03-20  Richard Guenther  <rguenther@suse.de>
5452
5453         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
5454         special casing of constant qualifiers.
5455         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
5456         care about them in general.
5457         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
5458         regardless of their type.
5459         (fold_stmt_r): Forcefully fold *& if we end up with that.
5460
5461 2008-03-20  Paul Brook  <paul@codesourcery.com>
5462
5463         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
5464         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
5465         linker flags.
5466         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
5467         definition.
5468         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
5469         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
5470
5471 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
5472
5473         * common.opt (Wmudflap): New option.
5474         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
5475         (mx_register_decls): Likewise.
5476         (mudflap_finish_file): Likewise.
5477         * doc/invoke.texi: Document -Wno-mudflap.
5478
5479 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
5480
5481         * c-format.c (replace_format_name_to_system_name): New.
5482         (cmp_attribs): New.
5483         (convert_format_name_to_system_name): New.
5484         (decode_format_attr): Add use of convert_format_name_to_system_name.
5485         (format_types_orig): Add gnu_ prefix to names.
5486         (check_format_info_main): Special treating of \0 escaped names for
5487         supporting multi-character format specifiers as I32, I64.
5488         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
5489         (gnu_target_overrides_format_attributes): New.
5490         * c-format.h: Add structure target_ovr_attr to hold
5491         system specific formatter names.
5492         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
5493         msformat-c.o file to c_target_objs and cxx_target_objs.
5494         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
5495         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
5496         (TARGET_N_FORMAT_TYPES): New.
5497         * config/i386/msformat-c.c: New.
5498         * config/i386/t-cygming: Add build rule for msformat-c.o.
5499         * doc/extend.texi: Add new format names gnu_* and ms_* and
5500         further details.
5501         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
5502
5503 2008-03-20  Ira Rosen  <irar@il.ibm.com>
5504
5505         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
5506         optimizations turned on under -O3.
5507         (ftree-vectorize): Add that the flag is turned on with -O3.
5508
5509 2008-03-20  Ben Elliston  <bje@au.ibm.com>
5510
5511         * regmove.c (try_auto_increment): Fix spelling error in comment.
5512         * final.c (final_scan_insn): Likewise.
5513
5514 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
5515
5516         PR target/14552
5517         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
5518         allocator preferences for "y" and "r" class registers.
5519         ("*mov<mode>_internal"): Ditto.
5520         ("*movv2sf_internal_rex64"): Ditto.
5521         ("*movv2sf_internal"): Ditto.
5522
5523 2008-03-19  Michael Matz  <matz@suse.de>
5524
5525         PR middle-end/35616
5526         * calls.c (expand_call): Check overlap of arguments with call
5527         address for sibcalls.
5528
5529 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
5530
5531         PR target/35496
5532         * stor-layout.c (update_alignment_for_field): Set minimum alignment
5533         of the underlying type of a MS bitfield layout to the natural
5534         alignment of the type.
5535
5536 2008-03-19  Jan Hubicka  <jh@suse.cz>
5537
5538         PR other/35094
5539         * toplev.c (decode_d_option): Handle all CPP flags.
5540         * tree-vrp.c: Update tree_pass descriptors.
5541         * regrename.c: Update tree_pass descriptors.
5542         * fwprop.c: Update tree_pass descriptors.
5543         * doc/invoke.texi: Remove documentation of dropped -d? flags.
5544         * tree-into-ssa.c: Update tree_pass descriptors.
5545         * tree-dump.c: Update tree_pass descriptors.
5546         * tree-complex.c: Update tree_pass descriptors.
5547         * tree-dump.h: Update tree_pass descriptors.
5548         * see.c: Update tree_pass descriptors.
5549         * cgraphbuild.c: Update tree_pass descriptors.
5550         * tracer.c: Update tree_pass descriptors.
5551         * tree-loop-distribution.c: Update tree_pass descriptors.
5552         * cgraph.c: Update tree_pass descriptors.
5553         * postreload-gcse.c: Update tree_pass descriptors.
5554         * postreload.c: Update tree_pass descriptors.
5555         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
5556         * tree-tailcall.c: Update tree_pass descriptors.
5557         * tree-pass.h (tree_opt_pass): Rename to ...
5558         (opt_pass) ... this one; add "type" field and remove letter field.
5559         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
5560         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
5561         all_lowering_passes): Update declaration.
5562         * ipa-cp.c: Update tree_pass descriptors.
5563         * final.c: Update tree_pass descriptors.
5564         * omp-low.c: Update tree_pass descriptors.
5565         * tree-ssa-dse.c: Update tree_pass descriptors.
5566         * ipa-reference.c: Update tree_pass descriptors.
5567         * tree-ssa-uncprop.c: Update tree_pass descriptors.
5568         * auto-inc-dec.c: Update tree_pass descriptors.
5569         * reorg.c: Update tree_pass descriptors.
5570         * cgraphunit.c: Update tree_pass descriptors.
5571         * tree-ssa-copyrename.c: Update tree_pass descriptors.
5572         * tree-ssa-ccp.c: Update tree_pass descriptors.
5573         * df-core.c: Update tree_pass descriptors.
5574         * mode-switching.c: Update tree_pass descriptors.
5575         * tree-nomudflap.c: Update tree_pass descriptors.
5576         * modulo-sched.c: Update tree_pass descriptors.
5577         * ipa-pure-const.c: Update tree_pass descriptors.
5578         * cse.c: Update tree_pass descriptors.
5579         * web.c: Update tree_pass descriptors.
5580         * tree-stdarg.c: Update tree_pass descriptors.
5581         * tree-ssa-math-opts.c: Update tree_pass descriptors.
5582         * tree-ssa-dom.c: Update tree_pass descriptors.
5583         * tree-nrv.c: Update tree_pass descriptors.
5584         * tree-ssa-alias.c: Update tree_pass descriptors.
5585         * loop-init.c: Update tree_pass descriptors.
5586         * gimple-low.c: Update tree_pass descriptors.
5587         * ipa-inline.c: Update tree_pass descriptors.
5588         * tree-ssa-sink.c: Update tree_pass descriptors.
5589         * global.c: Update tree_pass descriptors.
5590         * ifcvt.c: Update tree_pass descriptors.
5591         * jump.c: Update tree_pass descriptors.
5592         * predict.c: Update tree_pass descriptors.
5593         * tree-ssa-loop.c: Update tree_pass descriptors.
5594         * recog.c: Update tree_pass descriptors.
5595         * dse.c: Update tree_pass descriptors.
5596         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
5597         * tree-eh.c: Update tree_pass descriptors.
5598         * regmove.c: Update tree_pass descriptors.
5599         * local-alloc.c
5600         * function.c: Update tree_pass descriptors.
5601         * tree-vectorizer.c: Update tree_pass descriptors.
5602         * gcse.c: Update tree_pass descriptors.
5603         * ipa-type-escape.c: Update tree_pass descriptors.
5604         * tree-if-conv.c: Update tree_pass descriptors.
5605         * init-regs.c: Update tree_pass descriptors.
5606         * ipa.c: Update tree_pass descriptors.
5607         * tree-ssa-phiopt.c: Update tree_pass descriptors.
5608         * rtl-factoring.c: Update tree_pass descriptors.
5609         * lower-subreg.c: Update tree_pass descriptors.
5610         * bt-load.c: Update tree_pass descriptors.
5611         * tree-dfa.c: Update tree_pass descriptors.
5612         * except.c: Update tree_pass descriptors.
5613         * emit-rtl.c: Update tree_pass descriptors.
5614         * cfgexpand.c: Update tree_pass descriptors.
5615         * tree-cfgcleanup.c: Update tree_pass descriptors.
5616         * cfgcleanup.c: Update tree_pass descriptors.
5617         * tree-ssa-pre.c: Update tree_pass descriptors.
5618         * tree-sra.c: Update tree_pass descriptors.
5619         * tree-mudflap.c: Update tree_pass descriptors.
5620         * tree-ssa-copy.c: Update tree_pass descriptors.
5621         * cfglayout.c: Update tree_pass descriptors.
5622         * tree-ssa-forwprop.c: Update tree_pass descriptors.
5623         * tree-ssa-dce.c: Update tree_pass descriptors.
5624         * tree-ssa.c: Update tree_pass descriptors.
5625         * regclass.c: Update tree_pass descriptors.
5626         * integrate.c: Update tree_pass descriptors.
5627         * tree-optimize.c: Update tree_pass descriptors.
5628         * tree-ssa-phiprop.c: Update tree_pass descriptors.
5629         * tree-object-size.c: Update tree_pass descriptors.
5630         * combine.c: Update tree_pass descriptors.
5631         * tree-outof-ssa.c: Update tree_pass descriptors.
5632         * bb-reorder.c: Update tree_pass descriptors.
5633         * stack-ptr-mod.c: Update tree_pass descriptors.
5634         * var-tracking.c: Update tree_pass descriptors.
5635         * tree-profile.c: Update tree_pass descriptors.
5636         * tree-vect-generic.c: Update tree_pass descriptors.
5637         * reg-stack.c: Update tree_pass descriptors.
5638         * sched-rgn.c: Update tree_pass descriptors.
5639         * tree-ssa-structalias.c: Update tree_pass descriptors.
5640         * tree-cfg.c: Update tree_pass descriptors.
5641         * passes.c (current_pass): Update declaration.
5642         (finish_optimization_passes): Update.
5643         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
5644         (register_one_dump_file, register_dump_files_1, next_pass_1):
5645         Update arguments.
5646         (init_optimization_passes): Update handling of new types.
5647         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
5648         * ipa-struct-reorg.c: Update tree_pass descriptors.
5649         * tree-ssa-reassoc.c: Update tree_pass descriptors.
5650         * combine-stack-adj.c: Update tree_pass descriptors.
5651         * cfgrtl.c: Update tree_pass descriptors.
5652         * dce.c: Update tree_pass descriptors.
5653         * tree-ssanames.c: Update tree_pass descriptors.
5654
5655 2008-03-19  Richard Guenther  <rguenther@suse.de>
5656
5657         PR middle-end/35609
5658         * tree-ssa.c (walk_data): New structure.
5659         (warn_uninitialized_var): If not always_executed warn with "maybe"
5660         instead of "is".
5661         (execute_early_warn_uninitialized): Compute post-dominators.
5662         Initialize always_executed before processing each basic block.
5663
5664 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
5665
5666         PR target/35504
5667         * config/i386/i386.c (x86_this_parameter): Calculate correct location
5668         of "this" pointer when "regparm = N" or "fastcall" is in effect.
5669
5670 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5671
5672         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
5673
5674 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
5675
5676         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
5677         is true.
5678         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
5679         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
5680         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
5681         target after ignore has been set, and move there also the commputation
5682         of subtarget and original_target.
5683         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
5684         (LANG_HOOKS_INITIALIZER): Remove it.
5685         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
5686
5687 2008-03-18  Richard Guenther  <rguenther@suse.de>
5688
5689         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
5690         found an expression with constants, note that in the VN for the lhs.
5691         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
5692         fold them to constants if possible.  Run cleanup_cfg if done so.
5693         (execute_pre): Return todo.
5694         (do_pre): Likewise.
5695         (execute_fre): Likewise.
5696         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
5697         of constants.
5698         (get_prop_source_stmt): Look through pointer conversions.
5699
5700 2008-03-18  Jan Hubicka  <jh@suse.cz>
5701
5702         * tree-pretty-print.c: Include predict.h.
5703         (dump_generic_node): Dump predictor.
5704         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
5705         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
5706         * gimple-low.c (lower_stmt): Likewise.
5707         * expr.c (expand_expr_real): Likewise.
5708         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
5709         them.
5710         (build_predict_expr, build_predict_expr): New.
5711         * predict.h (predictor_name, build_predict_expr): Update.
5712         * c-typeck.c (c_finish_bc_stmt): Add prediction.
5713         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
5714         * predict.def (PRED_CONTINUE): Update hitrate.
5715         * tree.def (PREDICT_EXPR): Define.
5716         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
5717         do not handle BIND_EXPR.
5718         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
5719         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
5720         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
5721         operands.
5722
5723 2008-03-18  Michael Matz  <matz@suse.de>
5724
5725         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
5726
5727 2008-03-18  Richard Guenther  <rguenther@suse.de>
5728
5729         * tree-gimple.h (is_gimple_invariant_address): Declare.
5730         (is_gimple_constant): Likewise.
5731         * tree-gimple.c (is_gimple_constant): New function.
5732         (is_gimple_invariant_address): Likewise.
5733         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
5734         and is_gimple_invariant_address.
5735         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
5736         previous change.
5737         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
5738         an addressable base.
5739
5740 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
5741
5742         PR middle-end/35611
5743         * gimplify.c (gimplify_expr): Gimplify second operand of
5744         OMP_ATOMIC_LOAD.
5745
5746 2008-03-17  Richard Guenther  <rguenther@suse.de>
5747
5748         PR tree-optimization/19637
5749         * fold-const.c (fold_unary): Remove restrictions of removing
5750         intermediate pointer-conversions (P2)(P1)P0.
5751         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
5752         conversion to void pointer.
5753         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
5754
5755 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
5756
5757         PR debug/31510
5758         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
5759         emulated thread local variables.
5760
5761 2008-03-16  Richard Guenther  <rguenther@suse.de>
5762
5763         PR middle-end/35607
5764         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5765         expand TREE_INVARIANT operations that are not gimple invariant.
5766
5767 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
5768
5769         * doc/extend.texi (Alignment): Say that the ABI controls
5770         the __alignof__ for non-strict-alignment targets rather
5771         than being a recommendation.
5772
5773 2008-03-15  Paul Brook  <paul@codesourcery.com>
5774
5775         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
5776         annotations.
5777         (arm_output_fn_unwind): Mark functions that can not be unwound.
5778
5779 2008-03-15  Paul Brook  <paul@codesourcery.com>
5780
5781         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
5782         extension instructions.
5783
5784 2008-03-15  Richard Guenther  <rguenther@suse.de>
5785
5786         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
5787         and fold constant aggregate refs.
5788         (fold_const_aggregate_ref): Handle string constants
5789         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
5790         (evaluate_stmt): Simplify now that ccp_fold folds constant
5791         aggregate refs.
5792
5793 2008-03-15  Paul Brook  <paul@codesourcery.com>
5794
5795         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
5796         (extzv): Use gen_extzv_t2.
5797         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
5798
5799 2008-03-15  Richard Guenther  <rguenther@suse.de>
5800
5801         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
5802         (fold_const_aggregate_ref): Likewise.
5803         (get_value): Return NULL if we don't have any values.
5804         (ccp_finalize): Set const_val to NULL after freeing it.
5805         * tree-flow.h (get_symbol_constant_value): Declare.
5806         (fold_const_aggregate_ref): Likewise.
5807         * tree-ssa-sccvn.c (try_to_simplify): Use them.
5808
5809 2008-03-15  Richard Guenther  <rguenther@suse.de>
5810
5811         PR middle-end/35593
5812         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
5813         to not produce negative array indices if not allowed.  Add
5814         parameter to indicate that.
5815         (maybe_fold_offset_to_component_ref): Allow negative array
5816         indices only for the first member of a structure.
5817         (maybe_fold_offset_to_reference): Allow negative array indices.
5818         (maybe_fold_stmt_addition): Likewise.
5819
5820 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
5821             Anatoly Sokolov <aesok@post.ru>
5822
5823         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
5824         (avr_arch): Add ARCH_AVR6.
5825         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
5826         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
5827         instead of fixed value 2.
5828         (print_operand_address): Use gs() asm specifier instead of pm().
5829         (avr_assemble_integer): (Ditto.).
5830         (avr_output_addr_vec_elt): (Ditto.).
5831         (print_operand): Handle "!" code.
5832         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
5833         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
5834         (AVR_HAVE_EIJMP_EICALL): Define.
5835         (AVR_3_BYTE_PC): Redefine.
5836         (AVR_2_BYTE_PC): (Ditto.).
5837         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
5838         (LINK_SPEC): Add atmega2560 and atmega2561.
5839         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
5840         (crtm2561.o).
5841         * config/avr/avr.md (call_insn): Use eicall instead of icall 
5842         for 3 byte PC devices.
5843         (call_value_insn): (Ditto.).
5844         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
5845         (indirect_jump): Use only for for 2 byte PC devices.
5846         (*tablejump): (Ditto.).
5847         (*indirect_jump_avr6): Add insn.
5848         (*tablejump_rjmp): Don't use for 3 byte PC devices.
5849         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
5850         instead of ijmp for 3 byte PC devices.
5851         (__tablejump2__): (Ditto.).
5852         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
5853         (MULITLIB_DIRNAMES): (Ditto.). 
5854         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
5855
5856 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
5857
5858         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
5859         "sse2_umulsidi3".  Use V1DI mode for operand 0.
5860         ("mmx_psadbw"): Use V1DI mode for operand 0.
5861         * config/i386/i386-modes.def (V1SI): New vector mode.
5862         * config/i386/i386.c (struct builtin_description)
5863         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
5864         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
5865         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
5866         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
5867         v1di_ftype_v8qi_v8qi type.
5868         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
5869
5870         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
5871         __builtin_ia32_pmuludq]: Fix the mode of return value.
5872
5873 2008-03-15  Richard Guenther  <rguenther@suse.de>
5874
5875         PR middle-end/35595
5876         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
5877         being a PHI_NODE.
5878
5879 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
5880         
5881         * doc/invoke.texi (Option Summary, Xtensa Options): Document
5882         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
5883         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
5884         unless TARGET_SERIALIZE_VOLATILE is enabled.
5885         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
5886         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
5887         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
5888
5889 2008-03-14  Richard Guenther  <rguenther@suse.de>
5890
5891         PR tree-optimization/34172
5892         * tree-flow.h (refs_may_alias_p): Declare.
5893         (get_single_def_stmt): Likewise.
5894         (get_single_def_stmt_from_phi): Likewise.
5895         (get_single_def_stmt_with_phi): Likewise.
5896         * tree-dfa.c (refs_may_alias_p): New function.
5897         (get_single_def_stmt): Likewise.
5898         (get_single_def_stmt_from_phi): Likewise.
5899         (get_single_def_stmt_with_phi): Likewise.
5900         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
5901         (vn_reference_lookup_1): New helper function.
5902         (vn_reference_lookup): Walk the virtual use-def chain to
5903         continue searching for a match if the def does not alias the
5904         reference we are looking for.
5905
5906 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
5907
5908         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
5909         archive and Perzl.  Update The Written Word listing.
5910
5911 2008-03-14  Richard Guenther  <rguenther@suse.de>
5912
5913         PR tree-optimization/34043
5914         PR tree-optimization/33989
5915         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
5916         when doing FRE.
5917         (bitmap_find_leader): Use extra argument to verify dominance
5918         relationship inside a basic-block.
5919         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
5920         (find_leader_in_sets): Adjust.
5921         (create_component_ref_by_pieces): Take extra argument for
5922         dominance check, handle lookup failures.
5923         (find_or_generate_expression): Likewise.
5924         (create_expression_by_pieces): Likewise.
5925         (insert_into_preds_of_block): Adjust.
5926         (create_value_expr_from): If asked for, verify all operands
5927         are in the blocks AVAIL_OUT set.
5928         (make_values_for_stmt): Check for SSA_NAMEs that are life
5929         over an abnormal edge.
5930         (compute_avail): Remove such check.
5931         (do_SCCVN_insertion): New function.
5932         (eliminate): If we do not find a leader suitable for replacement
5933         insert a replacement expression from SCCVN if available.
5934         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
5935         (struct vn_ssa_aux): Add needs_insertion flag.
5936         * tree-ssa-sccvn.c (may_insert): New global flag.
5937         (copy_reference_ops_from_ref): Value-number union member access
5938         based on its size, not type and member if insertion is allowed.
5939         (visit_reference_op_load): For a weak match from union type
5940         punning lookup a view-converted value and insert a SSA_NAME
5941         for that value if that is not found.
5942         (visit_use): Make dumps shorter.  Do not disallow value numbering
5943         SSA_NAMEs that are life over an abnormal edge to constants.
5944         (free_scc_vn): Release inserted SSA_NAMEs.
5945         (run_scc_vn): New flag to specify whether insertion is allowed.
5946         Process SSA_NAMEs in forward order.
5947         * tree-ssa-loop-im.c (for_each_index): Handle invariant
5948         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
5949         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
5950         pointer type to/from integral types that do not change the
5951         precision to regular conversions.
5952
5953 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
5954
5955         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
5956         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
5957         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
5958         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
5959         input arguments and the mode of return value.  Built-in functions
5960         that operate on whole 64-bit MMX register now use V1DI mode.
5961
5962 2008-03-13  Alon Dayan  <alond@il.ibm.com>
5963             Olga Golovanevsky  <olga@il.ibm.com>
5964
5965         PR tree-optimization/35041
5966         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
5967         to locate the right position in a statement.
5968
5969 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
5970
5971         PR target/34000
5972         PR target/35553
5973         * config/i386/xmmintrin.h:  Change all static inline functions to
5974         extern inline and add __gnu_inline__ attribute.
5975         * config/i386/bmintrin.h: Ditto.
5976         * config/i386/smmintrin.h: Ditto.
5977         * config/i386/tmmintrin.h: Ditto.
5978         * config/i386/mmintrin-common.h: Ditto.
5979         * config/i386/ammintrin.h: Ditto.
5980         * config/i386/emmintrin.h: Ditto.
5981         * config/i386/pmmintrin.h: Ditto.
5982         * config/i386/mmintrin.h: Ditto.
5983         * config/i386/mm3dnow.h: Ditto.
5984
5985 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
5986
5987         PR middle-end/35185
5988         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
5989         (lower_omp_2): New function.
5990         (lower_omp_1, lower_omp): Rewritten.
5991
5992 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
5993
5994         PR 35054
5995         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
5996         with the phrase "Microsoft Windows compilers".
5997         (Push/Pop Macro Pragmas): New subsection. Document
5998         #pragma push_macro and pragma pop_macro.
5999
6000 2008-03-12  Paul Brook  <paul@codesourcery.com>
6001
6002         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
6003
6004 2008-03-12  Paul Brook  <paul@codesourcery.com>
6005
6006         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
6007         (thumb2_alusi3_short): Exclude PLUS and MINUS.
6008         (thumb2_addsi_shortim): Rename ...
6009         (thumb2_addsi_short): ... to this.  Allow register operands.
6010         (thumb2_subsi_short): New pattern.
6011         (thumb2_one_cmplsi2_short,
6012         thumb2_negsi2_short): New patterns and peepholes.
6013
6014 2008-03-12  Paul Brook  <paul@codesourcery.com>
6015
6016         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
6017
6018 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
6019
6020         * config/i386/i386.md (int_cond): New code iterator.
6021         (fp_cond): Ditto.
6022         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
6023         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
6024         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
6025         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
6026         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
6027         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
6028         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
6029         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
6030
6031 2008-03-12  Paul Brook  <paul@codesourcery.com>
6032
6033         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
6034         instead of {arm,thumb}_compute_save_reg_mask.
6035         (output_return_instruction): Ditto.
6036         (thumb_unexpanded_epilogue): Ditto.
6037         (thumb1_expand_prologue): Ditto.
6038         (thumb1_output_function_prologue): Ditto.
6039         (arm_set_return_address): Ditto.
6040         (thumb_set_return_address): Ditto.
6041         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
6042         regs to achieve stack alignment.
6043         (thumb1_compute_save_reg_mask): Fix compiler warning.
6044         (arm_output_epilogue): Use offsets->saved_regs_mask.
6045         Adjust stack pointer by poping call clobered registers.
6046         (arm_expand_prologue): Use offsets->saved_regs_mask.
6047         Adjust stack pointer by pushing extra registers.
6048         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
6049
6050 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
6051
6052         PR tree-opt/35422
6053         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
6054         conversion to the operands of a multiplication.
6055
6056 2008-03-12  Richard Guenther  <rguenther@suse.de>
6057
6058         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
6059         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
6060         * timevar.def (TV_TREE_PHIPROP): Add.
6061         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
6062         pass description.  Use TV_TREE_PHIPROP.
6063         * tree-ssa-forwprop.c: Remove phiprop code.
6064
6065 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
6066
6067         PR middle-end/35549
6068         * omp-low.c (maybe_lookup_decl): Constify first argument.
6069         (use_pointer_for_field): Change last argument from bool to
6070         omp_context *.  Disallow shared copy-in/out in nested
6071         parallel if decl is shared in outer parallel too.
6072         (build_outer_var_ref, scan_sharing_clauses,
6073         lower_rec_input_clauses, lower_copyprivate_clauses,
6074         lower_send_clauses, lower_send_shared_vars): Adjust callers.
6075
6076 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
6077             Ira Rosen  <irar@il.ibm.com>
6078
6079         * tree-vectorizer.c (free_stmt_vec_info): New function.
6080         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
6081         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
6082         * tree-vectorizer.h (free_stmt_vec_info): Declare.
6083         * tree-vect-transform.c (vectorizable_conversion): Free
6084         vec_oprnds0 if it was allocated.
6085         (vect_permute_store_chain): Remove unused VECs.
6086         (vectorizable_store): Free VECs that are allocated in the..
6087         function.
6088         (vect_transform_strided_load, vectorizable_load): Likewise.
6089         (vect_remove_stores): Simplify the code.
6090         (vect_transform_loop): Move code to vect_remove_stores().
6091         Call vect_remove_stores() and free_stmt_vec_info().
6092
6093 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6094
6095         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
6096         TARGET_HPUX.  Revise comment.
6097         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
6098         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
6099         Use sr4 variant of `be' instruction when not generating PIC code.
6100         (attr_length_call): Adjust for above change.
6101
6102 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6103
6104         * ipa-reference.c (static_execute): Remove module_statics_const and
6105         associated setting code.
6106
6107 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
6108
6109         PR target/35540
6110         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
6111         predicate for operand 1.
6112         (paritysi2_cmp): Use register_operand predicate for operand 2.
6113         Use earlyclobber modifier for operand 1.  Remove support for
6114         memory operands.
6115         (paritydi2_cmp): Use register_operand predicate for operand 3.
6116         Use earlyclobber modifier for operand 1.  Remove support for
6117         memory operands.
6118
6119 2008-03-11  Paul Brook  <paul@codesourcery.com>
6120             Vladimir Prus  <vladimir@codesourcery.com>
6121
6122         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
6123         (arm_compute_save_reg0_reg12_mask): Always
6124         check if register 11 must be saved.  Always safe hard frame pointer
6125         when frame_pointer_needeed.
6126         (arm_compute_save_reg_mask): Save IP and PC
6127         only with apcs frames.
6128         (arm_output_epilogue): Adjust Thumb2 codepath to
6129         be also invoked and work for ARM non-apcs frames.
6130         (arm_expand_prologue): Don't bother saving IP
6131         for non-apcs frame, since it's not clobbered by
6132         prologue code.  Implement non-apcs frame
6133         layout.
6134
6135 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
6136
6137         PR rtl-optimization/35281
6138         * expr.c (convert_move): Use a new pseudo for the intermediate
6139         from_mode->word_mode result.
6140
6141 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
6142
6143         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
6144         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
6145         * toplev.c (compile_file): Don't call it.
6146
6147 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
6148
6149         PR middle-end/35526
6150         * expr.c (store_expr): Call emit_block_move if the mode
6151         of "temp" RTX is BLKmode.
6152
6153 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6154             Richard Guenther  <rguenther@suse.de>
6155
6156         PR tree-optimization/31358
6157         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
6158         the step with a NULL_TREE.
6159         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
6160         to sizetype if type is a pointer type.
6161         (add_candidate_1): Don't convert the base and step to
6162         the generic type if the orginal type is a pointer type.
6163         (add_iv_value_candidates): Use sizetype for the step
6164         if type is a pointer type.
6165         (cand_value_at): Likewise.
6166         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
6167         for pointer types.
6168         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
6169         Don't convert the tem affine to the type.
6170         (add_elt_to_tree): Use sizetype for the step if a pointer.
6171         Use POINTER_PLUS_EXPR for pointers.
6172         (aff_combination_to_tree): Use sizetype for the step if a
6173         pointer.
6174
6175 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
6176
6177         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
6178         Remove commutativity hint.
6179
6180 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
6181
6182         PR c/35438
6183         PR c/35439
6184         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
6185         errorneous type.  Check that v is a VAR_DECL.
6186
6187         PR middle-end/35099
6188         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
6189
6190 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
6191
6192         PR tree-optimization/35494
6193         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
6194         may be overriden at link and run time.
6195
6196 2008-03-10  Richard Guenther  <rguenther@suse.de>
6197
6198         PR tree-optimization/34677
6199         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
6200         (poolify_tree): Likewise.
6201         (modify_expr_template): Likewise.
6202         (poolify_modify_stmt): Likewise.
6203         (insert_fake_stores): Handle all component-ref style stores
6204         in addition to INDIRECT_REF.  Also handle complex types.
6205         Do not poolify the inserted load.
6206         (realify_fake_stores): Do not rebuild the tree but only
6207         make it a SSA_NAME copy.
6208         (init_pre): Remove initialzation of modify_expr_template.
6209         Do not allocate modify_expr_node_pool.
6210         (fini_pre): Do not free modify_expr_node_pool.
6211
6212 2008-03-10  Paul Brook  <paul@codesourcery.com>
6213
6214         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
6215         to avoid conflicts.
6216
6217 2008-03-10  Paul Brook  <paul@codesourcery.com>
6218             Mark Shinwell  <shinwell@codesourcery.com>
6219
6220         * config/arm/cortex-r4.md: New.
6221         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
6222         insn attributes.
6223         * config/arm/arm.md: Include cortex-r4.md.
6224         (insn): Add smmls, sdiv and udiv values.
6225         (generic_sched): Don't use generic scheduling for Cortex-R4.
6226         (arm_issue_rate): New function.
6227         (TARGET_SCHED_ISSUE_RATE): Define.
6228
6229 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
6230
6231         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
6232
6233 2008-03-10  Richard Guenther  <rguenther@suse.de>
6234
6235         * tree-ssa-pre.c (get_sccvn_value): Simplify.
6236         (compute_avail): Do not add stmt uses to AVAIL_OUT.
6237
6238 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
6239
6240         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
6241         Set default to true.
6242
6243 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6244
6245         * c.opt (Wsynth): Deprecate.
6246         * doc/invoke.texi (Option Summary, Warning Options): Document
6247         -Wno-format-contains-nul.
6248
6249 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
6250
6251         PR target/35496
6252         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
6253         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
6254
6255 2008-03-09  Ira Rosen  <irar@il.ibm.com>
6256
6257         * config/rs6000/rs6000.c (builtin_description): Rename vector
6258         left shift operations.
6259         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
6260         (altivec_vsl<VI_char>): Rename to ...
6261         (ashl<mode>3): ... new name.
6262         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
6263         gen_ashlv4si3.
6264         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
6265
6266 2008-03-08  Richard Guenther  <rguenther@suse.de>
6267
6268         * coverage.h (tree_coverage_counter_addr): Declare.
6269         * coverage.c (tree_coverage_counter_addr): New function.
6270         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
6271         before using again.
6272         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
6273         (tree_gen_one_value_profiler): Likewise.
6274         (tree_gen_ic_profiler): Likewise.
6275         (tree_gen_average_profiler): Likewise.
6276         (tree_gen_ior_profiler): Likewise.
6277
6278 2008-03-08  Richard Guenther  <rguenther@suse.de>
6279
6280         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
6281         (vn_binary_op_insert): Likewise.
6282         (vn_unary_op_lookup): Likewise.
6283         (vn_unary_op_insert): Likewise.
6284         (vn_nary_op_lookup): Declare.
6285         (vn_nary_op_insert): Likewise.
6286         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
6287         and binary hashes, use a single obstack for unary_op_pool
6288         and binary_op_pool.
6289         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
6290         a single struct vn_nary_op_s.  Store tree code length and
6291         a variable number of operands.
6292         (struct vn_reference_op_struct): Remove unused op2.
6293         (vn_reference_op_eq): Do not compare op2.
6294         (vn_reference_op_compute_hash): Do not compute hash of op2.
6295         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
6296         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
6297         with vn_nary_op_compute_hash.
6298         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
6299         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
6300         vn_nary_op_lookup.
6301         (vn_unary_op_insert, vn_binary_op_insert): Replace with
6302         vn_nary_op_insert.
6303         (visit_unary_op): Call nary functions.
6304         (visit_binary_op): Likewise.
6305         (process_scc): Adjust for struct vn_tables_s changes.
6306         (allocate_vn_table): Likewise.
6307         (free_vn_table): Likewise.
6308         * tree-vn.c (vn_add): Call nary functions.
6309         (vn_lookup): Likewise.
6310
6311 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
6312
6313         PR target/35498
6314         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
6315         wdst back after sync_compare_and_swapqhi_internal.
6316
6317 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
6318
6319         PR target/22152
6320         * config/i386/i386-modes.def (V1DI): New vector mode.
6321         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
6322         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
6323         (MMXMODE248): Ditto.
6324         (MMXMODE): Add V1DI mode.
6325         (mmxvecsize): Change DI mode to V1DI mode.
6326         ("mov<mode>): Use MMXMODEI8 mode iterator.
6327         ("*mov<mode>_internal_rex64"): Ditto.
6328         ("*mov<mode>_internal"): Ditto.
6329         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
6330         ("mmx_sub<mode>3"): Ditto.
6331         ("mmx_adddi3"): Remove insn pattern.
6332         ("mmx_subdi3"): Ditto.
6333         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
6334         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
6335         ("mmx_ashl<mode>3"): Ditto.
6336         ("mmx_lshrdi3"): Remove insn pattern.
6337         ("mmx_ashldi3"): Ditto.
6338         * config/i386/i386.c (classify_argument): Handle V1DImode.
6339         (function_arg_advance_32): Ditto.
6340         (function_arg_32): Ditto.
6341         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
6342         mmx_addv1di3 insn pattern.
6343         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
6344         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
6345         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
6346         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
6347         Remove definitions of built-in functions.
6348         (V1DI_type_node): New node.
6349         (v1di_ftype_v1di_int): Ditto.
6350         (v1di_ftype_v1di_v1di): Ditto.
6351         (v2si_ftype_v2si_si): Ditto.
6352         (v4hi_ftype_v4hi_di): Remove node.
6353         (v2si_ftype_v2si_di): Ditto.
6354         (ix86_init_mmx_sse_builtins): Handle V1DImode.
6355         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
6356         Redefine builtins using def_builtin_const with *_ftype_*_int node.
6357         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
6358         Add new builtins using def_builtin_const.
6359         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
6360         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
6361         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
6362         * config/i386/mmintrin.h (__v1di): New typedef.
6363         (_mm_add_si64): Cast arguments to __v1di type.
6364         (_mm_sub_si64): Ditto.
6365         (_mm_sll_pi16): Cast __count to __v4hi type.
6366         (_mm_sll_pi32): Cast __count to __v2si type.
6367         (_mm_sll_si64): Cast arguments to __v1di type.
6368         (_mm_srl_pi16): Cast __count to __v4hi type.
6369         (_mm_srl_pi32): Cast __count to __v2si type.
6370         (_mm_srl_si64): Cast arguments to __v1di type.
6371         (_mm_sra_pi16): Cast __count to __v4hi type.
6372         (_mm_sra_pi32): Cast __count to __v2si type.
6373         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
6374         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
6375         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
6376         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
6377         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
6378         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
6379         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
6380         (_mm_srai_pi32): Use __builtin_ia32_psradi.
6381         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
6382         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
6383         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
6384         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
6385
6386 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
6387
6388         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
6389
6390 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
6391
6392         PR target/35373
6393         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
6394         reg+const addressing for Altivec modes.  Don't generate reg+reg
6395         addressing for TFmode or TDmode quantities.
6396
6397 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
6398
6399         * c-common.c (vector_types_convertible_p): Call langhook
6400         instead of comptypes.
6401
6402 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6403
6404         PR tree-opt/35402
6405         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
6406         integral and scalar float variables which have a
6407         NULL DECL_INITIAL.
6408
6409 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
6410
6411         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
6412         dwarf_register_span hook when emitting unwind information for
6413         register-to-memory saves.
6414         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
6415         (rs6000_frame_related): Remove call to spe_synthesize_frame.
6416
6417 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
6418
6419         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
6420         for the same VAR_DECL.
6421
6422 2008-03-06  Tom Tromey  <tromey@redhat.com>
6423
6424         * treelang: Delete.
6425         * doc/standards.texi (Standards): Don't mention treelang.
6426         * doc/invoke.texi (Overall Options): Don't mention treelang.
6427         * doc/install.texi (Prerequisites): Don't mention bison or
6428         treelang.
6429         (Configuration): Don't mention treelang.
6430         (Building): Likewise.
6431         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
6432
6433 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
6434
6435         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
6436         word-extractions out of a multi-word object.
6437
6438 2008-03-06  Richard Guenther  <rguenther@suse.de>
6439
6440         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
6441         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
6442         result type and precision.
6443         * expr.c (get_inner_reference): Set unsignedp based on the result
6444         type of BIT_FIELD_REF.
6445         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
6446         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
6447         (try_instantiate_multiple_fields): Likewise.  Use the correct type
6448         for BIT_FIELD_REF.
6449         (sra_build_assignment): Likewise.
6450         (sra_build_elt_assignment): Likewise.
6451         (sra_explode_bitfield_assignment): Likewise.
6452         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
6453         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
6454         set BIT_FIELD_REF_UNSIGNED.
6455         (vectorizable_load): Likewise.
6456
6457 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
6458
6459         * cse.c (cse_extended_basic_block): Invalidate artificial defs
6460         at bb start.
6461
6462 2008-03-06  Richard Guenther  <rguenther@suse.de>
6463
6464         * alias.c (struct alias_set_entry): Move has_zero_child field
6465         to pack with alias_set.
6466
6467 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
6468
6469         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
6470         32bit host.
6471
6472 2008-03-05  Ian Lance Taylor  <iant@google.com>
6473
6474         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
6475
6476 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
6477
6478         * fwprop.c (update_df): Support width and offset parameters of
6479         df_ref_create.
6480         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
6481         global_conflicts): Change DF_REF_EXTRACT to either
6482         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
6483         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
6484         * df-scan.c (df_ref_record, df_defs_record,
6485         df_ref_create_structure, df_def_record_1, df_uses_record,
6486         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
6487         df_bb_refs_collect, df_entry_block_defs_collect,
6488         df_exit_block_uses_collect): Support new width and offset fields.
6489         (ref_extract_pool): New storage pool.
6490         (df_free_ref): New function.
6491         (df_reg_chain_unlink, df_free_collection_rec,
6492         df_sort_and_compress_refs): Call df_free_ref.
6493         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
6494         of df_ref_extract.
6495         (df_ref_create_structure): Allocate df_ref_extract if offset and
6496         width fields are used.
6497         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
6498         (df_uses_record): Get offset and width from ZERO_EXTRACT 
6499         and SIGN_EXTRACT.
6500         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
6501         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
6502         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
6503         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
6504         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
6505         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
6506         (df_ref_extract): New structure.
6507         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
6508         (df_ref_create): Add width and offset parameters.
6509         
6510 2008-03-05  Richard Guenther  <rguenther@suse.de>
6511
6512         * tree-ssa-structalias.c (get_constraint_for_component_ref):
6513         Use ranges_overlap_p.
6514         (offset_overlaps_with_access): Rename
6515         to ranges_overlap_p and move ...
6516         * tree-flow-inline.h (ranges_overlap_p): ... here.
6517
6518         * tree.h (get_inner_reference, handled_component_p): Update
6519         comments.
6520
6521         * tree.h (record_component_aliases, get_alias_set,
6522         alias_sets_conflict_p, alias_sets_must_conflict_p,
6523         objects_must_conflict_p): Move declarations ...
6524         * alias.h (record_component_aliases, get_alias_set,
6525         alias_sets_conflict_p, alias_sets_must_conflict_p,
6526         objects_must_conflict_p): ... here.
6527         Include coretypes.h.
6528         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
6529
6530 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
6531
6532         * cfg.c: Include tree-flow.h.
6533         (remove_edge_raw): Call redirect_edge_var_map_clear.
6534         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
6535         * tree-flow-inline.h (redirect_edge_var_map_def): New.
6536         (redirect_edge_var_map_result): New.
6537         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
6538         PENDING_STMT use with redirect_edge_var_map_*.
6539         * tree-ssa.c (edge_var_maps): New definition.
6540         (redirect_edge_var_map_add): New.
6541         (redirect_edge_var_map_clear): New.
6542         (redirect_edge_var_map_dup): New.
6543         (redirect_edge_var_map_vector): New.
6544         (redirect_edge_var_map_destroy): New.
6545         (ssa_redirect_edge): Replace PENDING_STMT use with
6546         redirect_edge_var_map_*.
6547         (flush_pending_stmts): Same.
6548         (delete_tree_ssa): Destroy edge var map.
6549         * tree-flow.h (struct _edge_var_map): New.
6550         Define edge_var_map vector type.
6551         Declare redirect_edge_var_map_* prototypes.
6552         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
6553         * tree-cfg.c (reinstall_phi_args): Replace
6554         PENDING_STMT use with redirect_edge_var_map_*.
6555
6556 2008-03-05  Richard Guenther  <rguenther@suse.de>
6557
6558         PR tree-optimization/35472
6559         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
6560         whose single use_stmt has a overlapping set of loaded and
6561         stored symbols as that use_stmt might be a noop assignment then.
6562
6563 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
6564
6565         * gthr-rtems.h: Implement __gthread_mutex_destroy.
6566
6567 2008-03-05  Richard Guenther  <rguenther@suse.de>
6568
6569         PR c++/35336
6570         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
6571         should be constants.
6572         * tree-cfg.c (verify_expr): Verify it.
6573         * fold-const.c (fold_truthop): Remove code generating
6574         BIT_FIELD_REFs of structure bases.
6575         (fold_binary): Likewise.
6576         (fold_ternary): Position and size of BIT_FIELD_REFs are
6577         always host integers.
6578         (make_bit_field_ref): Remove.
6579         (optimize_bit_field_compare): Remove.
6580         (all_ones_mask_p): Remove.
6581
6582 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
6583
6584         PR gcc/33009
6585         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
6586         (split_block_and_df_analyze): New. Split basic block and rebuild
6587         dataflow.
6588         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
6589         SPLIT_BLOCK.
6590         (split_pattern_seq): Likewise.
6591         (erase_matching_seqs): Likewise.
6592         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
6593
6594 2008-03-04  Geoff Keating  <geoffk@apple.com>
6595
6596         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
6597         declaration and code.
6598         (tree_invalid_nonnegative_warnv_p): Likewise.
6599
6600 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
6601
6602         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
6603         examples.  Truncate option-names then causing overfull hbox.
6604
6605 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6606
6607         PR target/35222
6608         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
6609         on hpux10.
6610         * configure: Rebuilt.
6611
6612 2008-03-04  Rafael Espindola  <espindola@google.com>
6613
6614         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
6615         (tree_unary_nonnegative_warnv_p): New.
6616         (tree_binary_nonnegative_warnv_p): New.
6617         (tree_single_nonnegative_warnv_p): New.
6618         (tree_invalid_nonnegative_warnv_p): New.
6619         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
6620
6621 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6622
6623         PR 28322
6624         * opts.c (handle_option): Postpone 'unknown option' errors only for
6625         warning options.
6626
6627 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
6628
6629         PR target/35453
6630         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
6631         (_SIDD_XXX): This.
6632
6633 2008-03-04  Rafael Espindola  <espindola@google.com>
6634
6635         * fold-const.c (tree_unary_nonzero_warnv_p): New.
6636         (tree_binary_nonzero_warnv_p): New.
6637         (tree_single_nonzero_warnv_p): New.
6638         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
6639
6640 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
6641
6642         PR middle-end/35456
6643         * fold-const.c (fold_cond_expr_with_comparison): Prevent
6644         transformations for modes that have signed zeros.
6645         * ifcvt.c (noce_try_abs): Ditto.
6646
6647 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
6648
6649         * config/i386/i386.c (override_options): Force
6650         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
6651
6652 2008-03-04  Jan Hubicka  <jh@suse.cz>
6653
6654         PR c++/35262
6655         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
6656         in last commit.
6657
6658 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
6659
6660         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
6661         label to probe the stack.
6662
6663 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
6664
6665         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
6666         (__gthr_win32_mutex_destroy): Declare.
6667         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
6668         __gthr_win32_mutex_destroy.
6669         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
6670
6671 2008-03-03  Jan Hubicka  <jh@suse.cz>
6672
6673         PR c++/35262
6674         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
6675         aggressive on inlining cold calls.
6676
6677 2008-03-03  Richard Guenther  <rguenther@suse.de>
6678
6679         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
6680         struct copies into the expression table.
6681         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
6682         (try_to_simplify): Likewise.
6683         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
6684         integral and pointer arguments which do not change the
6685         precision to NOP_EXPRs.
6686         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
6687         VIEW_CONVERT_EXPR case.
6688
6689 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
6690
6691         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
6692         defined in a loop at depth 0 is invariant.
6693         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
6694         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
6695         be called at loop depth 0.
6696
6697 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
6698
6699         PR driver/35420
6700         * gcc.c (process_command): Update copyright notice dates.
6701         * gcov.c (print_version): Likewise.
6702         * gcov-dump.c (print_version): Likewise.
6703         * mips-tfile.c (main): Likewise.
6704         * mips-tdump.c (main): Likewise.
6705
6706 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6707
6708         PR 24924
6709         * c-common.c (flag_permissive): Delete.
6710         (constant_expression_warnings): Check flags first.
6711         (constant_expression_error): New.
6712         * c-common.h (flag_permissive): Delete.
6713         (constant_expression_error): Declare.
6714         * flags.h (flag_permissive): Declare. Update description.
6715         * diagnostic.c (pedwarn): Update.
6716         (permerror): New.
6717         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
6718         (permissive_error_kind): New.
6719         * toplev.c (flag_permissive): Define. Update description.
6720         * toplev.h (permissive_error_kind): Declare.
6721         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
6722         (pedwarn_c90): Use pedantic_warning_kind.
6723         * c-opts.c (c_common_post_options): flag_permissive does not affect
6724         flag_pedantic_errors.
6725
6726 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
6727
6728         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
6729         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
6730         __absvsi2, __absvDI2): Use unsigned arithmetic.
6731
6732 2008-03-02  Andi Kleen  <ak@suse.de>
6733             Richard Guenther  <rguenther@suse.de>
6734
6735         * struct-equiv.c: Remove file.
6736         * cfg_cleanup.c (condjump_equiv_p): Remove.
6737         * Makefile.in (OBJS-common): Remove struct-equiv.o.
6738         (struct-equiv.o): Remove rule.
6739         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
6740         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
6741         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
6742
6743 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6744
6745         * ifcvt.c (noce_process_if_block): Try to handle only the then
6746         block if the else block exists but isn't suitable.
6747
6748 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
6749
6750         PR gcc/35063
6751         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
6752         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
6753         regression from previous patch.
6754
6755 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
6756
6757         PR gcc/35063
6758         * gthr.h: Add __gthread_mutex_destroy as a function that must be
6759         implemented.
6760         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
6761         * gthr-single.h (__gthread_mutex_destroy): Likewise.
6762         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
6763         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
6764         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
6765         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
6766         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
6767         (__gthread_mutex_destroy_function): Rename to
6768         __gthread_mutex_destroy.
6769         * gthr-dce.h (__gthread_mutex_destroy): Call
6770         pthread_mutex_destroy.
6771         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
6772         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
6773         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
6774
6775 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6776
6777         * df-scan.c (df_ref_chain_change_bb): Simplify.
6778         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
6779         set_block_for_insn if there's any change.
6780         * df.h ((df_insn_change_bb): Fix prototype.
6781         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
6782         df_insn_change_bb, don't call set_block_for_insn.
6783         * emit-rtl.c (reorder_insns): Likewise.
6784         * haifa-sched.c (move_insn): Likewise.
6785
6786 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6787
6788         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
6789
6790 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6791
6792         * tree-flow-inline.h (next_readonly_imm_use): Return
6793         NULL_USE_OPERAND_P after the end.
6794
6795 2008-03-01  Richard Guenther  <rguenther@suse.de>
6796
6797         PR tree-optimization/35411
6798         * tree-sra.c (sra_build_assignment): Split conversion to
6799         final type to a separate statement if we are not assigning
6800         to a register.
6801
6802 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
6803
6804         * fold-const.c (fold_convertible_p): Correct the logic to follow
6805         that in fold_convert().
6806
6807 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
6808
6809         PR c++/35315
6810         * tree-inline.c (build_duplicate_type): When we make a
6811         duplicate type, make it unique in the canonical types system.
6812
6813 2008-02-29  Tom Tromey  <tromey@redhat.com>
6814
6815         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
6816         input_file_stack_history, input_file_stack_restored): Remove.
6817         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
6818         * input.h (struct file_stack): Remove.
6819         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
6820         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
6821         Likewise.
6822         * diagnostic.h (struct diagnostic_context) <last_module>: Change
6823         type.
6824         (diagnostic_last_module_changed): Add 'map' argument.
6825         (diagnostic_set_last_function): Likewise.
6826         * diagnostic.c (undiagnostic_report_current_module): Iterate using
6827         line map, not input_file_stack.
6828         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
6829
6830 2008-02-29  Paul Brook  <paul@codesourcery.com>
6831
6832         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
6833
6834 2008-02-29  Paul Brook  <paul@codesourcery.com>
6835
6836         * config/arm/ieee754-df.S (muldf3): Use RET macros.
6837
6838 2008-02-29  Richard Guenther  <rguenther@suse.de>
6839
6840         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
6841         vn_lookup_or_add.
6842         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
6843         value for comparing for a store match.
6844         (simplify_unary_expression): Do nothing for SSA_NAMEs.
6845         (try_to_simplify): Do not do a full-blown reference lookup.
6846
6847 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6848
6849         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
6850         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
6851
6852         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
6853
6854 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
6855
6856         * tree-loop-linear.c (try_interchange_loops): Compare memory access
6857         strides against cache sizes.
6858
6859 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6860
6861         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
6862         constant to fpul.
6863
6864 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
6865
6866         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
6867         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
6868         is smaller than the original promoted value.
6869         (simplify_subreg): If OP is a SUBREG, try to preserve its
6870         SUBREG_PROMOTED_VAR_P information.
6871
6872 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
6873
6874         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
6875         (VN_INFO_GET): Allocate new objects on the obstack.
6876         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
6877         for rpo_numbers_temp, for consistency.
6878         (free_scc_vn): Free the obstack.
6879
6880 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
6881
6882         * doc/invoke.texi: Document -ftree-loop-distribution.
6883         * tree-loop-distribution.c: New.
6884         * tree-pass.h (pass_loop_distribution): New.
6885         * graphds.h (struct graph): Add htab_t indices.
6886         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
6887         * tree-vectorizer.c (rename_variables_in_loop): Extern.
6888         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
6889         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
6890         * tree-data-ref.c (debug_data_dependence_relations): New.
6891         (dump_data_dependence_relation): Also print data references.
6892         (free_data_ref): Extern.
6893         (same_access_functions): Moved...
6894         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
6895         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6896         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
6897         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
6898         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
6899         (stmts_from_loop): Skip LABEL_EXPR.
6900         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
6901         New.
6902         (build_rdg): Initialize rdg->indices htab.
6903         (free_rdg, stores_from_loop, ref_base_address,
6904         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
6905         have_similar_memory_accesses_1, ref_base_address_1,
6906         remove_similar_memory_refs): New.
6907         * tree-data-ref.h: Depend on tree-chrec.h.
6908         (debug_data_dependence_relations, free_data_ref): Declared.
6909         (same_access_functions): ... here.
6910         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
6911         New.
6912         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
6913         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
6914         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
6915         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6916         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
6917         rdg_vertex_for_stmt): Declared.
6918         (struct rdg_edge): Add level.
6919         (RDGE_LEVEL): New.
6920         (free_rdg, stores_from_loop, remove_similar_memory_refs,
6921         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
6922         Declared.
6923         (rdg_has_similar_memory_accesses): New.
6924         * tree-vect-analyze.c: Remove unused static decls.
6925         * lambda.h (dependence_level): New.
6926         * common.opt (ftree-loop-distribution): New.
6927         * tree-flow.h (mark_virtual_ops_in_bb, 
6928         slpeel_tree_duplicate_loop_to_edge_cfg,
6929         rename_variables_in_loop): Declared.
6930         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
6931         (OBJS-common): Add tree-loop-distribution.o.
6932         (tree-loop-distribution.o): New rule.
6933         * tree-cfg.c (mark_virtual_ops_in_bb): New.
6934         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
6935         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
6936
6937 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
6938
6939         PR target/33963
6940         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
6941         other than structures and unions.
6942
6943 2008-02-28  Richard Guenther  <rguenther@suse.de>
6944
6945         Revert:
6946         2008-02-26  Richard Guenther  <rguenther@suse.de>
6947
6948         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6949         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6950         (lookup_decl_from_uid): Declare.
6951         (remove_decl_from_map): Likewise.
6952         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6953         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6954         (decl_for_uid_map): New global hashtable mapping DECL_UID
6955         to the decl tree.
6956         (init_ttree): Allocate it.
6957         (insert_decl_to_uid_decl_map): New helper function.
6958         (make_node_stat): Insert new decls into the map.
6959         (copy_node_stat): Likewise.
6960         (lookup_decl_from_uid): New function.
6961         (remove_decl_from_map): Likewise.
6962         (print_decl_for_uid_map_statistics): New helper.
6963         (dump_tree_statistics): Call it.
6964
6965         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6966         (referenced_var_iterator): Adjust.
6967         (FOR_EACH_REFERENCED_VAR): Adjust.
6968         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6969         (num_referenced_vars): Adjust.
6970         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6971         (first_referenced_var): Remove.
6972         (end_referenced_vars_p): Likewise.
6973         (next_referenced_var): Likewise.
6974         (referenced_var_iterator_set): New helper function.
6975         * tree-dfa.c (referenced_var_lookup): Adjust.
6976         (referenced_var_check_and_insert): Likewise.
6977         (remove_referenced_var): Likewise.
6978         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6979         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6980         (verify_call_clobbering): Likewise.
6981         (verify_memory_partitions): Likewise.
6982         (init_tree_ssa): Allocate bitmap instead of hashtable for
6983         referenced_vars.
6984         (delete_tree_ssa): Adjust.
6985         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6986         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6987         (compute_tag_properties): Likewise.
6988         (set_initial_properties): Likewise.
6989         (find_partition_for): Likewise.
6990         (update_reference_counts): Likewise.
6991         (dump_may_aliases_for): Likewise.
6992         * tree-ssa-operands.c (add_virtual_operand): Likewise.
6993         (add_call_clobber_ops): Likewise.
6994         (add_call_read_ops): Likewise.
6995         (get_asm_expr_operands): Likewise.
6996         * tree-into-ssa.c (dump_decl_set): Likewise.
6997         (update_ssa): Likewise.
6998         * tree-sra.c (scan_function): Likewise.
6999         (decide_instantiations): Likewise.
7000         (scalarize_parms): Likewise.
7001         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7002         (dsa_named_for): Likewise.
7003         * tree-ssa-structalias.c (update_alias_info): Likewise.
7004         (merge_smts_into): Likewise.
7005
7006 2008-02-27  David Daney  <ddaney@avtrex.com>
7007
7008         PR target/34409
7009         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
7010         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
7011         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
7012         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
7013         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
7014
7015 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
7016
7017         PR target/25477
7018         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
7019         (BUILT_IN_NEXTTOWARD): Remove.
7020         (BUILT_IN_NEXTTOWARDF): Ditto.
7021         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
7022         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
7023
7024 2008-02-27  Tom Tromey  <tromey@redhat.com>
7025
7026         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
7027         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
7028
7029 2008-02-27  Jan Beulich  <jbeulich@novell.com>
7030
7031         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
7032         update the respective field on newdecl.
7033
7034 2008-02-27  Revital Eres  <eres@il.ibm.com>
7035
7036         PR rtl-optimization/34999
7037         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
7038         crossing edges that ends with a call insn.
7039         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
7040         call insn and clear the EDGE_CROSSING flag of the crossing edge
7041         when fixing fallthru edges.
7042
7043 2008-02-27  Richard Guenther  <rguenther@suse.de>
7044
7045         PR middle-end/35390
7046         * fold-const.c (fold_unary): Return the correct argument,
7047         converted to the result type.
7048
7049 2008-02-27  Richard Guenther  <rguenther@suse.de>
7050
7051         PR middle-end/34971
7052         * expr.c (expand_expr_real_1): Assert on rotates that operate
7053         on partial modes.
7054         * fold-const.c (fold_binary): Use the types precision, not the
7055         bitsize of the mode if folding rotate expressions.  Build rotates
7056         only for full modes.
7057
7058 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
7059
7060         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
7061         and CPP_PRAGMA_EOL.
7062         * c-pragma.c (pragma_ns_name): New typedef.
7063         (registered_pp_pragmas): New variable.
7064         (c_pp_lookup_pragma): New function.
7065         (c_register_pragma_1): If flag_preprocess_only, do nothing
7066         for non-expanded pragmas, for expanded ones push pragma's
7067         namespace and name into registered_pp_pragmas vector.
7068         (c_invoke_pragma_handler): Register OpenMP pragmas even when
7069         flag_preprocess_only, don't register GCC pch_preprocess
7070         pragma if flag_preprocess_only.
7071         * c-opts.c (c_common_init): Call init_pragma even if
7072         flag_preprocess_only.
7073         * c-pragma.c (c_pp_lookup_pragma): New prototype.
7074         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
7075         cpp_register_pragma if flag_preprocess_only.
7076
7077 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7078
7079         PR c/28800
7080         * c-parser.c (c_parser_translation_unit): Warn for empty
7081         translation unit, not empty source file.
7082
7083 2008-02-26  Paul Brook  <paul@codesourcery.com>
7084
7085         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
7086         operand for Thumb-2.
7087         * config/arm/arm.h (reg_class): Add CORE_REGS.
7088         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
7089         (BASE_REG_CLASS): Use CORE_REGS.
7090         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
7091         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
7092         (REGNO_OK_FOR_INDEX_P): Exclude SP.
7093         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
7094         ARM_REGNO_OK_FOR_INDEX_P.
7095         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
7096         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
7097         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
7098         (ldm/stm peepholes): Ditto.
7099         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
7100         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
7101         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
7102         * config/arm/constraints.md: Enable "k" constraint on ARM.
7103
7104 2008-02-27  Ben Elliston  <bje@au.ibm.com>
7105
7106         * config/rs6000/rs6000.c: Annotate cache line size field in all
7107         instances of struct processor_costs.
7108
7109 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
7110
7111         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
7112         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
7113         jump_bypass): New counters.
7114         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
7115         * dce.c (gate_ud_dce): Same.
7116         (gate_fast_dce): Same.
7117         * dse.c (gate_dse1): New function.
7118         (gate_dse2): New function.
7119         (gate_dse): Merge results of new gate functions.
7120         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
7121         (gate_handle_jump_bypass): Add dbg_cnt.
7122         (gate_handle_gcse): Add dbg_cnt.
7123         * ifcvt.c (gate_handle_if_conversion): Same.
7124         (gate_handle_if_after_combine): Same.
7125         (gate_handle_if_after_reload): Same.
7126         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
7127
7128 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
7129
7130         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
7131         line sizes.
7132         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
7133
7134 2008-02-26  Jason Merrill  <jason@redhat.com>
7135
7136         PR c++/35315
7137         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
7138         alone if it's the naming decl for the type's main variant.
7139
7140 2008-02-26  Tom Tromey  <tromey@redhat.com>
7141
7142         * system.h (USE_MAPPED_LOCATION): Poison.
7143         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
7144         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
7145         (make_goto_expr_edges): Likewise.
7146         (remove_bb): Likewise.
7147         (execute_warn_function_return): Likewise.
7148         * basic-block.h (struct edge_def) <goto_locus>: Change type to
7149         location_t.
7150         * c-common.c (fname_decl): Remove old location code.
7151         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
7152         location code.
7153         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
7154         variant.
7155         (ASM_INPUT_SOURCE_LOCATION): Likewise.
7156         (gen_rtx_ASM_INPUT): Likewise.
7157         (gen_rtx_ASM_INPUT_loc): Likewise.
7158         (get_rtx_asm_OPERANDS): Remove.
7159         * cfglayout.c (insn_locators_alloc): Remove old location code.
7160         (set_curr_insn_source_location): Likewise.
7161         (curr_insn_locator): Likewise.
7162         * print-tree.c (print_node): Remove old location code.
7163         * tree-mudflap.c (mf_varname_tree): Remove old location code.
7164         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
7165         * cfgexpand.c (expand_gimple_cond_expr): Don't use
7166         location_from_locus.
7167         (construct_exit_block): Remove old location code.
7168         * emit-rtl.c (force_next_line_note): Remove old location code.
7169         * profile.c (branch_prob): Remove old location code.
7170         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
7171         LOC_LINE): Remove old-location variants.
7172         * langhooks.c (lhd_print_error_function): Remove old location
7173         code.
7174         * configure, config.in: Rebuilt.
7175         * configure.ac (--enable-mapped-location): Remove.
7176         * c-decl.c (c_init_decl_processing): Remove old location code.
7177         (finish_function): Likewise.
7178         * recog.c (decode_asm_operands): Remove old location code.
7179         * c-pch.c (c_common_read_pch): Remove old location code.
7180         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
7181         variants.
7182         * gimple-low.c (lower_function_body): Remove old location code.
7183         * toplev.c (unknown_location): Remove.
7184         (push_srcloc): Remove old-location variant.
7185         (process_options): Remove old location code.
7186         (lang_dependent_init): Likewise.
7187         * input.h (UNKNOWN_LOCATION): Move definition.
7188         (location_t): Undeprecate.
7189         (source_locus): Remove.
7190         (location_from_locus): Remove.
7191         (struct location_s): Remove.
7192         Remove all old-location code.
7193         (input_line, input_filename): Remove.
7194         * final.c (final_scan_insn): Remove old location code.
7195         * diagnostic.c (diagnostic_build_prefix): Remove
7196         USE_MAPPED_LOCATION test.
7197         * tree.h (gimple_stmt) <locus>: Now a location_t.
7198         (tree_exp) <locus>: Likewise.
7199         (DECL_IS_BUILTIN): Remove old-location variant.
7200         (annotate_with_file_line, annotate_with_locus): Likewise.
7201         (expr_locus, set_expr_locus): Update.
7202         * tree.c (build1_stat): Remove old location code.
7203         (last_annotated_node): Remove.
7204         (annotate_with_file_line): Remove old-location variant.
7205         (annotate_with_locus): Likewise.
7206         (expr_location): Remove old location code.
7207         (set_expr_location): Likewise.
7208         (expr_has_location): Likewise.
7209         (expr_locus): Likewise.
7210         (set_expr_locus): Likewise.
7211         (expr_filename): Don't use location_from_locus.
7212         (expr_lineno): Likewise.
7213         * rtl-error.c (location_for_asm): Remove old location code.
7214         * c-lex.c (cb_line_change): Remove old location code.
7215         (fe_file_change): Likewise.
7216         (cb_def_pragma): Likewise.
7217         (c_lex_with_flags): Likewise.
7218         * gengtype.c (do_typedef): Don't special-case location types.
7219         (define_location_structures): Remove.
7220         (main): Don't call define_location_structures.
7221         * tree-pretty-print.c (dump_implicit_edges): Remove old location
7222         code.
7223
7224 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7225
7226         PR 26264
7227         * builtins.def (BUILT_IN_STDARG_START): Remove.
7228         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
7229         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
7230         * tree-inline.c (inline_forbidden_p_1): Likewise.
7231         
7232 2008-02-26  Richard Guenther  <rguenther@suse.de>
7233
7234         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
7235         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
7236         (lookup_decl_from_uid): Declare.
7237         (remove_decl_from_map): Likewise.
7238         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
7239         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
7240         (decl_for_uid_map): New global hashtable mapping DECL_UID
7241         to the decl tree.
7242         (init_ttree): Allocate it.
7243         (insert_decl_to_uid_decl_map): New helper function.
7244         (make_node_stat): Insert new decls into the map.
7245         (copy_node_stat): Likewise.
7246         (lookup_decl_from_uid): New function.
7247         (remove_decl_from_map): Likewise.
7248         (print_decl_for_uid_map_statistics): New helper.
7249         (dump_tree_statistics): Call it.
7250
7251         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
7252         (referenced_var_iterator): Adjust.
7253         (FOR_EACH_REFERENCED_VAR): Adjust.
7254         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
7255         (num_referenced_vars): Adjust.
7256         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
7257         (first_referenced_var): Remove.
7258         (end_referenced_vars_p): Likewise.
7259         (next_referenced_var): Likewise.
7260         (referenced_var_iterator_set): New helper function.
7261         * tree-dfa.c (referenced_var_lookup): Adjust.
7262         (referenced_var_check_and_insert): Likewise.
7263         (remove_referenced_var): Likewise.
7264         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
7265         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7266         (verify_call_clobbering): Likewise.
7267         (verify_memory_partitions): Likewise.
7268         (init_tree_ssa): Allocate bitmap instead of hashtable for
7269         referenced_vars.
7270         (delete_tree_ssa): Adjust.
7271         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
7272         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7273         (compute_tag_properties): Likewise.
7274         (set_initial_properties): Likewise.
7275         (find_partition_for): Likewise.
7276         (update_reference_counts): Likewise.
7277         (dump_may_aliases_for): Likewise.
7278         * tree-ssa-operands.c (add_virtual_operand): Likewise.
7279         (add_call_clobber_ops): Likewise.
7280         (add_call_read_ops): Likewise.
7281         (get_asm_expr_operands): Likewise.
7282         * tree-into-ssa.c (dump_decl_set): Likewise.
7283         (update_ssa): Likewise.
7284         * tree-sra.c (scan_function): Likewise.
7285         (decide_instantiations): Likewise.
7286         (scalarize_parms): Likewise.
7287         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7288         (dsa_named_for): Likewise.
7289         * tree-ssa-structalias.c (update_alias_info): Likewise.
7290         (merge_smts_into): Likewise.
7291
7292 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7293
7294         PR 34351
7295         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
7296         * c-opts.c (c_common_handle_option): Wall enables
7297         Wvolatile-register-var.
7298         * common.opt: Move Wvolatile-register-var to...
7299         * c.opt: ...here.
7300         
7301 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7302
7303         * common.opt (Wlarger-than=): New.
7304         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
7305         -Wlarger-than=.
7306         * opts.c (common_handle_option): Handle -Wlarger-than=.
7307         * optc-gen.awk: Likewise.
7308         * opth-gen.awk: Likewise.
7309         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
7310         * tree-optimize.c (tree_rest_of_compilation): Likewise.
7311         
7312 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7313
7314         * c-common.c (match_case_to_enum_1): Add appropriate
7315         OPT_W* parameter to warning.
7316         (c_do_switch_warnings): Likewise.
7317         * c-typeck.c (warning_init): Add one more parameter following
7318         'warning' function.
7319         (push_init_level): Update call to warning_init.
7320         (pop_init_level): Likewise.
7321         (add_pending_init): Likewise.
7322         (output_init_element: Likewise.
7323
7324 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7325
7326         PR 28322
7327         * toplev.c (toplev_main): If there are warnings or error, print
7328         errors for ignored options.
7329         * opts.c (ignored_options): New static variable.
7330         (postpone_unknown_option_error): New.
7331         (print_ignored_options): New.
7332         (handle_option): Postpone errors for unknown -Wno-* options.
7333         * opts.h (print_ignored_options): Declare.
7334         
7335 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
7336
7337         * config/mips/mips.md (loadgp_blockage, blockage): Change type
7338         to "ghost".
7339
7340 2008-02-25  Richard Guenther  <rguenther@suse.de>
7341
7342         Revert:
7343         2008-02-25  Richard Guenther  <rguenther@suse.de>
7344
7345         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
7346         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
7347         (lookup_decl_from_uid): Declare.
7348         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
7349         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
7350         (decl_for_uid_map): New global hashtable mapping DECL_UID
7351         to the decl tree.
7352         (init_ttree): Allocate it.
7353         (insert_decl_to_uid_decl_map): New helper function.
7354         (make_node_stat): Insert new decls into the map.
7355         (copy_node_stat): Likewise.
7356         (lookup_decl_from_uid): New function.
7357         (print_decl_for_uid_map_statistics): New helper.
7358         (dump_tree_statistics): Call it.
7359
7360         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
7361         (referenced_var_iterator): Adjust.
7362         (FOR_EACH_REFERENCED_VAR): Adjust.
7363         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
7364         (num_referenced_vars): Adjust.
7365         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
7366         (first_referenced_var): Remove.
7367         (end_referenced_vars_p): Likewise.
7368         (next_referenced_var): Likewise.
7369         (referenced_var_iterator_set): New helper function.
7370         * tree-dfa.c (referenced_var_lookup): Adjust.
7371         (referenced_var_check_and_insert): Likewise.
7372         (remove_referenced_var): Likewise.
7373         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
7374         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7375         (verify_call_clobbering): Likewise.
7376         (verify_memory_partitions): Likewise.
7377         (init_tree_ssa): Allocate bitmap instead of hashtable for
7378         referenced_vars.
7379         (delete_tree_ssa): Adjust.
7380         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
7381         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7382         (compute_tag_properties): Likewise.
7383         (set_initial_properties): Likewise.
7384         (find_partition_for): Likewise.
7385         (update_reference_counts): Likewise.
7386         (dump_may_aliases_for): Likewise.
7387         * tree-ssa-operands.c (add_virtual_operand): Likewise.
7388         (add_call_clobber_ops): Likewise.
7389         (add_call_read_ops): Likewise.
7390         (get_asm_expr_operands): Likewise.
7391         * tree-into-ssa.c (dump_decl_set): Likewise.
7392         (update_ssa): Likewise.
7393         * tree-sra.c (scan_function): Likewise.
7394         (decide_instantiations): Likewise.
7395         (scalarize_parms): Likewise.
7396         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7397         (dsa_named_for): Likewise.
7398         * tree-ssa-structalias.c (update_alias_info): Likewise.
7399         (merge_smts_into): Likewise.
7400
7401 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
7402
7403         PR fortran/29549
7404         * doc/invoke.texi (-fcx-limited-range): Document new option.
7405         * toplev.c (process_options): Handle -fcx-fortran-rules.
7406         * common.opt: Add documentation for -fcx-fortran-rules.
7407
7408 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
7409
7410         PR c/35162
7411         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
7412         actual behaviour and C99.
7413         
7414 2008-02-26  Ben Elliston  <bje@au.ibm.com>
7415
7416         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
7417         (ASM_CPU_POWER6_SPEC): Likewise.
7418         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
7419         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
7420         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
7421
7422 2008-02-25  Richard Guenther  <rguenther@suse.de>
7423
7424         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
7425         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
7426         (lookup_decl_from_uid): Declare.
7427         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
7428         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
7429         (decl_for_uid_map): New global hashtable mapping DECL_UID
7430         to the decl tree.
7431         (init_ttree): Allocate it.
7432         (insert_decl_to_uid_decl_map): New helper function.
7433         (make_node_stat): Insert new decls into the map.
7434         (copy_node_stat): Likewise.
7435         (lookup_decl_from_uid): New function.
7436         (print_decl_for_uid_map_statistics): New helper.
7437         (dump_tree_statistics): Call it.
7438
7439         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
7440         (referenced_var_iterator): Adjust.
7441         (FOR_EACH_REFERENCED_VAR): Adjust.
7442         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
7443         (num_referenced_vars): Adjust.
7444         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
7445         (first_referenced_var): Remove.
7446         (end_referenced_vars_p): Likewise.
7447         (next_referenced_var): Likewise.
7448         (referenced_var_iterator_set): New helper function.
7449         * tree-dfa.c (referenced_var_lookup): Adjust.
7450         (referenced_var_check_and_insert): Likewise.
7451         (remove_referenced_var): Likewise.
7452         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
7453         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7454         (verify_call_clobbering): Likewise.
7455         (verify_memory_partitions): Likewise.
7456         (init_tree_ssa): Allocate bitmap instead of hashtable for
7457         referenced_vars.
7458         (delete_tree_ssa): Adjust.
7459         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
7460         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7461         (compute_tag_properties): Likewise.
7462         (set_initial_properties): Likewise.
7463         (find_partition_for): Likewise.
7464         (update_reference_counts): Likewise.
7465         (dump_may_aliases_for): Likewise.
7466         * tree-ssa-operands.c (add_virtual_operand): Likewise.
7467         (add_call_clobber_ops): Likewise.
7468         (add_call_read_ops): Likewise.
7469         (get_asm_expr_operands): Likewise.
7470         * tree-into-ssa.c (dump_decl_set): Likewise.
7471         (update_ssa): Likewise.
7472         * tree-sra.c (scan_function): Likewise.
7473         (decide_instantiations): Likewise.
7474         (scalarize_parms): Likewise.
7475         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7476         (dsa_named_for): Likewise.
7477         * tree-ssa-structalias.c (update_alias_info): Likewise.
7478         (merge_smts_into): Likewise.
7479
7480 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
7481
7482         PR target/35258
7483         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
7484         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
7485         * alias.h (nonoverlapping_memrefs_p): Likewise.
7486
7487 2008-02-25  Jan Beulich  <jbeulich@novell.com>
7488
7489         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
7490         * config/i386/netware-libgcc.exp: Add __bswap?i2,
7491         __emultls_get_address, __emultls_register_common,
7492         __floatundi?f, and _Unwind_GetIPInfo.
7493         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
7494         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
7495         (gen_regparm_prefix): Likewise.
7496         (i386_nlm_encode_section_info): Sync with
7497         config/i386/winnt.c:i386_pe_encode_section_info().
7498         (i386_nlm_maybe_mangle_decl_assembler_name): New.
7499         i386_nlm_mangle_decl_assembler_name): New.
7500         (netware_override_options): New.
7501         * config/i386/netware.h (netware_override_options): Declare.
7502         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
7503         (i386_nlm_mangle_decl_assembler_name): Declare.
7504         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
7505
7506 2008-02-25  Ben Elliston  <bje@au.ibm.com>
7507
7508         PR other/32948
7509         * c-decl.c (grokdeclarator): Remove unused local variables
7510         `typedef_type' and `type_as_written'.
7511         * bb-reorder.c
7512         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
7513         unused local variable `has_hot_blocks'.
7514         (fix_crossing_conditional_branches): Remove unused local variable
7515         `prev_bb'.
7516         
7517 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
7518
7519         PR middle-end/19984
7520         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
7521         using DEF_C99_BUILTIN.
7522         (BUILT_IN_NANF): Ditto.
7523         (BUILT_IN_NANL): Ditto.
7524
7525 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
7526             Revital Eres  <eres@il.ibm.com>
7527
7528         * modulo-sched.c (calculate_must_precede_follow): Address TODO
7529         regarding the order of two dependent insns in the same row.
7530
7531 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7532
7533         * stor-layout.c (layout_decl): Do not bump the alignment of a
7534         bit-field to more than byte alignment if it is packed.
7535
7536 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
7537
7538         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
7539         e300c2 and e300c3.
7540
7541 2008-02-24  Diego Novillo  <dnovillo@google.com>
7542
7543         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
7544
7545         PR 33738
7546         * tree-vrp.c (vrp_evaluate_conditional): With
7547         -Wtype-limits, emit a warning when comparing against a
7548         constant outside the natural range of OP0's type.
7549         * c.opt (Wtype-limits): Move ...
7550         * common.opt (Wtype-limits): ... here.
7551
7552 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
7553
7554         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
7555         * config/rs6000/e300c2c3.md: New file.
7556         * config/rs6000/rs6000.c (processor_costs): Add new costs for
7557         e300c2 and e300c3.
7558         (rs6000_override_options): Add e300c2 and e300c3 cases to
7559         processor_target_table. Do not allow usage of Altivec or Spe
7560         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
7561         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
7562         * config/rs6000/rs6000.h (processor_type): Add
7563         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
7564         (ASM_CPU_SPEC): Add e300c2 and e300c3.
7565         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
7566         and ppce300c3. Include e300c2c3.md.
7567
7568 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
7569
7570         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
7571         instead of TARGET_STRICT_ALIGN.
7572
7573 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
7574
7575         * explow.c (memory_address): Assert that the generated address is
7576         valid.
7577
7578 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
7579
7580         PR target/25477
7581         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
7582         * config/darwin-ppc-ldouble-patch.def: New file.
7583         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
7584         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
7585         SUBTARGET_INIT_BUILTINS if defined.
7586         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
7587         New functions.
7588
7589 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7590
7591         PR rtl-opt/33512
7592         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
7593         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
7594
7595 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7596
7597         PR pch/35027
7598         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
7599         file" warning condtional on -Winvalid-PCH.
7600
7601 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
7602
7603         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
7604
7605 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
7606
7607         PR target/22076
7608         PR target/34256 
7609         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
7610         prevent reload from using MMX registers.
7611         (*mov<mode>_internal): Ditto.
7612         (*movv2sf_internal_rex64): Ditto.
7613         (*movv2sf_internal): Ditto.
7614
7615 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7616
7617         PR documentation/31569
7618         * doc/install.texi2html: Use makeinfo --no-number-sections.
7619
7620 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
7621
7622         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
7623         ensure that we can address an entire entity > 8 bytes.  Don't
7624         generate reg+reg addressing for such data.
7625
7626 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
7627
7628         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
7629         strings when optimizing for size, unless the target cares about
7630         alignment.
7631
7632 2008-02-22  Tom Tromey  <tromey@redhat.com>
7633
7634         * regclass.c (current_pass): Remove declaration.
7635
7636 2008-02-22  Anatoly Sokolov <aesok@post.ru>
7637
7638         * config/avr/libgcc.S (__RAMPZ__): Define.
7639         (__do_copy_data): Add for devices with 128KB code memory.
7640
7641 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
7642
7643         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
7644         Use spe_abi.
7645         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
7646
7647 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
7648
7649         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
7650         GENNONACR_REGS.
7651
7652 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7653
7654         PR c/19999
7655         * c-typeck.c (build_binary_op): Warn about floating point
7656         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
7657
7658 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
7659
7660         PR target/34526
7661         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
7662         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
7663         add vrsave.
7664         (rs6000_override_options): Set altivec_abi as default, not override,
7665         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
7666         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
7667         is used; use new member spe_abi.
7668         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
7669         spe_abi and altivec_abi.
7670
7671 2008-02-22  Tomas Bily  <tbily@suse.cz>
7672
7673         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
7674
7675 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7676
7677         PR bootstrap/35273
7678         * config.build (build_file_translate): Set to `CMD //c' only if
7679         it works.
7680         * Makefile.in (build_file_translate): Improve comment.
7681
7682 2008-02-21  Jan Hubicka  <jh@suse.cz>
7683
7684         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
7685         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
7686         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
7687
7688 2008-02-21  Michael Matz  <matz@suse.de>
7689
7690         PR target/35264
7691         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
7692
7693 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
7694
7695         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
7696         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
7697         as insn constraint.
7698         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
7699         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
7700         SSE_VEC_FLOAT_MODE_P as insn constraint.
7701         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
7702         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
7703         sse4a_movntdf using MODEF mode iterator.
7704         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
7705         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
7706         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
7707         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
7708         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
7709         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
7710         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
7711
7712 2008-02-21  Richard Guenther  <rguenther@suse.de>
7713
7714         * tree.def (PAREN_EXPR): New tree code.
7715         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
7716         and PAREN_EXPR.
7717         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
7718         * expr.c (expand_expr_real_1): Likewise.
7719         * tree-inline.c (estimate_num_insns_1): Likewise.
7720         * tree-complex.c (expand_complex_move): Likewise.
7721         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
7722         as plain x.
7723
7724 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7725
7726         PR target/35225
7727         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
7728
7729 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7730
7731         PR target/35190
7732         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
7733
7734         * config/sh/sh.c (find_barrier): Don't go past
7735         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
7736
7737 2008-02-20  DJ Delorie  <dj@redhat.com>
7738
7739         * config/h8300/h8300.md (insv): Force source operand to be a register.
7740
7741         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
7742         as a jump, not as a plain insn.
7743         
7744 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
7745
7746         * doc/invoke.texi (Warning Options): Add new option
7747         -Wframe-larger-than=.
7748         (-Wframe-larger-than): Document.
7749
7750         * flags.h (warn_frame_larger_than, frame_larger_than_size):
7751         Add declarations for new option variables.
7752
7753         * final.c (final_start_function): Check the frame size
7754         before emission and issue a Wframe-larger-than warning.
7755
7756         * opts.c (warn_frame_larger_than, frame_larger_than_size):
7757         Add definitions for new option variables.
7758         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
7759
7760         * common.opt (Wframe-larger-than=): New option.
7761
7762 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
7763
7764         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
7765         (<sse>_div<mode>3): Ditto.
7766         (<sse>_vmdiv<mode>3): Ditto.
7767         (<sse>_vmsqrt<mode>2): Ditto.
7768         (*smax<mode>3): Ditto.
7769         (sse5_frcz<mode>2): Ditto.
7770         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
7771         as insn constraint.
7772
7773 2008-02-20  Richard Guenther  <rguenther@suse.de>
7774
7775         PR middle-end/35265
7776         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
7777         be happy with INTEGRAL_TYPE_P.
7778
7779 2008-02-20  Richard Guenther  <rguenther@suse.de>
7780
7781         * fold-const.c (split_tree): Associate floatig-point expressions
7782         if flag_associative_math is set.
7783
7784 2008-02-20  Richard Guenther  <rguenther@suse.de>
7785
7786         * tree.h (fold_real_zero_addition_p): Declare.
7787         * fold-const.c (fold_real_zero_addition_p): Export.
7788         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
7789         floating-point operations with zero and one.
7790
7791 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
7792
7793         * doc/install.texi: Correct references to CFLAGS, replacing them
7794         with BOOT_CFLAGS.  Document flags used during bootstrap for
7795         target libraries.
7796                                 
7797 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
7798
7799         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
7800         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
7801         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
7802         insn constraint.
7803         (smin<mode>3): Ditto from similar patterns.
7804         (smax<mode>3): Ditto.
7805         (*ieee_smin<mode>3): Ditto.
7806         (*ieee_smax<mode>3): Ditto.
7807         * config/i386/sse.md (sse): New mode attribute.
7808         (mov<mode>): Macroize expander from movv4sf and movv2df using
7809         SSEMODEF2P mode iterator.
7810         (<sse>_movnt<mode>): Ditto from similar patterns. Use
7811         SSE_VEC_FLOAT_MODE_P as insn constraint.
7812         (storent<mode>): Ditto.
7813         (storent<mode>): Macroize expander from storentsf and storentdf using
7814         MODEF mode iterator.
7815         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
7816         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
7817         (abs<mode>2): Ditto from similar patterns.
7818         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
7819         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
7820         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
7821         (<sse>_vmsqrt<mode>2): Ditto.
7822         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
7823         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
7824         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
7825         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
7826         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
7827         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
7828         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
7829         insn constraint.
7830         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
7831         iterator and SSE_FLOAT_MODE_P as insn constraint.
7832         (<sse>_ucomi): Ditto from similar patterns.
7833         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
7834         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
7835         SSE_VEC_FLOAT_MODE_P as insn constraint.
7836         (vcond<mode>): Ditto from similar patterns.
7837         (and<mode>3, *and<mode>3): Ditto.
7838         (<sse>_nand<mode>3): Ditto.
7839         (ior<mode>3, *ior<mode>3): Ditto.
7840         (xor<mode>3, *xor<mode>3): Ditto.
7841         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
7842         iterator and SSE_FLOAT_MODE_P as insn constraint.
7843         (*nand<mode>3): Ditto from similar patterns.
7844         (*ior<mode>3): Ditto.
7845         (*xor<mode>3): Ditto.
7846
7847 2008-02-20  Ira Rosen  <irar@il.ibm.com>
7848
7849         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
7850         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
7851         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
7852
7853 2008-02-19  Jan Hubicka  <jh@suse.cz>
7854
7855         * predict.c (tree_bb_level_predictions): Remove variable next
7856         mistakely introduced by previous commit.
7857
7858 2008-02-19  Jan Hubicka  <jh@suse.cz>
7859
7860         * predict.c (predict_paths_leading_to): Rewrite.
7861         (predict_paths_for_bb): New.
7862         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
7863
7864 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7865
7866         PR bootstrap/35218
7867         * Makefile.in (build_file_translate): New.
7868         (gcc-vers.texi): Use it for translating $(abs_srcdir).
7869         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
7870         * configure.ac (build_file_translate): Substitute it.
7871         * configure: Regenerate.
7872
7873 2008-02-19  Jan Hubicka  <jh@suse.cz>
7874
7875         PR rtl-optimization/34408
7876         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
7877         invalid sharing.
7878
7879 2008-02-19  Jan Hubicka  <jh@suse.cz>
7880
7881         PR middle-end/28779
7882         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
7883         call_expr.
7884
7885 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
7886
7887         PR Ada/35186
7888         * config/i386/i386-modes.def: Revert the last DI alignment
7889         change until Ada people can look into it.
7890
7891 2008-02-19  Nick Clifton  <nickc@redhat.com>
7892
7893         * opts.c (print_specific_help): Fix typo in --help text.
7894
7895 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
7896
7897         PR target/35239
7898         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
7899         32-bit inline asm without asm alternatives for host GCC < 3.0.
7900
7901 2008-02-19  Richard Guenther  <rguenther@suse.de>
7902
7903         PR tree-optimization/34989
7904         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
7905         Allow propagation to INDIRECT_REF if we can simplify only.
7906
7907 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7908
7909         * c-common.c (warn_for_collisions_1): Use appropriate option when
7910         warning.
7911
7912 2008-02-19  Nick Clifton  <nickc@redhat.com>
7913
7914         PR other/31349
7915         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
7916         (handle_options): Fix indentation.
7917         (print_filtered_help): If no language-specific options were
7918         displayed tell the user how to list all the options supported by
7919         the language's front-end.
7920         (print_specific_help): Fix indentation and remove duplicate line.
7921         (common_handle_option): Handle the -v option.
7922         For --help enable the display of undocumented options if the -v
7923         switch has been included on the command line.
7924         For --help= check for overlaps in the arguments between the option
7925         classes and the language names and issue a warning when they
7926         cannot be disambiguated.
7927         * c.opt (v): Pass on to the common option handler.
7928
7929 2008-02-19  Revital Eres  <eres@il.ibm.com> 
7930
7931         * modulo-sched.c (sms_schedule): Change dump message when
7932         create_ddg function fails.
7933         (try_scheduling_node_in_cycle): Rename row to cycle.
7934         (print_partial_schedule): Rename CYCLE to ROW.
7935
7936 2008-02-19  Christian Bruel  <christian.bruel@st.com>
7937             Zdenek Dvorak  <ook@ucw.cz>
7938
7939         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
7940
7941 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
7942
7943         PR target/33555
7944         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
7945         (*x86_movdicc_0_m1_se): Ditto.
7946
7947 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
7948
7949         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
7950         (CMPtype): Define as __gcc_CMPtype.
7951         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
7952         (CMPtype): Define as __gcc_CMPtype.
7953
7954 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
7955
7956         Support valgrind 3.3 for --enable-checking=valgrind.
7957         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
7958         here.
7959         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
7960         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
7961         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
7962         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
7963         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
7964         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
7965         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
7966         respectively.
7967         * ggc-zone.c: Similar.
7968         * ggc-page.c: Similar.
7969
7970 2008-02-19  Paul Brook  <paul@codesourcery.com>
7971
7972         PR target/35071
7973         * config/arm/ieee754-df.S: Fix do_it typo.
7974         * config/arm/ieee754-sf.S: Fix do_it typo.
7975
7976 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
7977
7978         PR target/35189
7979         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
7980         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
7981         (OPTION_MASK_ISA_SSE_SET): Likewise.
7982         (OPTION_MASK_ISA_SSE2_SET): Likewise.
7983         (OPTION_MASK_ISA_SSE3_SET): Likewise.
7984         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
7985         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
7986         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
7987         (OPTION_MASK_ISA_SSE4_SET): Likewise.
7988         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
7989         (OPTION_MASK_ISA_SSE5_SET): Likewise.
7990         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
7991         (OPTION_MASK_ISA_MMX_UNSET): Updated.
7992         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
7993         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
7994         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
7995         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
7996         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
7997         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
7998         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
7999         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
8000         (OPTION_MASK_ISA_SSE4): Removed.
8001         (ix86_handle_option): Turn on bits in ix86_isa_flags and
8002         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
8003         (override_options): Don't turn on implied SSE/MMX bits in
8004         ix86_isa_flags.
8005
8006 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
8007
8008         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
8009         32bit host.
8010
8011 2008-02-18  Joey Ye  <joey.ye@intel.com>
8012
8013         PR middle-end/34921
8014         * tree-nested.c (insert_field_into_struct): Set type alignment
8015         to field alignment if the former is less than the latter.
8016
8017 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
8018
8019         * BASE-VER: Set to 4.4.0.
8020
8021 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8022
8023         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
8024         * doc/cfg.texi: Likewise.
8025         * doc/extend.texi: Likewise.
8026         * doc/gty.texi: Likewise.
8027         * doc/invoke.texi: Likewise.
8028         * doc/loop.texi: Likewise.
8029         * doc/md.texi: Likewise.
8030         * doc/passes.texi: Likewise.
8031         * doc/rtl.texi: Likewise.
8032         * doc/sourcebuild.texi: Likewise.
8033         * doc/tm.texi: Likewise.
8034         * doc/tree-ssa.texi: Likewise.
8035
8036 2008-02-17  Richard Guenther  <rguenther@suse.de>
8037
8038         PR middle-end/35227
8039         * tree-complex.c (init_parameter_lattice_values): Handle parameters
8040         without default definition.
8041
8042 2008-02-17  Richard Guenther  <rguenther@suse.de>
8043
8044         PR tree-optimization/35231
8045         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
8046         if A | B != 1.
8047
8048 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
8049
8050         Revert:
8051         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
8052         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
8053         libgcc_cmp_return mode.
8054
8055 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8056
8057         PR c/28368
8058         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
8059
8060 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
8061
8062         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
8063         multilibs.
8064
8065 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8066
8067         * doc/c-tree.texi: Use `@.' where appropriate.
8068         * doc/extend.texi: Likewise.
8069         * doc/install.texi: Likewise.
8070         * doc/invoke.texi: Likewise.
8071         * doc/loop.texi: Likewise.
8072         * doc/makefile.texi: Likewise.
8073         * doc/md.texi: Likewise.
8074         * doc/passes.texi: Likewise.
8075         * doc/standards.texi: Likewise.
8076         * doc/tm.texi: Likewise.
8077
8078 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
8079
8080         PR middle-end/35196
8081         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
8082         in entry_bb.
8083         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
8084         rather than in entry_bb.
8085
8086 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
8087
8088         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
8089         libgcc_cmp_return mode.
8090
8091 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
8092
8093         PR middle-end/35130
8094         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
8095         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
8096
8097 2008-02-15  Richard Guenther  <rguenther@suse.de>
8098             Zdenek Dvorak  <ook@ucw.cz>
8099
8100         PR tree-optimization/35164
8101         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
8102         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
8103         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
8104         Only propagate addresses which do not have abnormal SSA_NAMEs
8105         in their operands.
8106
8107 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
8108
8109         PR target/35088
8110         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
8111
8112 2008-02-15  Jan Hubicka  <jh@suse.cz>
8113
8114         PR middle-end/35149
8115         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
8116
8117 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
8118
8119         PR middle-end/34621
8120         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
8121         when calculating alignment_pad.
8122
8123 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
8124
8125         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
8126         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
8127         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
8128         and STACK_BOUNDARY define.
8129
8130 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
8131
8132         PR preprocessor/35061
8133         * c-pragma.c (handle_pragma_pop_macro): Check that
8134         pushed_macro_table has been allocated.
8135
8136 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
8137
8138         PR middle-end/35136
8139         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
8140         (force_gimple_operand): Likewise.
8141         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
8142         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
8143         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
8144         (find_interesting_uses_address): Check addressability and alignment
8145         of the base expression only after substituting bases of IVs into it.
8146
8147 2008-02-14  Michael Matz  <matz@suse.de>
8148
8149         PR target/34930
8150         * function.c (instantiate_virtual_regs_in_insn): Reload address
8151         before falling back to reloading the whole operand.
8152
8153 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
8154
8155         * config/s390/s390.c (s390_mainpool_start): Emit the pool
8156         before the first section switch note.
8157
8158 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8159
8160         * doc/bugreport.texi: Update copyright years.
8161         * doc/c-tree.texi: Likewise.
8162         * doc/cfg.texi: Likewise.
8163         * doc/cpp.texi: Likewise.
8164         * doc/cppinternals.texi: Likewise.
8165         * doc/fragments.texi: Likewise.
8166         * doc/frontends.texi: Likewise.
8167         * doc/gcc.texi: Likewise.
8168         * doc/gty.texi: Likewise.
8169         * doc/hostconfig.texi: Likewise.
8170         * doc/implement-c.texi: Likewise.
8171         * doc/libgcc.texi: Likewise.
8172         * doc/loop.texi: Likewise.
8173         * doc/makefile.texi: Likewise.
8174         * doc/options.texi: Likewise.
8175         * doc/passes.texi: Likewise.
8176         * doc/rtl.texi: Likewise.
8177         * doc/sourcebuild.texi: Likewise.
8178         * doc/standards.texi: Likewise.
8179         * doc/tree-ssa.texi: Likewise.
8180         * doc/trouble.texi: Likewise.
8181
8182         * doc/extend.texi: Use @: or add comma where appropriate.
8183         * doc/invoke.texi: Likewise.
8184         * doc/tm.texi: Likewise.
8185
8186 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
8187
8188         PR target/34393
8189         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
8190         to a reg.
8191
8192 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
8193
8194         * doc/md.texi (clz, ctz): Add reference.
8195         * doc/rtl.texi (clz, ctz): Likewise.
8196
8197 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8198
8199         PR other/35148
8200         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
8201         srcdir.
8202
8203 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
8204
8205         * config/s390/s390.c (struct constant_pool): New field
8206         emit_pool_after added.
8207         (s390_mainpool_start): Set the emit_pool_after flag according
8208         to the section switch notes.
8209         (s390_mainpool_finish): Consider emit_pool_after when emitting
8210         the literal pool at the end of the function.
8211         (s390_chunkify_start): Force literal pool splits at section
8212         switch notes.
8213
8214 2008-02-13  Michael Matz  <matz@suse.de>
8215
8216         PR debug/35065
8217         * var-tracking.c (clobber_variable_part): Correctly traverse the
8218         list.
8219
8220 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8221
8222         PR 29673
8223         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
8224         Add -fdump-ipa-inline.
8225         * tree-dump.c (dump_files): Remove tree-inlined dump.
8226         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
8227         
8228 2008-02-12  Richard Guenther  <rguenther@suse.de>
8229
8230         PR tree-optimization/35171
8231         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
8232         default defs.
8233
8234 2008-02-12  Richard Guenther  <rguenther@suse.de>
8235
8236         PR middle-end/35163
8237         * fold-const.c (fold_widened_comparison): Use get_unwidened in
8238         value-preserving mode.  Disallow final truncation.
8239
8240 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
8241
8242         PR middle-end/35136
8243         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
8244         code from here to...
8245         (force_gimple_operand): ...here.
8246
8247 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
8248
8249         PR c++/35144
8250         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
8251         non-compatible pointers.
8252         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
8253         different FIELD_DECLs, try harder by comparing field offsets, sizes
8254         and types.
8255
8256         PR inline-asm/35160
8257         * function.c (match_asm_constraints_1): Don't replace the same input
8258         multiple times.
8259
8260 2008-02-12  Anatoly Sokolov <aesok@post.ru>
8261
8262         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
8263         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
8264         (expand_epilogue): Restore RAMPZ register.
8265         * config/avr/avr.md (RAMPZ_ADDR): New constant.
8266
8267 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
8268
8269         * config/i386/cygwin.asm: (__alloca): Correct calling
8270         convention and alignment.
8271         (__chkstk): Force 8 byte stack alignment.
8272
8273 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
8274             Richard Guenther  <rguenther@suse.de>
8275
8276         PR tree-optimization/33992
8277         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
8278         the zero we compare against.
8279
8280 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
8281
8282         PR libfortran/35063
8283         * gthr-win32.h (__gthread_mutex_destroy_function): New function
8284         to CloseHandle after unlocking to prevent accumulation of handle
8285         count.
8286
8287 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8288
8289         PR middle_end/34150
8290         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
8291         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
8292         and update LABEL_NUSES during and after reload.
8293
8294 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
8295
8296         PR middle-end/34627
8297         * combine.c (simplify_if_then_else): Make sure the comparison is
8298         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
8299
8300 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
8301
8302         PR bootstrap/35051
8303         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
8304         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
8305         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
8306         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
8307         * tree.h (get_type_static_bounds): Likewise.
8308
8309 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8310
8311         * doc/invoke.texi (Option Summary, C++ Dialect Options)
8312         (Objective-C and Objective-C++ Dialect Options, Warning Options):
8313         Make -Wfoo language annotations match what the compiler outputs.
8314
8315 2008-02-08  Sa Liu  <saliu@de.ibm.com>
8316
8317         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
8318         intrinsics spu_convts, spu_convtu, spu_convtf.
8319
8320 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
8321
8322         * doc/extend.texi (Function Attributes) <noinline>: Mention
8323         asm ("") as method to keep calls.
8324
8325 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8326
8327         PR other/32754
8328         * doc/options.texi (Options): Replace references to opts.sh with
8329         optc-gen.awk.
8330         * opts-common.c: Likewise.
8331         * optc-gen.awk: Likewise.
8332         
8333 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
8334
8335         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
8336
8337 2008-02-07  Richard Henderson  <rth@redhat.com>
8338
8339         PR rtl-opt/33410
8340         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
8341         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
8342         funny mode.
8343
8344 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
8345
8346         PR tree-optimization/35085
8347         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
8348         for operand entry oe2 in addition to operand entry oe3 in order to
8349         expose more opportunities for vectorizer sum reduction.
8350
8351 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8352
8353         PR other/35107
8354         * Makefile.in (LIBS): Remove $(GMPLIBS).
8355         (cc1-dummy, cc1): Add $(GMPLIBS).
8356
8357 2008-02-06  Jan Hubicka  <jh@suse.cz>
8358
8359         PR target/23322
8360         * i386.md (moddf_integer): Do not produce partial memory stalls for
8361         targets where it hurts.
8362
8363 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
8364
8365         PR target/35083
8366         * optabs.c (expand_float): Do not check for decimal modes when
8367         expanding unsigned integer through signed conversion.
8368
8369 2008-02-06  Nick Clifton  <nickc@redhat.com>
8370
8371         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
8372         inside the clobber with a match_operand and duplicated operand
8373         number in the constraint.
8374         (ineqbranchsi): Delete redundant comment.
8375
8376 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
8377
8378         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
8379         builtin_define ("__USE_INIT_FINI__").
8380         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
8381         -msx multilibs.
8382         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
8383
8384 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8385
8386         PR documentation/30330
8387         * doc/invoke.texi (C++ Dialect Options)
8388         (Objective-C and Objective-C++ Dialect Options, Warning Options):
8389         For each warning option -Wfoo that allows -Wno-foo, ensure both
8390         -Wfoo and -Wno-foo are listed in the option index.  Fix index
8391         entry of -Wswitch-default, index -Wnormalized= including the
8392         `=', and -Wlarger-than-@var{len} including @var{len}.
8393
8394 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
8395
8396         * config/i386/i386.md (floatunssisf2): Use
8397         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
8398         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
8399         Macroize expander using MODEF mode iterator.
8400
8401 2008-02-05  Diego Novillo  <dnovillo@google.com>
8402
8403         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
8404
8405         PR 33738
8406         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
8407
8408 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8409
8410         PR other/35070
8411         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
8412
8413 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
8414
8415         PR target/35084
8416         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
8417         to indicate if a message should be generated.
8418         (init_cumulative_args): Updated.
8419         (function_value_32): Likewise.
8420
8421 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
8422
8423         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
8424
8425 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
8426
8427         PR target/35083
8428         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
8429         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
8430
8431 2008-02-04  Diego Novillo  <dnovillo@google.com>
8432
8433         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
8434
8435         PR 33738
8436         * tree-vrp.c (vrp_evaluate_conditional): With
8437         -Wtype-limits, emit a warning when comparing against a
8438         constant outside the natural range of OP0's type.
8439
8440 2008-02-04  Richard Guenther  <rguenther@suse.de>
8441
8442         PR middle-end/33631
8443         * expr.c (count_type_elements): Give for unions instead of
8444         guessing.
8445
8446 2008-02-04  Richard Guenther  <rguenther@suse.de>
8447
8448         PR middle-end/35043
8449         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
8450         to TYPE_DOMAINs base type instead of using bitsizetype here.
8451
8452 2008-02-03  Jason Merrill  <jason@redhat.com>
8453
8454         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
8455
8456 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8457
8458         PR other/29972
8459         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
8460         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
8461         (RS/6000 and PowerPC Options): Fix typos and markup.
8462         * doc/passes.texi (Tree-SSA passes): Likewise.
8463
8464 2008-02-02  Michael Matz  <matz@suse.de>
8465
8466         PR target/35045
8467         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
8468         from record_last_reg_set_info.
8469         (record_last_reg_set_info): Take an RTX argument, iterate over all
8470         constituent hardregs.
8471         (record_last_set_info, record_opr_changes): Change calls to
8472         new signature or to record_last_reg_set_info_regno.
8473
8474 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
8475
8476         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
8477
8478 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
8479
8480         PR rtl-optimization/34773
8481         * reg-notes.def (EQUAL): Mention significance of combination of
8482         REG_EQUAL and REG_RETVAL.
8483         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
8484         insn that has a REG_RETVAL.
8485
8486 2008-02-01  Roger Sayle  <roger@eyesopen.com>
8487
8488         PR bootstrap/33781
8489         * configure.ac (--enable-fixed-point): Disable unless explicitly
8490         requested on IRIX.
8491         * configure: Regenerate.
8492
8493 2008-02-01  Richard Guenther  <rguenther@suse.de>
8494
8495         PR other/35042
8496         * invoke.texi (-finline-limit): Remove no longer true parts
8497         of the documentation.  Note that there is no default value.
8498
8499 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
8500             Mark Mitchell  <mark@codesourcery.com>
8501             Ben Elliston  <bje@au.ibm.com>
8502
8503         PR c/29326
8504         * doc/extend.texi (Other Builtins): Document.
8505
8506 2008-01-31  Tom Browder <tom.browder@gmail.com>
8507
8508         * doc/c-tree.texi (Types): Fix grammar.
8509         (Expression trees): Ditto.
8510         * doc/passes.texi (Tree-SSA passes): Ditto.
8511         
8512         * doc/configterms.texi (Configure Terms): Fix typo.
8513         * doc/cpp.texi (Common Predefined Macros): Ditto.
8514         * doc/md.texi (Machine Constraints): Ditto.
8515         
8516         * doc/makefile.texi (Makefile): Add comma.
8517
8518 2008-01-31  Tom Browder  <tom.browder@gmail.com>
8519             Gerald Pfeifer  <gerald@pfeifer.com>
8520         
8521         * doc/sourcebuild.texi (Front End): Remove references to CVS
8522         and CVSROOT/modules.
8523         (Texinfo Manuals): Replace reference to CVS by one to SVN.
8524         (Back End): Remove reference to CVS.
8525
8526 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
8527
8528         PR target/34900
8529         * config/mips/mips.c (gen_load_const_gp): New function, taking a
8530         comment from...
8531         (mips16_gp_pseudo_reg): ...here.
8532         * config/mips/mips.md (load_const_gp): Replace with...
8533         (load_const_gp_<mode>): ...this :P-based insn.
8534
8535 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8536
8537         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
8538         options. Minor fixes.
8539         (-std): Move reference to standards closer to where language
8540         standards are first mentioned.
8541         
8542 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
8543
8544         PR rtl-optimization/34995
8545         * reload.c (alternative_allows_const_pool_ref): Take an rtx
8546         parameter and return a bool.  If the rtx parameter is nonnull,
8547         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
8548         (find_reloads): Update call accordingly.  Pass the new operand
8549         if it needed no address reloads, otherwise pass null.
8550
8551 2008-01-30  Richard Henderson  <rth@redhat.com>
8552
8553         PR c/34993
8554         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
8555         for unbounded arrays.
8556
8557 2008-01-30  Silvius Rus  <rus@google.com>
8558
8559         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
8560
8561 2008-01-30  Jan Hubicka  <jh@suse.cz>
8562
8563         PR target/34982
8564         * i386.c (init_cumulative_args): Use real function declaration when
8565         calling locally.
8566
8567 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
8568
8569         PR rtl-optimization/34998
8570         * global.c (build_insn_chain): Treat non-subreg_lowpart
8571         SUBREGs of pseudos as clobbering all the words covered by the
8572         SUBREG, not just all the bytes.
8573         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
8574         original df_ref rather than an extract parameter.
8575         (global_conflicts): Update call accordingly.
8576
8577 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
8578
8579         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
8580         the overflow check to make it easier to read.
8581         (__fixtfdi): Change the type of the ll member in union
8582         long_double to UDItype_x.
8583
8584 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
8585
8586         PR middle-end/34969
8587         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
8588         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
8589         * tree-inline.c (fold_marked_statements): Call
8590         cgraph_update_edges_for_call_stmt if folding a call statement.
8591         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
8592         debug_generic_stmt calls, reset it back afterwards.
8593
8594         PR c/35017
8595         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
8596         static decls.
8597         * c-typeck.c (build_external_ref): Don't pedwarn about
8598         static vars in current function's scope.
8599
8600 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
8601
8602         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
8603
8604 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
8605
8606         PR c/35002
8607         * ipa-struct-reorg.c: Fix spelling.
8608         * params.def: Ditto.
8609
8610 2008-01-29  Richard Guenther  <rguenther@suse.de>
8611
8612         PR middle-end/35006
8613         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
8614         field.
8615         * tree-inline.c (remap_type): Increment remapping_type_depth
8616         around remapping types.
8617         (copy_body_r): Only add referenced variables if they are referenced
8618         from code, not types.
8619
8620 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
8621
8622         PR c++/34055
8623         PR c++/34103
8624         PR c++/34219
8625         PR c++/34606
8626         PR c++/34753
8627         PR c++/34754
8628         PR c++/34755
8629         PR c++/34919
8630         PR c++/34961
8631         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
8632         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
8633
8634 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
8635
8636         PR target/34412
8637         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
8638         pointer for tiny stack.
8639
8640 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
8641
8642         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
8643
8644 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
8645
8646         * config/vx-common.h: Fix typo in comment.
8647
8648 2008-01-28  Ian Lance Taylor  <iant@google.com>
8649
8650         PR c++/34862
8651         PR c++/33407
8652         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8653         coalesce pointers if they have different DECL_NO_TBAA_P values.
8654         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
8655         between variables with different DECL_NO_TBAA_P values.
8656
8657 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
8658
8659         PR 31535
8660         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
8661         are not legitimate small data references on SPE targets.
8662
8663 2008-01-28  David Daney  <ddaney@avtrex.com>
8664
8665         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
8666
8667 2008-01-28  David Daney  <ddaney@avtrex.com>
8668
8669         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
8670
8671 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
8672
8673         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
8674         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
8675         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
8676         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
8677         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
8678         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
8679         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
8680         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
8681
8682 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
8683
8684         * basic-block.h (condjump_equiv_p): Fix comment.
8685
8686 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
8687
8688         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
8689         print_generic_stmt_indented): Fix comment.
8690
8691 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
8692
8693         * configure.ac (__stack_chk_fail): Add detecion for availability
8694         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
8695         * configure: Regenerate.
8696
8697 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
8698
8699         PR middle-end/34688
8700         * final.c (output_addr_const): Handle TRUNCATE.
8701
8702 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
8703
8704         PR target/34711
8705         * tree-ssa-loop-ivopts.c (comp_cost): New type.
8706         (zero_cost, infinite_cost): New constants.
8707         (struct cost_pair): Change type of cost to comp_cost.
8708         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
8709         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
8710         New functions.
8711         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
8712         split_address_cost, ptr_difference_cost, difference_cost,
8713         get_computation_cost_at, get_computation_cost,
8714         determine_use_iv_cost_generic, determine_use_iv_cost_address,
8715         determine_use_iv_cost_condition, determine_use_iv_costs,
8716         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
8717         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
8718         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
8719         Change type of cost to comp_cost.
8720         (determine_iv_cost): Increase cost of non-original ivs, instead
8721         of decreasing the cost of original ones.
8722         (get_address_cost): Indicate the complexity of the addressing mode 
8723         in comp_cost.
8724         (try_add_cand_for): Prefer using ivs not specific to some object.
8725         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
8726
8727 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
8728             Janis Johnson  <janis187@us.ibm.com>
8729
8730         PR target/34814
8731         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
8732         (TARGET_INSTANTIATE_DECLS): Likewise.
8733         * target.h (expand_to_rtl_hook): New target hook.
8734         (instantiate_decls): Likewise.
8735         * function.c (instantiate_decl): Make non-static.  Rename to...
8736         (instantiate_decl_rtl): ... this.
8737         (instantiate_expr): Use instantiate_decl_rtl.
8738         (instantiate_decls_1): Likewise.
8739         (instantiate_decls): Likewise.
8740         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
8741         * function.h (instantiate_decl_rtl): Add prototype.
8742         * cfgexpand.c (target.h): New include.
8743         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
8744         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
8745         (TARGET_INSTANTIATE_DECLS): Likewise.
8746         (TARGET_INITIALIZER): New target hooks added.
8747         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
8748         New prototype.
8749         * config/rs6000/rs6000.c (tree-flow.h): New include.
8750         (machine_function): Add sdmode_stack_slot field.
8751         (rs6000_alloc_sdmode_stack_slot): New function.
8752         (rs6000_instantiate_decls): Likewise.
8753         (rs6000_secondary_memory_needed_rtx): Likewise.
8754         (rs6000_check_sdmode): Likewise.
8755         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
8756         (TARGET_INSTANTIATE_DECLS): Likewise.
8757         (rs6000_hard_regno_mode_ok): Allow SDmode.
8758         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
8759         (rs6000_emit_move): Handle SDmode.
8760         (function_arg_advance): Likewise.
8761         (function_arg): Likewise.
8762         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
8763         SDmode var args for 32-bit compiles.
8764         (rs6000_secondary_reload_class): Handle SDmode.
8765         (rs6000_output_function_epilogue): Likewise.
8766         (rs6000_function_value): Simplify if statement.
8767         (rs6000_libcall_value): Likewise.
8768         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
8769         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
8770         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
8771         (movsd_hardfloat): New define_insn.
8772         (movsd_softfloat): Likewise.
8773         (movsd_store): Likewise.
8774         (movsd_load): Likewise.
8775         (extendsddd2): Likewise.
8776         (extendsdtd2): Likewise.
8777         (truncddsd2): Likewise.
8778         (movdd_hardfloat64): Fixup comment.
8779         (UNSPEC_MOVSD_LOAD): New constant.
8780         (UNSPEC_MOVSD_STORE): Likewise.
8781
8782 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
8783
8784         PR c++/34965
8785         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
8786         TRUTH_XOR_EXPR.
8787         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
8788         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
8789         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
8790         and TRUTH_XOR_EXPR.
8791
8792 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
8793
8794         PR target/34794
8795         * config.gcc: Separate AIX 5.3 from AIX 6.1.
8796         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8797         __LONGDOUBLE128 too.
8798         * config/rs6000/aix61.h: New file.
8799
8800 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
8801
8802         PR rtl-optimization/34959
8803         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
8804         popcount and parity rtxes the same mode as their operand.
8805         Truncate or extend the result to the return value's mode
8806         if necessary.
8807
8808 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
8809
8810         PR target/34981
8811         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
8812         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
8813         to GOT_VERSION_REGNUM.
8814         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
8815         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
8816         * config/mips/mips.c (mips_emit_call_insn): New function.
8817         (mips_call_tls_get_addr): Call mips_expand_call directly.
8818         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
8819         emit_call_insn.
8820         (mips16_build_call_stub): Likewise.  Return the call insn or null.
8821         (mips_expand_call): Update the call to mips16_build_call_stub
8822         accordingly and a remove redundant condition.  Assert that MIPS16
8823         stubs do not use lazy binding.  Use mips_emit_call_insn and return
8824         the call insn.
8825         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
8826         TARGET_USE_GOT.
8827         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
8828         (mips_avoid_hazard): Remove hazard_set handling.
8829         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
8830         (UNSPEC_RESTORE_GP): ...this.
8831         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
8832         (FAKE_CALL_REGNO): Rename to...
8833         (GOT_VERSION_REGNUM): ...this.
8834         (type): Add "ghost" value.  Add an associated insn reservation.
8835         (hazard_set): Remove.
8836         (exception_receiver): Rename to...
8837         (restore_gp): ...this and update the unspec identifier accordingly.
8838         (exception_receiver, nonlocal_got_receiver): New expanders.
8839         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
8840         FAKE_CALL_REGNO.  Remove hazard_set attribute.
8841         (set_got_version, update_got_version): New patterns.
8842
8843 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
8844
8845         PR target/34970
8846         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
8847
8848 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
8849
8850         PR other/31955
8851         * doc/install.texi2html: Generate gcc-vers.texi.
8852
8853 2008-01-25  DJ Delorie  <dj@redhat.com>
8854
8855         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8856
8857 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
8858
8859         * config/c4x: Remove directory.
8860         * config.gcc (crx-*, mt-*): Mark obsolete.
8861         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
8862         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
8863         sh-*-rtemscoff*): Remove cases.
8864         * defaults.h (C4X_FLOAT_FORMAT): Remove.
8865         * real.c (encode_c4x_single, decode_c4x_single,
8866         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
8867         c4x_extended_format): Remove.
8868         * real.h (c4x_single_format, c4x_extended_format): Remove.
8869         * doc/extend.texi (interrupt, naked): Remove mention of attributes
8870         on C4x.
8871         (Pragmas): Remove comment about c4x pragmas.
8872         * doc/install.texi (c4x): Remove target-specific instructions.
8873         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
8874         * doc/md.texi (Machine Constraints): Remove C4x documentation.
8875         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
8876         refer to C4x source files as examples.
8877         (C4X_FLOAT_FORMAT): Remove documentation.
8878
8879 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
8880
8881         * config/bfin/bfin.c (override_options): Reorder tests so that
8882         flag_pic gets enabled for -msep-data.
8883
8884 2008-01-25  Richard Guenther  <rguenther@suse.de>
8885
8886         PR middle-end/32244
8887         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
8888         to its bitfield precision if required.
8889
8890 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
8891
8892         PR middle-end/33880
8893         * tree-nested.c (walk_omp_for): New function.
8894         (convert_nonlocal_reference, convert_local_reference): Call
8895         walk_omp_for on OMP_FOR.
8896         (convert_call_expr): Call walk_body on OMP_FOR's
8897         OMP_FOR_PRE_INIT_BODY.
8898
8899 2008-01-25  Richard Guenther  <rguenther@suse.de>
8900
8901         PR tree-optimization/34966
8902         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
8903         default defs and PHI_NODEs we have to insert after the
8904         defining statement.
8905
8906 2008-01-24  Nick Clifton  <nickc@redhat.com>
8907
8908         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
8909         Provide a default definition.
8910         (LIBGCC2_UNITS_PER_WORD): Likewise.
8911
8912         * config/stormy16/stormy16.c: Include df.h for the prototype
8913         for df_regs_ever_live_p.
8914         (xstormy16_expand_builtin_va_start): Convert the stack offset
8915         into a component_ref and then use POINTER_PLUS_EXPR to add it
8916         to the incoming_virtual_args_rtx.
8917         (xstormy16_gimplify_va_arg_expr): Rename to
8918         xstormy16_gimplify_va_arg_expr.
8919         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
8920         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
8921         xstormy16_gimplify_va_arg_expr.
8922         Fix up some formatting issues.
8923
8924         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
8925         Move to predicates.md.
8926         (xs_hi_general_operand): Likewise.
8927         (xs_hi_nonmemory_operand): Likewise.
8928         * config/stormy16/predicates.md:
8929         (xstormy16_carry_plus_operand): New predicate.
8930         (xs_hi_general_operand): New predicate.
8931         (xs_hi_nonmemory_operand): New predicate.
8932         * config/stormy16/stormy16-protos.h:
8933         (xstormy16_carry_plus_operand): Delete prototype.
8934         (xs_hi_general_operand): Likewise.
8935         (xs_hi_nonmemory_operand): Likewise.
8936
8937         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
8938         modifiers as they are no longer needed and they can trigger
8939         reload spill failures.
8940
8941         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
8942         with a match_operand in order to help reload.
8943
8944         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
8945         constraint with 'e' for the 8th alternative as this version of
8946         the mov.w instruction only accepts the lower 8 registers.
8947
8948 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
8949
8950         PR target/34856
8951         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
8952         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
8953         vector elements.
8954
8955 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
8956
8957         PR middle-end/33333
8958         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
8959
8960 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
8961
8962         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
8963         New functions.
8964         (remove_structure): Update allocations list before removing structure.
8965         
8966 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
8967
8968         * ipa-struct-reorg.c (is_safe_cond_expr, 
8969         create_new_stmts_for_cond_expr): Use integer_zerop function,
8970         that recognize not only zero-pointer, but zero-integer too.
8971
8972 2008-01-25  Ben Elliston  <bje@au.ibm.com>
8973
8974         PR other/22232
8975         * fixproto: Escape "." in sed expression that strips leading "./".
8976
8977 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
8978
8979         PR driver/34904
8980         * gcc.c (SWITCH_OK): Removed.
8981         (SWITCH_LIVE): Changed to bit.
8982         (SWITCH_FALSE): Likewise.
8983         (SWITCH_IGNORE): Likewise.
8984         (switchstr): Change live_cond to unsigned int.
8985         (process_command): Replace SWITCH_OK with 0.
8986         (do_self_spec): Likewise.
8987         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
8988         (give_switch): Likewise.
8989         (used_arg): Likewise.
8990         (do_spec_1): Set the SWITCH_IGNORE bit.
8991         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
8992         bits.  Set the SWITCH_LIVE bit.
8993
8994 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
8995
8996         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
8997
8998 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
8999
9000         PR tree-optimization/34472
9001         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
9002         parameter to a "bool *" and set *DATA to false if there is
9003         an unsafe access.  Do not delete the structure here.
9004         (check_cond_exprs): Delete it here instead.
9005         (check_cond_exprs, exclude_cold_structs): Do not increase
9006         I when removing a structure.
9007
9008 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
9009
9010         PR target/34856
9011         * config/i386/i386.c (ix86_expand_vector_init): Consider only
9012         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
9013
9014 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
9015
9016         PR middle-end/34934
9017         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
9018         a fixed vector for stack.
9019
9020 2008-01-24  Ben Elliston  <bje@au.ibm.com>
9021
9022         PR c++/25701
9023         * doc/gcc.texi (Software development): Add a direntry for g++.
9024         
9025 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
9026
9027         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
9028         stale and straggling -fforce-addr comments above.
9029
9030         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
9031         define.
9032         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
9033         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
9034
9035 2008-01-23  Michael Matz  <matz@suse.de>
9036
9037         PR debug/34895
9038         * dwarf2out.c (force_type_die): Use modified_type_die instead of
9039         gen_type_die.
9040
9041 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
9042
9043         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
9044         malloc result type.
9045
9046 2008-01-23 Anatoly Sokolov <aesok@post.ru>
9047
9048         * config/avr/avr.c (avr_current_arch): New variable.
9049         (avr_arch_types): Add 'avr31' and 'avr51' entries.
9050         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
9051         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
9052         (avr_override_options): Init 'avr_current_arch'. 
9053         (base_arch_s): Move from here...
9054         * config/avr/avr.h (base_arch_s): ... here. Add new members 
9055         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
9056         'mega' to 'have_jmp_call'.
9057         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
9058         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
9059         macros.
9060         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
9061         architectures.
9062         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
9063         MULTILIB_MATCHES): (Ditto.).
9064
9065 2008-01-23  Richard Guenther  <rguenther@suse.de>
9066
9067         PR middle-end/31529
9068         * cgraphunit.c (cgraph_reset_node): Always mark the node
9069         not reachable if it is not queued already.
9070
9071 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
9072
9073         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
9074         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
9075         (cputype_selected): New static variable.
9076         (bfin_handle_option): Set it if -mcpu is used.
9077         (override_option): Select default set of workarounds if no cpu type
9078         selected on the command line.
9079         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
9080
9081         From  Michael Frysinger  <michael.frysinger@analog.com>
9082         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
9083         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
9084
9085         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
9086         for bf547, bf523, bf524, and bf526.
9087         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
9088         bf526.
9089         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
9090         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
9091         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
9092         __ADSPBF547__ and __ADSPBF54x__ for bf547.
9093         * doc/invoke.texi (Blackfin Options): Document that
9094         -mcpu now accept bf547, bf523, bf524, and bf526.
9095
9096 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
9097
9098         PR rtl-optimization/34628
9099         * combine.c (try_combine): Stop and undo after the first combination
9100         if an autoincrement side-effect on the first insn has effectively
9101         been lost.
9102
9103 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
9104
9105         PR target/34529
9106         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
9107         Offset addresses are not valid for Altivec or paired float modes.
9108
9109 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
9110
9111         PR c++/34607
9112         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
9113         if DECL_INITIAL (decl) is error_mark_node.
9114
9115         PR c++/34914
9116         * c-common.c (handle_vector_size_attribute): Only allow
9117         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
9118         the same way as pointer, array etc. types.
9119         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
9120
9121         PR c++/34917
9122         * tree.c (build_type_attribute_qual_variant): Call
9123         build_qualified_type if attributes are equal, but quals are not.
9124
9125 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9126
9127         PR 32102
9128         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
9129         * flags.h (warn_strict_aliasing): Remove.
9130         (warn_strict_overflow): Remove.
9131         * opts.c (warn_strict_aliasing): Remove.
9132         (warn_strict_overflow): Remove.
9133         * c-opts.c (c_common_handle_option): -Wall only sets
9134         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
9135         (c_common_post_options): Give default values to -Wstrict-aliasing
9136         and -Wstrict-overflow if they are uninitialized.
9137         * common.opt (Wstrict-aliasing): Specify Var and Init.
9138         (Wstrict-overflow): Likewise.
9139
9140 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
9141
9142         PR rtl-optimization/26854
9143         PR rtl-optimization/34400
9144         PR rtl-optimization/34884
9145         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
9146         DF_RD->gen.
9147         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
9148         (df_rd_bb_info.expanded_lr_out): Deleted
9149         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
9150         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
9151         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
9152         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
9153         Removed code to allocate, initialize or free expanded_lr_out.
9154         (df_rd_bb_local_compute_process_def): Restructured to make more
9155         understandable.
9156         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
9157         sets if the sets are being trimmed.
9158
9159 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
9160
9161         PR bootstrap/32287
9162         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
9163         (as_vers): Likewise.
9164         * configure: Regenerated.
9165
9166 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9167
9168         PR middle-end/33092
9169         * tree-pass.h (pass_build_alias): New pass.
9170         * tree-ssa-alias.c (gate_build_alias): New.
9171         (pass_build_alias): New.
9172         * passes.c (init_optimization_passes): Add pass_build_alias after
9173         pass_create_structure_vars.
9174
9175 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
9176
9177         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
9178         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
9179         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
9180         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
9181         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
9182         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
9183         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
9184         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
9185         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
9186         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
9187         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
9188         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
9189         * config/s390/s390.md (FP_ALL): New mode iterator.
9190         (_d): New mode attribute.
9191         ("*signbit<mode>2>"): Changed mode of first operand.
9192         ("isinf<mode>2"): Changed mode of first operand.
9193         ("*TDC_insn"): Adaptation for DFP modes.
9194
9195 2008-01-22  Ben Elliston  <bje@au.ibm.com>
9196
9197         * tree.c (check_qualified_type): Improve function description.
9198
9199 2008-01-21  Jason Merrill  <jason@redhat.com>
9200
9201         PR c++/34196
9202         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
9203         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
9204         if it is set.
9205
9206 2008-01-21  DJ Delorie  <dj@redhat.com>
9207
9208         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
9209         return zero.
9210
9211 2008-01-21  Richard Guenther  <rguenther@suse.de>
9212
9213         PR middle-end/34856
9214         * tree-cfg.c (verify_expr): Allow all invariant expressions
9215         instead of just constant class ones as reference argument.
9216         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
9217         like any other constant.
9218         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9219
9220 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
9221
9222         * regmove.c (fixup_match_1): Update call crossed frequencies.
9223
9224 2008-01-21  Richard Guenther  <rguenther@suse.de>
9225
9226         PR c/34885
9227         * tree-inline.c (setup_one_parameter): Deal with mismatched
9228         types using a VIEW_CONVERT_EXPR.
9229
9230 2008-01-21  Alon Dayan  <alond@il.ibm.com>
9231             Olga Golovanevsky  <olga@il.ibm.com>
9232         
9233         PR tree-optimization/34701
9234         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
9235         when the structure size is not a power of 2.
9236
9237 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
9238
9239         * doc/install.texi: Add doc for --enable-checking=df.
9240         
9241 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9242
9243         PR rtl-optimization/34808
9244         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
9245
9246 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
9247
9248         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
9249         input.
9250
9251 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
9252
9253         PR rtl-optimization/26854
9254         PR rtl-optimization/34400
9255         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
9256         DF_RD->gen.
9257         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
9258         (df_rd_bb_info.expanded_lr_out): New.
9259         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
9260         * loop_iv.c (iv_analysis_loop_init): Ditto.
9261         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
9262         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
9263         Added code to allocate, initialize or free expanded_lr_out.
9264         (df_rd_bb_local_compute_process_def): Restructured to make
9265         more understandable.
9266         (df_rd_confluence_n): Add code to do nothing with fake edges and
9267         code to no apply invalidate_by_call sets if the sets are being trimmed.
9268         (df_lr_local_finalize): Renamed to df_lr_finalize.
9269         (df_live_local_finalize): Renamed to df_live_finalize.
9270
9271 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
9272
9273         PR target/34831
9274         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
9275         deciding whether to use reciprocal instructions.
9276
9277 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
9278
9279         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
9280         dwarf2out_note_section_used if cold_text_section is NULL.
9281
9282 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
9283
9284         PR gcov-profile/34610
9285         * tree-cfg.c (make_edges): Mark both outgoing edges from
9286         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
9287         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
9288         from OMP_FOR and OMP_CONTINUE outgoing edges.
9289
9290         * tree-profile.c (tree_profiling): Return early if
9291         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
9292         at the end.
9293         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
9294         from cfun to child_cfun.
9295         * function.h (struct function): Add after_tree_profile bit.
9296
9297 2008-01-19 Anatoly Sokolov <aesok@post.ru>
9298
9299         * config/avr/avr.S (_exit): Disable interrupt.
9300
9301 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
9302             Steven Bosscher  <stevenb.gcc@gmail.com>
9303
9304         PR rtl-optimization/26854
9305         PR rtl-optimization/34400
9306         * df-problems.c (df_live_scratch): New scratch bitmap.
9307         (df_live_alloc): Allocate df_live_scratch when doing df_live.
9308         (df_live_reset): Clear the proper bitmaps.
9309         (df_live_bb_local_compute): Only process the artificial defs once
9310         since the order is not important.
9311         (df_live_init): Init the df_live sets only with the variables
9312         found live by df_lr.
9313         (df_live_transfer_function): Use the df_lr sets to prune the
9314         df_live sets as they are being computed.  
9315         (df_live_free): Free df_live_scratch.
9316
9317 2008-01-18  Ian Lance Taylor  <iant@google.com>
9318
9319         * common.opt: Add fmerge-debug-strings.
9320         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
9321         flag_merge_debug_strings rather than flag_merge_constants.
9322         * doc/invoke.texi (Option Summary): Mention
9323         -fmerge-debug-strings.
9324         (Debugging Options): Document -fmerge-debug-strings.
9325
9326 2008-01-18  Ian Lance Taylor  <iant@google.com>
9327
9328         PR c++/33407
9329         * tree.h (DECL_IS_OPERATOR_NEW): Define.
9330         (struct tree_function_decl): Add new field operator_new_flag.
9331         * tree-inline.c (expand_call_inline): When inlining a call to
9332         operator new, force the return value to go into a variable, and
9333         set DECL_NO_TBAA_P on that variable.
9334         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
9335
9336 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
9337
9338         PR debug/34484
9339         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
9340         DWARF2_DEBUGGING_INFO.
9341         (dwarf2out_note_section_used): Ditto.  Add prototype.
9342         (have_multiple_function_sections, text_section_used,
9343         cold_text_section_used, *cold_text_sections): Move declarations
9344         before their uses.
9345
9346 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
9347
9348         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
9349         field and add signal_ra.
9350         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
9351         assignments to frame state pc.  Move end of stack check after
9352         MD_FALLBACK_FRAME_STATE_FOR.
9353         (uw_update_context_1): Use frame state signal_regs if set, instead
9354         of checking signal_frame flag.
9355         (uw_update_context): Use frame state signal_ra if set.
9356         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
9357         * config/xtensa/linux-unwind.h: New file.
9358
9359 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
9360
9361         * modulo-sched.c (get_sched_window): Fix comment typo.
9362
9363 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
9364
9365         PR tree-optimization/34648
9366         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
9367
9368 2008-01-17  Anatoly Sokolov <aesok@post.ru>
9369
9370         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
9371         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
9372
9373 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
9374
9375         PR rtl-optimization/34400
9376         * df-core.c (df_worklist_dataflow_overeager,
9377         df_worklist_dataflow_doublequeue): New functions.
9378         (df_worklist_dataflow): Two different worklist solvers.
9379         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
9380         New param.
9381
9382 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
9383
9384         PR testsuite/34821
9385         * doc/invoke.texi: Document the dependence on pthread for fopenmp
9386         and ftree-parallelize-loops.
9387
9388 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
9389
9390         PR rtl-optimization/34826
9391         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
9392
9393 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
9394
9395         * global.c (find_reg): Mark the eh regs as used if necessary.
9396         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
9397         * ra.h (struct allocno): no_eh_reg field added.  Changed
9398         no_stack_reg type to bitfield.
9399
9400 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
9401
9402         * tree.c (substitute_in_expr): Add missing 'break'.
9403
9404 2008-01-17  Richard Guenther  <rguenther@suse.de>
9405
9406         PR tree-optimization/34825
9407         * tree-ssa-math-opts.c (is_division_by): Do not recognize
9408         x / x as division to handle.
9409
9410 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9411
9412         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
9413         "-pthread" is specified.
9414         * pa-hpux11.h (LIB_SPEC): Likewise.
9415
9416 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
9417             Peter Bergner  <bergner@vnet.ibm.com>
9418
9419         PR rtl-optimization/33796
9420         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
9421
9422 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9423
9424         PR libgfortran/34699
9425         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
9426         static links.
9427         * pa-hpux10.h (LINK_SPEC): Likewise.
9428         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
9429
9430 2008-01-16  Richard Guenther  <rguenther@suse.de>
9431
9432         PR middle-end/32628
9433         * fold-const.c (fold_convert_const_int_from_int): Do not
9434         set overflow if that occured only because of a sign extension
9435         change when converting from/to a sizetype with the same
9436         precision and signedness.
9437
9438 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
9439
9440         PR debug/34249
9441         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
9442         location address to the correct place.  Update copyright year.
9443
9444 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
9445
9446         * lambda-code.c (lambda_transform_legal_p): Handle the case of
9447         no dependences in the dependence_relations vector.
9448
9449 2008-01-16  Jan Hubicka  <jh@suse.cz>
9450
9451         PR rtl-optimization/31396
9452         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
9453         * cfg.c (dump_reg_info): Print it.
9454         * regs.h (struct reg_info_t): add freq_calls_crossed.
9455         (REG_FREQ_CALLS_CROSSED): New macro.
9456         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
9457         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
9458         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
9459         regmove_optimize): Update call crossed frequencies.
9460         * local-alloc.c (struct qty): Add freq_calls_crossed.
9461         (alloc_qty): Copute freq_calls_crossed.
9462         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
9463         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
9464         * ra.h (struct allocno): Add freq_calls_crossed.
9465
9466 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
9467
9468         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
9469         libgomp when compiling with ftree-parallelize-loops.
9470         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
9471
9472 2008-01-16  Richard Guenther  <rguenther@suse.de>
9473
9474         PR tree-optimization/34769
9475         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
9476         * tree.c (int_cst_value): Instead make this function more
9477         permissive in what it accepts as valid input.  Document this
9478         function always sign-extends the value.
9479
9480 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
9481             Richard Guenther  <rguenther@suse.de>
9482
9483         PR c/34668
9484         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
9485         (gimple_fold_indirect_ref_rhs): ... this.
9486         (gimple_fold_indirect_ref): New function with foldings
9487         that preserve lvalueness.
9488         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
9489         * tree-flow.h (gimple_fold_indirect_ref): Declare.
9490         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
9491         to fold an INDIRECT_REF, fall back to the old use of
9492         fold_indirect_ref_1.
9493
9494 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
9495
9496         * tree-data-ref.c (subscript_dependence_tester_1): Call 
9497         free_conflict_function.
9498         (compute_self_dependence): Same.
9499
9500 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
9501
9502         PR debug/34249
9503         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
9504         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
9505         function global.
9506         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
9507         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
9508         for DWARF2_UNWIND_INFO targets.
9509
9510 2008-01-16  Richard Guenther  <rguenther@suse.de>
9511
9512         PR c/34768
9513         * c-typeck.c (common_pointer_type): Do not merge inconsistent
9514         type qualifiers for function types.
9515
9516 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
9517
9518         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
9519         loop_iterator li from previous commit.
9520
9521 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
9522
9523         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
9524
9525 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
9526
9527         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
9528         (parallelize_loops): Don't parallelize irreducible components.
9529
9530 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9531
9532         PR c++/24924
9533         * c-opts (c_common_post_options): Do not enable CPP
9534         flag_pedantic_errors by default.
9535         
9536 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
9537
9538         PR rtl-optimization/31944
9539         * cse.c (remove_pseudo_from_table): New function.
9540         (merge_equiv_classes): Use above function to remove pseudo-registers.
9541         (invalidate): Likewise.
9542
9543 2008-01-13  Richard Guenther  <rguenther@suse.de>
9544
9545         PR middle-end/34601
9546         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
9547         instead of TYPE_MODE to deal with calls from expand_one_error_var.
9548
9549 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
9550
9551         * gcse.c (cprop_jump): Call validate_unshare_change instead of
9552         validate_change to unshare the source of the PC set.
9553
9554 2008-01-12  Jan Hubicka  <jh@suse.cz>
9555
9556         PR middle-end/32135
9557         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
9558         references above array bounds.  This might trigger bounds checks for
9559         pointers to arrays.
9560
9561 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
9562
9563         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
9564         new_replaceable_dependencies.
9565
9566 2008-01-12  Doug Kwan  <dougkwan@google.com>
9567
9568         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
9569         instead of OPT_Wreturn_type in warning due to ignored return type
9570         qualifiers.
9571         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
9572         options included in -Wextra.
9573         * c.opt: New option -Wignored_qualifiers.
9574         * doc/invoke.texi (Warning Options, -Wextra): Add new option
9575         -Wignore_qualifiers.
9576         (-Wignored-qualifiers): Document.
9577         (-Wreturn-type): Remove description of functionality now handled
9578         by -Wignored-qualifiers.
9579
9580 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
9581
9582         PR ada/33788
9583         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
9584         NOP_EXPR if it is between integral types with the same precision.
9585
9586 2008-01-12  Jan Hubicka  <jh@suse.cz>
9587
9588         PR other/28023
9589         * invoke.texi (max-inline-recursive-depth): Fix default value.
9590
9591 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
9592
9593         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
9594         correct type.
9595
9596 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
9597         
9598         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
9599         
9600 2008-01-11  James E. Wilson  <wilson@specifix.com>
9601
9602         PR target/26015
9603         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
9604
9605 2008-01-11  Anatoly Sokolov <aesok@post.ru>
9606
9607         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
9608         save/restore frame pointer register and don't use 'call-prologues' 
9609         optimization in function with "OS_task" attribute.
9610
9611 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
9612
9613         PR middle-end/31309
9614         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
9615         when copying to memory.
9616
9617 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
9618
9619         PR rtl-optimization/30905
9620         * cfgcleanup.c: Include dce.h
9621         (crossjumps_occured): New global variable.
9622         (try_crossjump_bb): Exit loop after finding a fallthru edge.
9623         If something changed, set crossjumps_occured to true.
9624         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
9625         Don't add/remove fake edges to exit here...
9626         (cleanup_cfg): ...but do it here, when crossjumping.
9627         Run a fast DCE when successful crossjumps occured in the latest
9628         iteration of try_optimize_cfg.
9629
9630 2008-01-11  Richard Guenther  <rguenther@suse.de>
9631
9632         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
9633         (struct vn_unary_op_s): Likewise.
9634         (vn_reference_insert): Free old reference on hash collision.
9635
9636 2008-01-10  Raksit Ashok  <raksit@google.com>
9637
9638         PR rtl-optimization/27971
9639         * combine.c (find_split_point): Split PLUS expressions which are
9640         inside a MEM rtx, and whose first operand is complex.
9641
9642 2008-01-10  DJ Delorie  <dj@redhat.com>
9643
9644         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
9645         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
9646         (m32c_hard_regno_ok): Call the underlying function.
9647
9648 2008-01-10  Richard Guenther  <rguenther@suse.de>
9649
9650         PR middle-end/34683
9651         * tree-cfg.c (tree_merge_blocks): Do not go through the
9652         full-blown folding and stmt updating path if we just deal
9653         with virtual operands.
9654         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
9655         test for abnormal SSA_NAMEs.
9656
9657 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
9658
9659         PR middle-end/34641
9660         * reload.c (push_reload): Add assertions.  All constants from
9661         reg_equiv_constant should have been used for replacing the respective
9662         pseudo earlier.
9663         (find_reloads_address): Invoke find_reloads_address_part for
9664         constant taken from the reg_equiv_constant array.
9665
9666 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
9667
9668         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
9669         field (valnum) the first in the struct.  Replace bools with
9670         unit bit fields.
9671
9672 2008-01-10  Richard Guenther  <rguenther@suse.de>
9673
9674         PR tree-optimization/34651
9675         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
9676         types and ordering for masking and converting.
9677
9678 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
9679
9680         PR tree-optimization/34017
9681         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
9682         also for PHI_NODE expressions.
9683
9684 2008-01-09  Jan Hubicka  <jh@suse.cz>
9685
9686         PR tree-optimization/34708
9687         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
9688         based on number of case labels.
9689         (init_inline_once): Remove switch_cost.
9690         * tree-inline.h (eni_weights_d): Remove switch_cost.
9691
9692 2008-01-09  Richard Guenther  <rguenther@suse.de>
9693         Andrew Pinski  <andrew_pinski@playstation.sony.com>
9694
9695         PR middle-end/30132
9696         * gimplify.c (gimplify_cond_expr): Do not create an addressable
9697         temporary if an rvalue is ok or an lvalue is not required.
9698
9699 2008-01-09  Richard Guenther  <rguenther@suse.de>
9700
9701         PR middle-end/34458
9702         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
9703         adjust return type.
9704
9705 2008-01-09  Richard Guenther  <rguenther@suse.de>
9706
9707         PR middle-end/34679
9708         * tree.c (host_integerp): Check for sizetype only if the
9709         type is an integer type.
9710
9711 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
9712
9713         PR debug/26364
9714         * opts.c (decode_options): Disable inlining of functions called
9715         once if not in unit-at-a-time mode.
9716
9717 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
9718
9719         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
9720
9721 2008-01-08  Richard Guenther  <rguenther@suse.de>
9722
9723         PR middle-end/31863
9724         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
9725         out early if the result will be unused.
9726
9727 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
9728
9729         PR target/34709
9730         Revert:
9731
9732         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
9733         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
9734         for TARGET_RECIP.       
9735         
9736 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
9737         
9738         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
9739         for vectorization tuned.
9740         
9741 2008-01-08  Richard Guenther  <rguenther@suse.de>
9742
9743         PR tree-optimization/34683
9744         * tree-ssa-operands.c (operand_build_cmp): Export.
9745         * tree-ssa-operands.h (operand_build_cmp): Declare.
9746         * tree-vn.c (vuses_compare): Remove.
9747         (sort_vuses): Use operand_build_cmp.
9748         (sort_vuses_heap): Likewise.
9749         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
9750         to re-use old VEC if available.  Do not sort already sorted VUSEs.
9751         (vdefs_to_vec): Do not sort already sorted VDEFs.
9752
9753 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
9754
9755         PR middle-end/34694
9756         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
9757
9758 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
9759
9760         PR target/34702
9761         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
9762         limitations of reciprocal sequences on x86 targets.
9763
9764 2008-01-08  Richard Guenther  <rguenther@suse.de>
9765
9766         PR tree-optimization/34683
9767         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
9768
9769 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
9770
9771         PR target/34622
9772         * config/darwin.c (darwin_mergeable_string_section): Don't use
9773         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
9774
9775 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
9776
9777         PR target/34682
9778         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
9779         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
9780         predicates of op0 and op1 to register_operand.
9781         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
9782         expander using X87MODEF mode iterator.  Change predicates of
9783         op0 and op1 to register_operand.
9784         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
9785         corresponding patterns and macroize using MODEF macro.  Change
9786         predicates of op0 and op1 to register_operand and remove
9787         "m" constraint. Disparage "r" alternative with "!".
9788         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
9789         macroize using X87MODEF macro.  Change predicates of op0 and op1
9790         to register_operand and remove "m" constraint.  Disparage "r"
9791         alternative with "!".
9792         (absneg splitter with memory operands): Remove.
9793         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
9794         patterns and macroize using X87MODEF mode iterator.
9795         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
9796         Change predicate of op1 to register_operand.
9797         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
9798         for memory operands.
9799
9800 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
9801
9802         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
9803
9804 2008-01-07  Richard Guenther  <rguenther@suse.de>
9805
9806         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
9807         fields.
9808
9809 2008-01-07  Richard Guenther  <rguenther@suse.de>
9810
9811         PR tree-optimization/34683
9812         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
9813         VOPs of the needed size to save memory.  Use VEC_quick_push
9814         to save compile-time.
9815         (vdefs_to_vec): Likewise.
9816
9817 2008-01-07  Sa Liu  <saliu@de.ibm.com>
9818
9819         * config/spu/spu.md (divdf3): Genetate inline code for double
9820         division.  The implementation doesn't handle INF or NAN, therefore it
9821         only applies when -ffinite-math-only is given.
9822
9823 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
9824
9825         PR libstdc++/34680
9826         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
9827         * doc/cpp.texi ([Common Predefined Macros]): Document.
9828
9829 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
9830
9831         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
9832         order to use commutative addition instead of subtraction.
9833
9834 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9835             Mircea Namolaru  <namolaru@il.ibm.com>
9836             Vladimir Yanovsky  <yanov@il.ibm.com>
9837             Revital Eres  <eres@il.ibm.com>
9838
9839         PR tree-optimization/34263
9840         * tree-outof-ssa.c (process_single_block_loop_latch,
9841         contains_tree_r): New functions.
9842         (analyze_edges_for_bb): Call process_single_block_loop_latch
9843         function to empty single-basic-block latch block if possible.
9844
9845 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
9846
9847         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
9848         for TARGET_RECIP.
9849         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
9850
9851 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
9852
9853         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
9854
9855 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
9856
9857         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
9858
9859 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
9860
9861         PR tree-optimization/34618
9862         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
9863         flag from T.
9864
9865 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
9866
9867         PR target/34673
9868         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
9869         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
9870         Update copyright year.
9871
9872         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
9873         Update copyright year.
9874         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
9875         using NR fixup.
9876
9877 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
9878
9879         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
9880         edge does not point to current bb before changing need_assert.
9881
9882 2008-01-04  Richard Guenther  <rguenther@suse.de>
9883
9884         PR middle-end/34029
9885         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
9886         for verifying purposes if they are is_gimple_min_invariant.
9887
9888 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
9889
9890         PR tree-optimization/34448
9891         PR tree-optimization/34465
9892         * gimplify.c (gimplify_init_constructor): Add new parameter
9893         notify_temp_creation.  Use it.
9894         (gimplify_modify_expr_rhs): Take volatiles into account when
9895         optimizing constructors.
9896         Do not optimize constructors if gimplify_init_constructor will dump to
9897         memory.
9898         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
9899         * gcc.c-torture/compile/pr34448.c: New.
9900
9901 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
9902
9903         PR gcov-profile/34609
9904         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
9905         return_slot if result is TREE_ADDRESSABLE.
9906
9907 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
9908
9909         * config/mips/mips.md (sqrt_condition): Tweak comment.
9910         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
9911
9912 2008-01-03  Tom Tromey  <tromey@redhat.com>
9913
9914         PR c/34457
9915         * c-common.c (c_type_hash): Handle VLAs.
9916
9917 2008-01-03  Jan Hubicka  <jh@suse.cz>
9918
9919         PR tree-optimization/31081
9920         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
9921         0 when inlining and not inlining to first basic block.
9922         (remap_decl): When var is initialized to 0, don't set default_def.
9923         (expand_call_inline): Set entry_bb.
9924         * tree-inline.h (copy_body_data): Add entry_bb.
9925
9926 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
9927
9928         PR c++/34619
9929         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
9930         before returning.
9931
9932         PR tree-optimization/29484
9933         * tree-inline.c (inline_forbidden_p_2): New function.
9934         (inline_forbidden_p): Disallow inlining if some static var
9935         has an address of a local LABEL_DECL in its initializer.
9936         * doc/extend.texi (Labels as Values): Document &&foo behaviour
9937         vs. inlining.
9938
9939 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
9940
9941         PR tree-optimization/34635
9942         * tree-data-ref.c (add_other_self_distances): Make sure that the
9943         evolution step is constant.
9944
9945 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
9946
9947         PR middle-end/34608
9948         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
9949
9950 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
9951
9952         * tree-sra.c (scalarize_init): Insert the generate_element_init
9953         statements after the generate_element_zero statements.
9954
9955 2008-01-02  Richard Guenther  <rguenther@suse.de>
9956
9957         PR middle-end/34093
9958         PR middle-end/31976
9959         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
9960         for very large number of operands instead of ICEing.
9961
9962 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
9963
9964         PR target/34013
9965         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
9966         while stack probing.
9967
9968 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
9969
9970         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
9971         in C++0x mode.
9972
9973 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
9974
9975         PR libmudflap/26442
9976         * tree-mudflap.c (mx_register_decls): Guard warning by
9977         !DECL_ARTIFICIAL check.
9978
9979 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
9980
9981         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
9982         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
9983         sse5_perm<mode>): Fix constraints.