OSDN Git Service

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