OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-09-11  Janis Johnson  <janis187@us.ibm.com>
2
3         * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
4
5 2008-09-11  Richard Guenther  <rguenther@suse.de>
6
7         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
8         entering the weaker equivalence recording.
9
10         * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
11
12 2008-09-11  Jeff Law <law@redhat.com>
13
14         * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
15         by assign_stack_local on the IRA path for stack slot sharing
16         as well as the non-IRA path.
17
18 2008-09-11  Uros Bizjak  <ubizjak@gmail.com>
19
20         * config/i386/i386.h: Fix whitespace issues.
21
22 2008-09-11  Martin Jambor  <mjambor@suse.cz>
23
24         * ipa-prop.h (struct ipa_param_flags): Removed.
25         (struct ipa_param_descriptor): New structure.
26         (struct ipa_node_params): ipcp_lattices, param_decls and
27         param_flags moved to ipa_param_description.
28         (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
29         descriptors.  Renamed all users.
30         (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
31         changed to access descriptors.  Renamed all users.
32         (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
33         to access descriptors. Renamed all users.
34         * ipa-cp.c (ipcp_init_cloned_node): Call
35         ipa_initialize_node_params instead of ipa_count_formal_params and
36         ipa_create_param_decls_array.
37         (ipcp_analyze_node): Likewise.
38         (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
39         descriptors.  Renamed all users.
40         (ipcp_initialize_node_lattices): Remove allocation.
41         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
42         ipa_initialize_node_params instead of ipa_count_formal_params and
43         ipa_create_param_decls_array.
44         * ipa-prop.c (ipa_create_param_decls_array): Renamed to
45         ipa_populate_param_decls, made static, added parameter info,
46         renamed mt to node, removed allocation, changed to use
47         descriptors.
48         (ipa_count_formal_params): Made static, added parameter info,
49         renamed mt to node.
50         (ipa_initialize_node_params): New function.
51         (ipa_check_stmt_modifications): Changed to use descriptors.
52         (ipa_detect_param_modifications): Removed allocation, changed to
53         use descriptors.
54         (ipa_note_param_call): Changed to use descriptors.
55         (ipa_analyze_params_uses): Removed allocation.
56         (ipa_free_node_params_substructures): Changed to use descriptors.
57         (ipa_edge_duplication_hook): Use the unused attribute.
58         (ipa_node_duplication_hook): Use the unused attribute, changed to
59         use descriptors, changed to duplicate descriptors.
60
61         * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
62         changed all callers.  Call ipa_propagate_indirect_call_infos if doing
63         indirect inlining.  Made static.
64         (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
65         functions called only once.
66         (cgraph_decide_recursive_inlining): Don't call
67         ipa_propagate_indirect_call_infos, pass new_edges to
68         cgraph_mark_inline_edge instead.
69         (cgraph_decide_inlining_of_small_functions): Don't call
70         ipa_propagate_indirect_call_infos, pass new_edges to
71         cgraph_mark_inline_edge instead.
72         (cgraph_decide_inlining): Don't call
73         ipa_propagate_indirect_call_infos.
74         * ipa-prop.c: Check that vectors are allocated.
75
76         * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
77         iff a new cgraph edges have been created.
78         (cgraph_decide_inlining): New variable redo_always_inline.
79         Flattening and always_inlining loop until callgraph stabilizes.
80         * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
81         true iff new cgraph edges have been created.
82         (propagate_info_to_inlined_callees): Likewise.
83         (ipa_propagate_indirect_call_infos): Likewise.
84
85 2008-09-11  Richard Guenther  <rguenther@suse.de>
86
87         * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
88         (set_prologue_iterations): Likewise.
89         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
90         Likewise.
91         (vect_update_init_of_dr): Likewise.
92         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
93         type verification.
94         * fold-const.c (fold_unary): Do not generate calculations
95         in sub-types.
96
97 2008-09-11  Paolo Bonzini  <bonzini@gnu.org>
98
99         * dojump.c (do_jump) [BIT_AND_EXPR]: Move below.  Fall through to
100         TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
101         (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
102
103         * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return a bool.
104         * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
105         VRP's simplify_stmt_using_ranges.  Do simplify_stmt_using_ranges
106         before finalizing the changes.
107         * tree-vrp.c (extract_range_from_binary_expr): Add limited support
108         for BIT_IOR_EXPR.
109         (simplify_truth_ops_using_ranges): New.
110         (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
111         simplify_cond_using_ranges, simplify_switch_using_ranges): Return
112         whether a simplification was made.
113         (simplify_stmt_using_ranges): Ditto, and accept a GSI.  For GS_ASSIGN,
114         use a switch statement and also call simplify_truth_ops_using_ranges.
115
116 2008-09-11  Jan Hubicka  <jh@suse.cz>
117
118         * ggc-common.c (loc_array): Make static.
119         * dce.c (rest_of_handle_ud_dce): Free worklist.
120
121 2008-09-11  Jan Hubicka  <jh@suse.cz>
122
123         * cgraph.c (cgraph_release_function_body): Plug memory leak on
124         ipa_transforms_to_apply and CFG; ggc_free gimple df and struct function
125         so we are sure we do not dangle it forever.
126         * function.c (outer_function_chain, find_function_data): Remove.
127         (function_context_stack): New.
128         (push_function_context, pop_function_context): Update.
129         * function.h (struct function): Remove pointer outer.
130         (outer_function_chain, find_function_data): Remove.
131         * stmt.c (force_label_rtx): Remove dead call of find_function_data.
132
133 2008-09-11  Jan Hubicka  <jh@suse.cz>
134
135         PR middle-end/37448
136         * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
137
138 2008-09-11  Jan Hubicka  <jh@suse.cz>
139
140         * tree-ssa-pre.c (phi_translate_1): Fix memory leak
141
142 2008-09-11  Jan Hubicka  <jh@suse.cz>
143
144         * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
145         (free_var_map_entry): New function.
146         (redirect_edge_var_map_destroy): Use it.
147
148 2008-09-11  Jan Hubicka  <jh@suse.cz>
149
150         PR middle-end/37448
151         * tree-inline.c (add_lexical_block): Replace with ...
152         (prepend_lexical_block): ... prepend at begginig.
153         (remap_blocks): Use it and reverse later.
154         (expand_call_inline): Use prepend_lexical_block.
155
156 2008-09-11  Jan Hubicka  <jh@suse.cz>
157
158         * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
159
160 2008-09-11  Jan Hubicka  <jh@suse.cz>
161
162         * function.c (free_after_compilation): Call insn_locators_free.
163         * cfglayout.c (insn_locators_free): New function.
164         * rtl.h (insn_locators_free): Declare.
165
166 2008-09-11  Jan Hubicka  <jh@suse.cz>
167
168         * ifcvt.c (check_cond_move_block): Make regs argument pointer to
169         vector pointer.
170         (cond_move_process_if_block): Update call.
171
172 2008-09-11  Jan Hubicka  <jh@suse.cz>
173
174         * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
175         * vec.c: Include hashtab.h
176         (vec_descriptor, ptr_hash_entry): New structures.
177         (vec_desc_hash, vec_ptr_map): New static variables.
178         (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
179         register_overhead, free_overhead, vec_heap_free): New functions.
180         (vec_gc_o_reserve_1): ggc_free when resizing to 0.
181         (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
182         (cmp_statistic, add_statistics, dump_vec_loc_statistics): New functions.
183
184 2008-09-11  Ira Rosen  <irar@il.ibm.com>
185
186         PR tree-optimization/37474
187         * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
188         length of load permutation.
189
190 2008-09-11  Andreas Schwab  <schwab@suse.de>
191
192         * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
193
194 2008-09-11  Jakub Jelinek  <jakub@redhat.com>
195
196         PR target/37382
197         * expmed.c (extract_low_bits): Avoid creating invalid subregs.
198         * dse.c (find_shift_sequence): Use extract_low_bits instead of
199         simplify_gen_subreg.
200
201 2008-09-11  Ira Rosen  <irar@il.ibm.com>
202
203         * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
204         for alias check.
205
206 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
207
208         PR middle-end/37338
209         * gimplify.c (gimplify_body): Call default_rtl_profile.
210
211         PR target/36904
212         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
213         instead of tok->val.node if not expanding to something else.  Handle
214         intervening CPP_PADDING tokens.
215         (altivec_categorize_keyword): Remove unneeded comparisons.
216
217 2008-09-10  Richard Guenther  <rguenther@suse.de>
218
219         * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
220
221 2008-09-10  Richard Guenther  <rguenther@suse.de>
222
223         PR middle-end/37432
224         * tree-inline.c (insert_init_stmt): Make sure to not
225         insert invalid gimple stores.
226
227 2008-09-10  Sebastian Pop  <sebastian.pop@amd.com>
228
229         PR tree-optimization/37388
230         * toplev.c (process_options): Fail and warn when graphite
231         flags are used, but the compiler has not been configured
232         with graphite libraries.
233         * graphite.c (graphite_transform_loops): Remove printfs
234         to dump_file for the case when graphite is not available.
235
236 2008-09-10  H.J. Lu  <hongjiu.lu@intel.com>
237
238         PR target/37434:
239         * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
240         the even element into register.
241         (ix86_expand_vector_init_general): Don't use
242         ix86_expand_vector_init_interleave on V16QImode and V8HImode
243         if we can't move from GPR to SSE register directly.
244
245 2008-09-10  Bernd Schmidt  <bernd.schmidt@analog.com>
246
247         * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
248         not lose track of the number of NOPs needed.  Number of NOPs needed
249         for sync vs. loads workaround was switched; corrected.  Run second
250         pass for all workarounds.  No NOPs needed after call insns.  Change
251         second pass to use find_next_insn_start and find_load helpers in order
252         to properly detect parallel insns.
253         * config/bfin/bfin.md (cbranch_with_nops): Increase length.
254
255 2008-09-10  Jan Hubicka  <jh@suse.cz>
256
257         * value-prof.c (gimple_ic): Fix tuplification bug.
258         * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
259         var warning.
260
261 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
262
263         PR tree-optimization/37353
264         * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
265         (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
266         calls instead of cond_dead_built_in_calls.
267         (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
268         initalize the vector only before adding first entry.  Use VEC_safe_push
269         instead of VEC_quick_push.  Pass cond_dead_built_in_calls to
270         shrink_wrap_conditional_dead_built_in_calls call.
271
272 2008-09-10  Ira Rosen  <irar@il.ibm.com>
273
274         PR tree-optimization/37385
275         * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new argument,
276         and use it as a vector type if not NULL.
277         (vectorizable_store): Call vect_create_data_ref_ptr with the type of 
278         vectorized rhs.
279         (vect_setup_realignment): Call vect_create_data_ref_ptr with additional
280         argument.
281         (vectorizable_load): Likewise.
282
283 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
284
285         * config/i386/i386.md (SWI32): New mode iterator.
286         (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
287         of SWI.
288
289 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
290
291         PR rtl-optimization/37435
292         * caller-save.c (insert_restore, insert_save): Check the mode by
293         reg_save_code.
294
295 2008-09-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
296
297         PR other/37265
298         * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
299         splay tree lookup.
300         (dw2_output_indirect_constant_1): Use unstripped name in symbol
301         reference.
302
303 2008-09-09  Sandra Loosemore  <sandra@codesourcery.com>
304
305         * doc/invoke.texi (ARM Options): Correct errors in discussion 
306         of -mfloat-abi, -mhard-float, and -msoft-float.
307
308 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
309             Jan Hubicka  <jh@suse.cz>
310
311         PR middle-end/37356
312         * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
313         calling gimple_regimplify_operands on it.  Iterate over all newly
314         added statements, not just the last one.
315         (insert_init_stmt): Insert stmt into seq first, then call
316         gimple_regimplify_operands on it.  Don't create new gimplification
317         context, nor find referenced vars.
318
319 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
320
321         PR other/37419
322         * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
323         to pointer to vector pointer.
324         * ipa-prop.c (ipa_propagate_indirect_call_infos,
325         propagate_info_to_inlined_callees): Likewise.
326         (update_call_notes_after_inlining): Likewise.  Push new indirect edge
327         to *new_edges instead of new_edges.  Reread IPA_EDGE_REF after
328         ipa_check_create_edge_args.
329         * ipa-inline.c (cgraph_decide_recursive_inlining): Change last argument
330         to pointer to vector pointer.
331         (cgraph_decide_inlining_of_small_function): Adjust
332         cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
333         calls.
334
335         PR target/37438
336         * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when optimizing
337         for size, not speed.
338
339         PR rtl-optimization/37408
340         * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
341         if parm is promoted.
342
343 2008-09-09  Sebastian Pop  <sebastian.pop@amd.com>
344
345         PR tree-optimization/37375
346         * tree-scalar-evolution.c (scev_info_str): Add field instantiated_below.
347         (new_scev_info_str, eq_scev_info, find_var_scev_info,
348         set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
349         set_instantiated_value): Pass instantiated_below.
350         (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls to
351         above functions.
352         (instantiate_scev_1, instantiate_scev): Pass a basic block above which
353         the definitions are not instantiated.
354
355         * tree-scalar-evolution.h (instantiate_scev): Update declaration.
356         (block_before_loop): New.
357         * tree-data-ref.c (dr_analyze_indices): Update uses of instantiate_scev.
358         * graphite.c (block_before_scop): New.
359         (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a 
360         basic block, not a loop for determining the parameters.
361         (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
362         scop.
363         (idx_record_params, find_params_in_bb, find_scop_parameters,
364         build_loop_iteration_domains, add_conditions_to_domain): Update calls 
365         to instantiate_scev.
366
367         * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
368
369 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
370
371         PR rtl-opt/37333
372         
373         * ira-build.c (ira_create_allocno): Setup frequency to 0.
374
375         * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
376         Check zero freq and increase if necessary.
377
378 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
379
380         * ira-conflicts.c (process_regs_for_copy): Check that the hard
381         regno is in the right range.  Add comments.
382
383 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
384
385         * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
386         warnings.
387         * mips-tfile.c (copy_object): Cast alloca result to int *.
388         * mips-tdump.c (print_symbol): Cast xmalloc return values to
389         proper types.
390         Rename class to sclass.
391         (read_tfile): Cast read_seek return values to proper types.
392         Cast xcalloc return value to proper type.
393
394 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
395
396         * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
397         * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
398         * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
399
400 2008-09-09  Jan Hubicka  <jh@suse.cz>
401
402         * profile.c (is_edge_inconsistent): Add debug output; ignore
403         negative count on fake edges.
404         (is_inconsistent): Add debug output.
405
406 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
407
408         * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
409         dump message.
410         (choose_ready): When first insn is chosen from the ready list, also
411         dump it.
412
413 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
414
415         PR rtl-optimization/37360
416         * haifa-sched.c (max_issue): Do not assert that we never issue more
417         insns than issue_rate.  Add comment.
418         
419 2008-09-09  Richard Guenther  <rguenther@suse.de>
420
421         * tree-cfg.c (verify_types_in_gimple_op): Remove.
422         (verify_types_in_gimple_call): Rename to ...
423         (verify_gimple_call): ... this.  Enhance.
424         (verify_types_in_gimple_cond): Remove.
425         (verify_gimple_comparison): New function ...
426         (verify_types_in_gimple_assign): ... split out from here.
427         (verify_types_in_gimple_return): Rename to ...
428         (verify_gimple_return): ... this.  Enhance.
429         (verify_types_in_gimple_switch): Rename to ...
430         (verify_gimple_switch): ... this.  Enhance.
431         (verify_gimple_goto): New function.
432         (verify_types_in_gimple_phi): Rename to ...
433         (verify_gimple_phi): ... this.  Enhance.
434         (verify_types_in_gimple_stmt): Adjust calls to helper functions.
435         Fold in single-statement cases from verify_types_in_gimple_seq_2.
436         (verify_types_in_gimple_seq_2): Remove cases handled in
437         verify_types_in_gimple_stmt.
438
439 2008-09-09  Bernd Schmidt  <bernd.schmidt@analog.com>
440
441         * config/bfin/bfin.c (n_regs_to_save): New static variable.
442         (push_multiple_operation, pop_multiple_operation): Set it.
443         (workaround_rts_anomaly): New function.
444         (workaround_speculation): New function, broken out of bfin_reorg.
445         (bfin_reorg): Call the new functions.
446
447 2008-09-09  Richard Guenther  <rguenther@suse.de>
448
449         PR middle-end/37354
450         PR middle-end/30165
451         * gimplify.c (gimplify_conversion): Change conversions of
452         non-register type to VIEW_CONVERT_EXPRs.
453         (gimplify_addr_expr): If we need to make the operand
454         addressable make sure to use a properly initialized
455         temporary for that so it gets a valid gimple store.
456
457 2008-09-09  Aldy Hernandez  <aldyh@redhat.com>
458
459         * function.h (struct function): Add function_start_locus.
460         * cfgexpand.c (gimple_expand_cfg): Use it.
461         * c-parser.c (c_parser_declaration_or_fndef): Set it.
462
463 2008-09-09  Richard Guenther  <rguenther@suse.de>
464
465         PR tree-optimization/37433
466         * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
467         function calls.
468
469 2008-09-09  Richard Guenther  <rguenther@suse.de>
470
471         PR tree-optimization/37387
472         * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
473         and bits to a common type.
474
475 2008-09-09  Nick Clifton  <nickc@redhat.com>
476
477         * config/v850/v850.md (return): Restore frame size restriction.
478
479 2008-09-09  Paolo Bonzini  <bonzini@gnu.org>
480
481         * c-common.c (c_expand_decl): Remove.
482         * c-common.h (anon_aggr_type_p): Remove prototype.
483         (DECL_ANON_UNION_ELEMS): Remove.
484         * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
485         * c-decl.c (anon_aggr_type_p): Remove.
486         * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
487         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
488         * langhooks.h (struct lang_hooks): Remove expand_decl.
489         * langhooks.c (lhd_expand_decl): Remove.
490         * stmt.c (expand_anon_union_decl): Remove.
491         * tree.h (expand_anon_union_decl): Remove prototype.
492
493 2008-08-09  Andy Hutchinson  <hutchinsonandy@aim.com>
494
495         PR target/36609
496         * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
497         zero.
498         * config/avr/avr.md  (QISI) : Define mode iterator.
499         (negated_tst<mode>) : Redefine as split using mode macro.
500         (reversed_tstqi): Define insn as reversed compare with zero.
501         (reversed_tsthi): Ditto.
502         (reversed_tstsi): Ditto.
503
504 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
505
506         PR middle-end/37393
507         * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
508         call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
509
510         PR middle-end/37414
511         * predict.c (optimize_function_for_size_p): Don't segfault if
512         FUN is NULL.
513         * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
514         tree_swap_operands_p): Don't test cfun != NULL before calling
515         optimize_function_for_s*_p.
516
517 2008-09-08  Eric Botcazou  <ebotcazou@adacore.com>
518
519         * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
520         end of the search.
521
522 2008-09-08  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
523
524         * crx/crx.h (IRA_COVER_CLASSES): Define.
525
526 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
527
528         PR middle-end/37337
529         * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
530         even when a stmt has been gimple_modified_p, but after fold_stmt is
531         not any longer.  Remove unneeded may_have_exposed_new_symbols
532         initializations.
533
534 2008-09-08  Richard Guenther  <rguenther@suse.de>
535
536         PR tree-optimization/37421
537         * tree-ssa-sccvn.c (visit_copy): Make sure to fully
538         valueize the RHS.
539
540 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
541
542         PR middle-end/37415
543         * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
544
545 2008-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
546
547         PR driver/37409
548         * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
549         * pa-hpux10.h (LINK_SPEC): Likewise.
550         * pa-hpux11.h (LINK_SPEC): Likewise.
551
552 2008-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
553
554         * pa32-regs.h (IRA_COVER_CLASSES): Define.
555         * pa64-regs.h (IRA_COVER_CLASSES): Define.
556
557 2008-09-07  Helge Deller  <deller@gmx.de>
558
559         * pa/linux-atomic.c: New file.
560         * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
561         * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
562
563 2008-09-07  Richard Guenther  <rguenther@suse.de>
564             Ira Rosen  <irar@il.ibm.com>
565
566         PR tree-optimization/36630
567         * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
568         Call STRIP_NOPS before calling evolution_part_in_loop_num.
569
570 2008-09-07  Dorit Nuzman  <dorit@il.ibm.com>
571             Ira Rosen  <irar@il.ibm.com>
572
573         PR tree-optimization/35642
574         * config/rs6000/altivec.md (mulv8hi3): Implement.
575
576 2008-09-06  Jeff Law <law@redhat.com>
577
578         * h8300/h8300.h (IRA_COVER_CLASSES): Define.
579
580 2008-09-06  Jan Hubicka  <jh@suse.cz>
581
582         PR tree-optimization/14703
583         * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
584         declarations.
585         * passes.c (init_optimization_passes): Recompute inline parameters.
586
587 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
588
589         * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
590         DECL being null.
591
592 2008-09-06  Richard Sandiford  <rdsandiford@goolemail.com>
593             Peter Fuerst  <post@pfrst.de>
594
595         * doc/invoke.texi: Document -mr10k-cache-barrier=.
596         * doc/extend.texi: Document __builtin_mips_cache.
597         * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
598         * config/mips/mips.opt (mr10k-cache-barrier=): New option.
599         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
600         __GCC_HAVE_BUILTIN_MIPS_CACHE.
601         (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
602         * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
603         (set_push_mips_isas): New variable.
604         (mips_r10k_cache_barrier): New variable.
605         (cache): New availability predicate.
606         (mips_builtins): Add an entry for __builtin_mips_cache.
607         (mips_build_cvpointer_type): New function.
608         (MIPS_ATYPE_CVPOINTER): New macro.
609         (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
610         mode is VOIDmode.
611         (r10k_simplified_address_p, r10k_simplify_address)
612         (r10k_uncached_address_p, r10k_safe_address_p)
613         (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
614         (r10k_needs_protection_p_call, r10k_needs_protection_p)
615         (r10k_insert_cache_barriers): New functions.
616         (mips_reorg_process_insns): Delete cache barriers after a
617         branch-likely instruction.
618         (mips_reorg): Call r10k_insert_cache_barriers.
619         (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
620         * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
621         (UNSPEC_R10K_CACHE_BARRIER): Likewise.
622         (mips_cache, r10k_cache_barrier): New define_insns.
623
624 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
625
626         * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
627         * ira-color.c (setup_allocno_left_conflicts_num): Use
628         hard_reg_set_equal_p instead of a comparison with
629         ira_zero_hard_reg_set.
630         * ira.c (setup_reg_subclasses): Likewise.
631         (setup_cover_and_important_classes): Likewise.
632         (setup_class_translate): Likewise.
633         (setup_reg_class_intersect_union): Likewise.
634         (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
635         (ira_init_once): Don't initialize them.
636
637 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
638
639         * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
640
641 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
642
643         * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
644
645 2008-09-05  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
646
647         Improved branch hints, safe hints, and scheduling.
648
649         * haifa-sched.c (sched_emit_insn) : Define.
650         * sched-int.h (sched_emit_insn) : Add prototype.
651         * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
652         -mhint-max-distance -msafe-hints) : Document.
653         * config/spu/spu.c (spu_flag_var_tracking): New.
654         (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
655         TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
656         TARGET_ASM_FILE_START): Define.
657         (TARGET_SCHED_ADJUST_PRIORITY): Remove.
658         (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
659         (spu_emit_branch_hint): Add blocks argument.
660         (insert_branch_hints, insert_nops): Remove.
661         (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
662         uses_ls_unit, spu_sched_init_global, spu_sched_init,
663         spu_sched_reorder, asm_file_start): New functions.
664         (clock_var, spu_sched_length, pipe0_clock,
665         pipe1_clock, prev_clock_var, prev_priority,
666         spu_ls_first, prev_ls_clock): New static variables.
667         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
668         * config/spu.md (iprefetch): Add operand, make it clobber MEM.
669         (nopn_nv): Add a non-volatile version of nop.
670         * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
671         -mhint-max-distance, -msafe-hints): New options.
672
673 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
674             Samuel Tardieu  <sam@rfc1149.net>
675
676         * opts.c (decode_options): Combine nested if statements.
677
678         PR target/37283
679         * opts.c (decode_options): Handle more relationships among
680         unit-at-a-time, toplevel-reorder, and section-anchors.
681
682 2008-09-05  David Daney  <ddaney@avtrex.com>
683
684         * doc/install.texi (--enable-reduced-reflection): Document new option.
685
686 2008-09-05  Bob Wilson  <bob.wilson@acm.org>
687
688         * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
689         constantpool_mem_p.
690         (constantpool_operand): New.
691         (move_operand): Disallow sub-word modes for the constant pool.
692         * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
693         (xtensa_secondary_reload_class): Replace with....
694         (xtensa_secondary_reload): this function.  Remove SIGN_EXTEND check. 
695         Set icode for sub-word reloads from the constant pool.
696         * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
697         (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
698         * config/xtensa/xtensa.md (reload<mode>_literal): New.
699         * config/xtensa/xtensa-protos.h: Update prototypes.
700         
701 2008-09-05  Joseph Myers  <joseph@codesourcery.com>
702
703         * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
704         (REG_CLASS_NAMES): Update.
705         (REG_CLASS_CONTENTS): Update.
706         * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
707         of ALL_REGS for regs 77 and 78.
708         * function.c (instantiate_virtual_regs_in_insn): Assert that
709         return value of simplify_gen_subreg is not NULL.
710
711 2008-09-05  Paolo Bonzini  <bonzini@gnu.org>
712
713         * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
714         (gen_rtvec_v): Fix coding standards.
715
716 2008-09-04  Jan Hubicka  <jh@suse.cz>
717
718         * i386.c (decide_alg): Be more conservative about optimizing for size.
719
720 2008-09-04  Ian Lance Taylor  <iant@google.com>
721
722         * varasm.c (narrowing_initializer_constant_valid_p): New
723         static function.
724         (initializer_constant_valid_p): Call it.
725
726 2008-09-04  Jeff Law  <law@redhat.com>
727
728         * fold-const.c (native_encode_real): Fix computation of WORDS.
729         (native_interpret_real): Likewise.
730
731 2008-09-04  Janis Johnson  <janis187@us.ibm.com>
732
733         * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
734
735 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
736
737         * ira-conflicts.c (process_regs_for_copy): Check insn to check
738         that the cost is already taken into account in ira-costs.c
739
740         * ira-int.h (ira_debug_copy, ira_debug_copies): New.
741
742         * ira-build.c (print_copy, print_copies, ira_debug_copy,
743         ira_debug_copies): New.
744         (ira_bulid): Call print_copies.
745         
746         * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
747         
748 2008-09-04  Samuel Tardieu  <sam@rfc1149.net>
749
750         PR target/32783
751         * config/rs6000/rs6000.c (optimization_options): Remove check of
752         flag_toplevel_order.
753
754 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
755
756         * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
757         * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
758         second operand is a reg_imm10_operand.
759         * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
760         *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
761         (*seq_<GPR:mode><GPR2:mode>): Rename to
762         *seq_zero_<GPR:mode><GPR2:mode>.  Don't match if
763         ISA_HAS_SEQ_SNE.
764         (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
765         *seq_zero_<GPR:mode><GPR2:mode>_mip16.  Don't match if
766         ISA_HAS_SEQ_SNE.
767         (*sne_<GPR:mode><GPR2:mode>): Rename to
768         *sne_zero_<GPR:mode><GPR2:mode>.  Don't match if
769         ISA_HAS_SEQ_SNE.
770
771 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
772
773         * config/mips/mips.h (ISA_HAS_EXTS): New macro.
774         * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
775         combining an arithmetic right shift by more than 31 and a
776         trunction.  Don't match for out-of-range shift amounts.  Set
777         attribute mode to <MODE>.
778         (*lshr32_trunc<mode>): Name the pattern combining a logical right
779         shift by 32 and and a truncation.  Set attribute mode to <MODE>.
780         (*<optab>_trunc<mode>_exts): New pattern for truncated right
781         shifts by less than 32.
782         (extv): Change predicate on first operand to accept registers.
783         Change predicate of the other operands from immediate_operand to
784         const_int_operand.  Expand exts when source is a register.
785         (extzv): Change predicate of the constant operands from
786         immediate_operand to const_int_operand.
787         (extzv<mode>): Change predicate of the constant operands from
788         immediate_operand to const_int_operand and no constraint. Also
789         remove mode.
790         (*extzv_trunc<mode>_exts): New pattern.
791
792 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
793
794         * config/mips/mips.h (ISA_HAS_CINS): New macro.
795         * config/mips/mips-protos.h (mask_low_and_shift_p,
796         mask_low_and_shift_len): Declare.
797         * config/mips/mips.c (mask_low_and_shift_p,
798         mask_low_and_shift_len): New functions.
799         (mips_print_operand): Handle new operand prefix "m".
800         * config/mips/mips.md (*cins<mode>): New pattern.
801
802 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
803
804         * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
805         optimizing for size.
806
807 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
808
809         * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
810         regardless of epilogue_completed.
811
812 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
813
814         PR middle-end/37359
815         * ira-lives.c (process_bb_node_lives): Check setjmp.
816
817 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
818
819         PR middle-end/37243
820         * ira-build.c (form_loop_tree): Reverse BB walk.
821         (create_bb_allocnos): Likewise.
822         * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
823         (mark_reg_store): Rename to...
824         (mark_ref_live): ...this and take a df_ref argument instead of
825         note_stores arguments.  Assert that we have a register.
826         (mark_reg_clobber): Delete.
827         (def_conflicts_with_inputs_p): New function.
828         (mark_reg_conflicts): Delete.
829         (mark_reg_death): Rename to...
830         (mark_ref_dead): ...this and take a df_ref argument instead of
831         a register.  Assert that we have a register.
832         (process_bb_node_lives): Hoist frequency calculation out of
833         instruction walk.  Convert from a forwards scan to a backwards scan.
834         Use DF_REF_USES and DF_REF_DEFS instead of register notes and
835         note_stores.  Remove EH_RETURN_DATA_REGNO and regs_set handling.
836         (create_allocno_live_ranges): Don't create regs_set.
837
838 2008-09-04  Ian Lance Taylor  <iant@google.com>
839
840         * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
841         or REG_LABEL_TARGET.
842         * calls.c (emit_library_call_value_1): Use MEM_P rather than
843         comparing MODE with MEM.
844         * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
845         comparing with GF_PREDICT_TAKEN.
846         (gimple_get_lhs): Change code to enum gimple_code.
847         (gimple_set_lhs): Likewise.
848         * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
849         * omp-low.c (find_omp_clause): Change kind parameter to enum
850         omp_clause_code.
851         * tree-flow.h (find_omp_clause): Update declaration.
852         * regrename.c (clear_dead_regs): Change kind parameter to enum
853         reg_note.
854         * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
855         GET_MODE.
856         * see.c (see_get_extension_data): Change return type to enum
857         entry_type.  Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
858         SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
859         (see_gen_normalized_extension): Change extension_code parameter to
860         enum entry_type.
861         (see_seek_pre_extension_expr): Change extension_code to enum
862         entry_type.
863         (see_merge_one_def_extension): Likewise.
864         (see_handle_relevant_defs): Likewise.
865         (see_handle_relevant_uses): Likewise.
866         (see_analyze_one_def): Likewise.
867         * tree-cfg.c (need_fake_edge_p): Compare gimple code with
868         GIMPLE_ASM rather than ASM_EXPR.
869         * tree-ssa-alias.c (is_escape_site): Compare gimple code with
870         GIMPLE_RETURN rather than RETURN_EXPR.
871         * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
872         (evaluate_stmt): Likewise.
873         * tree-vect-analyze.c (vect_analyze_operations): Change relevance
874         to enum vect_relevant.
875         (vect_mark_stmts_to_be_vectorized): Change assertion to not
876         compare gimple codes with tree codes.
877
878 2008-09-04  Paul Brook  <paul@codesourcery.com>
879
880         * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
881
882 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
883
884         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
885         pointer check lost in the recent no-unit-at-a-time patch.
886         
887 2008-09-04  Jan Hubicka  <jh@suse.cz>
888
889         PR middle-end/37343
890         * tree-switch-conversion.c (check_final_bb): Accept only IP
891         invariants.
892
893 2008-09-04  Jan Hubicka  <jh@suse.cz>
894
895         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
896         Break out from ...
897         (vrp_evaluate_conditional_warnv_with_ops): ... this one.  Add
898         using_ranges argument.
899         (vrp_evaluate_conditional): Avoid bogus warning for type range.
900         (vrp_visit_cond_stmt): Update call of
901         vrp_evaluate_conditional_warnv_with_ops
902
903 2008-09-04  Jan Hubicka  <jh@suse.cz>
904
905         PR tree-optimization/37345
906         PR tree-optimization/37358
907         PR tree-optimization/37357
908         * tree.c (build_function_type_skip_args): Build distinct type copy;
909         set TYPE_CONTEXT.
910         (build_function_decl_skip_args): Set type of new decl not orig decl;
911         clear DECL_VINDEX for methods turned into functions.
912
913 2008-09-04  Nick Clifton  <nickc@redhat.com>
914
915         * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
916         * configure: Regenerate.
917         * config.in: Regenerate.
918         * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
919         alignment field, if it is supported.
920
921 2008-09-04  Kai Tietz  <kai.tietz@onevision.com>
922
923         * config/i386/t-mingw32 (SHLIB_LC): Change order of import
924         libraries.
925
926 2008-09-03  David Edelsohn  <edelsohn@gnu.org>
927
928         * config/rs6000/rs6000.c (processor_target_table): Do not
929         enable VMX for POWER6.
930
931 2008-09-03  Anton Blanchard  <anton@samba.org>
932
933         * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
934         emit memory barrier before operation.
935
936 2008-09-03  John David Anglin  <dave.anglin@nrc.cnrc.gc.ca>
937
938         PR testsuite/37325
939         * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
940         default_elf_asm_output_external.
941
942 2008-09-03  Jeff Law  <law@redhat.com>
943
944         * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
945
946 2008-09-03  Richard Henderson  <rth@redhat.com>
947
948         * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
949         memory barrier to below the test-and-set.
950         (alpha_split_lock_test_and_set_12): Likewise.
951
952 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
953
954         PR rtl-opt/37243
955
956         * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
957         all_allocnos.
958
959         * ira-color.c (print_loop_title): Use all_allocnos.
960         (color_pass): Ditto.  Don't add border_allocnos.  Check that
961         subloop allocno in the correspdoning bitmap all_allocnos.
962
963         * ira-emit.c (change_loop): Use all_allocnos.
964
965         * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node):
966         Ditto.
967         (ira_create_allocno): Set up all_allocnos bit for the created
968         allocno.
969         (create_cap_allocno): Remove setting mentioned_allocnos.
970         (create_insn_allocnos): Ditto.
971         (remove_unnecessary_allocnos): Use all_allocnos.
972         (check_allocno_creation): Check that allocnos are in the
973         corresponding bitmap all_allocnos.
974         
975 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
976
977         PR rtl-opt/37243
978         
979         * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
980         (process_regs_for_copy): Process subregs.  Refine check when cost
981         is taken into account in ira-costs.c.
982         (process_reg_shuffles): Use REG_SUBREG_P.
983         (add_insn_allocno_copies): Ditto.  Ignore modes.
984
985         * ira-color.c (conflict_allocno_vec): New.
986         (COST_HOP_DIVISOR): New macro.
987         (update_copy_costs_1): Use it.
988         (update_conflict_hard_regno_costs): New function.
989         (assign_hard_reg): Use it.
990         (ira_color): Allocate and free conflict_allocno_vec.
991  
992 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
993
994         PR rtl-opt/37296
995
996         * ira-int.h (ira_sort_insn_chain): Remove.
997
998         * ira.c (basic_block_order_nums, chain_insn_order,
999         chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
1000         (ira): Don't call ira_sort_insn_chain.
1001
1002         * reload1.c (reload): Don't call ira_sort_insn_chain.
1003
1004 2008-09-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1005
1006         PR middle-end/37293
1007         * cgraphunit.c (update_call_expr): Remove eh regions from statements
1008         which become non throw.
1009         (cgraph_function_versioning): Also clear DECL_WEAK.  Call
1010         update_call_expr after updating the flags on the decl.
1011
1012 2008-09-03  Jan Hubicka  <jh@suse.cz>
1013
1014         PR tree-optimization/37315
1015         * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
1016         * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
1017         (cgraph_analyze_functions): Use node->analyzed
1018         (cgraph_mark_functions_to_output): Likewise.
1019         (cgraph_expand_function): All functions can be released after
1020         expanding.
1021         (cgraph_optimize): Use gimple_has_body_p.
1022         * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
1023         (cgraph_decide_inlining_incrementally): Likewise.
1024         (inline_transform): Inline transform.
1025         * tree-inline.c (initialize_cfun): Do now shallow copy structure;
1026         copy fields needed.
1027         (inlinable_function_p): Drop gimple_body check.
1028         (expand_call_inline): Use gimple_has_body_p.
1029         * gimple.c (gimple_has_body_p): New.
1030         * gimple.h (gimple_has_body_p): Add prototype.
1031         * tree-cfg.c (execute_build_cfg): Remove gimple_body.
1032         (dump_function_to_file): Use gimple_has_body_p check.
1033
1034 2008-09-03  Jakub Jelinek  <jakub@redhat.com>
1035
1036         PR c++/37346
1037         * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
1038         substatements.
1039         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
1040
1041 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
1042
1043         From Michael Frysinger  <michael.frysinger@analog.com>
1044         * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
1045         bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549.  Add 0.2
1046         for bf538.
1047
1048 2008-09-03  Hari Sandanagobalane  <hariharan@picochip.com>
1049
1050         Add picoChip port.
1051         * doc/extend.texi: Document picoChip builtin functions.
1052         * doc/invoke.texi: Document picoChip options.
1053         * doc/contrib.texi: Add picoChip contribution.
1054         * doc/md.texi: Document picoChip constraints.
1055         * config.gcc: Add picochip-*-*.
1056         * config/picochip/: Add new port.
1057
1058 2008-09-03  Richard Guenther  <rguenther@suse.de>
1059
1060         PR tree-optimization/37328
1061         * tree-sra.c (sra_build_assignment): Gimplify properly.
1062         (generate_copy_inout): Take the correct stmt as definition,
1063         remove bogus assert.
1064
1065 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
1066
1067         * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
1068         attributes.
1069
1070         From Michael Frysinger  <michael.frysinger@analog.com>
1071         * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
1072
1073 2008-09-03 Danny Smith  <dannysmith@usrs.sourceforge.net>
1074
1075         * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
1076         (__gthread_setspecific): Revert 2008-08-31 change to
1077         __GTHREAD_HIDE_W32API case.  Apply it to !__GTHREAD_HIDE_W32API case.
1078
1079 2008-09-02  Aldy Hernandez  <aldyh@redhat.com>
1080
1081         * diagnostic.c (error_at): New.
1082         * toplev.h (error_at): New prototype.
1083         * c-typeck.c (build_array_ref): Call error_at instead of error.
1084         Pass location to pedwarn.
1085
1086 2008-09-02  Adam Nemet  <anemet@caviumnetworks.com>
1087
1088         * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
1089
1090 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
1091
1092         * dwarf2out.c (tree_add_const_value_attribute): Only handle
1093         VAR_DECL and CONST_DECL.
1094
1095 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1096             Jakub Jelinek  <jakub@redhat.com>
1097
1098         * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
1099         (setup_incoming_varargs_64): Assume cum != NULL. Set/check
1100         ix86_varargs_gpr_size and ix86_varargs_fpr_size.  Use
1101         ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
1102         Don't set ix86_save_varrargs_registers.
1103         (ix86_setup_incoming_varargs): Assume cum != NULL.
1104         (ix86_va_start): Check ix86_varargs_gpr_size and
1105         ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
1106         cfun->va_list_fpr_size, respectively.  Subtract 8*X86_64_REGPARM_MAX
1107         from frame pointer if ix86_varargs_gpr_size == 0.
1108         (ix86_compute_frame_layout): Updated.
1109         * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
1110         (ix86_varargs_gpr_size): Define.
1111         (ix86_varargs_fpr_size): Likewise.
1112         (machine_function): Remove save_varrargs_registers.
1113         Add varargs_gpr_size and varargs_fpr_size.
1114
1115 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
1116
1117         * config/alpha/alpha.c (va_list_skip_additions,
1118         alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
1119         (alpha_gimplify_va_arg): Call unshare_expr on second use of
1120         offset_field.
1121
1122         PR tree-optimization/36766
1123         * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
1124         for already removed basic blocks.
1125
1126         PR target/36332
1127         * real.c (real_maxval): Clear a lower bit to make real_maxval
1128         match get_max_float for IBM long double format.
1129
1130 2008-09-02  Andreas Schwab  <schwab@suse.de>
1131
1132         * configure.ac: Use m4_quote to quote the expansion of m4_do.
1133         * configure: Regenerate.
1134
1135 2008-09-02  Richard Sandiford  <rdsandiford@googlemail.com>
1136
1137         * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
1138         SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
1139         checking for a non-VOID CONSTANT_P.
1140
1141 2008-09-02  Jan Hubicka  <jh@suse.cz>
1142
1143         * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
1144         * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
1145         sdiv_pow2_cheap
1146
1147 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1148
1149         * expr.c (emit_group_store): Don't assert stack temp mode size.
1150
1151 2008-09-02  Sebastian Pop  <sebastian.pop@amd.com>
1152             Tobias Grosser  <grosser@fim.uni-passau.de>
1153             Jan Sjodin  <jan.sjodin@amd.com>
1154             Harsha Jagasia  <harsha.jagasia@amd.com>
1155             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1156             Konrad Trifunovic  <konrad.trifunovic@inria.fr>
1157             Adrien Eliche  <aeliche@isty.uvsq.fr>
1158
1159         Merge from graphite branch.
1160         * graphite.c: New.
1161         * graphite.h: New.
1162         * tree-loop-linear.c (perfect_loop_nest_depth): Export.
1163         * doc/invoke.texi (-floop-block, -floop-interchange,
1164         -floop-strip-mine): Document new flags.
1165         * tree-into-ssa.c (gimple_vec): Moved...
1166         * tree-loop-distribution.c (rdg_component): Moved...
1167         * cfgloopmanip.c: Include tree-flow.h.
1168         (update_dominators_in_loop): New.
1169         (create_empty_if_region_on_edge): New.
1170         (create_empty_loop_on_edge): New.
1171         (loopify): Use update_dominators_in_loop.
1172         * tree-pass.h (pass_graphite_transforms): Declared.
1173         * configure: Regenerate.
1174         * tree-phinodes.c (make_phi_node): Export.
1175         (add_phi_node_to_bb): New, split from create_phi_node.
1176         * tree-chrec.c (for_each_scev_op): New.
1177         * tree-chrec.h (for_each_scev_op): Declared.
1178         * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
1179         (remove_statement): Call get_phi_with_result.
1180         * config.in (HAVE_cloog): Undef.
1181         * gdbinit.in (pgg): New.
1182         * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
1183         * tree-ssa-loop.c (graphite_transforms): New.
1184         (gate_graphite_transforms): New.
1185         (pass_graphite_transforms): New.
1186         * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
1187         HAVE_cloog): Defined.
1188         * tree-vectorizer.c (rename_variables_in_bb): Export.
1189         * tree-data-ref.c (dr_may_alias_p): Export.
1190         (stmt_simple_memref_p): New.
1191         (find_data_references_in_stmt): Export.
1192         (find_data_references_in_loop): Export.
1193         (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
1194         (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
1195         (create_rdg_vertices): Export.
1196         (build_empty_rdg): New.
1197         (build_rdg): Call build_empty_rdg.  Free dependence_relations.
1198         * tree-data-ref.h (rdg_component): ... here.
1199         (scop_p): New.
1200         (struct data_reference): Add a field scop.
1201         (DR_SCOP): New.
1202         (find_data_references_in_loop): Declared.
1203         (find_data_references_in_stmt): Declared.
1204         (create_rdg_vertices): Declared.
1205         (dr_may_alias_p): Declared.
1206         (stmt_simple_memref_p): Declared.
1207         (struct rdg_edge): Add a field ddr_p relation.
1208         (build_empty_rdg): Declared.
1209         * lambda.h (lambda_matrix): Declare a VEC of.
1210         (find_induction_var_from_exit_cond): Declared.
1211         (lambda_vector_compare): New.
1212         * common.opt (fgraphite, floop-strip-mine,
1213         floop-interchange, floop-block): New flags.
1214         * lambda-code.c (find_induction_var_from_exit_cond): Export.
1215         * cfgloop.c (is_loop_exit): New.
1216         * cfgloop.h (is_loop_exit): Declared.
1217         (create_empty_if_region_on_edge): Declared.
1218         (create_empty_loop_on_edge): Declared.
1219         * tree-flow.h (add_phi_node_to_bb): Declared.
1220         (make_phi_node): Declared.
1221         (rename_variables_in_bb): Declared.
1222         (perfect_loop_nest_depth): Declared.
1223         (graphite_transform_loops): Declared.
1224         * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
1225         (graphite.o-warn): Add -Wno-error.
1226         (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
1227         (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
1228         (INCLUDES): Add PPLINC, CLOOGINC.
1229         (OBJS-common): Add graphite.o.
1230         (graphite.o): Add rule.
1231         * gimple.h (gimple_vec): ... here.
1232         * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
1233         * passes.c (init_optimization_passes): Schedule 
1234         pass_graphite_transforms.
1235
1236 2008-09-02  Samuel Tardieu  <sam@rfc1149.net>
1237
1238         PR target/37283
1239         * opts.c (decode_options): Move processing of -fno-unit-at-a-time
1240         and -fno-toplevel-reorder after handle_options.
1241
1242 2008-09-02  Paul Brook  <paul@codesourcery.com>
1243
1244         * config/arm/arm.c (arm_tune_cortex_a9): Define.
1245         (arm_override_options): Set arm_tune_cortex_a9.
1246         (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
1247         (arm_issue_rate): Handle cortexa9.
1248         * config/arm/arm.h (arm_tune_cortex_a9): Declare.
1249         * config/arm/arm-cores.def: Add cortex-a9.
1250         * config/arm/arm-tune.md: Regenerate.
1251         * config/arm/arm.md: Include cortex-a9.md.
1252         (generic_sched, generic_vfp): Add cortexa9.
1253         * config/arm/cortex-a9.md: New file.
1254
1255 2008-09-02  Richard Guenther  <rguenther@suse.de>
1256
1257         PR tree-optimization/37327
1258         * tree-vrp.c (register_new_assert_for): Make sure to not have
1259         TREE_OVERFLOW set on the bound.
1260
1261 2008-09-02  Alexander Monakov  <amonakov@ispras.ru>
1262
1263         Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
1264
1265         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
1266         * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
1267         spec_info->mask.
1268
1269 2008-09-02  Victor Kaplansky  <victork@il.ibm.com>
1270
1271         * gcc/config/spu/spu.md (divdf3): Removed.
1272
1273 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
1274
1275         PR tree-optimization/37095
1276         * cgraph.c (cgraph_node): When creating new cgraph node after
1277         assembler_name_hash has been populated, record it in the hash
1278         table.
1279
1280 2008-09-01  Paul Brook  <paul@codesourcery.com>
1281
1282         * doc/invoke.texi: Document -mword-relocations.
1283         * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1284         * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1285         * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1286         * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
1287         (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
1288         (arm_emit_movpair): New function.
1289         (arm_print_operand <c>): Handle sybolic addresses.
1290         * config/arm/arm.h (TARGET_USE_MOVT): Define.
1291         (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1292         * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
1293         * config/arm/arm.opt: Add -mword-relocations.
1294         * config/arm/arm.md (movsi): Use arm_emit_movpair.
1295         (arm_movt, arm_movw): New.
1296
1297 2008-09-01  Paul Brook  <paul@codesourcery.com>
1298
1299         * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
1300         Allow Interworking on ARMv4 EABI based targets.
1301         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
1302         (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
1303
1304 2008-09-01  Paul Brook  <paul@codesourcery.com>
1305
1306         * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
1307         optimized LT0 test.  Remove optimization for GT.
1308
1309 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1310
1311         * pa64-hpux.h (LIB_SPEC): Link against librt when building static
1312         openmp applications.
1313         * pa-hpux11.h (LIB_SPEC): Likewise.
1314
1315         * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is
1316         defined.
1317
1318 2008-09-01  Jan Hubicka  <jh@suse.cz>
1319
1320         * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
1321         present, use only counts; when guessed use only frequencies.
1322         (estimate_bb_frequencies): Use function_frequency.
1323         * profile.c (compute_branch_probabilities): Exit early when
1324         profile reading failed. Set profile_status.
1325         (branch_prob): Do not set profile_status.
1326
1327 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
1328
1329         * tree.c (protected_set_expr_location): New.
1330         * tree.h (protected_set_expr_location): New prototype.
1331         * c-tree.h (build_array_ref): Add argument.
1332         (parser_build_unary_op): Same.
1333         * c-typeck.c (build_indirect_ref): Handle new location argument.
1334         (build_array_ref): Same.
1335         (parser_build_unary_op): Same.
1336         * gimplify.c (gimplify_asm_expr): Set input_location before calling
1337         error.
1338         * c-omp.c (c_finish_omp_atomic): Pass location when calling
1339         build_indirect_ref.
1340         * c-common.c (finish_label_address_expr): Handle new location argument.
1341         * c-common.h (build_indirect_ref): Add argument.
1342         (finish_label_address_expr): Same.
1343         * c-parser.c (c_parser_unary_expression): Pass location to build
1344         functions.
1345         (c_parser_postfix_expression): Same.
1346
1347 2008-09-01  Paul Brook  <paul@codesourcery.com>
1348
1349         * config/arm/arm.md: Include cortex-r4f.md.
1350         (attr fpu): Update type list.
1351         (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
1352         fconstd, fcmps and fcmpd.
1353         (attr tune_cortexr4): Define.
1354         (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
1355         * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
1356         fconsts, fconstd, fcmps and fcmpd.  Use them in insn patterns.
1357         * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
1358         * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
1359         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
1360         cortex_a8_vfp_farith: Ditto.
1361         * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
1362         * config/arm/cortex-r4.md: Use tune_cortexr4.
1363         * config/arm/cortex-r4f.md: New file.
1364
1365 2008-09-01  Richard Guenther  <rguenther@suse.de>
1366
1367         PR tree-optimization/37305
1368         * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
1369         the result of constant conversions.
1370         (fold_gimple_assign): Likewise.
1371
1372 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
1373
1374         * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
1375         #ifdef ENABLE_CHECKING.
1376
1377 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
1378
1379         * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
1380         * sched-int.h (print_insn, print_pattern, print_value): Declare also
1381         when !INSN_SCHEDULING.
1382
1383 2008-09-01  Andreas Schwab  <schwab@suse.de>
1384
1385         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
1386
1387 2008-09-01  Paul Brook  <paul@codesourcery.com>
1388
1389         * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
1390
1391 2008-09-01  Jan Hubicka  <jh@suse.cz>
1392
1393         * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
1394
1395         * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
1396         Pass speed operand.
1397         * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
1398         * gimplify.c (gimplify_init_constructor): Add speed operand.
1399         * tree-sra.c (decide_block_copy): Likewise.
1400         * tree-inline.c (estimate_move_cost): Likewise.
1401         * config/alpha/alpha.h (MOVE_RATIO): Update.
1402         * config/frv/frv.c (MOVE_RATIO): Update.
1403         * config/spu/spu.h (MOVE_RATIO): Update.
1404         * config/sparc/sparc.h (MOVE_RATIO): Update.
1405         * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
1406         * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
1407         * config/cris/cris.h (MOVE_RATIO): Update.
1408         * config/mn10300/mn10300.h (MOVE_RATIO): Update.
1409         * config/arm/arm.h (MOVE_RATIO): Update.
1410         * config/pa/pa.md: Update uses of MOVE_RATIO
1411         * config/pa/pa.h (MOVE_RATIO): Update.
1412         * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
1413         CLEAR_RATIO, SET_RATIO): Update.
1414         * config/h8300/h8300.h (MOVE_RATIO): Update.
1415         * config/v850/v850.h (MOVE_RATIO): Update.
1416         * config/bfin/bfin.h (MOVE_RATIO): Update.
1417
1418 2008-08-31  Andrey Belevantsev  <abel@ispras.ru>
1419             Dmitry Melnik  <dm@ispras.ru>
1420             Dmitry Zhurikhin  <zhur@ispras.ru>
1421             Alexander Monakov  <amonakov@ispras.ru>
1422             Maxim Kuvyrkov  <maxim@codesourcery.com>
1423
1424         * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
1425         sel-sched-dump.c, sel-sched-ir.c: New files.
1426         * Makefile.in (OBJS-common): Add selective scheduling object
1427         files.
1428         (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
1429         (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
1430         (sched-vis.o): Add dependency on $(INSN_ATTR_H).
1431         * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
1432         * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
1433         (make_forwarder_block): Update loop latch if we have redirected
1434         the loop latch edge.
1435         * cfgloop.c (get_loop_body_in_custom_order): New function.
1436         * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
1437         (CP_FALLTHRU_PREHEADERS): Likewise.
1438         (get_loop_body_in_custom_order): Declare.
1439         * cfgloopmanip.c (has_preds_from_loop): New.
1440         (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
1441         Assert that the preheader edge will be fall thru when it is set.
1442         * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
1443         fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
1444         fsel-sched-substitution, fselective-scheduling): New flags.
1445         * cse.c (hash_rtx_cb): New.
1446         (hash_rtx): Use it.
1447         * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
1448         sel_sched_insn_cnt): New counters.
1449         * final.c (compute_alignments): Export.  Free dominance
1450         info after loop_optimizer_finalize.
1451         * genattr.c (main): Output maximal_insn_latency prototype.
1452         * genautomata.c (output_default_latencies): New.
1453         Factor its code from ...
1454         (output_internal_insn_latency_func): ... here.
1455         (output_internal_maximal_insn_latency_func): New.
1456         (output_maximal_insn_latency_func): New.
1457         * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
1458         (struct hard_reg_set_iterator): New.
1459         (hard_reg_set_iter_init, hard_reg_set_iter_set,
1460         hard_reg_set_iter_next): New functions.
1461         (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
1462         * lists.c (remove_free_INSN_LIST_node,
1463         remove_free_EXPR_LIST_node): New functions.
1464         * loop-init.c (loop_optimizer_init): When
1465         LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
1466         calling create_preheaders.
1467         (loop_optimizer_finalize): Do not verify flow info after reload.
1468         * recog.c (validate_replace_rtx_1): New parameter simplify.
1469         Default it to true.  Update all uses.  Factor out simplifying
1470         code to ...
1471         (simplify_while_replacing): ... this new function.
1472         (validate_replace_rtx_part,
1473         validate_replace_rtx_part_nosimplify): New.
1474         * recog.h (validate_replace_rtx_part,
1475         validate_replace_rtx_part_nosimplify): Declare.
1476         * rtl.c (rtx_equal_p_cb): New.
1477         (rtx_equal_p): Use it.
1478         * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
1479         (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
1480         debug_bb_n_slim, debug_bb_slim,    print_rtl_slim): Likewise.
1481         * vecprim.h: Add a vector type for unsigned int.
1482         * haifa-sched.c: Include vecprim.h and cfgloop.h.
1483         (issue_rate, sched_verbose_param, note_list, dfa_state_size,
1484         ready_try, cycle_issued_insns, spec_info): Make global.
1485         (readyp): Initialize.
1486         (dfa_lookahead): New global variable.
1487         (old_max_uid, old_last_basic_block): Remove.
1488         (h_i_d): Make it a vector.
1489         (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
1490         through HID macro.
1491         (after_recovery, adding_bb_to_current_region_p):
1492         New variables to handle correct insertion of the recovery code.
1493         (struct ready_list): Move declaration to sched-int.h.
1494         (rgn_n_insns): Removed.
1495         (rtx_vec_t): Move to sched-int.h.
1496         (find_insn_reg_weight): Remove.
1497         (find_insn_reg_weight1): Rename to find_insn_reg_weight.
1498         (haifa_init_h_i_d, haifa_finish_h_i_d):
1499         New functions to initialize / finalize haifa instruction data.
1500         (extend_h_i_d, init_h_i_d): Rewrite.
1501         (unlink_other_notes): Move logic to add_to_note_list.  Handle
1502         selective scheduler.
1503         (ready_lastpos, ready_element, ready_sort, reemit_notes,
1504         find_fallthru_edge): Make global, remove static prototypes.
1505         (max_issue): Make global.  Add privileged_n and state parameters.  Use
1506         them.
1507         (extend_global, extend_all): Removed.
1508         (init_before_recovery): Add new param.  Fix the handling of the case
1509         when we insert a recovery code before the EXIT which has a predecessor
1510         with a fallthrough edge to it.
1511         (create_recovery_block): Make global.  Rename to
1512         sched_create_recovery_block.  Update.
1513         (change_pattern): Rename to sched_change_pattern.  Make global.
1514         (speculate_insn): Rename to sched_speculate_insn.  Make global.
1515         Split haifa-specific functionality into ...
1516         (haifa_change_pattern): New static function.
1517         (sched_extend_bb): New static function.
1518         (sched_init_bbs): New function.
1519         (current_sched_info): Change type to struct haifa_sched_info.
1520         (insn_cost): Adjust for selective scheduling.
1521         (dep_cost_1): New function.  Move logic from ...
1522         (dep_cost): ... here.
1523         (dep_cost): Use dep_cost_1.
1524         (contributes_to_priority_p): Use sched_deps_info instead of
1525         current_sched_info.
1526         (priority): Adjust to work with selective scheduling.  Process the
1527         corner case when all dependencies don't contribute to priority.
1528         (rank_for_schedule): Use ds_weak instead of dep_weak.
1529         (advance_state): New function.  Move logic from ...
1530         (advance_one_cycle): ... here.
1531         (add_to_note_list, concat_note_lists): New functions.
1532         (rm_other_notes): Make static.  Adjust for selective scheduling.
1533         (remove_notes, restore_other_notes): New functions.
1534         (move_insn): Add two arguments.  Update assert.  Don't call
1535         reemit_notes.
1536         (choose_ready): Remove lookahead variable, use dfa_lookahead.
1537         Remove more_issue, max_points.  Move the code to initialize
1538         max_lookahead_tries to max_issue.
1539         (schedule_block): Remove rgn_n_insns1 parameter.  Don't allocate
1540         ready.  Adjust use of move_insn.  Call restore_other_notes.
1541         (luid): Remove.
1542         (sched_init, sched_finish): Move Haifa-specific initialization/
1543         finalization to ...
1544         (haifa_sched_init, haifa_sched_finish): ... respectively.
1545         New functions.
1546         (setup_sched_dump): New function.
1547         (haifa_init_only_bb): New static function.
1548         (haifa_speculate_insn): New static function.
1549         (try_ready): Use haifa_* instead of speculate_insn and
1550         change_pattern.
1551         (extend_ready, extend_all): Remove.
1552         (sched_extend_ready_list, sched_finish_ready_list): New functions.
1553         (create_check_block_twin, add_to_speculative_block): Use
1554         haifa_insns_init instead of extend_global.  Update to use new
1555         initialization functions.  Change parameter.  Factor out code from
1556         create_check_block_twin to ...
1557         (sched_create_recovery_edges) ... this new function.
1558         (add_block): Remove.
1559         (sched_scan_info): New.
1560         (extend_bb): Use sched_scan_info.
1561         (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
1562         static functions for walking through scheduling region.
1563         (sched_luids): New vector variable to replace uid_to_luid.
1564         (luids_extend_insn): New function.
1565         (sched_max_luid): New variable.
1566         (luids_init_insn): New function.
1567         (sched_init_luids, sched_finish_luids): New functions.
1568         (insn_luid): New debug function.
1569         (sched_extend_target): New function.
1570         (haifa_init_insn): New static function.
1571         (sched_init_only_bb): New hook.
1572         (sched_split_block): New hook.
1573         (sched_split_block_1): New function.
1574         (sched_create_empty_bb): New hook.
1575         (sched_create_empty_bb_1): New function.
1576         (common_sched_info, ready): New global variables.
1577         (current_sched_info_var): Remove.
1578         (move_block_after_check): Use common_sched_info.
1579         (haifa_luid_for_non_insn): New static function.
1580         (init_before_recovery): Use haifa_init_only_bb instead of
1581         add_block.
1582         (increase_insn_priority): New.
1583         * modulo-sched.c: (issue_rate): Remove static declaration.
1584         (sms_sched_info): Change type to haifa_sched_info.
1585         (sms_sched_deps_info, sms_common_sched_info): New variables.
1586         (setup_sched_infos): New.
1587         (sms_schedule): Initialize them.  Call haifa_sched_init/finish.
1588         Do not call regstat_free_calls_crossed.
1589         (sms_print_insn): Use const_rtx.
1590         * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
1591         PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
1592         PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
1593         PARAM_SCHED_MEM_TRUE_DEP_COST): New.
1594         * sched-deps.c (sched_deps_info): New.  Update all relevant uses of
1595         current_sched_info to use it.
1596         (enum reg_pending_barrier_mode): Move to sched-int.h.
1597         (h_d_i_d): New variable. Initialize to NULL.
1598         ({true, output, anti, spec, forward}_dependency_cache): Initialize
1599         to NULL.
1600         (estimate_dep_weak): Remove static declaration.
1601         (sched_has_condition_p): New function.  Adjust users of
1602         sched_get_condition to use it instead.
1603         (conditions_mutex_p): Add arguments indicating which conditions are
1604         reversed.  Use them.
1605         (sched_get_condition_with_rev): Rename from sched_get_condition.  Add
1606         argument to indicate whether returned condition is reversed.  Do not
1607         generate new rtx when condition should be reversed; indicate it by
1608         setting new argument instead.
1609         (add_dependence_list_and_free): Add deps parameter.
1610         Update all users.  Do not free dependence list when
1611         deps context is readonly.
1612         (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
1613         contexts.
1614         (remove_from_dependence_list, remove_from_both_dependence_lists): New.
1615         (remove_from_deps): New. Use the above functions.
1616         (cur_insn, can_start_lhs_rhs_p): New static variables.
1617         (add_or_update_back_dep_1): Initialize present_dep_type.
1618         (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
1619         haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
1620         haifa_note_dep): New functions implementing dependence hooks for
1621         the Haifa scheduler.
1622         (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
1623         note_dep): New functions.
1624         (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
1625         functions.
1626         (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
1627         (free_deps): Initialize deps->reg_last.
1628         (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
1629         sched_analyze_insn): Update to use dependency hooks infrastructure
1630         and readonly contexts.
1631         (deps_analyze_insn): New function.  Move part of logic from ...
1632         (sched_analyze): ... here.  Also move some logic to ...
1633         (deps_start_bb): ... here.  New function.
1634         (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
1635         sel_sched_p.
1636         (sched_deps_init): New function.  Move code from ...
1637         (init_dependency_caches): ... here.  Remove.
1638         (init_deps_data_vector): New.
1639         (sched_deps_finish): New function.  Move code from ...
1640         (free_dependency_caches): ... here.  Remove.
1641         (init_deps_global, finish_deps_global): Adjust for use with
1642         selective scheduling.
1643         (get_dep_weak): Move logic to ...
1644         (get_dep_weak_1): New function.
1645         (ds_merge): Move logic to ...
1646         (ds_merge_1): New static function.
1647         (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
1648         (ds_get_max_dep_weak): New function.
1649         * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
1650         (n_insns): Rename to rgn_n_insns.
1651         (debug_ebb_dependencies): New function.
1652         (init_ready_list): Use it.
1653         (begin_schedule_ready): Use sched_init_only_bb.
1654         (ebb_print_insn): Indicate when an insn starts a new cycle.
1655         (contributes_to_priority, compute_jump_reg_dependencies,
1656         add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
1657         (add_block1): Remove to ebb_add_block.
1658         (ebb_sched_deps_info, ebb_common_sched_info): New variables.
1659         (schedule_ebb): Initialize them.  Use remove_notes instead of
1660         rm_other_notes.  Use haifa_local_init/finish.
1661         (schedule_ebbs): Use haifa_sched_init/finish.
1662         * sched-int.h: Include vecprim.h, remove rtl.h.
1663         (struct ready_list): Delete declaration.
1664         (sched_verbose_param, enum sched_pass_id_t,
1665         bb_vec_t, insn_vec_t, rtx_vec_t): New.
1666         (struct sched_scan_info_def): New structure.
1667         (sched_scan_info, sched_scan, sched_init_bbs,
1668         sched_init_luids, sched_finish_luids, sched_extend_target,
1669         haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
1670         (struct common_sched_info_def): New.
1671         (common_sched_info, haifa_common_sched_info,
1672         sched_emulate_haifa_p): Declare.
1673         (sel_sched_p): New.
1674         (sched_luids): Declare.
1675         (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
1676         (sched_max_luid, insn_luid): Declare.
1677         (note_list, remove_notes, restore_other_notes, bb_note): Declare.
1678         (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
1679         print_insn, print_pattern, print_value, haifa_classify_insn,
1680         sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
1681         setup_sched_dump, sched_init, sched_finish,
1682         sel_insn_is_speculation_check): Export.
1683         (struct ready_list): Move from haifa-sched.c.
1684         (ready_try, ready, max_issue): Export.
1685         (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
1686         sched_init_only_bb, sched_split_block, sched_split_block_1,
1687         sched_create_empty_bb, sched_create_empty_bb_1,
1688         sched_create_recovery_block, sched_create_recovery_edges): Export.
1689         (enum reg_pending_barrier_mode): Export.
1690         (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
1691         (deps_t): New.
1692         (struct sched_info): Rename to haifa_sched_info.  Use const_rtx for
1693         print_insn field.  Move add_block and fix_recovery_cfg to
1694         common_sched_info_def.  Move compute_jump_reg_dependencies,
1695         use_cselib  ...
1696         (struct sched_deps_info_def): ... this new structure.
1697         (sched_deps_info): Declare.
1698         (struct spec_info_def): Remove weakness_cutoff, add
1699         data_weakness_cutoff and control_weakness_cutoff.
1700         (spec_info): Declare.
1701         (struct _haifa_deps_insn_data): Split from haifa_insn_data.  Add
1702         dep_count field.
1703         (struct haifa_insn_data): Rename to struct _haifa_insn_data.
1704         (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
1705         (current_sched_info): Change type to struct haifa_sched_info.
1706         (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
1707         (h_d_i_d): New variable.
1708         (HDID): New accessor macro.
1709         (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
1710         (HID): New accessor macro.  Rewrite h_i_d accessor macros through HID
1711         and HDID.
1712         (IS_SPECULATION_CHECK_P): Update for selective scheduler.
1713         (enum SCHED_FLAGS): Update for selective scheduler.
1714         (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
1715         (init_dependency_caches, free_dependency_caches): Delete declarations.
1716         (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
1717         estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
1718         ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
1719         sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
1720         haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
1721         ds_to_dt): Export.
1722         (rm_other_notes): Delete declaration.
1723         (schedule_block): Remove one argument.
1724         (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
1725         ready_element, ready_lastpos, sched_extend_ready_list,
1726         sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
1727         concat_note_lists): Export.
1728         (struct region): Move from sched-rgn.h.
1729         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1730         RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1731         BLOCK_TO_BB, CONTAINING_RGN): Export.
1732         (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
1733         (current_nr_blocks, current_blocks, target_bb): Likewise.
1734         (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
1735         sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
1736         sched_rgn_local_init, extend_regions,
1737         rgn_make_new_region_out_of_new_block, compute_priorities,
1738         debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
1739         extend_rgns, deps_join rgn_setup_common_sched_info,
1740         rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
1741         dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
1742         (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
1743         increase_insn_priority): Likewise.
1744         * sched-rgn.c: Include sel-sched.h.
1745         (ref_counts): New static variable.  Use it ...
1746         (INSN_REF_COUNT): ... here.  Rewrite and move closer to uses.
1747         (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
1748         (sched_is_disabled_for_current_region_p): Delete static declaration.
1749         (struct region): Move to sched-int.h.
1750         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1751         ebb_head): Define and initialize.
1752         (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1753         BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
1754         BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
1755         sched-int.h.
1756         (find_single_block_region): Add new argument to indicate that EBB
1757         regions should be constructed.
1758         (debug_live): Delete declaration.
1759         (current_nr_blocks, current_blocks, target_bb):
1760         Remove static qualifiers.
1761         (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
1762         declaration.
1763         (init_regions): Delete declaration.
1764         (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
1765         rgn_estimate_number_of_insns): New.
1766         (too_large): Use estimate_number_of_insns.
1767         (haifa_find_rgns): New. Move the code from ...
1768         (find_rgns): ... here.  Call either sel_find_rgns or haifa_find_rgns.
1769         (free_trg_info): New.
1770         (compute_trg_info): Allocate candidate tables here instead of ...
1771         (init_ready_list): ... here.
1772         (rgn_print_insn): Use const_rtx.
1773         (contributes_to_priority, extend_regions): Delete static declaration.
1774         (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
1775         (add_block1): Rename to rgn_add_block.
1776         (debug_rgn_dependencies): Delete static qualifier.
1777         (new_ready): Use sched_deps_info.  Simplify.
1778         (rgn_common_sched_info, rgn_const_sched_deps_info,
1779         rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
1780         New.
1781         (region_sched_info): Rename to rgn_const_sched_info.
1782         (deps_join): New, extracted from ...
1783         (propagate_deps): ... here.
1784         (compute_block_dependences, debug_dependencies): Update for selective
1785         scheduling.
1786         (free_rgn_deps, compute_priorities): New functions.
1787         (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
1788         sched_rgn_compute_dependencies): New functions.
1789         (schedule_region): Use them.
1790         (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
1791         rgn_setup_common_sched_info, rgn_setup_sched_infos):
1792         New functions.
1793         (schedule_insns): Call new functions that were split out.
1794         (rgn_make_new_region_out_of_new_block): New.
1795         (get_rgn_sched_max_insns_priority): New.
1796         (rest_of_handle_sched, rest_of_handle_sched2): Call selective
1797         scheduling when appropriate.
1798         * sched-vis.c: Include insn-attr.h.
1799         (print_value, print_pattern): Make global.
1800         (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
1801         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
1802         TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
1803         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
1804         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
1805         TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
1806         hooks.  Initialize them to 0.
1807         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
1808         * target.h (struct gcc_target): Add them.  Rename gen_check field to
1809         gen_spec_check.
1810         * flags.h (sel_sched_switch_set): Declare.
1811         * opts.c (sel_sched_switch_set): New variable.
1812         (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
1813         pipelining is disabled from command line.
1814         (common_handle_option): Record whether selective scheduling is
1815         requested from command line.
1816         * doc/invoke.texi: Document new flags and parameters.
1817         * doc/tm.texi: Document new target hooks.
1818         * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
1819         ia64_gen_check.
1820         (dfa_state_size): Do not declare locally.
1821         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
1822         * config/rs6000/rs6000.c (rs6000_init_sched_context,
1823         rs6000_alloc_sched_context, rs6000_set_sched_context,
1824         rs6000_free_sched_context): New functions.
1825         (struct _rs6000_sched_context): New.
1826         (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
1827         scheduling.
1828         (rs6000_sched_finish): Do not run for selective scheduling.
1829
1830 2008-08-31  Jan Hubicka  <jh@suse.cz>
1831
1832         * frv.c (frv_rtx_costs): Update forward declaration.
1833         * spu.c (spu_rtx_costs): Likewise.
1834         * pdp11.c: Include df.h
1835         (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
1836         * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
1837         (m68hc11_rtx_costs_1): Fix call of rtx_cost.
1838         * iq2000.c (iq2000_address_cost): Add speed argument.
1839         (iq2000_rtx_costs): Likewise.
1840         * mn10300.c (mn10300_address_cost_1): Remove speed argument;
1841         update call of mn10300_address_cost.
1842         * mcore.c: Include df.h
1843         (mcore_rtx_costs): Update prototype.
1844         * score3.c: Include df.h
1845         (score3_rtx_costs): Remove speed argument.
1846         * score7.c: Include df.h
1847         (score7_address_cost): Remove speed argument.
1848         * score-protos.h (score_address_cost): Update prototype.
1849         * score.c: Include df.h
1850         (score_rtx_costs): Update call of costs functions.
1851         * v850.c (v850_rtx_costs): Add bool argument.
1852
1853 2008-08-31  Hans-Peter Nilsson  <hp@axis.com>
1854
1855         * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
1856
1857 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1858
1859         * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
1860         * config/i386/gthr-win32.c (__gthread_setspecific): Same.
1861
1862 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1863
1864         * mkmap-flat.awk: Add option pe_dll.
1865         * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
1866         * config/i386/t-cygwin (SHLIB_LC): Add.
1867         * config/i386/t-mingw32 (SHLIB_LC): Add.
1868         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
1869         (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
1870         (LINK_SPEC): Support libgcc_s.
1871         (LIBGCC_SPEC): Support libgcc_s.
1872         (LIBGCC_SONAME): New.
1873
1874 2008-08-31  Jan Hubicka  <jh@suse.cz>
1875
1876         * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
1877         mistakely had old version of patch.
1878
1879         * ipa-cp.c (ipcp_need_original_clone_p): Remove.
1880         (ipcp_estimate_growth): New.
1881         (ipcp_insert_stage): Use ipcp_estimate_growth.
1882         * profile.c (branch_prob): When reading failed, do not consider
1883         profile as read.
1884
1885 2008-08-31  Jan Hubicka  <jh@suse.cz>
1886
1887         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
1888         loop is optimized for speed.
1889
1890 2008-08-31  Richard Guenther  <rguenther@suse.de>
1891
1892         PR middle-end/37289
1893         * fold-const.c (fold_binary): Retain conversions in folding
1894         ~A + 1 to -A.
1895
1896 2008-08-31  Jan Hubicka  <jh@suse.cz>
1897
1898         * postreload-gcse.c (eliminate_partially_redundant_loads):
1899         Use optimize_bb_for_size_p.
1900         * predict.c (maybe_hot_frequency_p): Make inline.
1901         (maybe_hot_count_p): Break out from ...
1902         (maybe_hot_bb_p): ... this one.
1903         (maybe_hot_edge_p): Simplify.
1904         * basic-block.h (probably_cold_bb_p): Remove.
1905
1906 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
1907
1908         PR target/37168
1909         * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
1910         prototype.
1911         * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
1912         * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
1913         Also split V4SFmode.
1914         * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
1915         vector float modes.
1916
1917 2008-08-31  Jan Hubicka  <jh@suse.cz>
1918
1919         * predict.c (PROB_VERY_LIKELY): Make small enough so things
1920         become cold.
1921         * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
1922
1923 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
1924
1925         PR debug/37287
1926         * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
1927         add source coords.
1928
1929         * dwarf2out.c (native_encode_initializer): Subtract min_index for
1930         non-range array index.  Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
1931
1932 2008-08-31  Jan Hubicka  <jh@suse.cz>
1933
1934         * sparc.h (BRANCH_COST): Fix macro definition.
1935         * avr.c (avr_operand_rtx_cost): Add speed argument.
1936         (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
1937
1938 2008-08-31  Richard Guenther  <rguenther@suse.de>
1939
1940         * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
1941         types instead of operands.  Re-instantiate verifying of
1942         binary expression operands.
1943
1944 2008-08-30  Jan Hubicka  <jh@suse.cz>
1945
1946         * fwprop.c (should_replace_address): Add speed attribute.
1947         (PR_OPTIMIZE_FOR_SPEED): New flag.
1948         (propagate_rtx_1): Use it.
1949         (propagate_rtx): Set it.
1950         (try_fwprop_subst): Update call of rtx_costs.
1951         (forward_propagate_and_simplify): LIkewise.
1952         * hooks.c (hook_int_rtx_bool_0): New
1953         (hook_bool_rtx_int_int_intp_false): Replace by ...
1954         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1955         * hooks.h (hook_int_rtx_bool_0): New
1956         (hook_bool_rtx_int_int_intp_false): Replace by ...
1957         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1958         * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
1959         (prepare_cmp_insn): UPdate call of rtx_cost.
1960         * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
1961         (reload_cse_simplify_operands): Update call of rtx_cost.
1962         (reload_cse_move2add): call of rtx_cost.
1963         * target.h (struct gcc_target): Update rtx_costs and address_costs.
1964         * rtlanal.c (rtx_cost): Add speed argument.
1965         (address_cost): Add speed argument
1966         (default_address_cost): Likewise.
1967         (insn_rtx_cost): Likewise.
1968         * cfgloopanal.c (seq_cost): Add speed argument.
1969         (target_reg_cost, target_spill_cost): Turn to array.
1970         (init_set_costs): Update for speed.
1971         (estimate_reg_pressure_cost): Add speed argument.
1972         * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
1973         * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
1974         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
1975         (seq_cost): Add speed argument.
1976         (computation_cost): Add speed arugment.
1977         (add_cost, multiply_by_const, get_address_cost): add speed argument.
1978         (force_expr_to_var_cost): Update for profile info.
1979         (force_var_cost): Likewise.
1980         (split_address_cost): Likewise.
1981         (ptr_difference_cost): Likewise.
1982         (difference_cost): Likewise.
1983         (get_computation_cost_at): Likewise.
1984         (determine_iv_cost): Likewise.
1985         (ivopts_global_cost_for_size): Likewise.
1986         (rewrite_use_address): Likewise.
1987         (tree_ssa_iv_optimize_loop): Initialize speed field.
1988         * cse.c (optimize_this_for_speed_p): New static var.
1989         (notreg_cost): Update call of rtx_cost.
1990         (cse_extended_basic_block): set optimize_this_for_speed_p.
1991         * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
1992         (noce_try_cmove_arith): Likewise.
1993         (noce_try_sign_mask): LIkewise.
1994         * expr.c (compress_float_constant): Update rtx_cost calls.
1995         * tree-ssa-address.c (most_expensive_mult_to_index): Add speed argument.
1996         (addr_to_parts): Likewise.
1997         (create_mem_ref): Likewise.
1998         * dse.c (find_shift_sequence): Add speed argument.
1999         (replace_read): Update call.
2000         * calls.c (precompute_register_parameters): Update call of rtx_cost.
2001         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
2002         * neg_cost, shift_cost, shiftadd_cost,
2003         shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
2004         mul_highpart_cost): Increase dimension.
2005         (init_expmed): Initialize for both size and speed.
2006         (expand_shift): Use profile.
2007         (synth_mult): Use profile.
2008         (choose_mult_variant): Use profile.
2009         (expand_mult): Use profile.
2010         (expand_mult_highpart_optab): Use profile.
2011         (expand_mult_highpart): Use profile.
2012         (expand_smod_pow2): Use profile.
2013         (expand_divmod): Use profile.
2014         * simplify-rtx.c (simplify_binary_operation_1): Update call of rtx_cost.
2015         * loop-invariant.c (create_new_invariant): Use profile.
2016         (gain_for_invariant): Add speed parameter.
2017         (best_gain_for_invariant): Likewise.
2018         (find_invariants_to_move): Likewise.
2019         (move_single_loop_invariants): Set it.
2020         * target-def.h (TARGET_RTX_COSTS): Use hook.
2021         * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
2022         (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
2023         * output.h (default_address_cost): Update prototype.
2024         * combine.c (optimize_this_for_speed_p): New static var.
2025         (combine_validate_cost): Update call of rtx_cost.
2026         (combine_instructions): Set optimize_this_for_speed_p.
2027         (expand_compound_operation): Update call of rtx_cost.
2028         (make_extraction):Update call of rtx_cost.
2029         (force_to_mode):Update call of rtx_cost.
2030         (distribute_and_simplify_rtx):Update call of rtx_cost.
2031         * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
2032         (estimate_reg_pressure_cost): Update prototype.
2033         * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
2034         * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
2035         Remove.
2036         * config/alpha/alpha.c (alpha_rtx_costs): Update.
2037         (alpha_rtx_costs): Update.
2038         * config/frv/frv.c (frv_rtx_costs): Update.
2039         * config/s390/s390.c (s390_rtx_costs): Update.
2040         * config/m32c/m32c.c (m32c_memory_move_cost): Update.
2041         (m32c_rtx_costs): Update.
2042         * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
2043         (spu_rtx_costs): Update.
2044         * config/sparc/sparc.c (sparc_rtx_costs): Update.
2045         * config/m32r/m32r.c (m32r_rtx_costs): Update.
2046         * config/i386/i386.c (:ix86_address_cost): Update.
2047         (ix86_rtx_costs): Update.
2048         * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
2049         * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
2050         * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
2051         * config/crx/crx.c (crx_address_cost): Update.
2052         * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
2053         * config/stormy16/stormy16.c
2054         (xstormy16_address_cost, xstormy16_rtx_costs): Update.
2055         * config/m68hc11/m68hc11.c
2056         (m68hc11_address_cost, m68hc11_rtx_costs): Update.
2057         * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
2058         * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
2059         Update.
2060         * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
2061         Update
2062         * config/ia64/ia64.c (ia64_rtx_costs): Update.
2063         * config/m68k/m68k.c (m68k_rtx_costs): Update.
2064         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
2065         * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
2066         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
2067         (mcore_rtx_costs): update.
2068         * config/score/score3.c (score3_rtx_costs): Update.
2069         * config/score/score7.c (score7_rtx_costs): Update.
2070         * config/score/score3.h (score3_rtx_costs):Update.
2071         * config/score/score7.h (score7_rtx_costs): Update.
2072         * config/score/score.c (score_rtx_costs): Update.
2073         * config/arm/arm.c (arm_address_cost): Update.
2074         (arm_rtx_costs_1): Update.
2075         (arm_rtx_costs_1): Update.
2076         (arm_size_rtx_costs): Update.
2077         (arm_size_rtx_costs): Update.
2078         (arm_size_rtx_costs): Update.
2079         (arm_xscale_rtx_costs): Update.
2080         (arm_thumb_address_cost): Update.
2081         * config/pa/pa.c (hppa_address_cost): Update.
2082         * config/mips/mips.c (mips_rtx_costs): Update.
2083         * config/vax/vax.c (vax_address_cost): Update.
2084         * config/h8300/h8300.c (h8300_shift_costs): Update.
2085         (h8300_rtx_costs): Update.
2086         * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
2087         (v850_rtx_costs): Update.
2088         * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
2089         * config/bfin/bfin.c
2090         (bfin_address_cost): Update.
2091         (bfin_rtx_costs): Update.
2092         * stmt.c (lshift_cheap_p): Update.
2093
2094 2008-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2095
2096         PR middle-end/36444
2097         * expmed.c (extract_bit_field_1): Check the mode size to make
2098         sure the vector modes have the same size.
2099
2100 2008-08-29  Michael Meissner  <gnu@the-meissners.org>
2101
2102         * dojump.c (top level): Include basic-block.h to declare
2103         optimize_insn_for_speed_p
2104
2105         * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
2106
2107         * opts.h (CL_SAVE): New option class for marking options that are
2108         target specific options usable in the target attribute.
2109         (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
2110
2111         * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
2112         can easily find the target specific options that are safe to use
2113         in the attribute or pragma.
2114
2115         * attribs.c (decl_attributes): Change #pragma GCC option to
2116         #pragma GCC target, and attribute((option(...))) to
2117         attribute((target(...))).
2118
2119         * doc/extend.texi (target attribute): Change from option
2120         attribute.  Delete push/pop/reset.
2121         (#pragma GCC target): Change from #pragma GCC option.  Delete
2122         push/pop/reset.
2123         (#pragma GCC push_options): Document new pragma.
2124         (#pragma GCC pop_options): Document new pragma.
2125         (#pragma GCC reset_options): Document new pragma.
2126
2127         * targhooks.c (default_target_option_valid_attribute_p): Add
2128         warning about port not supporting target attributes.
2129         (default_target_option_pragma_parse): New function, warn about
2130         #pragma GCC target not being supported.
2131
2132         * targhooks.h (default_target_option_pragma_parse): Add
2133         declaration.
2134
2135         * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
2136         TI_CURRENT_OPTION_PRAGMA.
2137         (current_target_pragma): Rename from current_option_pragma.
2138
2139         * target.h: (struct target_option): Delete booleans for changing
2140         the optimization level on hot/cold functions.  Change signature of
2141         pragma_parse hook to take a second tree.
2142
2143         * c-tree.h (c_builtin_function_ext_scope): Add declaration.
2144
2145         * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
2146         that the declaration is done at global scope.
2147
2148         * langhooks.c (add_builtin_function_common): Move most of the code
2149         from add_builtin_function here, calling the hook passed in.
2150         (add_builtin_function): Call add_builtin_function_common with
2151         standard builtin hook.
2152         (add_builtin_function_ext_scope): New function to add builtins to
2153         global scope.
2154
2155         * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
2156         hook.
2157         (add_builtin_function_ext_scope): Add declaration.
2158
2159         * c-pragma.c (handle_pragma_target): Rename from
2160         handle_pragma_option, #pragma GCC option is now #pragma GCC
2161         target.  Move warning about port not supporting target options to
2162         default pragma parse hook.  Remove push/pop/reset from this
2163         pragma.
2164         (handle_pragma_optimize): Remove push/pop/reset from this pragma.
2165         (option_stack): Delete static variable.
2166         (optimize_stack): Ditto.
2167         (optons_stack): New stack of saved target and optimization
2168         options.
2169         (handle_pragma_push_options): New function to handle pushing both
2170         target and optimization options.
2171         (handle_pragma_pop_options): New function to handle popping both
2172         target and optimization options.
2173         (handle_pragma_reset_options): New function to handle resetting
2174         both target and optimization options to their initial state.
2175         (init_pragma): Rename handle_pragma_option to
2176         handle_pragma_target.  Add support for push_options, pop_options,
2177         and reset_options pragmas.
2178
2179         * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
2180         default_target_option_pragma_parse.
2181         (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
2182         default_target_option_valid_attribute_p.
2183         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2184         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2185         (TARGET_OPTION_HOOKS): Delete the fields for whether to change
2186         optimization level on hot/cold functions.
2187
2188         * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
2189         if the caller and callee have different optimization levels.
2190
2191         * c-common.c (handle_target_attribute): Rename from
2192         handle_option_attribute, attribute((option(...))) is now
2193         attribute((target(...))).  Move warning if the port does not
2194         support target attributes to the default hook.
2195         (handle_hot_attribute): Delete code to change the optimization
2196         level of hot functions.
2197         (handle_cold_attribute): Ditto.
2198
2199         * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
2200         argument that is the binary tree options to use if there are no
2201         arguments.  Call ix86_valid_target_attribute_tree instead of
2202         ix86_valid_option_attribute_tree.
2203         (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
2204         (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
2205         ix86_pragma_option_parse.
2206
2207         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
2208         Rename from ix86_valid_option_attribute_tree.
2209
2210         * config/i386/i386.c (ix86_add_new_builtins): New function to add
2211         new builtins when the ISA changes.
2212         (ix86_valid_target_attribute_tree): Rename from
2213         ix86_valid_option_attribute_tree.  Change callers.  If the
2214         function specified optimization options, use those as the starting
2215         point before setting up the target attributes.  If the
2216         optimization options were changed in the course of setting the
2217         target attributes, record the new optimization options.
2218         (ix86_valid_target_attribute_tree_inner_p): Rename from
2219         ix86_valid_option_attribute_tree_inner_p.  Change callers.  Call
2220         ix86_add_new_builtins if the ISA changed.
2221         (ix86_valid_target_attribute_p): Rename from
2222         ix86_valid_option_attribute_p.  Change callers.
2223         (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
2224         __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
2225         as delayed builtin functions.
2226         (struct builtin_isa): New structure to record builtin functions
2227         that should be delayed until the ISA for that function is used.
2228         (ix86_builtins_isa): Change from int to struct to track builtin
2229         functions we want to declare at some point.
2230         (def_builtin): If the front end can delay defining the builtin
2231         functions, don't create builtins for ISAs not part of the default
2232         options.
2233         (def_builtin_const): Ditto.
2234         (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
2235         __builtin_ia32_pcmov_v2di to be different builtin functions.
2236         (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
2237         a structure instead of an int.
2238         (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
2239         ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
2240         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2241         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2242
2243         * config/ia64/ia64.h
2244         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2245         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2246
2247         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
2248         hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
2249         (LANG_HOOKS_INITIALIZER): Add
2250         LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
2251
2252 2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
2253
2254         PR target/37270
2255         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
2256         the reload address with the index register for SFmode
2257         access with a displacement.
2258
2259 2008-08-30  Jan Hubicka  <jh@suse.cz>
2260
2261         * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
2262         * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
2263         * dojump.c (do_jump): Likewise.
2264         * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
2265         (note-if_info): Add BRANCH_COST.
2266         (noce_try_store_flag_constants, noce_try_addcc,
2267         noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
2268         noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
2269         find_if_case_2): Use computed branch cost.
2270         * expr.h (BRANCH_COST): Update default.
2271         * predict.c (predictable_edge_p): New function.
2272         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
2273         Update BRANCH_COST call.
2274         * basic-block.h (predictable_edge_p): Declare.
2275         * config/alpha/alpha.h (BRANCH_COST): Update.
2276         * config/frv/frv.h (BRANCH_COST): Update.
2277         * config/s390/s390.h (BRANCH_COST): Update.
2278         * config/spu/spu.h (BRANCH_COST): Update.
2279         * config/sparc/sparc.h (BRANCH_COST): Update.
2280         * config/m32r/m32r.h (BRANCH_COST): Update.
2281         * config/i386/i386.h (BRANCH_COST): Update.
2282         * config/i386/i386.c (ix86_expand_int_movcc): Update use of BRANCH_COST.
2283         * config/sh/sh.h (BRANCH_COST): Update.
2284         * config/pdp11/pdp11.h (BRANCH_COST): Update.
2285         * config/avr/avr.h (BRANCH_COST): Update.
2286         * config/crx/crx.h (BRANCH_COST): Update.
2287         * config/xtensa/xtensa.h (BRANCH_COST): Update.
2288         * config/stormy16/stormy16.h (BRANCH_COST): Update.
2289         * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
2290         * config/iq2000/iq2000.h (BRANCH_COST): Update.
2291         * config/ia64/ia64.h (BRANCH_COST): Update.
2292         * config/rs6000/rs6000.h (BRANCH_COST): Update.
2293         * config/arc/arc.h (BRANCH_COST): Update.
2294         * config/score/score.h (BRANCH_COST): Update.
2295         * config/arm/arm.h (BRANCH_COST): Update.
2296         * config/pa/pa.h (BRANCH_COST): Update.
2297         * config/mips/mips.h (BRANCH_COST): Update.
2298         * config/vax/vax.h (BRANCH_COST): Update.
2299         * config/h8300/h8300.h (BRANCH_COST): Update.
2300         * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
2301         * doc/invoke.texi (predictable-branch-cost-outcome): Document.
2302         * doc/tm.texi (BRANCH_COST): Update.
2303
2304 2008-08-30  Samuel Tardieu  <sam@rfc1149.net>
2305
2306         PR target/37283
2307         * config/arm/arm.c (arm_optimization_options): Set
2308         flag_section_anchors to 2 instead of 1 to distinguish it from
2309         -fsection-anchors given explicitely on the command line.
2310
2311 2008-08-30  Richard Sandiford  <rdsandiford@googlemail.com>
2312
2313         * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
2314         final insn of a split.
2315
2316 2008-08-30  Jan Hubicka  <jh@suse.cz>
2317
2318         * postreload-gcse.c (gate_handle_gcse2): Disable for functions
2319         optimized for speed.
2320         * final.c (compute_alignments): Use optimize_bb_for_size_p.
2321         * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
2322         * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
2323         flag_gcse_after_reload_set): New static vars.
2324         (common_handle_option): Enable those flags for profile-use.
2325         (decode_options): Remove optimize_size flags that are handled
2326         on higher granuality.
2327         * tree-vectorizer.c (vectorize_loops): Use
2328         optimize_loop_nest_for_speed_p.
2329         * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
2330         * tree-predcom.c (tree_predictive_commoning): Use
2331         optimize_loop_for_speed_p.
2332         * varasm.c (assemble_start_function): Use optimize_function_for_speed_p.
2333         * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
2334         * predict.c (optimize_loop_for_speed_p): Fix walk.
2335
2336 2008-08-30  Jan Hubicka  <jh@suse.cz>
2337
2338         * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
2339         functions.
2340         (cgraph_decide_inlining_of_small_function): Use edge->count to detect
2341         profile presence locally.
2342
2343 2008-08-29  Joseph Myers  <joseph@codesourcery.com>
2344
2345         PR bootstrap/37086
2346         * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
2347         versions before 4.0.
2348
2349 2008-08-29  Jan Hubicka  <jh@suse.cz>
2350
2351         * tree-inline.c (insert_init_stmt): Insert sequence even when
2352         not in SSA form.
2353
2354 2008-08-29  Jeff Law  <law@redhat.com>
2355
2356         * mn10300.c (mn10300_secondary_reload_class): We need secondary
2357         reloads for AM33-2 if IN is a pseudo with an equivalent memory
2358         location and class is an FP register.
2359
2360 2008-08-29  Jan Hubicka  <jh@suse.cz>
2361
2362         * see.c (see_merge_one_def_extension): Silence used uninitialized
2363         warning.
2364         * matrix-reorg.c (check_allocation_function): Likewise.
2365         * config/i386/driver-i386.c (detect_caches_amd): Likewise.
2366
2367 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
2368
2369         PR c/37261
2370         * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
2371         compute new & and | in type rather than TREE_TYPE (arg0).
2372
2373         * dwarf2out.c (fortran_common): Update comment.
2374         (gen_variable_die): Swap com_die and var_die variables in Fortran
2375         COMMON block handling code.
2376
2377         * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
2378
2379         * dwarf2out.c (gen_const_die): New function.
2380         (size_of_die, value_format, output_die): Output larger
2381         dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
2382         (native_encode_initializer): New function.
2383         (tree_add_const_value_attribute): Call it.
2384         (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
2385
2386         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
2387         DECL_BY_REFERENCE decls don't pass TREE_READONLY and
2388         TREE_THIS_VOLATILE to add_type_attribute.
2389
2390         * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
2391         types.
2392         (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
2393         types.
2394
2395         * dwarf2out.c (loc_by_reference): New function.
2396         (add_location_or_const_value_attribute): Use it.
2397
2398         PR fortran/23057
2399         * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
2400         as DW_TAG_variable children of DW_TAG_common_block rather than
2401         DW_TAG_member children.  Put DW_AT_external to individual
2402         DW_TAG_variable DIEs, not to DW_TAG_common_block.
2403
2404         * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
2405         loc_descriptor_from_tree_1.
2406
2407         PR fortran/29635
2408         PR fortran/23057
2409         * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
2410         arguments to imported_module_or_decl.
2411         (debug_nothing_tree_tree): Removed.
2412         (debug_nothing_tree_tree_tree_bool): New prototype.
2413         * debug.c (do_nothing_debug_hooks): Adjust.
2414         (debug_nothing_tree_tree): Removed.
2415         (debug_nothing_tree_tree_tree_bool): New function.
2416         * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
2417         (gen_variable_die): Put all common vars for the
2418         same COMMON block under one DW_TAG_common_block.
2419         (declare_in_namespace): Return new context_die, for Fortran
2420         return the module DIE instead of adding extra declarations into
2421         the namespace.
2422         (gen_type_die_with_usage): Adjust declare_in_namespace caller.
2423         (gen_namespace_die): If is_fortran (), generate DW_TAG_module
2424         instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
2425         DW_AT_declaration.
2426         (dwarf2out_global_decl): Don't skip Fortran global vars.
2427         (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
2428         (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
2429         If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
2430         DW_TAG_imported_declaration as child of previous
2431         DW_TAG_imported_module.
2432         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
2433         * sdbout.c (sdb_debug_hooks): Likewise.
2434         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2435
2436 2008-08-29  Jan Hubicka  <jh@suse.cz>
2437
2438         * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
2439
2440         * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
2441         * ipa-cp.c (n_cloning_candidates): New static variable.
2442         (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
2443         (ipcp_print_all_lattices): Improve debug output.
2444         (ipcp_cloning_candidate_p): New function.
2445         (ipcp_initialize_node_lattices): Use it.
2446         (ipcp_init_stage): Do only analyzis here; prettier debug output.
2447         (ipcp_propagate_stage): Prettier debug output.
2448         (ipcp_iterate_stage): Initialize latices here; prettier debug output.
2449         (ipcp_print_all_structures): Remove.
2450         (ipcp_need_redirect_p): Test !n_cloning_candidates.
2451         (ipcp_insert_stage): Prettier debug output; call
2452         cgraph_remove_unreachable_nodes before propagating.
2453         (pass_ipa_cp): Schedule function removal pass.
2454         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
2455         debug output.
2456         (cgraph_maybe_hot_edge_p): Move to ...
2457         * predict.c (cgraph_maybe_hot_edge_p) ... here.
2458         * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
2459         (common_handle_option): Set them; enable ipa-cp when profiling.
2460         * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
2461         (ipa_print_all_jump_functions): Likewise.
2462         (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
2463         (ipa_print_node_params, ipa_print_all_params): New.
2464         * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
2465         ipa_print_all_param_flags): Remove.
2466         (ipa_print_node_params, ipa_print_all_params): New.
2467
2468 2008-08-29  Bob Wilson  <bob.wilson@acm.org>
2469
2470         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
2471         change from 2008-04-03.
2472         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
2473
2474 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
2475
2476         PR rtl-opt/37251
2477         * ira-color.c (push_allocnos_to_stack): Truncate
2478         removed_splay_allocno_vec.
2479
2480 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
2481
2482         PR rtl-opt/37243
2483         * ira-color (ira_fast_allocation): Don't assign hard registers to
2484         global allocnos.
2485
2486 2008-08-29  Jan Hubicka  <jh@suse.cz>
2487
2488         PR middle-end/37278
2489         * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
2490         for cold internal loops.
2491
2492 2008-08-29  Richard Guenther  <rguenther@suse.de>
2493
2494         * tree-ssa-structalias.c (create_variable_info_for): Do not
2495         create fields for heap vars or vars with a noalias state.
2496         For NO_ALIAS_ANYTHING variables add a self-constraint, not one
2497         from ESCAPED.
2498
2499 2008-08-29  Richard Guenther  <rguenther@suse.de>
2500
2501         * common.opt (ftree-store-ccp): Mark as preserved for
2502         backward compatibility.
2503         * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
2504         * tree-pass.h (pass_store_ccp): Remove.
2505         * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
2506         (first_vdef): Remove declaration.
2507         (get_value_loaded_by): Likewise.
2508         * tree-ssa-ccp.c (do_store_ccp): Remove.
2509         (get_default_value): Simplify as do_store_ccp is always false
2510         now.  Do not initialize mem_ref.
2511         (set_value_varying): Likewise.
2512         (canonicalize_float_value): Likewise.
2513         (set_lattice_value): Likewise.
2514         (likely_value): Likewise.
2515         (surely_varying_stmt_p): Likewise.
2516         (ccp_initialize): Likewise.
2517         (ccp_lattice_meet): Likewise.
2518         (ccp_visit_phi_node): Likewise.
2519         (ccp_fold): Likewise.
2520         (evaluate_stmt): Likewise.
2521         (visit_assignment): Likewise.
2522         (ccp_visit_stmt): Likewise.
2523         (execute_ssa_ccp): Fold into ...
2524         (do_ssa_ccp): ... this.
2525         (do_ssa_store_ccp): Remove.
2526         (gate_store_ccp): Likewise.
2527         (pass_store_ccp): Likewise.
2528         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
2529         initialize mem_ref.
2530         * tree-ssa-propagate.c (first_vdef): Remove.
2531         (get_value_loaded_by): Likewise.
2532         (replace_vuses_in): Likewise.
2533         (substitute_and_fold): Do not call replace_vuses_in.
2534         * opts.c (decode_options): Do not set flag_tree_store_ccp.
2535
2536 2008-08-29  Richard Guenther  <rguenther@suse.de>
2537
2538         PR middle-end/37236
2539         * tree-ssa-structalias.c (intra_create_variable_infos): Mark
2540         PARAM_NOALIAS tags with is_heapvar.
2541         * tree-ssa-operands.c (access_can_touch_variable): Offset
2542         based tests do not apply for heapvars.  Fix offset test.
2543
2544 2008-08-29  Jan Hubicka  <jh@suse.cz>
2545
2546         * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
2547         (-fipa-cp-clone): Enabled by default at -O3.
2548         * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
2549         make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
2550
2551 2008-08-29  Jan Hubicka  <jh@suse.cz>
2552
2553         * tree.c (build_function_type_skip_args, build_function_decl_skip_args):
2554         New functions.
2555         * tree.h (build_function_type_skip_args, build_function_decl_skip_args):
2556         Declare.
2557         * gimple.c (giple_copy_call_skip_args): New function.
2558         (giple_copy_call_skip_args): Declare.
2559
2560         * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
2561         * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
2562         (ipcp_node_modifiable_p): ... this one; use tree_versionable_function_p.
2563         (ipcp_create_replace_map): Improve debug output.
2564         (ipcp_need_redirect_p): Return false when not clonning.
2565         (ipcp_update_callgraph): Skip args.
2566         (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
2567         skip args.
2568         * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
2569         (save_inline_function_body): Update call of tree_function_versioning.
2570         * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
2571         * tree-inline.c (copy_arguments_for_versioning): Add skip_args argument.
2572         (tree_function_versioning): Likewise.
2573         * tree-inline.h (tree_function_versioning): Update prototype.
2574
2575 2008-08-29  Jan Hubicka  <jh@suse.cz>
2576
2577         * loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p.
2578         * tree-ssa-threadupdate.c (mark_threaded_blocks):
2579         Use optimize_function_for_size_p.
2580         * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
2581         * postreload-gcse.c (eliminate_partially_redundant_load):
2582         Use optimize_bb_for_size_p.
2583         * value-prof.c (gimple_divmod_fixed_value_transform,
2584         gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
2585         gimple_stringops_transform): Use optimize_bb_for_size_p.
2586         * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
2587         * final.c (compute_alignments): Use optimize_function_for_size_p.
2588         * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
2589         (fold_builtin_strcpy, fold_builtin_fputs): Use
2590         optimize_function_for_size_p.
2591         * fold-const.c (tree_swap_operands_p): Use optimize_function_for_size_p.
2592         * recog.c (relax_delay_slots): Likewise.
2593         * tree-ssa-math-opts.c (replace_reciprocal):
2594         Use optimize_bb_for_speed_p.
2595         (execute_cse_reciprocals): Use optimize_bb_for_size_p.
2596         * ipa-inline.c (cgraph_decide_recursive_inlining): Use
2597         optimize_function_for_size_p.
2598         (cgraph_decide_inlining_of_small_function): Use
2599         optimize_function_for_size_p.
2600         * global.c (find_reg): Use optimize_function_for_size_p.
2601         * opts.c (decode_options): Do not clear flag_tree_ch,
2602         flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
2603         flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
2604         work it out from profile.
2605         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
2606         optimize_loop_for_speed_p.
2607         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p): Constify
2608         argument.
2609         (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
2610         * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
2611         * tree-eh.c (decide_copy_try_finally): Use optimize_function_for_size_p.
2612         * local-alloc.c (block_alloc): Pass BB pointer.
2613         (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
2614         * gcse.c (gcse_main): Use optimize_function_for_size_p.
2615         * loop-unroll.c (decide_unrolling_and_peeling):
2616         Use optimize_loop_for_size_p.
2617         (decide_peel_completely): Likewise.
2618         * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
2619         optimize_loop_for_size_p.
2620         (vect_enhance_data_refs_alignment): Likewise.
2621         * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
2622         (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
2623         Update call.
2624         * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
2625         (try_crossjump_bb): Use optimize_bb_for_size_p.
2626         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2627         optimize_loop_for_speed_p.
2628         * bb-reorder.c (find_traces_1_round): Likewise.
2629         (copy_bb): Use optimize_bb_for_speed_p.
2630         (duplicate_computed_gotos): Likewise.
2631         * basic-block.h (optimize_loop_nest_for_size_p,
2632         optimize_loop_nest_for_speed_p): New.
2633         * stmt.c (expand_case): Use optimize_insn_for_size_p.
2634
2635 2008-08-29  Tristan Gingold  <gingold@adacore.com>
2636
2637         * gcov.c (main): Call expandargv.
2638
2639 2008-08-29  Jan Hubicka  <jh@suse.cz>
2640
2641         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
2642         is not cold.
2643         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2644         Constify arguments.
2645         (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
2646         * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2647         Constify.
2648         (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
2649
2650 2008-08-29  Jan Hubicka  <jh@suse.cz>
2651
2652         * tree-pass.h (pass_strip_predict_hints): Declare.
2653         * predict.c (strip_builtin_expect): Rename to ...
2654         (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
2655         (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
2656         (tree_estimate_probability): Do not strip builtin_expect.
2657         (pass_strip_predict_hints): New pass.
2658         * tree-inline.c (expand_call_inline): When inlining cold function,
2659         predict it as unlikely.
2660         * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
2661
2662 2008-08-29  Richard Guenther  <rguenther@suse.de>
2663
2664         PR tree-optimization/37207
2665         * tree-vrp.c (extract_range_from_binary_expr): Also try
2666         to constant fold if only one of the operands is a constant.
2667
2668 2008-08-29  Nick Clifton  <nickc@redhat.com>
2669
2670         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
2671         the same way as SYMBOL_REFs.
2672
2673 2008-08-28  Bob Wilson  <bob.wilson@acm.org>
2674
2675         * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
2676
2677 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
2678
2679         * config/mips/mips.h (ISA_HAS_BBIT): New macro.
2680         * config/mips/mips.md (branch_likely): Remove const.  Fix
2681         comment formatting.
2682         (define_delay for type "branch"): Change to only apply for branch
2683         with likely variant.
2684         (define_delay for type "branch" and "branch_likely" no).  New delay
2685         definition.
2686         (equality_op): New code iterator.
2687         (bbv, bbinv): New code attributes.
2688         (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
2689         patterns.
2690
2691 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2692             Andrew Pinski  <pinskia@gcc.gnu.org>
2693
2694         PR 18050
2695         * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
2696
2697 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
2698
2699         * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
2700         rule that a symbolic constant must be defined and >= 0 for the
2701         corresponding facility to be present at compile-time.
2702         * gthr-posix.c: Likewise.
2703
2704 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
2705
2706         * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
2707         * config/mips/mips.md (D): New mode attribute.
2708         (mulsi3, muldi3): Merge it into ...
2709         (mul<mode>3): ... new template.  Use _mul3 ending for 3-op patterns.
2710         (muldi3_mul3): New pattern.
2711         (mulsi3_mult3): Rename to mulsi3_mul3.
2712
2713 2008-08-28  Jan Hubicka  <jh@suse.cz>
2714
2715         * expmed.c (store_bit_field_1): Be prepared for movstrict expander
2716         to fail.
2717         * predict.c (always_optimize_for_size_p): Rename to ...
2718         (optimize_function_for_size): ... this one; make extern.
2719         (optimize_function_for_speed_p): New.
2720         (optimize_bb_for_size_p, optimize_bb_for_size_p,
2721         optimize_edge_for_size_p,optimize_edge_for_size_p,
2722         optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
2723         * basic-block.h (optimize_function_for_size_p,
2724         optimize_function_for_speed_p): Declare.
2725         * i386.md (optimize_size checks): Replace them by appropriate
2726         predicate.
2727         (standard_80387_constant_p, ix86_compute_frame_layout,
2728         ix86_expand_epilogue, ix86_decompose_address,
2729         print_operand, emit_i387_cw_initialization,
2730         inline_memory_move_cost, ix86_pad_returns,
2731         ix86_reorg): Replace optimize_size checks.
2732
2733 2008-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2734
2735         * rtl.h (simplify_subreg_regno): Declare.
2736         * rtlanal.c (simplify_subreg_regno): New function, split out from...
2737         * simplify-rtx.c (simplify_subreg): ...here.
2738         * reload.c (find_reloads): Use simplify_subreg_regno instead of
2739         subreg_offset_representable_p.
2740
2741 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2742
2743         PR c/30949
2744         * c-typeck.c (convert_for_assignment): Give a note describing what
2745         was passed and what was expected.
2746
2747 2008-08-28  Joey Ye  <joey.ye@intel.com>
2748
2749         * doc/extend.texi: Document AVX built-in functions.
2750         * doc/invoke.texi: Document -mavx.
2751
2752 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
2753             Joey Ye  <joey.ye@intel.com>
2754             Xuepeng Guo  <xuepeng.guo@intel.com>
2755
2756         * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
2757
2758         * config/i386/cpuid.h (bit_FMA): New.
2759         (bit_XSAVE): Likewise.
2760         (bit_OSXSAVE): Likewise.
2761         (bit_AVX): Likewise.
2762
2763         * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
2764         define.  Use ASM_OUTPUT_AVX_PREFIX.
2765
2766         * config/i386/gmmintrin.h: New.
2767
2768         * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
2769         (OPTION_MASK_ISA_AVX_SET): New.
2770         (OPTION_MASK_ISA_FMA_SET): Likewise.
2771         (OPTION_MASK_ISA_AVX_UNSET): Likewise.
2772         (OPTION_MASK_ISA_FMA_SET): Likewise.
2773         (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
2774         (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
2775         (pta_flags): Add PTA_AVX and PTA_FMA.
2776         (override_options): Handle PTA_AVX and PTA_FMA.
2777         (init_cumulative_args): Handle warn_avx.
2778         (classify_argument): Return 0 for COImode and OImode.  Return
2779         1 and X86_64_AVX_CLASS for 256bit vector types.
2780         (examine_argument): Handle X86_64_AVX_CLASS.
2781         (construct_container): Likewise.
2782         (function_arg_advance_32): Pass OImode and 256bit vector types
2783         in AVX register.
2784         (function_arg_advance_64): Take a new argument to indicate if a
2785         parameter is named.  Handle 256bit vector types.  Return
2786         immediately for unnamed 256bit vector mode parameters.
2787         (function_arg_advance): Updated.
2788         (function_arg_32): Add comments for TImode.  Handle OImode
2789         and 256bit vector types.
2790         (function_arg_64): Take a new argument to indicate if a
2791         parameter is named.  Handle 256bit vector types.  Return NULL
2792         for unnamed 256bit vector mode parameters.
2793         (function_arg): Updated.
2794         (setup_incoming_varargs_64): Support
2795         AVX encoding for *sse_prologue_save_insn.
2796         (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
2797         (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
2798         enabled.  For all 1s in 256bit vector modes, return 3 if AVX is
2799         enabled, otherwise return -3.
2800         (standard_sse_constant_opcode): Handle AVX and 256bit vector
2801         modes.
2802         (print_reg): Support AVX registers.  Handle 'x' and 't'.
2803         Handle 'd' to duplicate the operand.
2804         (print_operand): Likewise.  Also support AVX vector compare
2805         instructions.
2806         (output_387_binary_op): Support AVX.
2807         (output_fp_compare): Likewise.
2808         (ix86_expand_vector_move_misalign): Likewise.
2809         (ix86_attr_length_vex_default): New.
2810         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2811         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2812         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2813         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2814         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
2815         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2816         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
2817         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
2818         IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
2819         IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
2820         IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
2821         IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
2822         IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
2823         IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
2824         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2825         IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
2826         IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
2827         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2828         IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
2829         IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
2830         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2831         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2832         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2833         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
2834         IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
2835         IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
2836         IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
2837         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2838         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
2839         IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
2840         IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
2841         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
2842         IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
2843         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2844         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2845         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2846         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
2847         IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
2848         IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
2849         IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
2850         IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
2851         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
2852         IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
2853         IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
2854         IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
2855         IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
2856         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2857         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2858         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2859         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2860         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2861         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2862         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2863         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2864         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2865         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2866         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2867         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2868         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2869         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2870         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2871         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2872         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2873         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
2874         and IX86_BUILTIN_MOVMSKPS256,
2875         (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
2876         V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
2877         V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
2878         V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
2879         V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
2880         VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
2881         VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
2882         VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
2883         (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
2884         INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
2885         INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
2886         INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
2887         V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
2888         V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
2889         V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
2890         V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
2891         V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
2892         V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
2893         V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
2894         V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
2895         V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
2896         V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
2897         V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
2898         V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
2899         V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
2900         V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
2901         (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
2902         IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
2903         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2904         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2905         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
2906         IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
2907         IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
2908         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
2909         IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
2910         IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
2911         IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
2912         IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
2913         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2914         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2915         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2916         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2917         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
2918         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
2919         IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
2920         IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
2921         IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
2922         IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
2923         IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
2924         IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
2925         IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
2926         IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
2927         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2928         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
2929         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2930         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
2931         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2932         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2933         IX86_BUILTIN_CMPPS,
2934         IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
2935         IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
2936         IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
2937         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2938         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2939         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2940         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
2941         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2942         IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
2943         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2944         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
2945         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2946         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
2947         IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
2948         IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
2949         IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
2950         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2951         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2952         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2953         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2954         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2955         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2956         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2957         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2958         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2959         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2960         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2961         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2962         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2963         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2964         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2965         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2966         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2967         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
2968         IX86_BUILTIN_MOVMSKPS256.
2969         (ix86_init_mmx_sse_builtins): Support AVX builtins.
2970         (ix86_expand_args_builtin): Likewise.
2971         (ix86_expand_special_args_builtin): Likewise.
2972         (ix86_hard_regno_mode_ok): Handle AVX modes.
2973         (ix86_expand_vector_init_duplicate): Likewise.
2974         (ix86_expand_vector_init_one_nonzero): Likewise.
2975         (ix86_expand_vector_init_one_var): Likewise.
2976         (ix86_expand_vector_init_concat): Likewise.
2977         (ix86_expand_vector_init_general): Likewise.
2978         (ix86_expand_vector_set): Likewise.
2979         (ix86_vector_mode_supported_p): Likewise.
2980         (x86_extended_reg_mentioned_p): Check INSN_P before using
2981         PATTERN.
2982
2983         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2984         OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
2985
2986         * config/i386/i386.h (TARGET_AVX): New.
2987         (TARGET_FMA): Likewise.
2988         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
2989         (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
2990         (VALID_AVX256_REG_MODE): New.
2991         (AVX256_VEC_FLOAT_MODE_P): Likewise.
2992         (AVX_FLOAT_MODE_P): Likewise.
2993         (AVX128_VEC_FLOAT_MODE_P): Likewise.
2994         (AVX256_VEC_FLOAT_MODE_P): Likewise.
2995         (AVX_VEC_FLOAT_MODE_P): Likewise.
2996         (ASM_OUTPUT_AVX_PREFIX): Likewise.
2997         (ASM_OUTPUT_OPCODE): Likewise.
2998         (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
2999         support.
3000         (SSE_REG_MODE_P): Allow 256bit vector modes.
3001         (ix86_args): Add a warn_avx field.
3002
3003         * config/i386/i386.md (UNSPEC_PCMP): New.
3004         (UNSPEC_VPERMIL): Likewise.
3005         (UNSPEC_VPERMIL2): Likewise.
3006         (UNSPEC_VPERMIL2F128): Likewise.
3007         (UNSPEC_MASKLOAD): Likewise.
3008         (UNSPEC_MASKSTORE): Likewise.
3009         (UNSPEC_CAST): Likewise.
3010         (UNSPEC_VTESTP): Likewise.
3011         (UNSPECV_VZEROALL): Likewise.
3012         (UNSPECV_VZEROUPPER): Likewise.
3013         (XMM0_REG): Likewise.
3014         (XMM1_REG): Likewise.
3015         (XMM2_REG): Likewise.
3016         (XMM3_REG): Likewise.
3017         (XMM4_REG): Likewise.
3018         (XMM5_REG): Likewise.
3019         (XMM6_REG): Likewise.
3020         (XMM8_REG): Likewise.
3021         (XMM9_REG): Likewise.
3022         (XMM10_REG): Likewise.
3023         (XMM11_REG): Likewise.
3024         (XMM12_REG): Likewise.
3025         (XMM13_REG): Likewise.
3026         (XMM14_REG): Likewise.
3027         (XMM15_REG): Likewise.
3028         (prefix): Likewise.
3029         (prefix_vex_imm8): Likewise.
3030         (prefix_vex_w): Likewise.
3031         (length_vex): Likewise.
3032         (maxmin): Likewise.
3033         (movoi): Likewise.
3034         (*avx_ashlti3): Likewise.
3035         (*avx_lshrti3): Likewise.
3036         (*avx_setcc<mode>): Likewise.
3037         (*fop_<mode>_comm_mixed_avx): Likewise.
3038         (*fop_<mode>_comm_avx): Likewise.
3039         (*fop_<mode>_1_mixed_avx): Likewise.
3040         (*fop_<mode>_1_avx): Likewise.
3041         (*avx_<code><mode>3): Likewise.
3042         (*avx_ieee_smin<mode>3): Likewise.
3043         (*avx_ieee_smax<mode>3): Likewise.
3044         (mode): Add OI, V8SF and V4DF.
3045         (length): Support VEX prefix.
3046         (*cmpfp_i_mixed): Set prefix attribute.
3047         (*cmpfp_i_sse): Likewise.
3048         (*cmpfp_iu_mixed): Likewise.
3049         (*cmpfp_iu_sse): Likewise.
3050         (*movsi_1): Support AVX.
3051         (*movdi_2): Likewise.
3052         (*movdi_1_rex64): Likewise.
3053         (*movti_internal): Likewise.
3054         (*movti_rex64): Likewise.
3055         (*movsf_1): Likewise.
3056         (*movdf_nointeger): Likewise.
3057         (*movdf_integer_rex64): Likewise.
3058         (*movtf_internal): Likewise.
3059         (zero_extendsidi2_32): Likewise.
3060         (zero_extendsidi2_rex64): Likewise.
3061         (*extendsfdf2_mixed): Likewise.
3062         (*extendsfdf2_sse): Likewise.
3063         (*truncdfsf_fast_mixed): Likewise.
3064         (*truncdfsf_fast_sse): Likewise.
3065         (*truncdfsf_mixed): Likewise.
3066         (fix_trunc<mode>di_sse): Likewise.
3067         (fix_trunc<mode>si_sse): Likewise.
3068         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
3069         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
3070         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
3071         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
3072         (*rcpsf2_sse): Likewise.
3073         (*rsqrtsf2_sse): Likewise.
3074         (*sqrt<mode>2_sse): Likewise.
3075         (sse4_1_round<mode>2): Likewise.
3076         (*sse_prologue_save_insn): Disallow REX prefix for AVX.
3077         Support AVX.  Set length attribute properly for AVX.
3078
3079         * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
3080         (VECTOR_MODES (FLOAT, 32)): Likewise.
3081         (VECTOR_MODE (INT, DI, 8)): Likewise.
3082         (VECTOR_MODE (INT, HI, 32)): Likewise.
3083         (VECTOR_MODE (INT, QI, 64)): Likewise.
3084         (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
3085         (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
3086         (VECTOR_MODE (INT, DI, 4)): Removed.
3087         (VECTOR_MODE (INT, SI, 8)): Likewise.
3088         (VECTOR_MODE (INT, HI, 16)): Likewise.
3089         (VECTOR_MODE (INT, QI, 32)): Likewise.
3090         (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
3091         (INT_MODE (OI, 32)): Likewise.
3092
3093         * config/i386/i386.opt (mavx): New.
3094         (mfma): Likewise.
3095
3096         * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
3097
3098         * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
3099         (*mov<mode>_internal_avx): New.
3100         (*movv2sf_internal_rex64_avx): Likewise.
3101         (*movv2sf_internal_avx): Likewise.
3102
3103         * config/i386/predicates.md (const_4_to_5_operand): New.
3104         (const_6_to_7_operand): Likewise.
3105         (const_8_to_11_operand): Likewise.
3106         (const_12_to_15_operand): Likewise.
3107         (avx_comparison_float_operator): Likewise.
3108
3109         * config/i386/sse.md (AVX256MODEI): New.
3110         (AVX256MODE): Likewise.
3111         (AVXMODEQI): Likewise.
3112         (AVXMODE): Likewise.
3113         (AVX256MODEF2P): Likewise.
3114         (AVX256MODE2P): Likewise.
3115         (AVX256MODE4P): Likewise.
3116         (AVX256MODE8P): Likewise.
3117         (AVXMODEF2P): Likewise.
3118         (AVXMODEF4P): Likewise.
3119         (AVXMODEDCVTDQ2PS): Likewise.
3120         (AVXMODEDCVTPS2DQ): Likewise.
3121         (avxvecmode): Likewise.
3122         (avxvecpsmode): Likewise.
3123         (avxhalfvecmode): Likewise.
3124         (avxscalarmode): Likewise.
3125         (avxcvtvecmode): Likewise.
3126         (avxpermvecmode): Likewise.
3127         (avxmodesuffixf2c): Likewise.
3128         (avxmodesuffixp): Likewise.
3129         (avxmodesuffixs): Likewise.
3130         (avxmodesuffix): Likewise.
3131         (vpermilbits): Likewise.
3132         (pinsrbits): Likewise.
3133         (mov<mode>): Likewise.
3134         (*mov<mode>_internal): Likewise.
3135         (push<mode>1): Likewise.
3136         (movmisalign<mode>): Likewise.
3137         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3138         (avx_movdqu<avxmodesuffix>): Likewise.
3139         (avx_lddqu<avxmodesuffix>): Likewise.
3140         (<plusminus_insn><mode>3): Likewise.
3141         (*avx_<plusminus_insn><mode>3): Likewise.
3142         (*avx_vm<plusminus_insn><mode>3): Likewise.
3143         (mul<mode>3): Likewise.
3144         (*avx_mul<mode>3): Likewise.
3145         (*avx_vmmul<mode>3): Likewise.
3146         (divv8sf3): Likewise.
3147         (divv4df3): Likewise.
3148         (avx_div<mode>3): Likewise.
3149         (*avx_div<mode>3): Likewise.
3150         (*avx_vmdiv<mode>3): Likewise.
3151         (avx_rcpv8sf2): Likewise.
3152         (*avx_vmrcpv4sf2): Likewise.
3153         (sqrtv8sf2): Likewise.
3154         (avx_sqrtv8sf2): Likewise.
3155         (*avx_vmsqrt<mode>2): Likewise.
3156         (rsqrtv8sf2): Likewise.
3157         (avx_rsqrtv8sf2): Likewise.
3158         (*avx_vmrsqrtv4sf2): Likewise.
3159         (<code><mode>3): Likewise.
3160         (*avx_<code><mode>3_finite): Likewise.
3161         (*avx_<code><mode>3): Likewise.
3162         (*avx_vm<code><mode>3): Likewise.
3163         (*avx_ieee_smin<mode>3): Likewise.
3164         (*avx_ieee_smax<mode>3): Likewise.
3165         (avx_addsubv8sf3): Likewise.
3166         (avx_addsubv4df3): Likewise.
3167         (*avx_addsubv4sf3): Likewise.
3168         (*avx_addsubv2df3): Likewise.
3169         (avx_h<plusminus_insn>v4df3): Likewise.
3170         (avx_h<plusminus_insn>v8sf3): Likewise.
3171         (*avx_h<plusminus_insn>v4sf3): Likewise.
3172         (*avx_h<plusminus_insn>v2df3): Likewise.
3173         (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
3174         (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
3175         (*avx_maskcmp<mode>3): Likewise.
3176         (avx_nand<mode>3): Likewise.
3177         (*avx_<code><mode>3): Likewise.
3178         (*avx_nand<mode>3): Likewise.
3179         (*avx_<code><mode>3): Likewise.
3180         (*avx_cvtsi2ss): Likewise.
3181         (*avx_cvtsi2ssq): Likewise.
3182         (*avx_cvtsi2sd): Likewise.
3183         (*avx_cvtsi2sdq): Likewise.
3184         (*avx_cvtsd2ss): Likewise.
3185         (avx_cvtss2sd): Likewise.
3186         (avx_cvtdq2ps<avxmodesuffix>): Likewise.
3187         (avx_cvtps2dq<avxmodesuffix>): Likewise.
3188         (avx_cvttps2dq<avxmodesuffix>): Likewise.
3189         (*avx_cvtsi2sd): Likewise.
3190         (*avx_cvtsi2sdq): Likewise.
3191         (avx_cvtdq2pd256): Likewise.
3192         (avx_cvtpd2dq256): Likewise.
3193         (avx_cvttpd2dq256): Likewise.
3194         (*avx_cvtsd2ss): Likewise.
3195         (*avx_cvtss2sd): Likewise.
3196         (avx_cvtpd2ps256): Likewise.
3197         (avx_cvtps2pd256): Likewise.
3198         (*avx_movhlps): Likewise.
3199         (*avx_movlhps): Likewise.
3200         (avx_unpckhps256): Likewise.
3201         (*avx_unpckhps): Likewise.
3202         (avx_unpcklps256): Likewise.
3203         (*avx_unpcklps): Likewise.
3204         (avx_movshdup256): Likewise.
3205         (avx_movsldup256): Likewise.
3206         (avx_shufps256): Likewise.
3207         (avx_shufps256_1): Likewise.
3208         (*avx_shufps_<mode>): Likewise.
3209         (*avx_loadhps): Likewise.
3210         (*avx_storelps): Likewise.
3211         (*avx_loadlps): Likewise.
3212         (*avx_movss): Likewise.
3213         (*vec_dupv4sf_avx): Likewise.
3214         (*vec_concatv2sf_avx): Likewise.
3215         (*vec_concatv4sf_avx): Likewise.
3216         (*vec_setv4sf_0_avx): Likewise.
3217         (*vec_setv4sf_avx): Likewise.
3218         (*avx_insertps): Likewise.
3219         (avx_vextractf128<mode>): Likewise.
3220         (vec_extract_lo_<mode>): Likewise.
3221         (vec_extract_hi_<mode>): Likewise.
3222         (vec_extract_lo_<mode>): Likewise.
3223         (vec_extract_hi_<mode>): Likewise.
3224         (vec_extract_lo_v16hi): Likewise.
3225         (vec_extract_hi_v16hi): Likewise.
3226         (vec_extract_lo_v32qi): Likewise.
3227         (vec_extract_hi_v32qi): Likewise.
3228         (avx_unpckhpd256): Likewise.
3229         (*avx_unpckhpd): Likewise.
3230         (avx_movddup256): Likewise.
3231         (*avx_movddup): Likewise.
3232         (avx_unpcklpd256): Likewise.
3233         (*avx_unpcklpd): Likewise.
3234         (avx_shufpd256): Likewise.
3235         (avx_shufpd256_1): Likewise.
3236         (*avx_punpckhqdq): Likewise.
3237         (*avx_punpcklqdq): Likewise.
3238         (*avx_shufpd_<mode>): Likewise.
3239         (*avx_storehpd): Likewise.
3240         (*avx_loadhpd): Likewise.
3241         (*avx_loadlpd): Likewise.
3242         (*avx_movsd): Likewise.
3243         (*vec_concatv2df_avx): Likewise.
3244         (*avx_<plusminus_insn><mode>3): Likewise.
3245         (*avx_<plusminus_insn><mode>3): Likewise.
3246         (*avx_mulv8hi3): Likewise.
3247         (*avxv8hi3_highpart): Likewise.
3248         (*avx_umulv8hi3_highpart): Likewise.
3249         (*avx_umulv2siv2di3): Likewise.
3250         (*avx_mulv2siv2di3): Likewise.
3251         (*avx_pmaddwd): Likewise.
3252         (*avx_mulv4si3): Likewise.
3253         (*avx_ashr<mode>3): Likewise.
3254         (*avx_lshr<mode>3): Likewise.
3255         (*avx_ashl<mode>3): Likewise.
3256         (*avx_<code><mode>3): Likewise.
3257         (*avx_eq<mode>3): Likewise.
3258         (*avx_gt<mode>3): Likewise.
3259         (*avx_nand<mode>3): Likewise.
3260         (*avx_nand<mode>3): Likewise.
3261         (*avx_<code><mode>3): Likewise.
3262         (*avx_<code><mode>3): Likewise.
3263         (*avx_packsswb): Likewise.
3264         (*avx_packssdw): Likewise.
3265         (*avx_packuswb): Likewise.
3266         (*avx_punpckhbw): Likewise.
3267         (*avx_punpcklbw): Likewise.
3268         (*avx_punpckhwd): Likewise.
3269         (*avx_punpcklwd): Likewise.
3270         (*avx_punpckhdq): Likewise.
3271         (*avx_punpckldq): Likewise.
3272         (*avx_pinsr<avxmodesuffixs>): Likewise.
3273         (*avx_pinsrq): Likewise.
3274         (*avx_loadld): Likewise.
3275         (*vec_extractv2di_1_rex64_avx): Likewise.
3276         (*vec_extractv2di_1_avx): Likewise.
3277         (*vec_dupv2di_avx): Likewise.
3278         (*vec_concatv2si_avx): Likewise.
3279         (*vec_concatv4si_1_avx): Likewise.
3280         (*vec_concatv2di_avx): Likewise.
3281         (*vec_concatv2di_rex64_avx): Likewise.
3282         (*avx_uavgv16qi3): Likewise.
3283         (*avx_uavgv8hi3): Likewise.
3284         (*avx_psadbw): Likewise.
3285         (avx_movmskp<avxmodesuffixf2c>256): Likewise.
3286         (*avx_phaddwv8hi3): Likewise.
3287         (*avx_phadddv4si3): Likewise.
3288         (*avx_phaddswv8hi3): Likewise.
3289         (*avx_phsubwv8hi3): Likewise.
3290         (*avx_phsubdv4si3): Likewise.
3291         (*avx_phsubswv8hi3): Likewise.
3292         (*avx_pmaddubsw128): Likewise.
3293         (*avx_pmulhrswv8hi3): Likewise.
3294         (*avx_pshufbv16qi3): Likewise.
3295         (*avx_psign<mode>3): Likewise.
3296         (*avx_palignrti): Likewise.
3297         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3298         (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3299         (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3300         (*avx_mpsadbw): Likewise.
3301         (*avx_packusdw): Likewise.
3302         (*avx_pblendvb): Likewise.
3303         (*avx_pblendw): Likewise.
3304         (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3305         (avx_ptest256): Likewise.
3306         (avx_roundp<avxmodesuffixf2c>256): Likewise.
3307         (*avx_rounds<ssemodesuffixf2c>): Likewise.
3308         (*avx_aesenc): Likewise.
3309         (*avx_aesenclast): Likewise.
3310         (*avx_aesdec): Likewise.
3311         (*avx_aesdeclast): Likewise.
3312         (avx_vzeroupper): Likewise.
3313         (avx_vzeroupper_rex64): Likewise.
3314         (avx_vpermil<mode>): Likewise.
3315         (avx_vpermilvar<mode>3): Likewise.
3316         (avx_vpermil2<mode>3): Likewise.
3317         (avx_vperm2f128<mode>3): Likewise.
3318         (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3319         (avx_vbroadcastss256): Likewise.
3320         (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
3321         (avx_vinsertf128<mode>): Likewise.
3322         (vec_set_lo_<mode>): Likewise.
3323         (vec_set_hi_<mode>): Likewise.
3324         (vec_set_lo_<mode>): Likewise.
3325         (vec_set_hi_<mode>): Likewise.
3326         (vec_set_lo_v16hi): Likewise.
3327         (vec_set_hi_v16hi): Likewise.
3328         (vec_set_lo_v32qi): Likewise.
3329         (vec_set_hi_v32qi): Likewise.
3330         (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3331         (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3332         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3333         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
3334         (vec_init<mode>): Likewise.
3335         (*vec_concat<mode>_avx): Likewise.
3336         (blendbits): Support V8SF and V4DF.
3337         (sse2_movq128): Support AVX.
3338         (<sse>_movnt<mode>): Likewise.
3339         (sse2_movntv2di): Likewise.
3340         (sse_rcpv4sf2): Likewise.
3341         (sse_sqrtv4sf2): Likewise.
3342         (sse_rsqrtv4sf2): Likewise.
3343         (<sse>_comi): Likewise.
3344         (<sse>_ucomi): Likewise.
3345         (sse_cvtss2si): Likewise.
3346         (sse_cvtss2si_2): Likewise.
3347         (sse_cvtss2siq): Likewise.
3348         (sse_cvtss2siq_2): Likewise.
3349         (sse_cvttss2si): Likewise.
3350         (sse_cvttss2siq): Likewise.
3351         (sse2_cvtsd2si): Likewise.
3352         (sse2_cvtsd2si_2): Likewise.
3353         (sse2_cvtsd2siq): Likewise.
3354         (sse2_cvtsd2siq_2): Likewise.
3355         (sse2_cvttsd2si): Likewise.
3356         (sse2_cvttsd2siq): Likewise.
3357         (sse2_cvtdq2pd): Likewise.
3358         (*sse2_cvtpd2dq): Likewise.
3359         (*sse2_cvttpd2dq): Likewise.
3360         (*sse2_cvtpd2ps): Likewise.
3361         (sse2_cvtps2pd): Likewise.
3362         (sse3_movshdup): Likewise.
3363         (sse3_movsldup): Likewise.
3364         (sse_storehps): Likewise.
3365         (*sse4_1_extractps): Likewise.
3366         (sse2_storelpd): Likewise.
3367         (vec_dupv2df_sse3): Likewise.
3368         (*vec_concatv2df_sse3): Likewise.
3369         (*sse4_1_pextrb): Likewise.
3370         (*sse4_1_pextrb_memory): Likewise.
3371         (*sse2_pextrw): Likewise.
3372         (*sse4_1_pextrw_memory): Likewise.
3373         (*sse4_1_pextrd): Likewise.
3374         (*sse4_1_pextrq): Likewise.
3375         (sse2_pshufd_1): Likewise.
3376         (sse2_pshuflw_1): Likewise.
3377         (sse2_pshufhw_1): Likewise.
3378         (*sse2_storeq_rex64): Likewise.
3379         (*vec_dupv4si): Likewise.
3380         (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
3381         (sse2_pmovmskb): Likewise.
3382         (*sse2_maskmovdqu): Likewise.
3383         (*sse2_maskmovdqu_rex64): Likewise.
3384         (sse_ldmxcsr): Likewise.
3385         (sse_stmxcsr): Likewise.
3386         (abs<mode>2): Likewise.
3387         (sse4_1_movntdqa): Likewise.
3388         (sse4_1_phminposuw): Likewise.
3389         (sse4_1_extendv8qiv8hi2): Likewise.
3390         (*sse4_1_extendv8qiv8hi2): Likewise.
3391         (sse4_1_extendv4qiv4si2): Likewise.
3392         (*sse4_1_extendv4qiv4si2): Likewise.
3393         (sse4_1_extendv2qiv2di2): Likewise.
3394         (*sse4_1_extendv2qiv2di2): Likewise.
3395         (sse4_1_extendv4hiv4si2): Likewise.
3396         (*sse4_1_extendv4hiv4si2): Likewise.
3397         (sse4_1_extendv2hiv2di2): Likewise.
3398         (*sse4_1_extendv2hiv2di2): Likewise.
3399         (sse4_1_extendv2siv2di2): Likewise.
3400         (*sse4_1_extendv2siv2di2): Likewise.
3401         (sse4_1_zero_extendv8qiv8hi2): Likewise.
3402         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
3403         (sse4_1_zero_extendv4qiv4si2): Likewise.
3404         (*sse4_1_zero_extendv4qiv4si2): Likewise.
3405         (sse4_1_zero_extendv2qiv2di2): Likewise.
3406         (*sse4_1_zero_extendv2qiv2di2): Likewise.
3407         (sse4_1_zero_extendv4hiv4si2): Likewise.
3408         (*sse4_1_zero_extendv4hiv4si2): Likewise.
3409         (sse4_1_zero_extendv2hiv2di2): Likewise.
3410         (*sse4_1_zero_extendv2hiv2di2): Likewise.
3411         (sse4_1_zero_extendv2siv2di2): Likewise.
3412         (*sse4_1_zero_extendv2siv2di2): Likewise.
3413         (sse4_1_ptest): Likewise.
3414         (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
3415         (sse4_2_pcmpestri): Likewise.
3416         (sse4_2_pcmpestrm): Likewise.
3417         (sse4_2_pcmpistri): Likewise.
3418         (sse4_2_pcmpistrm): Likewise.
3419         (aesimc): Likewise.
3420         (aeskeygenassist): Likewise.
3421
3422 2008-08-28  Uros Bizjak  <ubizjak@gmail.com>
3423
3424         * config/i386/predicates.md (vzeroall_operation): New.
3425
3426         * config/i386/sse.md (avx_vzeroall): New.
3427         (*avx_vzeroall): Likewise.
3428
3429 2008-08-28  Paul Brook  <paul@codesourcery.com>
3430             Mark Shinwell  <shinwell@codesourcery.com>
3431             Richard Earnshaw  <richard.earnshaw@arm.com>
3432
3433         * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
3434         (TARGET_MIN_ANCHOR_OFFSET): New.
3435         (arm_override_options): Set correct anchor ranges for Thumb-1
3436         and Thumb-2 if required.
3437         (legitimize_pic_address): Handle case involving a TLS symbol
3438         reference with an addend.
3439         (arm_optimization_options): Enable section anchors at -O1 and
3440         above.
3441         * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
3442         * config/arm/arm-protos.h (arm_optimization_options): New.
3443
3444 2008-08-28  Nick Clifton  <nickc@redhat.com>
3445
3446         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
3447         * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
3448         attribute.
3449
3450         * config/v850/v850.h (IRA_COVER_CLASSES): Define.
3451         * config/v850/v850.md (return): Remove frame size restriction.
3452
3453         * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
3454
3455         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
3456
3457         * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
3458
3459         * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
3460
3461 2008-08-28  Paul Brook  <paul@codesourcery.com>
3462
3463         * config/arm/vfp11.md: Update license notice.
3464         * config/arm/cortex-r4.md: Ditto.
3465
3466 2008-08-28  Richard Guenther  <rguenther@suse.de>
3467
3468         PR tree-optimization/37207
3469         * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
3470         tuplification bug.
3471
3472 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
3473
3474         PR c++/36741
3475         * tree.c (int_fits_type_p): Don't forget unsigned integers
3476           of type sizetype which higher end word equals -1.
3477
3478 2008-08-28  Ira Rosen  <irar@il.ibm.com>
3479
3480         * target.h (struct vectorize): Add new target builtin.
3481         * tree-vectorizer.c (destroy_loop_vec_info): Call
3482         vect_free_slp_instance instead of vect_free_slp_node.
3483         * tree-vectorizer.h (enum slp_load_perm_type): New.
3484         (struct _slp_instance): Add new fields.
3485         (SLP_INSTANCE_LOAD_PERMUTATION): New.
3486         (SLP_INSTANCE_LOADS): New.
3487         (vect_free_slp_tree): Remove.
3488         (vect_free_slp_instance): Declare.
3489         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
3490         (vectorizable_load): Add argument.
3491         (vect_transform_slp_perm_load): New.
3492         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
3493         vectorizable_load.
3494         (vect_get_place_in_interleaving_chain): New function.
3495         (vect_free_slp_tree): Make static.
3496         (vect_free_slp_instance): New function.
3497         (vect_build_slp_tree): Add new arguments. Allow load permutations and
3498         collect the load location in the interleaving chain.
3499         (vect_supported_slp_permutation_p): New function.
3500         (vect_supported_load_permutation_p): Likewise.
3501         (vect_analyze_slp_instance): In case of loads permutation, call
3502         vect_supported_load_permutation_p to check that the permutation is
3503         supported.
3504         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
3505         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
3506         (vect_create_mask_and_perm): New function.
3507         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
3508         (vectorizable_load): Add an argument. Don't keep the created vectors
3509         statements in the node if permutation is required. Call
3510         vect_transform_slp_perm_load to generate the permutation.
3511         (vect_transform_stmt): Add new argument. Call vectorizable_load with
3512         additional argument.
3513         (vect_schedule_slp_instance): In case of loads permutation, allocate
3514         vectorized statements structure for all the related SLP nodes. Call
3515         vect_transform_stmt with addditional argument.
3516         (vect_transform_loop): Call vect_transform_stmt with correct arguments.
3517         * config/spu/spu.c (spu_builtin_vec_perm): New.
3518         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3519         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
3520         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
3521         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3522
3523 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
3524
3525         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
3526         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
3527         __gthread_cond_signal, __gthread_cond_timedwait,
3528         __gthread_cond_timedwait_recursive): New functions.
3529         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
3530         Likewise.
3531         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
3532         thread interfaces.
3533
3534 2008-08-28  Richard Guenther  <rguenther@suse.de>
3535
3536         PR middle-end/37005
3537         * fold-const.c (maybe_canonicalize_comparison_1): Require
3538         undefined overflow only for canonicalizing A +- CST cmp CST.
3539         Make sure to not generate new constants that are not inside
3540         their TYPE_MIN/MAX_VALUE range.
3541         (maybe_canonicalize_comparison): Remove undefined overflow
3542         checking from here.
3543         (fold_binary): Remove now duplicate folding.
3544
3545 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
3546
3547         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
3548         use not updated in the last change.
3549
3550 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
3551
3552         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
3553         (IRA_COVER_CLASSES): Add FPUL_REGS.
3554
3555 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3556
3557         PR 37217
3558         * c-common.c (conversion_warning): Check for null operands.
3559
3560 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3561
3562         PR c/31673
3563         * c-decl.c (check_for_loop_decls): Improve error message. Give
3564         hint.
3565
3566 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3567
3568         PR c/37186
3569         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
3570         (convert_for_assignment): Pass corrent OPT_W* parameter to
3571         WARN_FOR_ASSIGNMENT.
3572
3573 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
3574
3575         PR c++/35321
3576         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
3577
3578 2008-08-27  Paul Brook  <paul@codesourcery.com>
3579
3580         * config.gcc: Loosen checks for arm uclinux eabi targets.
3581
3582 2008-08-27  Paul Brook  <paul@codesourcery.com>
3583
3584         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
3585         _clzsi2.
3586         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3587
3588 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
3589
3590         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
3591         the enumerators of an ENUMERAL_TYPE.
3592         * dbxout.c (dbxout_type): Ditto.
3593
3594 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3595
3596         PR rtl-opt/37219
3597         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
3598         (fwprop_addr): Check that the loop_father is not the outer loop.
3599
3600 2008-08-26  Paul Brook  <paul@codesourcery.com>
3601
3602         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
3603         Remove documentation entry for fmul type.
3604         Use fmuls to annotate single-precision multiplication patterns,
3605         fmuld to annotate double-precision multiplication patterns,
3606         fmacs to annotate single-precision multiply-accumulate patterns
3607         and fmacd to annotate double-precision multiply-accumulate patterns.
3608         * config/arm/vfp11.md: Update reservations accordingly.
3609         * config/arm/arm.md: Note that certain values of the "type"
3610         attribute are documented in vfp.md.
3611         * config/arm/arm1020e.md: Remove out of date duplicate comment.
3612         (v10_cvt): Use new fmul types.
3613
3614 2008-08-26  Paul Brook  <paul@codesourcery.com>
3615
3616         * config/arm/vfp.md: Move pipeline description for VFP11 to...
3617         * config/arm/vfp11.md: ...here.  New.
3618         * config/arm/arm.md: Include vfp11.md.
3619
3620 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
3621
3622         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
3623         parameter to inform call.
3624
3625 2008-08-26  Jeff Law  <law@redhat.com>
3626
3627         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
3628         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
3629         preferred class when copying a constant into a partial word register.
3630
3631 2008-08-26  Ben Elliston  <bje@au.ibm.com>
3632
3633         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
3634         * cp/typeck.c: Likewise.
3635         * cp/tree.c: Likewise.
3636         * gimple-low.c: Likewise.
3637         * jump.c: Likewise.
3638
3639 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
3640
3641         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
3642         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
3643
3644         * doc/passes.texi: Describe IRA.
3645
3646         * doc/tm.texi (IRA_COVER_CLASSES,
3647         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
3648
3649         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
3650         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
3651         -fira-propagate-cost, -fno-ira-share-save-slots,
3652         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
3653
3654         * flags.h (ira_algorithm): New enumeration.
3655         (flag_ira_algorithm, flag_ira_verbose): New external variable
3656         declarations.
3657
3658         * postreload.c (gate_handle_postreload): Don't do post reload
3659         optimizations unless the reload is completed.
3660
3661         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
3662         IRA.
3663
3664         * tree-pass.h (pass_ira): New external variable declaration.
3665
3666         * reload.h: Add 2008 to the Copyright.
3667
3668         * cfgloopanal.c: Include params.h.
3669         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
3670         mode.
3671
3672         * params.h (IRA_MAX_LOOPS_NUM): New macro.
3673
3674         * toplev.c (ira.h): New include.
3675         (flag_ira_algorithm, flag_ira_verbose): New external variables.
3676         (backend_init_target): Call ira_init.
3677         (backend_init): Call ira_init_once.
3678         (finalize): Call finish_ira_once.
3679
3680         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
3681         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
3682         external variables.
3683
3684         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
3685         may_move_out_cost): New external variable declarations.
3686         (move_table): New typedef.
3687
3688         * caller-save.c: Include headers output.h and ira.h.
3689         (no_caller_save_reg_set): New global variable.
3690         (save_slots_num, save_slots): New variables.
3691         (reg_save_code, reg_restore_code, add_stored_regs): Add
3692         prototypes.
3693         (init_caller_save): Set up no_caller_save_reg_set.
3694         (init_save_areas): Reset save_slots_num.
3695         (saved_hard_reg): New structure.
3696         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
3697         (initiate_saved_hard_regs, new_saved_hard_reg,
3698         finish_saved_hard_regs, saved_hard_reg_compare_func): New
3699         functions.
3700         (setup_save_areas): Add code for sharing stack slots.
3701         (all_blocks): New variable.
3702         (save_call_clobbered_regs): Process pseudo-register too.
3703         (mark_set_regs): Process pseudo-register too.
3704         (insert_one_insn): Put the insn after bb note in a empty basic
3705         block.  Add insn check.
3706
3707         * global.c (eliminable_regset): Make it external.
3708         (mark_elimination): Use DF_LR_IN for IRA.
3709         (pseudo_for_reload_consideration_p): New.
3710         (build_insn_chain): Make it external.  Don't ignore spilled
3711         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
3712         (gate_handle_global_alloc): New function.
3713         (pass_global_alloc): Add the gate function.
3714
3715         * opts.c (decode_options): Set up flag_ira.  Print the warning for
3716         -fira.
3717         (common_handle_option): Process -fira-algorithm and -fira-verbose.
3718
3719         * timevar.def (TV_IRA, TV_RELOAD): New passes.
3720
3721         * regmove.c (regmove_optimize): Don't do replacement of output for
3722         IRA.
3723
3724         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
3725         New external variable declarations.
3726
3727         * local-alloc.c (update_equiv_regs): Make it external.  Return
3728         true if jump label rebuilding should be done.  Rescan new_insn for
3729         notes.
3730         (gate_handle_local_alloc): New function.
3731         (pass_local_alloc): Add the gate function.
3732
3733         * alias.c (value_addr_p, stack_addr_p): New functions.
3734         (nonoverlapping_memrefs_p): Use them for IRA.
3735
3736         * common.opt (fira, fira-algorithm, fira-coalesce,
3737         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
3738         fira-verbose): New options.
3739
3740         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
3741         move_cost, may_move_in_cost, may_move_out_cost): Make the
3742         variables external.
3743         (move_table): Remove typedef.
3744         (init_move_cost): Make it external.
3745         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
3746         functions.
3747
3748         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
3749         setup_reg_classes): New function prototypes.
3750         (eliminable_regset): New external variable declaration.
3751         (build_insn_chain, update_equiv_regs): New function prototypes.
3752
3753         * Makefile.in (IRA_INT_H): New definition.
3754         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
3755         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
3756         (reload1.o, toplev.o): Add dependence on ira.h.
3757         (cfgloopanal.o): Add PARAMS_H.
3758         (caller-save.o): Add dependence on output.h and ira.h.
3759         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
3760         ira-emit.o, ira-lives.o): New entries.
3761
3762         * passes.c (pass_ira): New pass.
3763
3764         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
3765
3766         * reload1.c (ira.h): Include the header.
3767         (changed_allocation_pseudos): New bitmap.
3768         (init_reload): Initiate the bitmap.
3769         (compute_use_by_pseudos): Permits spilled registers in FROM.
3770         (temp_pseudo_reg_arr): New variable.
3771         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
3772         IRA.  Call alter_reg with the additional parameter.  Don't clear
3773         spilled_pseudos for IRA.  Restore original insn chain for IRA.
3774         Clear changed_allocation_pseudos at the end of reload.
3775         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
3776         (hard_regno_to_pseudo_regno): New variable.
3777         (count_pseudo): Check spilled pseudos.  Set up
3778         hard_regno_to_pseudo_regno.
3779         (count_spilled_pseudo): Check spilled pseudos. Update
3780         hard_regno_to_pseudo_regno.
3781         (find_reg): Use better_spill_reload_regno_p.  Check
3782         hard_regno_to_pseudo_regno.
3783         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
3784         code for IRA.
3785         (eliminate_regs_1): Use additional parameter for alter_reg.
3786         (finish_spills): Set up pseudo_previous_regs only for spilled
3787         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
3788         more arguments.  Don't clear live_throughout and dead_or_set for
3789         spilled pseudos.  Use additional parameter for alter_reg.  Call
3790         mark_allocation_change.  Set up changed_allocation_pseudos.
3791         Remove sanity check.
3792         (emit_input_reload_insns, delete_output_reload): Use additional
3793         parameter for alter_reg.  Call mark_allocation_change.
3794         (substitute, gen_reload_chain_without_interm_reg_p): New
3795         functions.
3796         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
3797
3798         * testsuite/gcc.dg/20080410-1.c: New file.
3799
3800         * config/s390/s390.h (IRA_COVER_CLASSES,
3801         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
3802
3803         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
3804
3805         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
3806
3807         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3808
3809         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
3810
3811         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3812
3813         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
3814
3815         2008-08-24  Jeff Law  <law@redhat.com>
3816         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
3817         when ignoring unavailable registers.
3818
3819         2008-08-24  Jeff Law  <law@redhat.com>
3820         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
3821         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
3822         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
3823         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
3824
3825         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
3826         * ira-build.c (allocno_range_compare_func): Stabilize sort.
3827
3828         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
3829         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
3830         * reload1.c (find_reg): Process registers in register allocation order.
3831
3832         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3833         * toplev.c (backend_init_target): Move ira_init call from
3834         here...
3835         (lang_dependent_init_target): ...to here.
3836
3837         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3838         * ira.c (setup_class_subset_and_memory_move_costs): Don't
3839         calculate memory move costs for NO_REGS.
3840
3841         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
3842         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
3843         STACK_REGS is defined.
3844
3845         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
3846         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
3847
3848         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
3849         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
3850
3851         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
3852         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
3853         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
3854         barrier.
3855
3856 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
3857             Dorit Nuzman  <dorit@il.ibm.com>
3858
3859         * gcc/config/spu/spu.md (vec_extract_evenv4si,
3860         vec_extract_evenv4sf, vec_extract_evenv8hi,
3861         vec_extract_evenv16qi, vec_extract_oddv4si,
3862         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
3863         vec_interleave_highv4sf, vec_interleave_lowv4sf,
3864         vec_interleave_highv4si, vec_interleave_lowv4si,
3865         vec_interleave_highv8hi, vec_interleave_lowv8hi,
3866         vec_interleave_highv16qi, vec_interleave_lowv16qi,
3867         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
3868
3869 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
3870
3871         PR target/36756
3872         * config/rs6000/rs6000.c (optimization_options): Don't default to
3873         section anchors without toplevel reorder.
3874
3875 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3876
3877         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
3878         (mfc_end_critical_section): Likewise.
3879
3880 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3881
3882         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
3883         all type qualifiers from element type to vector type.
3884
3885 2008-08-25  David Daney  <ddaney@avtrex.com>
3886
3887         * config/mips/mips.md (immediate_insn): Move up in file, fix
3888         comment typo, reformat.
3889         (fetchop_bit, atomic_hiqi_op memory_barrier,
3890         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
3891         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
3892         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
3893         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
3894         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
3895         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
3896         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
3897         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
3898         sync_old_nand<mode>, sync_new_nand<mode>,
3899         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
3900         test_and_set_12): Moved to sync.md.
3901         (sync.md): Include.
3902         * config/mips/sync.md: New file.
3903
3904 2008-08-25  Richard Henderson  <rth@redhat.com>
3905
3906         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
3907         (regsave): Likewise.
3908         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
3909         (output_cfi_directive): Likewise.
3910         (div_data_align): New.
3911         (output_cfi): Use it.
3912
3913 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
3914
3915         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
3916         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
3917         (TARGET_OCTEON): New macro.
3918         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
3919         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
3920         (ISA_HAS_POP): New macro.
3921         * config/mips/driver-native.c (host_detect_local_cpu): Handle
3922         Octeon.
3923         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
3924         Handle Octeon.
3925         * config/mips/mips.md (cpu): Add octeon.
3926         (type): Add pop attribute value.
3927         (popcount<mode>2): New pattern.
3928         * doc/invoke.texi (-march=@var{arch}): Add octeon.
3929
3930 2008-08-24  Jan Hubicka  <jh@suse.cz>
3931
3932         * doc/invoke.texi (-fipa-cp-clone): New option.
3933         (-fipa-cp): Update docs.
3934         (--param ipcp-unit-growth):New.
3935         * ipa-cp.c: Include fibheap.h, params.h
3936         (ipcp_initialize_node_lattices): When not cloning, all externally
3937         visible functions are bottom.
3938         (ipcp_need_redirect_p): Accept clones.
3939         (ipcp_insert_stage): Use cost driven heuristics.
3940         (max_count, dead_nodes): New static vars.
3941         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
3942         ipcp_const_param_count): New functions.
3943         * common.opt (ipa-cp-clone): New command line option.
3944         * params.def (ipcp-unit-growth): New.
3945
3946 2008-08-24  Jan Hubicka  <jh@suse.cz>
3947
3948         * tree-inline.c (tree_function_versioning): Look harder
3949         for referenced vars.
3950
3951 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
3952
3953         PR tree-optimization/37185
3954         * matrix-reorg.c (transform_access_sites): Update changed stmt.
3955
3956 2008-08-23  Jan Hubicka  <jh@suse.cz>
3957
3958         * ipa-cp.c (ipcp_analyze_node): New function.
3959         (ipcp_update_cloned_node): Use it.
3960         (ipcp_init_stage): Likewise.
3961         * ipa-inline.c (function_insertion_hook_holder): New static var.
3962         (analyze_function): Break out from ....
3963         (inline_generate_summary): Here; register insertion hook.
3964         (cgraph_decide_inlining): Remove hook.
3965         (add_new_function): New function.
3966
3967 2008-08-23  Jan Hubicka  <jh@suse.cz>
3968
3969         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
3970
3971 2008-08-23  Jan Hubicka  <jh@suse.cz>
3972
3973         * ipa-cp.c (constant_val_insert): Remove.
3974         (ipcp_propagate_one_const): Remove.
3975         (ipcp_create_replace_map): Always insert replacements to the map.
3976         (ipcp_insert_stage): Do not try to insert statements by hand.
3977         * tree-inline.c (insert_init_stmt): Break out from ...
3978         (setup_one_parameter): ... here; allow NULL BB pointer.
3979         (tree_function_versioning): Use setup_one_parameter to process
3980         replacement map.
3981
3982 2008-08-23  Jan Hubicka  <jh@suse.cz>
3983
3984         * tree.c (decl_address_ip_invariant_p): New function.
3985         * tree.h (decl_address_ip_invariant_p): Declare.
3986         * gimple.c (strip_invariant_refs): Break out from ...
3987         (is_gimple_invariant_address): ... here
3988         (is_gimple_ip_invariant_address): New function.
3989         (is_gimple_ip_invariant): New function.
3990         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
3991         Declare.
3992
3993         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
3994         (ipcp_lat_is_insertable): All constants are insertable.
3995         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
3996         IPA_CONST_VALUE_REF.
3997         (ipcp_initialize_node_lattices): Propagate all types of operands.
3998         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
3999         (ipcp_create_replace_map): Reformat.
4000         (ipcp_need_redirect_p): Simplify.
4001         (ipcp_insert_stage): Check that argument is used before clonning.
4002         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
4003         IPA_CONST_REF.
4004         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
4005         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
4006         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
4007         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
4008         (jump_func_type): Remove IPA_CONST_VALUE_REF.
4009         * tree-inline.c (tree_function_versioning): Add variables referenced by
4010         replacing trees.
4011
4012 2008-08-23  Jan Hubicka  <jh@suse.cz>
4013
4014         PR target/37094
4015         * i386.c (standard_80387_constant_p): Use optimize_size.
4016
4017 2008-08-23  Ira Rosen  <irar@il.ibm.com>
4018
4019         PR tree-optimization/37161
4020         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
4021         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
4022         (vect_determine_vectorization_factor): Move the scalar type
4023         retrieval to vect_get_smallest_scalar_type.
4024         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
4025         scalar type. Remove redundant computation.
4026         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
4027         (vect_get_slp_defs): Take the type of RHS into account if
4028         necessary by calling vect_get_smallest_scalar_type. Call
4029         vect_get_constant_vectors with additional argument.
4030
4031 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4032
4033         PR 35648
4034         * doc/invoke.texi (Wwrite-strings): Clarify description.
4035
4036 2008-08-23  Ira Rosen  <irar@il.ibm.com>
4037
4038         PR tree-optimization/37174
4039         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
4040         def stmt is a part of the loop before accessing its stmt_vec_info.
4041
4042 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
4043
4044         PR target/11259
4045         * config/avr/avr.md (UNSPEC_SWAP): New constants.
4046         (*swap): New insn pattern.
4047         (*ashlqi3): Rename from ashlqi3 insn pattern.
4048         (ashlqi3): New expanders.
4049         (*lshrqi3): Rename from lshrqi3 insn pattern.
4050         (lshrqi3): New expanders.
4051         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
4052         lshrqi3_const5, lshrqi3_const6): New splitters.
4053         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
4054         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
4055         peephole2 patterns.
4056
4057 2008-08-22  Richard Guenther  <rguenther@suse.de>
4058
4059         PR tree-optimization/37078
4060         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
4061         [+INF, +INF] ranges.
4062
4063 2008-08-22  Richard Guenther  <rguenther@suse.de>
4064
4065         PR tree-optimization/37143
4066         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
4067         a conversion statement instead of a copy.
4068
4069 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
4070
4071         PR target/37184
4072         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
4073         CCCmode, CCOmode and CCSmode destination modes.
4074
4075         PR target/37191
4076         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
4077         from different units in a single alternative.
4078         (*vec_extractv2sf_1): Ditto.
4079         (*vec_extractv2si_0): Ditto.
4080         (*vec_extractv2si_1): Ditto.
4081         * config/i386/sse.md (sse2_storehpd): Ditto.
4082         (sse2_storelpd): Ditto.
4083         (sse2_loadhpd): Ditto.
4084         (sse2_loadlpd): Ditto.
4085
4086         PR target/37197
4087         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
4088         (popcountsi2): Ditto.
4089         (clzdi2_abm): Ditto.
4090         (popcountdi2): Ditto.
4091         (clzhi2_abm): Ditto.
4092         (popcounthi2): Ditto.
4093
4094 2008-08-22  Richard Guenther  <rguenther@suse.de>
4095
4096         PR middle-end/36548
4097         PR middle-end/37125
4098         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
4099         if the multiplication does not overflow.
4100
4101 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
4102
4103         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
4104
4105 2008-08-21  Richard Henderson  <rth@redhat.com>
4106
4107         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
4108         spurrious comma from test.
4109         * configure: Rebuild.
4110
4111 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4112
4113         PR 30457
4114         * builtins.c (fold_builtin_next_arg): Add warning about undefined
4115         behaviour.
4116
4117 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
4118
4119         * c-tree.h (grokfield): New argument.
4120         * c-decl.c (grokfield): Handle new location argument.
4121         * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
4122
4123 2008-08-21  Richard Guenther  <rguenther@suse.de>
4124
4125         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
4126
4127 2008-08-21  Jan Hubicka  <jh@suse.cz>
4128
4129         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
4130         (cgraph_add_function_insertion_hook,
4131         cgraph_remove_function_insertion_hook,
4132         cgraph_call_function_insertion_hooks): New functions.
4133         * cgraph.h (cgraph_add_function_insertion_hook,
4134         cgraph_remove_function_insertion_hook,
4135         cgraph_call_function_insertion_hooks): Declare.
4136         * ipa-reference.c (function_insertion_hook_holder): New variable.
4137         (check_operand, look_for_address_of): When checking late, do not care
4138         about module bitmaps.
4139         (add_new_function): New function.
4140         (generate_summary): Register hooks; zero module bitmaps.
4141         (propagate): Unregister hooks.
4142         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
4143         (add_new_function): New function.
4144         (generate_summary): Register hook.
4145         (propagate): Remove hook.
4146
4147         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
4148
4149         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
4150         * ipa-cp.c (ipcp_update_cloned_node): New function.
4151         (build_const_val): Handle functions correctly; bring type logic
4152         into sync with tree-inline.c
4153         (ipcp_init_stage):  Take care of computing stuff needed by
4154         indirect inlining; update clones.
4155         (ipcp_generate_summary): Break out of ipcp_driver.
4156         (ipcp_driver): Do only execution and transformation.
4157         (pass_ipa_cp): Make IPA_PASS.
4158         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
4159         offset to address.
4160         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
4161         ipcp, some info is already available.
4162         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
4163         * tree-inline.c (remap_ssa_name): Unshare expression.
4164
4165 2008-08-21  Richard Guenther  <rguenther@suse.de>
4166
4167         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
4168         a PHI ask VN if it is already available.
4169         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
4170         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
4171
4172 2008-08-21  Richard Guenther  <rguenther@suse.de>
4173
4174         PR middle-end/36817
4175         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
4176         makes sure to produce a result of the correct type.
4177
4178 2008-08-21  Jan Hubicka  <jh@suse.cz>
4179         Backport from LTO branch:
4180
4181         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
4182                     Jan Hubicka  <jh@suse.cz>
4183
4184         * ipa-pure-const.c
4185         (init_state, finish_state, set_function_state, generate_summary):
4186         New functions.
4187         (scan_stmt): Renamed from scan_function.  Changed to keep state in
4188         local static vars rather than cgraph aux field.
4189         (propagate): Renamed from static_execute. Changed to keep state in
4190         local static vars rather than cgraph aux field.
4191         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
4192         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
4193
4194         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
4195
4196         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
4197         * ipa-reference.c (init_function_info, generate_summary,
4198         propagate): New functions.
4199         (analyze_function):  Call init_function_info.
4200         (static_execute): Stripped into generate_summary and propagate.
4201         (pass_ipa_reference): Made into ipa_opt_pass.
4202
4203 2008-08-21  Richard Guenther  <rguenther@suse.de>
4204
4205         PR tree-optimization/37181
4206         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
4207         folding result.
4208         (extract_range_from_unary_expr): Likewise.
4209
4210 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4211
4212         * diagnostic.c (pedwarn_at): Rename as pedwarn.
4213         (pedwarn): Delete.
4214         * toplev.h (pedwarn_at): Likewise.
4215         * builtins.c: Update all calls to pedwarn.
4216         * c-lex.c: Likewise.
4217         * toplev.c: Likewise.
4218         * c-tree.h: Likewise.
4219         * c-decl.c: Likewise.
4220         * c-errors.c: Likewise.
4221         * c-typeck.c: Likewise.
4222         * c-common.c: Likewise.
4223         * c-parser.c: Likewise.
4224
4225 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
4226
4227         PR target/31070
4228         * config/sparc/sparc.c (function_arg_slotno): Handle structure
4229         with MODE_VECTOR_INT mode.
4230
4231 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4232
4233         PR middle-end/179
4234         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
4235         initialized outside the current module.
4236         (warn_uninitialized_var): Ignore left-hand side when walking the
4237         trees. Ignore address expressions. Examine VUSE operands in gimple
4238         statements with a variable declaration on the right-hand side.
4239
4240 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
4241
4242         PR bootstrap/37155
4243         * rtlanal.c (subreg_offset_representable_p): Revert last change.
4244
4245 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4246
4247         PR 35701
4248         * c-common.c (conversion_warning): Do not warn if applying bit-and
4249         operator to unsigned constant that fits in the target type.
4250
4251 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4252
4253         PR c++/35602
4254         * c-common.c (conversion_warning): Do not warn for artificial
4255         expressions.
4256
4257 2008-08-20  Richard Guenther  <rguenther@suse.de>
4258
4259         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
4260         (extract_range_from_binary_expr): Fall back to constant propagation.
4261         (extract_range_from_unary_expr): Likewise.
4262
4263 2008-08-20  Richard Guenther  <rguenther@suse.de>
4264
4265         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
4266         with TREE_THIS_VOLATILE on shared nodes.
4267         (fold_stmt_r): Likewise.
4268
4269 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
4270
4271         PR c/37171
4272         * c-parser.c (c_parser_attributes): For keywords use canonical
4273         spelling for attr_name.
4274
4275 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4276
4277         * value-prof.c (check_counter): Revert wrong call to error.
4278
4279 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4280
4281         * profile.c: Update calls to inform.
4282         * value-prof.c: Update calls to inform.
4283
4284 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4285
4286         * diagnostic.c (inform): Add an explicit location_t parameter.
4287         * toplev.h (inform): Update declaration.
4288         * builtins.c: Update all calls to inform.
4289         * c-common.c: Likewise.
4290         * c-decl.c: Likewise.
4291         * c-opts.c: Likewise.
4292         * c-pch.c: Likewise.
4293         * c-pragma.c: Likewise.
4294         * c-typeck.c: Likewise.
4295         * coverage.c: Likewise.
4296         * opts.c: Likewise.
4297         * toplev.c: Likewise.
4298         * tree-cfg.c: Likewise.
4299         * tree-ssa.c: Likewise.
4300
4301 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
4302
4303         PR target/37169
4304         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
4305         V2DI mode, for SSE4.1, use movq instead of vector set if the
4306         second element is zero and inter-unit moves are OK.
4307
4308 2008-08-20  Richard Guenther  <rguenther@suse.de>
4309
4310         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
4311         properly handle conversion/copy chains after tuplification.
4312
4313 2008-08-20  Richard Guenther  <rguenther@suse.de>
4314
4315         * passes.c (init_optimization_passes): Move the second
4316         forwprop pass before alias computation.  Remove the second
4317         DCE pass.  Remove the first dominator and phi copy/const
4318         prop passes.
4319
4320 2008-08-20  Nick Clifton  <nickc@redhat.com>
4321
4322         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
4323         support of this feature.  Do not assume that a sufficiently new
4324         assembler will support the feature regardless of the target type.
4325         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
4326         * configure: Regenerate.
4327
4328 2008-08-20  Richard Guenther  <rguenther@suse.de>
4329
4330         * tree-vrp.c (found_in_subgraph): Remove.
4331         (live): New global static.
4332         (live_on_edge): New function.
4333         (blocks_visited): Remove.
4334         (register_edge_assert_for_2): Use live_on_edge.
4335         (find_conditional_asserts): Remove code dealing with
4336         found_in_subgraph.  Do not walk the CFG.
4337         (find_switch_asserts): Likewise.
4338         (find_assert_locations_1): Renamed from find_assert_locations.
4339         Move finding assert locations for conditional and switch
4340         statements first.  Update live bitmap.  Do not walk the CFG.
4341         (find_assert_locations): New function.
4342         (insert_range_assertions): Remove entry of CFG walk.
4343         Adjust call to find_assert_locations.
4344         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
4345         that only can appear because of fake exit edges but assert we
4346         never try to insert on those.
4347         (fini_pre): Do not remove fake exit edges here...
4348         (execute_pre): ...but here, before committing edge inserts.
4349
4350 2008-08-19  Richard Guenther  <rguenther@suse.de>
4351
4352         * passes.c (init_optimization_passes): Exchange store-ccp
4353         with a ccp pass.
4354
4355 2008-08-19  Rafael Espíndola  <espindola@google.com>
4356
4357         * varasm.c (weak_decls): Move earlier in the file.
4358         (assemble_external): Add weak decls to the weak_decls list.
4359         (declare_weak): Don't add decls to the weak_decls list.
4360
4361 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4362
4363         PR target/37157
4364         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
4365         before (sse2_shufpd_<mode>).
4366
4367 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
4368
4369         PR debug/37156
4370         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
4371         * tree.c (block_nonartificial_location): Likewise.
4372
4373 2008-08-19  Richard Guenther  <rguenther@suse.de>
4374
4375         PR tree-optimization/35972
4376         PR tree-optimization/23094
4377         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
4378         parameter.
4379         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
4380         handle MISALIGNED_INDIRECT_REF.
4381         (get_ref_from_reference_ops): New helper.
4382         (vn_reference_lookup_pieces): Walk the use-def chain using the
4383         alias-oracle if requested.
4384         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
4385         walking the use-def chain.
4386         (compute_avail): But not here.
4387         (create_component_ref_by_pieces_1): Properly handle
4388         MISALIGNED_INDIRECT_REF.
4389         (do_regular_insertion): Handle fully redundant
4390         expressions after PHI-translation also for SSA_NAME values, not
4391         only constants.  Correctly use edoubleprime for that.
4392
4393 2008-08-19  Ira Rosen  <irar@il.ibm.com>
4394
4395         * tree-vectorizer.c (supportable_widening_operation): Support
4396         multi-step conversion, return the number of steps in such conversion
4397         and the required intermediate types.
4398         (supportable_narrowing_operation): Likewise.
4399         * tree-vectorizer.h (vect_pow2): New function.
4400         (supportable_widening_operation): Change argument types.
4401         (supportable_narrowing_operation): Likewise.
4402         (vectorizable_type_promotion): Add an argument.
4403         (vectorizable_type_demotion): Likewise.
4404         * tree-vect-analyze.c (vect_analyze_operations): Call
4405         vectorizable_type_promotion and vectorizable_type_demotion with
4406         additional argument.
4407         (vect_get_and_check_slp_defs): Detect patterns.
4408         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
4409         types.
4410         (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
4411         vect_build_slp_tree with correct arguments. Calculate unrolling factor
4412         according to the smallest type in the loop.
4413         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
4414         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
4415         supportable_widening_operation with correct arguments.
4416         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
4417         operands lists according to the number of vector statements in left
4418         or right node, if exists.
4419         (vect_gen_widened_results_half): Remove unused argument.
4420         (vectorizable_conversion): Call supportable_widening_operation,
4421         supportable_narrowing_operation, and vect_gen_widened_results_half
4422         with correct arguments.
4423         (vectorizable_assignment): Change documentation, support multiple
4424         types in SLP.
4425         (vectorizable_operation): Likewise.
4426         (vect_get_loop_based_defs): New function.
4427         (vect_create_vectorized_demotion_stmts): Likewise.
4428         (vectorizable_type_demotion): Support loop-aware SLP and general
4429         multi-step conversion. Call vect_get_loop_based_defs and
4430         vect_create_vectorized_demotion_stmts for transformation.
4431         (vect_create_vectorized_promotion_stmts): New function.
4432         (vectorizable_type_promotion): Support loop-aware SLP and general
4433         multi-step conversion. Call vect_create_vectorized_promotion_stmts
4434         for transformation.
4435         (vectorizable_store): Change documentation, support multiple
4436         types in SLP.
4437         (vectorizable_load): Likewise.
4438         (vect_transform_stmt): Pass SLP_NODE to
4439         vectorizable_type_promotion and vectorizable_type_demotion.
4440         (vect_schedule_slp_instance): Move here the calculation of number
4441         of vectorized statements for each node from...
4442         (vect_schedule_slp): ... here.
4443         (vect_transform_loop): Call vect_schedule_slp without the last
4444         argument.
4445
4446 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
4447
4448         PR bootstrap/37152
4449         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
4450         to == in assert statement.
4451         (vectorizable_reduction): Fix typo.
4452
4453 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4454
4455         PR bootstrap/37153
4456         * value-prof.c (check_counter): Dereference pointer to overall
4457         count when printing it.
4458
4459 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4460
4461         * profile.h: Really add it.
4462
4463 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4464
4465         * mcf.c: Really add it.
4466
4467 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
4468             Vinodha Ramasamy  <vinodha@google.com>
4469
4470         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
4471         count_scale.
4472         * value-prof.c (check_counter): Fix the counter if
4473         flag_profile_correction is true.
4474         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
4475         tree_mod_subtract_transform):
4476         Follow check_counter parameter change.
4477         * common.opt (fprofile-correction): New option.
4478         * mcf.c: New file.
4479         * profile.h: Likewise.
4480         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
4481         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
4482         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
4483         functions.
4484         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
4485         flag_profile_correction is set.
4486
4487 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
4488
4489         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
4490
4491 2008-08-18  Tomas Bily  <tbily@suse.cz>
4492
4493         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
4494         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
4495         CONVERT_EXPR_P.
4496         * tree-data-ref.c (split_constant_offset_1): Likewise.
4497         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
4498         * tree-sra.c (sra_walk_expr): Likewise.
4499         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
4500         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
4501         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
4502         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
4503         Likewise.
4504         * gimple.c (gimple_assign_unary_nop_p): Likewise.
4505         * tree-vect-transform.c (vectorizable_type_demotion)
4506         (vectorizable_type_promotion): Likewise.
4507         * tree-inline.c (expand_call_inline):
4508         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
4509         (forward_propagate_addr_expr_1, forward_propagate_comparison)
4510         (tree_ssa_forward_propagate_single_use_vars): Likewise.
4511         * expr.c (expand_expr_real_1): Likewise.
4512         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
4513         (gimple_assign_unary_useless_conversion_p): Likewise.
4514         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4515         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
4516         * fold-const.c (fold_unary): Likewise.
4517         * tree.h (CONVERT_EXPR_P): Likewise.
4518         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
4519         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
4520         * tree-vrp.c:
4521         (register_edge_assert_for_2, extract_range_from_unary_expr)
4522         (register_edge_assert_for_1): Likewise.
4523
4524 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4525
4526         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
4527         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
4528         (enum real_value_const): Delete.
4529         (get_real_const): Delete.
4530         * real.c (get_real_const): Delete.
4531         (dconst_e_ptr): Define.
4532         (dconst_third_ptr): Define.
4533         (dconst_sqrt2_ptr): Define.
4534         * builtins.c: Update all callers.
4535
4536 2008-08-18  Richard Guenther  <rguenther@suse.de>
4537
4538         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
4539         statement iterator after statement removal.
4540
4541 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
4542
4543         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
4544         (detect_processor_freebsd): Likewise.
4545         (host_detect_local_cpu): Call newly added functions for FreeBSD.
4546
4547 2008-08-18  Richard Guenther  <rguenther@suse.de>
4548
4549         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
4550         and loads have the correct types.
4551
4552 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4553
4554         PR cpp/7263
4555         * c-opts.c (cpp_opts): Remove static.
4556         * c-parser.c (cpp_opts): Declare it extern.
4557         (disable_extension_diagnostics): Handle cpp options.
4558         (enable_extension_diagnostics): Likewise.
4559
4560 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4561
4562         * diagnostics.c (permerror_at): Rename as permerror.
4563         (permerror): Delete.
4564         * toplev.h: Likewise.
4565
4566 2008-08-18  Richard Guenther  <rguenther@suse.de>
4567
4568         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
4569         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
4570         Move call_cdce before build_alias.  Move copyrename2,
4571         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
4572         right after final inlining.
4573         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
4574         (pass_build_cfg): But instead via TODO_dump_func.
4575
4576 2008-08-18  Richard Guenther  <rguenther@suse.de>
4577
4578         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
4579         element index.
4580         (scalarize_init): If we failed to generate some initializers
4581         do not generate zeros for not instantiated members.  Instead
4582         rely on the copy out.
4583         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
4584         about missing flow-sensitive alias info only if we have
4585         aliases computed.
4586
4587 2008-08-17  Nick Clifton  <nickc@redhat.com>
4588
4589         * doc/extend.texi (Function Attributes): Fix typo in description
4590         if hot function attribute.
4591
4592 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
4593             Richard Sandiford  <rdsandiford@googlemail.com>
4594
4595         * doc/install.texi (--with-mips-plt): Document.
4596         * doc/invoke.texi (-mplt, -mno-plt): Document.
4597         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
4598         and handle ${with_mips_plt}.
4599         * config/mips/mips.opt (mplt): New option.
4600         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
4601         (TARGET_ABICALLS_PIC2): Likewise.
4602         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
4603         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
4604         (ASM_SPEC): Use !mabi=* instead of !mabi*.
4605         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
4606         to decide whether to output ".option picX" directives.
4607         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
4608         Pass -call_nonpic rather than -KPIC for -mplt.
4609         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
4610         on the command line.  Also remove it when -mabi=64 is used without
4611         -msym32.
4612         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
4613         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
4614         TARGET_ABICALLS_PIC0.
4615         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
4616         TARGET_ABICALLS.
4617         (mips16_build_function_stub): Only output ".option pic" directives
4618         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
4619         (mips16_build_call_stub): Fix comment and remove redundant
4620         ".set at"/"set .noat" directives.
4621         (mips_function_rodata_section): Use the default behaviour for
4622         TARGET_ABSOLUTE_ABICALLS.
4623         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
4624         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
4625         (mips_restore_gp): Do nothing if the current function doesn't use
4626         a global pointer.
4627         (mips_expand_prologue): Only save $gp if the current function uses it.
4628         Use a normal move for TARGET_ABICALLS_PIC0.
4629         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
4630
4631 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
4632
4633         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
4634         of function when handling GLOBAL_POINTER_REGNUM.
4635
4636 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
4637
4638         PR ada/20548
4639         * common.opt (-fstack-check): Do not declare the variable here.
4640         (-fstack-check=): New option variant.
4641         * doc/invoke.texi (Code Gen Options): Document it.
4642         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
4643         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
4644         (STACK_CHECK_STATIC_BUILTIN): New macro.
4645         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
4646         * opts.c: Include expr.h.
4647         (common_handle_option) <OPT_fold_stack_check_>: New case.
4648         <OPT_fstack_check>: Likewise.
4649         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
4650         consistently in the test for variable-sized types.  Adjust for
4651         new behaviour of flag_stack_check.
4652         * explow.c: Include except.h.
4653         (allocate_dynamic_stack_space): Do not take into account
4654         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
4655         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
4656         for variable-sized parameters.  Treat all parameters whose size is
4657         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
4658         stack checking is enabled.
4659         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
4660         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
4661         if generic stack checking is enabled.
4662         (expand_function_end): Adjust for new behaviour of flag_stack_check.
4663         * reload1.c (reload): Likewise.
4664         * stmt.c (expand_decl): Assert that all automatic variables have
4665         fixed size at this point and remove dead code.
4666         * flags.h (stack_check_type): New enumeration type.
4667         (flag_stack_check): Declare.
4668         * toplev.c (flag_stack_check): New global variable.
4669         * Makefile.in (opts.o): Add dependency on EXPR_H.
4670         (explow.o): Add dependency on except.h.
4671
4672 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
4673
4674         * config/avr/avr.c (avr_override_options): Reduce value of
4675         PARAM_INLINE_CALL_COST.
4676
4677 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
4678
4679         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
4680         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
4681         lieu of TYPE_MODE (type) throughout.
4682
4683 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
4684
4685         * config/arm/arm.c (add_minipool_backward_ref): Check for
4686         8-byte-aligned entries in second case of forcing insertion after a
4687         particular entry.  Change third case to avoid inserting
4688         non-8-byte-aligned entries before 8-byte-aligned ones.
4689
4690 2008-08-15  Richard Guenther  <rguenther@suse.de>
4691
4692         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
4693         strip components for unknown size accesses.
4694
4695 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
4696
4697         * config/s390/2097.md New file.
4698         * config/s390/s390.md ("z10prop" attribute): Define none,
4699         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
4700         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
4701         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
4702         possible values and apply them to insns as appropriate.
4703         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
4704         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
4705         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
4706         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
4707         ("bfp" mode attribute): Removed.  Every occurence replaced
4708         with <mode>.
4709         * config/s390/s390.c (struct "z10_cost"): Updated entries.
4710         * config/s390/2084.md (insn_reservation "x_itof"): Updated
4711         type attribute.
4712
4713 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4714
4715         PR c/28152
4716         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
4717         for keywords.
4718
4719 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
4720
4721         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
4722         additional argument. Support reduction when duplication is needed due
4723         to data-types of different sizes in the loop.
4724         (get_initial_def_for_induction): Fix printout.
4725         (vect_get_vec_def_for_stmt_copy): Support case where the
4726         vec_stmt_for_operand is a phi node.
4727         (vectorizable_reduction): Support reduction when duplication is needed
4728         due to data-types of different sizes in the loop.
4729         (vectorizable_call): Remove restriction to not vectorize in case we
4730         have data-types of different sizes in the loop.
4731         (vectorizable_conversion): Likewise.
4732         (vectorizable_operation): Likewise.
4733         (vectorizable_type_demotion): Likewise.
4734         (vectorizable_type_promotion): Likewise.
4735         (vectorizable_induction): Add restriction to not vectorize in case
4736         we have data-types of different sizes in the loop.
4737
4738 2008-08-14  Christophe Saout  <christophe@saout.de>
4739             Uros Bizjak  <ubizjak@gmail.com>
4740
4741         PR target/37101
4742         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
4743         (*vec_concatv2di_rex64_sse4_1): Ditto.
4744         (*vec_concatv2di_rex64_sse): Ditto.
4745
4746 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
4747
4748         PR middle-end/37103
4749         * fold-const.c (fold_widened_comparison): Do not allow
4750         sign changes that change the result even if shorter type
4751         is wider than arg1_unw's type.
4752
4753 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
4754
4755         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
4756         Skip if the multilib testing specifies -march that does not
4757         agree with the one specified in the testcase.
4758
4759 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
4760
4761         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
4762         zero extend SImode values being converted to TFmode before passing
4763         to libcalls.
4764
4765 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4766
4767         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
4768         __PPU__ when targeting the Cell/B.E. PPU processor.
4769
4770 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
4771
4772         * gimple.h (gimple_call_set_chain): Accept SSA variables.
4773         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
4774         Rematerialize the static chain, if any.
4775         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
4776         static chain.
4777
4778 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
4779
4780         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
4781         (new_loc_descr): Likewise.
4782         (add_loc_descr): Likewise.
4783         (size_of_loc_descr): Likewise.
4784         (size_of_locs): Likewise.
4785         (output_loc_operands): Likewise.
4786         (output_loc_sequence): Likewise.
4787         (new_reg_loc_descr): New.
4788         (build_cfa_loc): Use it.
4789         (build_cfa_aligned_loc): Likewise.
4790         (one_reg_loc_descriptor): Likewise.
4791         (based_loc_descr): Likewise.
4792
4793 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4794
4795         PR 30551
4796         * doc/invoke.texi (Wmain): Update.
4797         * c-decl.c (start_decl): warn_main is only 0 or 1.
4798         (start_function): Likewise. Fix formatting.
4799         (finish_function): Delete redundant warning.
4800         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
4801         * c-opts (c_common_handle_option): -Wall only has effect if
4802         warn_main is uninitialized. OPT_Wmain is automatically
4803         handled. -pedantic also enables Wmain.
4804         (c_common_post_options): Handle all logic for Wmain here.
4805         * c-common.c (warn_main): Delete.
4806         (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
4807         * c-common.h (warn_main): Delete.
4808
4809 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
4810
4811         PR middle-end/36701
4812         * expr.c (emit_group_store): Allocate stack temp with the
4813         largest alignment when copying from register to stack.
4814
4815 2008-08-13  Richard Guenther  <rguenther@suse.de>
4816
4817         * tree.h (maybe_fold_offset_to_address): Declare.
4818         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
4819         (ccp_fold): Handle pointer conversions the same as fold_stmt.
4820         Likewise for POINTER_PLUS_EXPR.
4821         (maybe_fold_offset_to_reference): Enable disabled code.
4822         (maybe_fold_offset_to_address): New function.
4823         (fold_stmt_r): Use it.
4824         (fold_gimple_assign): Likewise.
4825         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
4826         (gimplify_expr): Likewise.
4827
4828 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4829
4830         * toplev.h (pedwarn_at): Fix declaration.
4831
4832 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
4833
4834         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
4835         LINK_SPEC): Use %R in -Y P argument.
4836
4837 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4838
4839         PR c/15236
4840         * diagnostic.c (pedwarn_at): New.
4841         * toplev.h (pedwarn_at): Declare.
4842         * c-tree.h (build_enumerator): Update declaration.
4843         * c-decl.c (finish_enum): Update comment.
4844         (build_enumerator): Take a location parameter. Give a pedwarn but do
4845         not perform any conversion.
4846         * c-parser.c (c_parser_enum_specifier): Set correct location for
4847         enumerator.
4848
4849 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4850
4851         PR 35635
4852         * c-common.c (conversion_warning): Use a switch. Ignore boolean
4853         expressions except for conversions to signed:1 bitfields. Handle
4854         COND_EXPR with constant operands.
4855
4856 2008-08-13  Richard Guenther  <rguenther@suse.de>
4857
4858         PR tree-optimization/15255
4859         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
4860         (struct oecount_s): New struct and VEC types.
4861         (cvec): New global.
4862         (oecount_hash): New function.
4863         (oecount_eq): Likewise.
4864         (oecount_cmp): Likewise.
4865         (zero_one_operation): New function.
4866         (build_and_add_sum): Likewise.
4867         (undistribute_ops_list): Perform un-distribution of multiplication
4868         and division on the chain of summands.
4869         (should_break_up_subtract): Also break up subtracts for factors.
4870         (reassociate_bb): Delete dead visited statements.
4871         Call undistribute_ops_list.  Re-sort and optimize if it did something.
4872         * passes.c (init_optimization_passes): Move DSE before
4873         reassociation.
4874         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
4875         PHI nodes.
4876
4877 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
4878
4879         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
4880
4881         * doc/invoke.texi: Revert unintended checkin.
4882
4883 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
4884
4885         PR libgomp/26165
4886         * gcc.c (include_spec_function): Tweak call to find_a_file.
4887
4888 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
4889
4890         PR middle-end/37014
4891         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
4892         and TRUTH_ORIF_EXPR.
4893         * dojump.c (do_jump): Likewise.
4894
4895         PR tree-optimization/37084
4896         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
4897         if id->regimplify, don't assume stmt is a cast assignment.
4898
4899 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
4900
4901         * final.c (final_scan_insn): Use app_enable/app_disable functions.
4902
4903 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4904
4905         PR bootstrap/37097
4906         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
4907         by last change.
4908
4909 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4910
4911         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
4912         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
4913
4914         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
4915         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
4916         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
4917         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
4918         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
4919
4920         * doc/tm.texi (Storage Layout): Remove documentation for
4921         TARGET_FLOAT_FORMAT.
4922
4923         * simplify-rtx.c (simplify_binary_operation_1): Replace
4924         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
4925
4926 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4927
4928         * real.h (struct real_format): New member has_sign_dependent_rounding.
4929         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
4930         spu_single_format, ieee_double_format, mips_double_format,
4931         motorola_double_format, ieee_extended_motorola_format,
4932         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4933         ieee_extended_intel_96_round_53_format, ibm_extended_format,
4934         mips_extended_format, ieee_quad_format, mips_quad_format,
4935         vax_f_format, vax_d_format, vax_g_format): Initialize it.
4936         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4937
4938         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4939         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4940         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4941         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4942         (ROUND_TOWARDS_ZERO): Likewise.
4943
4944         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
4945         (FLOAT_MODE_FORMAT): New macro.
4946         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
4947         (MODE_COMPOSITE_P): ... this new macro.
4948         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4949         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
4950         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
4951
4952         * flags.h: Include "real.h".
4953
4954         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
4955         REAL_MODE_FORMAT_COMPOSITE_P.
4956         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
4957
4958         * doc/tm.texi (Storage Layout): Remove documentation of
4959         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4960         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
4961         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
4962         they only apply to libgcc2.a.
4963
4964 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4965
4966         * config/spu/float_disf.c: New file.
4967         * config/spu/float_unsdisf.c: New file.
4968         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
4969         (LIB2FUNCS_EXCLUDE): Define.
4970
4971 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4972             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4973
4974         * real.h (struct real_format): New member round_towards_zero.
4975         * real.c (round_for_format): Respect fmt->round_towards_zero.
4976         (ieee_single_format, mips_single_format, motorola_single_format,
4977         spu_single_format, ieee_double_format, mips_double_format,
4978         motorola_double_format, ieee_extended_motorola_format,
4979         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4980         ieee_extended_intel_96_round_53_format, ibm_extended_format,
4981         mips_extended_format, ieee_quad_format, mips_quad_format,
4982         vax_f_format, vax_d_format, vax_g_format): Initialize it.
4983         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4984
4985         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
4986         real_format to choose rounding mode when calling MPFR functions.
4987         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
4988         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
4989
4990         * real.h (real_to_decimal_for_mode): Add prototype.
4991         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
4992         Respect target rounding mode when generating decimal representation.
4993         (real_to_decimal): New stub for backwards compatibility.
4994         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
4995         real_to_decimal_for_mode instead of real_to_decimal.
4996
4997         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
4998
4999 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5000             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
5001
5002         * real.c (spu_single_format): New variable.
5003         * real.h (spu_single_format): Declare.
5004
5005         * config/spu/spu.c (spu_override_options): Install SFmode format.
5006         (spu_split_immediate): Use integer mode to operate on pieces of
5007         floating-point values in all cases.
5008
5009         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
5010         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
5011         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
5012
5013 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5014
5015         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
5016
5017 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5018
5019         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
5020
5021 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
5022
5023         PR c++/36688
5024         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
5025         on the VAR_DECL instead of TYPE_READONLY on its type.
5026
5027 2008-08-12  Ira Rosen  <irar@il.ibm.com>
5028
5029         * tree-vectorizer.c: Depend on langhooks.h.
5030         (supportable_widening_operation): Add two arguments. Support double
5031         type conversions.
5032         (supportable_narrowing_operation): Likewise.
5033         * tree-vectorizer.h (supportable_widening_operation): Add two
5034         arguments.
5035         (supportable_narrowing_operation): Likewise.
5036         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
5037         supportable_widening_operation with correct arguments.
5038         * tree-vect-transform.c (vectorizable_conversion): Likewise.
5039         (vectorizable_type_demotion): Support double type conversions.
5040         (vectorizable_type_promotion): Likewise.
5041         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
5042
5043 2008-08-11  Michael Matz  <matz@suse.de>
5044
5045         * i386/i386.c (override_options): Move initialisation from
5046         flag_schedule_insns_after_reload to here from ...
5047         (optimization_options): ... here.
5048
5049 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
5050
5051         PR rtl-optimization/36998
5052         * dwarf2out.c (compute_barrier_args_size_1,
5053         compute_barrier_args_size): Temporarily remove assertions.
5054
5055 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5056
5057         PR middle-end/20644
5058         * tree-ssa.c (struct walk_data): Add new flag
5059         warn_possibly_uninitialized.
5060         (warn_uninitialized_var): Use it.
5061         (warn_uninitialized_vars): New.
5062         (execute_early_warn_uninitialized): Call it.
5063         (execute_late_warn_uninitialized): Likewise.
5064
5065 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5066
5067         PR middle-end/36238
5068         * reload1.c (gen_reload): Guard calls to get_secondary_mem
5069         for memory subregs.
5070
5071 2008-08-09  Jan Hubicka  <jh@suse.cz>
5072
5073         PR target/37055
5074         * optabs.c (maybe_emit_unop_insn): Remove produced code if
5075         expansion failed.
5076         (expand_fix): Be prepared for expansion to fail.
5077         (expand_sfix_optab): Remove instructions if expansion failed.
5078
5079 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
5080
5081         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
5082         avr31 architecture.
5083         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
5084         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
5085
5086 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5087
5088         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
5089         mips/t-libgcc-mips16 to tmake_file.
5090         * config/mips/mips-protos.h (mips_call_type): New enum.
5091         (mips_pic_base_register, mips_got_load): Declare.
5092         (mips_restore_gp): Take an rtx argument.
5093         (mips_use_pic_fn_addr_reg_p): Declare.
5094         (mips_expand_call): Replace the sibcall_p argument with
5095         a mips_call_type argument.  Add a lazy_p parameter.
5096         (mips_split_call): Declare.
5097         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
5098         (MIPS16_PIC_TEMP): Likewise.
5099         (reg_class): Delete M16_NA_REGS.
5100         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
5101         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
5102         (mips_split_hi_p): Declare.
5103         * config/mips/mips.c (mips_split_hi_p): New array.
5104         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
5105         (mips_got_symbol_type_p): New function.
5106         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
5107         (mips16_stub_function_p): New function.
5108         (mips16_local_function_p): Likewise.
5109         (mips_use_pic_fn_addr_reg_p): Likewise.
5110         (mips_cannot_force_const_mem): Return false for HIGHs.
5111         Extend CONST_INT and symbolic handling to MIPS16, using
5112         mips_symbol_insns to check that the base symbol type is a
5113         legitimate constant.  Reject GOT-based constants if
5114         TARGET_MIPS16_PCREL_LOADS.
5115         (mips_const_insns): Check targetm.cannot_force_const_mem when
5116         decomposing a symbolic base and a large offset.
5117         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
5118         When calling a function that needs $25 from MIPS16 code,
5119         move the target address into $25 separately and add a USE
5120         to the call insn.
5121         (mips16_gp_pseudo_reg): Insert the initializer immediately
5122         before the first real insn.
5123         (mips_pic_base_register, mips_got_load): New functions.
5124         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
5125         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
5126         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
5127         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
5128         (mips_call_tls_get_addr): Update the call to mips_expand_call,
5129         also passing NULL_RTX rather than const0_rtx as the aux argument.
5130         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
5131         instead of TARGET_EXPLICIT_RELOCS.
5132         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
5133         (mips_load_call_address): Replace the sibcall_p argument with
5134         a mips_call_type argument.  Use mips_got_load.
5135         (mips16_local_alias): New structure.
5136         (mips16_local_aliases): New variable.
5137         (mips16_local_aliases_hash): New function.
5138         (mips16_local_aliases_eq): Likewise.
5139         (mips16_local_alias): Likewise.
5140         (mips16_stub_function): Likewise.
5141         (mips16_build_function_stub): Create a local alias for the target
5142         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
5143         .cpload directive and an R_MIPS_NONE relocation for the target
5144         function, then load the alias rather than the function itself.
5145         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
5146         (mips16_copy_fpr_return_value): Use mips16_stub_function and
5147         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
5148         (mips16_build_call_stub): Replace the FN parameter with an
5149         FN_PTR parameter.  Force the address into a register if it
5150         isn't a call_insn_operand; don't rely on the caller to do this.
5151         If a call to a locally-defined and locally-binding MIPS16
5152         function must be made indirectly, redirect the call to the
5153         function's local alias.  Use mips16_stub_function_p,
5154         mips16_stub_function, mips_expand_call and use_reg.
5155         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
5156         Use explicit %hi and %lo accesses where possible.
5157         Use MIPS_CALL to generate the correct code form of a
5158         jal instruction.  Add clobbers of $18 instead of uses.
5159         Update the call to mips_emit_call_insn.
5160         (mips_expand_call): Replace the SIBCALL_P argument with a
5161         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
5162         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
5163         allowing it to modify the call address.  Update the calls to
5164         mips_load_call_address and mips_emit_call_insn.
5165         (mips_split_call): New function.
5166         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
5167         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
5168         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
5169         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
5170         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
5171         if TARGET_MIPS16.
5172         (mips_cprestore_slot): New function.
5173         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
5174         and use mips_cprestore_slot.
5175         (mips_output_function_prologue): Handle TARGET_MIPS16 for
5176         LOADGP_OLDABI.
5177         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
5178         then use a copygp_mips16 instruction to set up $28.
5179         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
5180         (mips16_lay_out_constants): Call split_all_insns_noflow.
5181         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
5182         false if TARGET_MIPS16.
5183         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
5184         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
5185         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
5186         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
5187         MIPS16 code.  Allow MIPS16 o32 PIC.
5188         (mips_override_options): Allow MIPS16 o32 PIC.
5189         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
5190         after reload if TARGET_USE_GOT.
5191         (UNSPEC_COPYGP): New constant.
5192         (length): Use a default length of 8 for MIPS16 GOT loads.
5193         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
5194         (*got_page<mode>): Check mips_split_hi_p.
5195         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
5196         (unspec_got<mode>, unspec_call<mode>): New expanders.
5197         (load_got<mode>, load_call<mode>): Remove the length attributes.
5198         Use a got attribute instead of a type attribute.
5199         (copygp_mips16): New insn.
5200         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
5201         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
5202         (sibcall, sibcall_value, call, call_value): Update the calls
5203         to mips_expand_call.
5204         (call_internal, call_value_internal): Use mips_split_call.
5205         (call_value_multiple_internal): Likewise.
5206         (call_split): Move after call_internal (the insn it is split from).
5207         (call_internal_direct, call_value_internal_direct): Turn into
5208         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
5209         (call_direct_split, call_value_direct_split): New patterns.
5210         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
5211         and use M16_REGS instead of M16_NA_REGS.
5212         * config/mips/predicates.md (const_call_insn_operand): Replace
5213         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
5214         mips_use_pic_fn_addr_reg_p check.
5215         (move_operand): Reject HIGHs if mips_split_hi_p.
5216         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
5217         (__mips16_floatunsisf): Inline __mips16_floatsisf.
5218         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
5219         * config/mips/libgcc-mips16.ver: New file.
5220         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
5221         $(srcdir)/config/mips/libgcc-mips16.ver.
5222
5223 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5224
5225         * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
5226         (mips_unspec_address, mips_unspec_offset_high): Likewise.
5227         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
5228         (mips16_cfun_returns_in_fpr_p): Likewise.
5229
5230 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5231
5232         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
5233         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
5234         rather than 4 to PC.
5235
5236 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5237
5238         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
5239         (FUNCTION_PROFILER): Save the static chain pointer into $2
5240         beforehand and restore it aftewards.
5241         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
5242         address directly into $25 and call the function through $25;
5243         do not clobber $3.  Pad the DImode version to cover the space
5244         left by the deleted $25 <- $3 move.
5245         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
5246         the removal of the $25 <- $3 move.
5247         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
5248         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
5249
5250 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5251             Daniel Jacobowitz  <dan@codesourcery.com>
5252
5253         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
5254         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
5255         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
5256         * config/mips/mips.c (mips_start_function_definition): New function.
5257         (mips_end_function_definition): Likewise.
5258         (mips_output_function_prologue): Use mips_start_function_definition.
5259         (mips_output_function_epilogue): Use mips_end_function_definition.
5260         (build_mips16_function_stub): Use mips_start_function_definition
5261         and mips_end_function_definition.
5262         (build_mips16_call_stub): Likewise.
5263
5264 2008-08-09  Richard Guenther  <rguenther@suse.de>
5265
5266         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
5267         * gimple.h (gimple_call_fn): Adjust comment.
5268         (gimple_call_set_fndecl): New function.
5269         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
5270         longer having bare FUNCTION_DECL operand.
5271         (gimple_call_return_type): Likewise.
5272         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
5273
5274         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
5275         (gimple_mod_pow2): Likewise.
5276         (gimple_mod_subtract): Likewise.
5277         (gimple_ic): Likewise.
5278         (gimple_stringop_fixed_value): Likewise.
5279         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
5280         longer having bare FUNCTION_DECL operand.
5281         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
5282         * omp-low.c (optimize_omp_library_calls): Likewise.
5283         * cgraphunit.c (update_call_expr): Likewise.
5284         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5285         (execute_convert_to_rsqrt): Likewise.
5286         * cfgexpand.c (gimple_to_tree): Simplify.
5287         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
5288         bare FUNCTION_DECL operand.
5289         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
5290         (convert_gimple_call): Use gimple_call_fndecl.
5291         * c-common.c (c_warn_unused_result): Likewise.
5292
5293 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5294
5295         PR c/17880
5296         * c-typeck.c (digest_init): Call verify_sequence_points from here.
5297         (c_finish_return): Likewise.
5298         (c_start_case): Likewise.
5299         * c-common.c (warn_for_collisions_1): Use explicit location in warning.
5300         * c-parser.c (c_parser_condition): New. Call
5301         verify_sequence_points.
5302         (c_parser_paren_condition): Call c_parser_condition.
5303         (c_parser_for_statement): Call c_parser_condition.
5304
5305 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5306
5307         PR 36901
5308         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
5309         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
5310         Moved from diagnostic.h
5311         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
5312         DK_PERMERROR.
5313         (emit_diagnostic): New.
5314         (warning0, pedwarn0): Delete.
5315         (warning, warning_at, pedwarn, permerror): Return bool.
5316         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
5317         Moved to diagnostic.c.
5318         (struct diagnostic_context): Use correct type for
5319         classify_diagnostic.
5320         (diagnostic_report_diagnostic): Update declaration.
5321         (emit_diagnostic): Declare.
5322         * errors.c (warning): Return bool.
5323         * errors.h (warning): Update declaration.
5324         * toplev.h (warning0, pedwarn0): Delete.
5325         (warning, warning_at, pedwarn, permerror): Return bool.
5326         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
5327         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
5328         inform. Update all calls.
5329         (diagnose_mismatched_decls): Check return value of warning/pedwarn
5330         before giving informative note.
5331         (implicit_decl_warning): Likewise.
5332         * c-typeck.c (build_function_call): Likewise.
5333         * tree-sssa.c (warn_uninit): Likewise.
5334         * builtins.c (gimplify_va_arg_expr): Likewise.
5335
5336 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5337
5338         PR 7651
5339         * doc/invoke.texi (-Wextra): Move warning from here...
5340         (-Wuninitialized): ... to here.
5341
5342 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5343
5344         PR 28875
5345         * flags.h (set_Wunused): Delete
5346         * toplev.c (process_options): Handle Wunused flags here.
5347         * opts.c (maybe_warn_unused_parameter): Delete.
5348         (common_handle_option): Replace set_Wunused by warn_unused.
5349         (set_Wextra): Do not handle Wunused-parameter here.
5350         (set_Wunused): Delete.
5351         * c-opts.c (c_common_handle_option): Replace set_Wunused by
5352         warn_unused.
5353         * common.opt (Wunused): Add Var and Init.
5354         (Wunused-function): Likewise.
5355         (Wunused-label): Likewise.
5356         (Wunused-parameter): Likewise.
5357         (Wunused-value): Likewise.
5358         (Wunused-variable): Likewise.
5359
5360 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
5361
5362         * doc/invoke.texi: Add cpu_type power7.
5363         * config.in (HAVE_AS_VSX): New.
5364         * config.gcc: Add cpu_type power7.
5365         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
5366         VSX instructions.
5367         * configure: Regenerate.
5368         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
5369         power5.
5370         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
5371         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
5372         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
5373
5374 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
5375
5376         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
5377         type to vectorize.builtin_conversion.
5378         (vectorizable_conversion): Likewise.
5379         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
5380         integral type as input.
5381         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
5382         FIX_TRUNC_EXPR.
5383         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
5384         and ALTIVEC_BUILTIN_VCTSXS.
5385         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
5386         formatting.
5387
5388 2008-08-08  Richard Guenther  <rguenther@suse.de>
5389
5390         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
5391         (surely_varying_stmt_p): Calls are varying only if they are
5392         non-builtin and not indirect or have no result.
5393         (ccp_fold): Re-instantiate code before the tuples merge.
5394
5395 2008-08-08  Richard Guenther  <rguenther@suse.de>
5396
5397         PR tree-optimization/37056
5398         * gimple.h (gimple_assign_rhs_class): New helper function.
5399         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
5400         unary operations properly.
5401
5402 2008-08-07  Jan Hubicka  <jh@suse.cz>
5403
5404         * i386.h (ix86_size_cost): Declare.
5405         (ix86_cur_cost): New function macro.
5406         * i386.md (peepholes expanding size and splitters): Predicate by
5407         optimize_insn_for_speed_p.
5408         (peepholes reduce size and splitters): Predicate by
5409         optimize_insn_for_size_p.
5410         * i386.c (ix86_size_cost): Rename from ...
5411         (size_cost): This one.
5412         (override_options): Update.
5413         (decide_alg): Likewise.
5414         (ix86_expand_clear): Use RTL profile.
5415         (ix86_pad_returns): Use RTL profile.
5416
5417 2008-08-07  Jan Hubicka  <jh@suse.cz>
5418
5419         * recog.c (split_all_insns): Set RTL profile
5420         (peephole2_optimize): Likewise.
5421         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5422         * combine.c (combine_instructions): Likewise.
5423
5424 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5425
5426         * c-common.c (c_common_reswords): Also warn about keyword "bool".
5427
5428 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
5429
5430         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
5431         value in a6 after the set_frame_ptr insn.
5432
5433 2008-08-07  Richard Henderson  <rth@redhat.com>
5434
5435         PR debug/37033
5436         * gcc.c (cpp_options): Pass along -g*.
5437
5438 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
5439
5440         * config/arm/arm.c (output_move_neon): Update comment describing
5441         big-endian vector layout.
5442         (arm_assemble_integer): Do not handle big-endian NEON vectors
5443         specially.
5444         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
5445         neon_vget_lane<mode>_sext_internal,
5446         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
5447         element indices for big-endian.
5448
5449 2008-08-07  Richard Henderson  <rth@redhat.com>
5450
5451         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
5452         * configure, config.in: Rebuild.
5453         * debug.h (dwarf2out_do_cfi_asm): Declare.
5454         * c-cppbuiltin.c (c_cpp_builtins): Use it.
5455         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
5456         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
5457         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
5458
5459 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
5460
5461         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
5462         movv2si_internal): Combine into mov<mode>_internal.
5463         (movv2si_internal_2): Remove.
5464
5465 2008-08-07  Jan Hubicka  <jh@suse.cz>
5466
5467         PR target/37048
5468         * i386.md (single stringop patterns): Enable unconditionally.
5469
5470 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
5471
5472         PR target/36992
5473         * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
5474
5475         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
5476         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
5477
5478         * config/i386/sse.md (sse2_movq128): New.
5479
5480         * doc/extend.texi: Document __builtin_ia32_movq128.
5481
5482 2008-08-07  Richard Guenther  <rguenther@suse.de>
5483
5484         PR middle-end/37042
5485         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
5486         pointers can access anything.
5487
5488 2008-08-06  Jan Hubicka  <jh@suse.cz>
5489
5490         * optabs.c (emit_unop_insn): Break out to ...
5491         (maybe_emit_unop_insn): ... this one.
5492         (expand_sfix_optab): Use maybe variant.
5493         * optabs.h (maybe_emit_unop_insn): Declare.
5494
5495         * i386.md (mov0 patterns): Enable by default.
5496         (FP conversion expanders): Disable expansion of code expanding
5497         sequences when instruction should be optimized for size.
5498         (single strinop patterns): Enable when optimizing for size.
5499         (string expanders): Disable expanding of code expanding sequences
5500         when optimizning instruction for size.
5501         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
5502         per BB basis.
5503         (ix86_fp_comparison_sahf_cost): Likewise.
5504         (ix86_expand_branch): Likewise.
5505         (ix86_expand_ashl_const): Likewise.
5506         (ix86_split_ashl): Likewise.
5507         (ix86_expand_strlen): Likewise.
5508         (ix86_emit_fp_unordered_jump): Likewie.
5509
5510 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5511
5512         * c-common.c: Fix typo.
5513         (c_common_reswords): Activate more C++ keyword warnings.
5514
5515         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
5516
5517 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5518
5519         PR 26785
5520         * diagnostic.c (permerror_at): New.
5521         * toplev.h (permerror_at): Declare.
5522
5523 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
5524             Ira Rosen  <irar@il.ibm.com>
5525
5526         * tree-vect-transform.c (vect_model_simple_cost): Return
5527         immediately if stmt is pure SLP.
5528         (vect_model_store_cost): Ditto.
5529         (vect_model_load_cost): Ditto.
5530         (vectorizable_store): Remove PURE_SLP check before call
5531         to vect_model_store_cost.
5532         (vect_model_store_cost): When checking whether stmt describe
5533         strided access, add a check that it is not slp_node.
5534
5535 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5536
5537         PR 8715
5538         * c-common.c (warn_for_sign_compare): New. Handle separately the
5539         case that 'constant' is zero.
5540         * c-typeck.c (build_binary_op): Move code to c-common.c
5541
5542 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5543
5544         * config/alpha/alpha.c (alpha_preferred_reload_class,
5545         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
5546         alpha_output_mi_thunk_osf): Avoid C++ keywords.
5547         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
5548         * config/arm/arm.md: Likewise.
5549         * config/avr/avr-protos.h (preferred_reload_class,
5550         test_hard_reg_class, avr_simplify_comparison_p,
5551         out_shift_with_cnt, class_max_nregs): Likewise.
5552         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
5553         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
5554         preferred_reload_class, test_hard_reg_class): Likewise.
5555         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
5556         bfin_memory_move_cost, bfin_secondary_reload,
5557         bfin_output_mi_thunk): Likewise.
5558         * config/crx/crx.c (crx_secondary_reload_class,
5559         crx_memory_move_cost): Likewise.
5560         * config/frv/frv-protos.h (frv_secondary_reload_class,
5561         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
5562         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
5563         frv_secondary_reload_class, frv_class_likely_spilled_p,
5564         frv_class_max_nregs): Likewise.
5565         * config/h8300/h8300.c (h8300_classify_operand,
5566         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
5567         Likewise.
5568         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
5569         * config/ia64/ia64.c (ia64_preferred_reload_class,
5570         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
5571         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
5572         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
5573         Likewise.
5574         * config/m68hc11/m68hc11.c (preferred_reload_class,
5575         m68hc11_memory_move_cost): Likewise.
5576         * config/mcore/mcore.c (mcore_secondary_reload_class,
5577         mcore_reload_class): Likewise.
5578         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
5579         mips_class_max_nregs, mips_cannot_change_mode_class,
5580         mips_preferred_reload_class, mips_secondary_reload_class,
5581         mips_output_mi_thunk): Likewise.
5582         * config/mmix/mmix.c (mmix_preferred_reload_class,
5583         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
5584         Likewise.
5585         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
5586         Likewise.
5587         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
5588         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
5589         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5590         * config/rs6000/rs6000.c (paired_expand_vector_init,
5591         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
5592         compare_section_name, rs6000_memory_move_cost): Likewise.
5593         * config/s390/s390.c (s390_emit_compare_and_swap,
5594         s390_preferred_reload_class, s390_secondary_reload,
5595         legitimize_pic_address, legitimize_tls_address,
5596         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
5597         s390_class_max_nregs): Likewise.
5598         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5599         * config/s390/s390.md: Likewise.
5600         * config/score/score-protos.h (score_secondary_reload_class,
5601         score_preferred_reload_class): Likewise.
5602         * config/score/score.c (score_preferred_reload_class,
5603         score_secondary_reload_class): Likewise.
5604         * config/score/score3.c (score3_output_mi_thunk,
5605         score3_preferred_reload_class, score3_secondary_reload_class,
5606         score3_hard_regno_mode_ok): Likewise.
5607         * config/score/score3.h (score3_preferred_reload_class,
5608         score3_secondary_reload_class): Likewise.
5609         * config/score/score7.c (score7_output_mi_thunk,
5610         score7_preferred_reload_class, score7_secondary_reload_class,
5611         score7_hard_regno_mode_ok): Likewise.
5612         * config/score/score7.h (score7_preferred_reload_class,
5613         score7_secondary_reload_class): Likewise.
5614         * config/sh/sh.c (prepare_move_operands, output_far_jump,
5615         output_branchy_insn, add_constant, gen_block_redirect,
5616         sh_insn_length_adjustment, sh_cannot_change_mode_class,
5617         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
5618         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5619         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
5620         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
5621         xstormy16_preferred_reload_class): Likewise.
5622         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
5623         xtensa_expand_atomic, override_options,
5624         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
5625         Likewise.
5626         * reorg.c (try_merge_delay_insns): Likewise.
5627         * tree.c (merge_dllimport_decl_attributes): Likewise.
5628
5629         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
5630
5631 2008-08-06  Michael Matz  <matz@suse.de>
5632
5633         * Makefile.in (write_entries_to_file): Quote words.
5634         * gengtype.c: (read_input_line): Skip over leading white-space.
5635
5636 2008-08-06  Marc Gauthier  <marc@tensilica.com>
5637
5638         * config.gcc: Match more processor names for Xtensa.
5639         * configure.ac: Likewise.
5640         * doc/install.texi (Specific): Likewise.
5641         * configure: Regenerate.
5642
5643 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5644
5645         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
5646         * calls.c (avoid_likely_spilled_reg): Likewise.
5647         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
5648         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
5649         * config/i386/i386.c (ix86_expand_special_args_builtin,
5650         ix86_secondary_reload): Likewise.
5651         * except.c (struct eh_region, gen_eh_region_catch,
5652         remove_unreachable_regions, duplicate_eh_regions,
5653         assign_filter_values, build_post_landing_pads,
5654         sjlj_find_directly_reachable_regions, remove_eh_handler,
5655         reachable_next_level, foreach_reachable_handler,
5656         can_throw_internal_1, can_throw_external_1,
5657         collect_one_action_chain): Likewise.
5658         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
5659         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
5660         * function.c (update_temp_slot_address, instantiate_new_reg,
5661         instantiate_virtual_regs_in_rtx,
5662         instantiate_virtual_regs_in_insn): Likewise.
5663         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
5664         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
5665         gimplify_cleanup_point_expr): Likewise.
5666         * ipa-cp.c (ipcp_lattice_changed): Likewise.
5667         * passes.c (next_pass_1): Likewise.
5668         * print-tree.c (print_node_brief, print_node): Likewise.
5669         * profile.c (branch_prob): Likewise.
5670         * tree-dump.c (dump_register): Likewise.
5671         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
5672         Likewise.
5673         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
5674         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
5675         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
5676         copy_arguments_for_versioning, copy_static_chain): Likewise.
5677         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
5678         add_new_name_mapping, register_new_name_mapping): Likewise.
5679         * tree-mudflap.c (mf_xform_derefs): Likewise.
5680         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
5681         get_init_expr, combine_chains): Likewise.
5682         * tree-pretty-print.c (dump_generic_node): Likewise.
5683         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
5684         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
5685         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
5686         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
5687
5688 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5689
5690         PR middle-end/37010
5691         * calls.c (expand_call): Use the biggest preferred stack
5692         boundary.
5693
5694 2008-08-06  Michael Matz  <matz@suse.de>
5695
5696         PR target/36613
5697         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
5698         for reused reload, instead of overwriting them.
5699
5700 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5701
5702         PR middle-end/37009
5703         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
5704         for incoming stack boundary.
5705
5706         * function.c (assign_parm_find_entry_rtl): Update
5707         parm_stack_boundary.
5708
5709         * function.h (rtl_data): Add parm_stack_boundary.
5710
5711         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
5712         parm_stack_boundary for incoming stack boundary.
5713
5714 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
5715
5716         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
5717         for unrepresentable subregs or treat them as equal to other regs
5718         or subregs with the same register number.
5719
5720 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
5721
5722         PR middle-end/35432
5723         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
5724         if want_value.
5725
5726 2008-08-06  Jan Hubicka  <jh@suse.cz>
5727
5728         * predict.c (maybe_hot_frequency_p): When profile is absent, all
5729         frequencies might be hot.
5730
5731 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
5732
5733         * reload.c (find_reloads): Force constants into literal pool
5734         also if they are wrapped in a SUBREG.
5735
5736 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5737
5738         PR target/35659
5739         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
5740         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
5741         Don't allow predicated instructions for data speculation.
5742         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
5743         declaration.
5744
5745 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5746
5747         * haifa-sched.c (extend_global): Split to extend_global_data and
5748         extend_region_data.  Update all uses.
5749         (extend_all): Rename to extend_block_data.
5750
5751 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5752
5753         * sched-rgn.c (new_ready): Check if instruction can be
5754         speculatively scheduled before attempting speculation.
5755         (debug_rgn_dependencies): Remove wrongful assert.
5756
5757 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
5758
5759         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
5760
5761 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
5762
5763         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
5764         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
5765         va_size, and type_size.
5766
5767 2008-08-04  Jason Merrill  <jason@redhat.com>
5768
5769         PR c++/37016
5770         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
5771         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
5772
5773 2008-08-05  Richard Henderson  <rth@redhat.com>
5774
5775         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
5776         * configure: Rebuild.
5777
5778 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5779
5780         PR tree-opt/37024
5781         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
5782         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
5783         is a conversion.
5784
5785 2008-08-05  Richard Henderson  <rth@redhat.com>
5786
5787         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
5788         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
5789         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
5790         * common.opt (fdwarf2-cfi-asm): New.
5791         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
5792         * config.in, configure: Rebuild.
5793         * dwarf2asm.c (dw2_asm_output_data_raw): New.
5794         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
5795         (dw2_force_const_mem): Externalize.
5796         * dwarf2asm.h: Update.
5797         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
5798         generate a real label.
5799         (output_cfi_directive): New.
5800         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
5801         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
5802         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
5803         and .cfi_lsda.
5804         (dwarf2out_end_epilogue): Emit .cfi_endproc.
5805         (output_loc_operands_raw, output_loc_sequence_raw): New.
5806         (output_cfa_loc_raw): New.
5807
5808 2008-08-05  Paul Brook  <paul@codesourcery.com>
5809
5810         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
5811         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
5812         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
5813         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
5814         * config/arm/arm.h (TARGET_VFPD32): Define.
5815         (TARGET_VFP3): Use TARGET_VFPD32.
5816         (fputype): Add FPUTYPE_VFP3D16.
5817         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
5818         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
5819         * config/arm/arm-cores.def: Add cortex-r4f.
5820         * config/arm/arm-tune.md: Regenerate.
5821
5822 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5823
5824         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
5825         Reword some comments throughout the file.
5826
5827         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
5828         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
5829         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
5830         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
5831
5832         (MFC_START_ENABLE): Remove PPU-only define.
5833         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
5834         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
5835
5836         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
5837         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
5838         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
5839         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
5840         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
5841         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
5842         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
5843
5844         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
5845         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
5846         (mfc_sdcrt, mfc_sdcrtst): Likewise.
5847         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
5848
5849         (spu_read_machine_status): Fix typo.
5850
5851 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5852
5853         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
5854         SUBREG of multi-word hard register.
5855         * config/spu/spu.c (valid_subreg): Likewise.
5856         (adjust_operand): Handle SUBREGs of multi-word hard registers.
5857
5858 2008-08-04  Richard Guenther  <rguenther@suse.de>
5859
5860         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
5861         the candidate with the stripped base if that base is different
5862         from the original base even for offset zero.
5863
5864 2008-08-04  Richard Guenther  <rguenther@suse.de>
5865
5866         PR middle-end/36691
5867         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
5868         check for no_overflow.
5869
5870 2008-08-04  Richard Guenther  <rguenther@suse.de>
5871
5872         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
5873
5874 2008-08-04  Paul Brook  <paul@codesourcery.com>
5875
5876         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
5877         (arm_order_regs_for_local_alloc): New function.
5878         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
5879         prototype.
5880         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
5881
5882 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
5883
5884         PR target/37012
5885         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
5886         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
5887         (ix86_expand_epilogue): Likewise.
5888
5889 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
5890
5891         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
5892         in comments.
5893
5894 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
5895
5896         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
5897         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
5898         (*movv2sf_internal_rex64): Ditto.
5899
5900 2008-08-03  Jan Hubicka  <jh@suse.cz>
5901
5902         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
5903         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
5904         * expmed.c (expand_smod_pow2): Likewise.
5905
5906 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
5907
5908         PR target/36992
5909         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
5910         alternative 0 of operand 1.
5911         (*vec_concatv2di_rex64_sse): Ditto.
5912         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
5913         of operand 1.
5914         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
5915         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
5916         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
5917         (*movv2sf_internal_rex64): Ditto.
5918
5919 2008-08-02  Richard Guenther  <rguenther@suse.de>
5920
5921         PR target/35252
5922         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
5923         (ssedoublesizemode): New mode attribute.
5924         (sse_shufps): Call gen_sse_shufps_v4sf.
5925         (sse_shufps_1): Macroize.
5926         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
5927         (sse2_shufpd_1): Macroize.
5928         (vec_extract_odd, vec_extract_even): New expanders.
5929         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
5930         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
5931         * i386.c (ix86_expand_vector_init_one_nonzero): Call
5932         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
5933         (ix86_expand_vector_set): Likewise.
5934         (ix86_expand_reduc_v4sf): Likewise.
5935
5936 2008-08-01  Doug Kwan  <dougkwan@google.com>
5937
5938         * matrix-reorg.c: Re-enable all code.
5939         (struct malloc_call_data): Change CALL_STMT to gimple type.
5940         (collect_data_for_malloc_call): Tuplify.
5941         (struct access_site_info): Change STMT to gimple type.
5942         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
5943         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
5944         (struct free_info): Change STMT to gimple type.
5945         (struct matrix_access_phi_node):  Change PHI to gimple type.
5946         (get_inner_of_cast_expr): Remove.
5947         (may_flatten_matrices_1): Tuplify.
5948         (may_flatten_matrices): Ditto.
5949         (mark_min_matrix_escape_level): Ditto.
5950         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
5951         (ssa_accessed_in_call_rhs): New
5952         (ssa_accessed_in_assign_rhs): New
5953         (record_access_alloc_site_info): Tuplify.
5954         (add_allocation_site): Ditto.
5955         (analyze_matrix_allocation_site): Ditto.
5956         (analyze_transpose): Ditto.
5957         (get_index_from_offset): Ditto.
5958         (update_type_size): Ditto.
5959         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
5960         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
5961         (analyze_accesses_for_phi_node): Tuplify.
5962         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
5963         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
5964         (analyze_matrix_accesses): Tuplify.
5965         (check_var_data): New call-back type for check_var_notmodified_p.
5966         (check_var_notmodified_p): Tuplify and use call-back struct to
5967         return statement found.
5968         (can_calculate_expr_before_stmt): Factor out statement related code
5969         into ...
5970         (can_calculate_stmt_before_stmt): New.
5971         (check_allocation_function): Tuplify.
5972         (find_sites_in_func): Ditto.
5973         (record_all_accesses_in_func): Ditto.
5974         (transform_access_sites): Ditto.
5975         (transform_allocation_sites): Ditto.
5976         (matrix_reorg): Re-enable.
5977         (gate_matrix_reorg): Re-enable.
5978
5979 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
5980
5981         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
5982         for labels for which it hasn't been set yet.  If it has been set,
5983         stop walking insns and continue with next worklist item.
5984         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
5985         if the only BARRIER is at the very end of a function.
5986
5987 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5988
5989         * cfgexpand.c (expand_stack_alignment): Assert that
5990         stack_realign_drap and drap_rtx must match.
5991
5992         * function.c (instantiate_new_reg): If DRAP is used to realign
5993         stack, replace virtual_incoming_args_rtx with internal arg
5994         pointer.
5995
5996 2008-08-01  Richard Guenther  <rguenther@suse.de>
5997
5998         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
5999         loop information only if we initialized it.
6000         (execute_pre): Call fini_pre with in_fre.
6001         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
6002         if we do not unroll because we hit max-completely-peeled-insns.
6003         Use our estimation for consistency, do allow shrinking.
6004
6005 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6006
6007         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
6008         with MIN_STACK_BOUNDARY.
6009         (ix86_update_stack_boundary): Likewise.
6010         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
6011         STACK_BOUNDARY.
6012
6013         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
6014         (MIN_STACK_BOUNDARY): This.
6015
6016 2008-08-01  Richard Guenther  <rguenther@suse.de>
6017
6018         PR middle-end/36997
6019         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
6020
6021 2008-08-01  Richard Guenther  <rguenther@suse.de>
6022
6023         PR tree-optimization/36988
6024         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
6025         do not matter if that doesn't change volatile qualification.
6026
6027 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
6028
6029         * configure.ac: Do not generate libada-mk.  Do not subst
6030         host_cc_for_libada.
6031         * libada-mk.in: Remove.
6032         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
6033         * configure: Regenerate.
6034
6035 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
6036
6037         * tree-pass.h: Added comment about not dumping passes with name
6038         starting with star in struct opt_pass.
6039         * passes.c (register_dump_files_1): Don't do dump for a pass with
6040         name starting with star.
6041         * doc/passes.texi (Pass manager): Mention pass names and special
6042         meaning of star prefix to avoid dump.
6043
6044 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
6045
6046         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
6047         to MIPS64r2.
6048         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
6049         (ISA_MIPS64R2): New macro.
6050         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
6051         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
6052         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
6053         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
6054         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
6055         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
6056         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
6057         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
6058         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
6059         Move up to keep list alphabetically sorted.
6060         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
6061         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
6062         processor.
6063         * doc/invoke.texi (MIPS Options): Add -mips64r2.
6064         (-march=@var{arch}): Add mips64r2.
6065
6066 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6067
6068         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
6069
6070 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
6071
6072         * expr.c (expand_assignment): Check for complete type.
6073
6074 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6075
6076         PR debug/36977
6077         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
6078
6079         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
6080         for stack alignment.
6081
6082         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
6083
6084 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6085
6086         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
6087         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
6088
6089 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
6090
6091         PR rtl-optimization/36419
6092         * dwarf2out.c (barrier_args_size): New variable.
6093         (compute_barrier_args_size, compute_barrier_args_size_1): New
6094         functions.
6095         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
6096         if not called yet in the current function, use barrier_args_size
6097         array to find the new args_size value.
6098         (dwarf2out_frame_debug): Free and clear barrier_args_size.
6099
6100 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6101
6102         PR debug/36980
6103         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
6104         rule 19.
6105
6106 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6107
6108         PR debug/36976
6109         * dwarf2out.c (dwarf2out_args_size_adjust): New.
6110         (dwarf2out_stack_adjust): Use it.
6111         (dwarf2out_frame_debug_expr): Likewise.
6112
6113 2008-07-31  Richard Guenther  <rguenther@suse.de>
6114
6115         PR tree-optimization/36978
6116         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
6117         the generated condition.
6118
6119 2008-07-31  Richard Guenther  <rguenther@suse.de>
6120
6121         * passes.c (init_optimization_passes): Always call
6122         pass_early_warn_uninitialized.
6123         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
6124         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
6125         * doc/passes.texi (Warn for uninitialized variables): Adjust.
6126
6127 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
6128
6129         PR c/36970
6130         * builtins.c (maybe_emit_free_warning): New function.
6131         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
6132         maybe_emit_free_warning for BUILT_IN_FREE.
6133
6134         PR debug/36278
6135         * dwarf2out.c (get_context_die): New function.
6136         (force_decl_die, force_type_die): Use it.
6137         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
6138         returns NULL, force generation of DW_TAG_typedef and put that into
6139         DW_AT_import.
6140
6141         PR preprocessor/36649
6142         * c-pch.c (c_common_read_pch): Save and restore
6143         line_table->trace_includes across PCH restore.
6144
6145 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
6146
6147         PR ada/36554
6148         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
6149
6150 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
6151
6152         PR 36974
6153         * final.c (call_from_call_insn): Handle COND_EXEC.
6154
6155 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
6156
6157         * builtins.c (std_gimplify_va_arg_expr): Replace
6158         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
6159         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6160
6161 2008-07-30  Joey Ye  <joey.ye@intel.com>
6162             H.J. Lu  <hongjiu.lu@intel.com>
6163
6164         * builtins.c (expand_builtin_setjmp_receiver): Replace
6165         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
6166         (expand_builtin_apply_args_1): Likewise.
6167         (expand_builtin_longjmp): Need DRAP for stack alignment.
6168         (expand_builtin_apply): Likewise.
6169
6170         * caller-save.c (setup_save_areas): Call assign_stack_local_1
6171         instead of assign_stack_local to allow alignment reduction.
6172
6173         * calls.c (emit_call_1): Need DRAP for stack alignment if
6174         return pops.
6175         (expand_call): Replace virtual_incoming_args_rtx with
6176         crtl->args.internal_arg_pointer.
6177         * stmt.c (expand_nl_goto_receiver): Likewise.
6178
6179         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
6180         alignment and store to stack_alignment_estimated and
6181         max_used_stack_slot_alignment.
6182         (expand_one_var): Likewise.
6183         (expand_stack_alignment): New function.
6184         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
6185         and stack_alignment_estimated fields in rtl_data.  Call
6186         expand_stack_alignment at end.
6187
6188         * defaults.h (INCOMING_STACK_BOUNDARY): New.
6189         (MAX_STACK_ALIGNMENT): Likewise.
6190         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
6191         (SUPPORTS_STACK_ALIGNMENT): Likewise.
6192
6193         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
6194         stack alignment when generating virtual registers.
6195
6196         * function.c (assign_stack_local): Renamed to ...
6197         (assign_stack_local_1): This.  Add a parameter to indicate
6198         if it is OK to reduce alignment.
6199         (assign_stack_local): Use it.
6200         (instantiate_new_reg): Instantiate virtual incoming args rtx
6201         to vDRAP if stack realignment and DRAP is needed.
6202         (assign_parms): Collect parameter/return type alignment and
6203         contribute to stack_alignment_estimated.
6204         (locate_and_pad_parm): Likewise.
6205         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
6206         with crtl->args.internal_arg_pointer.
6207
6208         * function.h (rtl_data): Add new field drap_reg,
6209         max_used_stack_slot_alignment, stack_alignment_estimated,
6210         stack_realign_needed, need_drap, stack_realign_processed and
6211         stack_realign_finalized.
6212         (stack_realign_fp): New macro.
6213         (stack_realign_drap): Likewise.
6214
6215         * global.c (compute_regsets): Frame pointer is needed when
6216         stack is realigned.  Can eliminate frame pointer when stack is
6217         realigned and dynamic realigned argument pointer isn't used.
6218
6219         * reload1.c (update_eliminables):  Frame pointer is needed
6220         when stack is realigned.
6221         (init_elim_table): Can eliminate frame pointer when stack is
6222         realigned and dynamic realigned argument pointer isn't used.
6223
6224         * rtl.h (assign_stack_local_1): Declare new funtion.
6225
6226         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
6227         (TARGET_GET_DRAP_RTX): Likewise.
6228         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
6229         TARGET_GET_DRAP_RTX.
6230
6231         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
6232
6233         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
6234         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
6235
6236 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
6237             H.J. Lu  <hongjiu.lu@intel.com>
6238
6239         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
6240         vdrap_reg, stack_realign and drap_reg_saved.
6241         (add_cfi): Don't allow redefining CFA when DRAP is used.
6242         (reg_save): Handle stack alignment.
6243         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
6244         alignment.  Don't generate DWARF information for (set fp sp)
6245         when DRAP is used.
6246         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
6247         to INVALID_REGNUM.
6248         (int_loc_descriptor): Move prototype forward.  Also define if
6249         DWARF2_UNWIND_INFO is true.
6250         (output_cfa_loc): Handle DW_CFA_expression.
6251         (build_cfa_aligned_loc): New.
6252         (based_loc_descr): Update assert for stack realign.  For local
6253         variables, use sp+offset when stack is aligned without drap and
6254         fp+offset when stack is aligned with drap.  For arguments, use
6255         cfa+offset when drap is used to align stack.
6256
6257 2008-07-30  Joey Ye  <joey.ye@intel.com>
6258             H.J. Lu  <hongjiu.lu@intel.com>
6259
6260         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
6261         Break long line.
6262         (ix86_gen_andsp): New.
6263         (ix86_user_incoming_stack_boundary): Likewise.
6264         (ix86_default_incoming_stack_boundary): Likewise.
6265         (ix86_incoming_stack_boundary): Likewise.
6266         (ix86_can_eliminate): Likewise.
6267         (find_drap_reg): Likewise.
6268         (ix86_update_stack_boundary): Likewise.
6269         (ix86_get_drap_rtx): Likewise.
6270         (ix86_finalize_stack_realign_flags): Likewise.
6271         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
6272         (TARGET_GET_DRAP_RTX): Likewise.
6273         (override_options): Overide option value for new options.
6274         (ix86_function_ok_for_sibcall): Remove check for
6275         force_align_arg_pointer.
6276         (ix86_handle_cconv_attribute): Likewise.
6277         (ix86_function_regparm): Likewise.
6278         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
6279         (ix86_va_start): Replace virtual_incoming_args_rtx with
6280         crtl->args.internal_arg_pointer.
6281         (ix86_select_alt_pic_regnum): Check DRAP register.
6282         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
6283         (ix86_compute_frame_layout): Compute frame layout wrt stack
6284         realignment.
6285         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
6286         (ix86_expand_prologue): Decide if stack realignment is needed
6287         and generate prologue code accordingly.
6288         (ix86_expand_epilogue): Generate epilogue code wrt stack
6289         realignment is really needed or not.
6290
6291         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
6292         (ABI_STACK_BOUNDARY): Likewise.
6293         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
6294         (STACK_REALIGN_DEFAULT): Likewise.
6295         (INCOMING_STACK_BOUNDARY): Likewise.
6296         (MAX_STACK_ALIGNMENT): Likewise.
6297         (ix86_incoming_stack_boundary): Likewise.
6298         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
6299         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
6300         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
6301         (machine_function): Remove force_align_arg_pointer.
6302
6303         * config/i386/i386.md (BX_REG): New.
6304         (R13_REG): Likewise.
6305
6306         * config/i386/i386.opt (mforce_drap): New.
6307         (mincoming-stack-boundary): Likewise.
6308         (mstackrealign): Add Init(-1).
6309
6310         * config/i386/i386-protos.h (ix86_can_eliminate): New
6311
6312 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
6313
6314         * doc/extend.texi: Update force_align_arg_pointer.
6315
6316         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
6317         -mstackrealign.
6318
6319         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
6320         (INCOMING_STACK_BOUNDARY): Likewise.
6321         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
6322         (TARGET_GET_DRAP_RTX): Likewise.
6323
6324 2008-07-30  Andreas Schwab  <schwab@suse.de>
6325
6326         PR rtl-optimization/36929
6327         * dse.c (replace_inc_dec): Use emit_insn_before instead of
6328         add_insn_before and fix argument order.
6329         (replace_inc_dec_mem): Handle NULL rtx.
6330
6331 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
6332
6333         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
6334         function.
6335         (arm_compute_initial_elimination_offset): Use it.
6336         (arm_compute_save_reg_mask): Include static chain save slot when
6337         calculating alignment.
6338         (arm_get_frame_offsets): Ditto.
6339         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
6340         that we can use to decrement the stack when the stack decrement
6341         could be too big for an immediate value in a single insn.
6342         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
6343
6344 2008-07-30  Richard Guenther  <rguenther@suse.de>
6345
6346         PR tree-optimization/36967
6347         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
6348         Release defs of statements we remove.
6349
6350 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
6351
6352         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
6353         instead of NULL_RTVEC.
6354
6355 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
6356
6357         PR target/35866
6358
6359         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
6360         vector modes.
6361
6362 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
6363
6364         * final.c (call_from_call_insn): New.
6365         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
6366
6367 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
6368
6369         * configure.ac: Substitute ADA_CFLAGS.
6370         * configure: Regenerate.
6371         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
6372         * Makefile.in: Remove mention of X_* variables.
6373         * config/pa/x-ada-hpux10: Remove.
6374         * config/pa/x-ada: Remove.
6375
6376         * doc/fragments.texi: Update.
6377
6378 2008-07-30  Olivier Hainque  <hainque@adacore.com>
6379
6380         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
6381         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
6382         __dso_handle explicitly here.
6383
6384 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6385
6386         PR 34389
6387         * c-typeck.c (build_binary_op): Encapsulate code into...
6388         * c-common.c (shorten_binary_op): ...this new function.
6389         (conversion_warning): Use the new function. Handle non-negative
6390         constant in bitwise-and.
6391         * c-common.h (shorten_binary_op): Declare.
6392
6393 2008-07-30  Olivier Hainque  <hainque@adacore.com>
6394
6395         * scan.c (make_sstring_space): Add explicit conversions of
6396         allocator's return value.
6397         * fix-header.c (recognized_function): Likewise.
6398
6399 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6400
6401         * doc/cpp.texi: Update to GFDL 1.2.
6402         * doc/gcc.texi: Do not list GPL as Invariant Section.
6403         * doc/gccint.texi: Likewise.  Update copyright years.
6404         * doc/install.texi: Update copyright years.
6405
6406 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
6407
6408         PR target/36955
6409         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
6410         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
6411
6412 2008-07-29  Jan Hubicka  <jh@suse.cz>
6413
6414         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
6415         (grokdeclarator): Likewise.
6416         * langhooks.c (lhd_warn_unused_global_decl): Use
6417         DECL_DECLARED_INLINE_P.
6418         * print-tree.c (print_node): Remove DECL_INLINE check.
6419
6420 2008-07-29  Richard Guenther  <rguenther@suse.de>
6421
6422         PR tree-optimization/36945
6423         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
6424         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
6425         Record invariant addresses un-decomposed.
6426         (copy_reference_ops_from_call): Record reference call
6427         arguments properly.  Simplify.
6428         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
6429         helper split out from ...
6430         (create_component_ref_by_pieces): ... here.  Simplify.
6431         Prepare for recursive invocation for call arguments.
6432         (create_expression_by_pieces): Adjust call to
6433         create_component_ref_by_pieces.
6434         (compute_avail): Process operand 2 of reference ops.
6435
6436 2008-07-29  Richard Guenther  <rguenther@suse.de>
6437
6438         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
6439
6440 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
6441
6442         * c-format.c (check_format_types): Revert unwanted checkin.
6443
6444 2008-07-29  Jan Hubicka  <jh@suse.cz>
6445
6446         * flags.h (flag_really_no_inline): Remove.
6447         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
6448         * toplev.c (flag_really_no_inline): Remove.
6449         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
6450         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
6451         (cgraph_decide_inlining_incrementally): Likewise.
6452         (compute_inline_parameters): Likewise.
6453         * opts.c (decode_options): Simplify.
6454         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
6455         * common.opt (finline): Initialize to 1.
6456         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
6457
6458 2008-07-29  Jan Hubicka  <jh@suse.cz>
6459
6460         * predict.c (always_optimize_for_size_p): New function.
6461         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
6462         optimize_edge_for_size_p, optimize_edge_for_speed_p,
6463         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
6464         functions.
6465         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
6466         * function.c (prepare_function_start): Set default profile.
6467         * function.h (rtl_data): Add maybe_hot_insn_p.
6468         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
6469         (construct_exit_block): Likewise.
6470         (tree_expand_cfg): Likewise.
6471         * basic-block.h
6472         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
6473         optimize_edge_for_size_p, optimize_edge_for_speed_p,
6474         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
6475         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
6476         Declare.
6477
6478 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6479
6480         PR 34985
6481         * c-decl.c (merge_decls): Merge USED flags.
6482
6483 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6484
6485         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
6486         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
6487         next_stack, lab_false and lab_over trees.
6488
6489 2008-07-28  Richard Guenther  <rguenther@suse.de>
6490
6491         PR tree-optimization/36957
6492         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
6493         (useless_type_conversion_p): Remove.
6494         (types_compatible_p): Remove.
6495         * gimple.h (tree_ssa_useless_type_conversion): Declare.
6496         (useless_type_conversion_p): Declare.
6497         (types_compatible_p): Declare.
6498         (gimple_expr_type): Return the base type only if it is
6499         trivially convertible to the subtype.
6500
6501 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
6502
6503         * configure.ac: Use the m4_do macro to concatenate the warnings into
6504         one string in ACX_PROG_CC_WARNING_OPTS,
6505         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
6506         * configure: Regenerate.
6507
6508 2008-07-28  Richard Guenther  <rguenther@suse.de>
6509
6510         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
6511         (insert_fake_stores): Remove.
6512         (realify_fake_stores): Likewise.
6513         (execute_pre): Remove dead code.
6514         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
6515         (find_func_aliases): Deal with it here instead.
6516         Re-enable gcc_unreachable call.
6517
6518 2008-07-28  Richard Guenther  <rguenther@suse.de>
6519
6520         Merge from gimple-tuples-branch.
6521
6522         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
6523         * gimple.def: New file.
6524         * gsstruct.def: Likewise.
6525         * gimple-iterator.c: Likewise.
6526         * gimple-pretty-print.c: Likewise.
6527         * tree-gimple.c: Removed.  Merged into ...
6528         * gimple.c: ... here.  New file.
6529         * tree-gimple.h: Removed.  Merged into ...
6530         * gimple.h: ... here.  New file.
6531
6532         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
6533         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
6534         --enable-checking=gimple flag.
6535         * config.in: Likewise.
6536         * configure: Regenerated.
6537
6538         * tree-ssa-operands.h: Tuplified.
6539         * tree-vrp.c: Likewise.
6540         * tree-loop-linear.c: Likewise.
6541         * tree-into-ssa.c: Likewise.
6542         * tree-ssa-loop-im.c: Likewise.
6543         * tree-dump.c: Likewise.
6544         * tree-complex.c: Likewise.
6545         * cgraphbuild.c: Likewise.
6546         * tree-ssa-threadupdate.c: Likewise.
6547         * tree-ssa-loop-niter.c: Likewise.
6548         * tree-pretty-print.c: Likewise.
6549         * tracer.c: Likewise.
6550         * gengtype.c: Likewise.
6551         * tree-loop-distribution.c: Likewise.
6552         * tree-ssa-loop-unswitch.c: Likewise.
6553         * cgraph.c: Likewise.
6554         * cgraph.h: Likewise.
6555         * tree-ssa-loop-manip.c: Likewise.
6556         * value-prof.c: Likewise.
6557         * tree-ssa-loop-ch.c: Likewise.
6558         * tree-tailcall.c: Likewise.
6559         * value-prof.h: Likewise.
6560         * tree.c: Likewise.
6561         * tree.h: Likewise.
6562         * tree-pass.h: Likewise.
6563         * ipa-cp.c: Likewise.
6564         * tree-scalar-evolution.c: Likewise.
6565         * tree-scalar-evolution.h: Likewise.
6566         * target.h: Likewise.
6567         * lambda-mat.c: Likewise.
6568         * tree-phinodes.c: Likewise.
6569         * diagnostic.h: Likewise.
6570         * builtins.c: Likewise.
6571         * tree-ssa-alias-warnings.c: Likewise.
6572         * cfghooks.c: Likewise.
6573         * fold-const.c: Likewise.
6574         * cfghooks.h: Likewise.
6575         * omp-low.c: Likewise.
6576         * tree-ssa-dse.c: Likewise.
6577         * ipa-reference.c: Likewise.
6578         * tree-ssa-uncprop.c: Likewise.
6579         * toplev.c: Likewise.
6580         * tree-gimple.c: Likewise.
6581         * tree-gimple.h: Likewise.
6582         * tree-chrec.c: Likewise.
6583         * tree-chrec.h: Likewise.
6584         * tree-ssa-sccvn.c: Likewise.
6585         * tree-ssa-sccvn.h: Likewise.
6586         * cgraphunit.c: Likewise.
6587         * tree-ssa-copyrename.c: Likewise.
6588         * tree-ssa-ccp.c: Likewise.
6589         * tree-ssa-loop-ivopts.c: Likewise.
6590         * tree-nomudflap.c: Likewise.
6591         * tree-call-cdce.c: Likewise.
6592         * ipa-pure-const.c: Likewise.
6593         * c-format.c: Likewise.
6594         * tree-stdarg.c: Likewise.
6595         * tree-ssa-math-opts.c: Likewise.
6596         * tree-ssa-dom.c: Likewise.
6597         * tree-nrv.c: Likewise.
6598         * tree-ssa-propagate.c: Likewise.
6599         * ipa-utils.c: Likewise.
6600         * tree-ssa-propagate.h: Likewise.
6601         * tree-ssa-alias.c: Likewise.
6602         * gimple-low.c: Likewise.
6603         * tree-ssa-sink.c: Likewise.
6604         * ipa-inline.c: Likewise.
6605         * c-semantics.c: Likewise.
6606         * dwarf2out.c: Likewise.
6607         * expr.c: Likewise.
6608         * tree-ssa-loop-ivcanon.c: Likewise.
6609         * predict.c: Likewise.
6610         * tree-ssa-loop.c: Likewise.
6611         * tree-parloops.c: Likewise.
6612         * tree-ssa-address.c: Likewise.
6613         * tree-ssa-ifcombine.c: Likewise.
6614         * matrix-reorg.c: Likewise.
6615         * c-decl.c: Likewise.
6616         * tree-eh.c: Likewise.
6617         * c-pretty-print.c: Likewise.
6618         * lambda-trans.c: Likewise.
6619         * function.c: Likewise.
6620         * langhooks.c: Likewise.
6621         * ebitmap.h: Likewise.
6622         * tree-vectorizer.c: Likewise.
6623         * function.h: Likewise.
6624         * langhooks.h: Likewise.
6625         * tree-vectorizer.h: Likewise.
6626         * ipa-type-escape.c: Likewise.
6627         * ipa-type-escape.h: Likewise.
6628         * domwalk.c: Likewise.
6629         * tree-if-conv.c: Likewise.
6630         * profile.c: Likewise.
6631         * domwalk.h: Likewise.
6632         * tree-data-ref.c: Likewise.
6633         * tree-data-ref.h: Likewise.
6634         * tree-flow-inline.h: Likewise.
6635         * tree-affine.c: Likewise.
6636         * tree-vect-analyze.c: Likewise.
6637         * c-typeck.c: Likewise.
6638         * gimplify.c: Likewise.
6639         * coretypes.h: Likewise.
6640         * tree-ssa-phiopt.c: Likewise.
6641         * calls.c: Likewise.
6642         * tree-ssa-coalesce.c: Likewise.
6643         * tree.def: Likewise.
6644         * tree-dfa.c: Likewise.
6645         * except.c: Likewise.
6646         * except.h: Likewise.
6647         * cfgexpand.c: Likewise.
6648         * tree-cfgcleanup.c: Likewise.
6649         * tree-ssa-pre.c: Likewise.
6650         * tree-ssa-live.c: Likewise.
6651         * tree-sra.c: Likewise.
6652         * tree-ssa-live.h: Likewise.
6653         * tree-predcom.c: Likewise.
6654         * lambda.h: Likewise.
6655         * tree-mudflap.c: Likewise.
6656         * ipa-prop.c: Likewise.
6657         * print-tree.c: Likewise.
6658         * tree-ssa-copy.c: Likewise.
6659         * ipa-prop.h: Likewise.
6660         * tree-ssa-forwprop.c: Likewise.
6661         * ggc-page.c: Likewise.
6662         * c-omp.c: Likewise.
6663         * tree-ssa-dce.c: Likewise.
6664         * tree-vect-patterns.c: Likewise.
6665         * tree-ssa-ter.c: Likewise.
6666         * tree-nested.c: Likewise.
6667         * tree-ssa.c: Likewise.
6668         * lambda-code.c: Likewise.
6669         * tree-ssa-loop-prefetch.c: Likewise.
6670         * tree-inline.c: Likewise.
6671         * tree-inline.h: Likewise.
6672         * tree-iterator.c: Likewise.
6673         * tree-optimize.c: Likewise.
6674         * tree-ssa-phiprop.c: Likewise.
6675         * tree-vect-transform.c: Likewise.
6676         * tree-object-size.c: Likewise.
6677         * tree-outof-ssa.c: Likewise.
6678         * cfgloop.c: Likewise.
6679         * system.h: Likewise.
6680         * tree-profile.c: Likewise.
6681         * cfgloop.h: Likewise.
6682         * c-gimplify.c: Likewise.
6683         * c-common.c: Likewise.
6684         * tree-vect-generic.c: Likewise.
6685         * tree-flow.h: Likewise.
6686         * c-common.h: Likewise.
6687         * basic-block.h: Likewise.
6688         * tree-ssa-structalias.c: Likewise.
6689         * tree-switch-conversion.c: Likewise.
6690         * tree-ssa-structalias.h: Likewise.
6691         * tree-cfg.c: Likewise.
6692         * passes.c: Likewise.
6693         * ipa-struct-reorg.c: Likewise.
6694         * ipa-struct-reorg.h: Likewise.
6695         * tree-ssa-reassoc.c: Likewise.
6696         * cfgrtl.c: Likewise.
6697         * varpool.c: Likewise.
6698         * stmt.c: Likewise.
6699         * tree-ssanames.c: Likewise.
6700         * tree-ssa-threadedge.c: Likewise.
6701         * langhooks-def.h: Likewise.
6702         * tree-ssa-operands.c: Likewise.
6703         * config/alpha/alpha.c: Likewise.
6704         * config/frv/frv.c: Likewise.
6705         * config/s390/s390.c: Likewise.
6706         * config/m32c/m32c.c: Likewise.
6707         * config/m32c/m32c-protos.h: Likewise.
6708         * config/spu/spu.c: Likewise.
6709         * config/sparc/sparc.c: Likewise.
6710         * config/i386/i386.c: Likewise.
6711         * config/sh/sh.c: Likewise.
6712         * config/xtensa/xtensa.c: Likewise.
6713         * config/stormy16/stormy16.c: Likewise.
6714         * config/ia64/ia64.c: Likewise.
6715         * config/rs6000/rs6000.c: Likewise.
6716         * config/pa/pa.c: Likewise.
6717         * config/mips/mips.c: Likewise.
6718
6719 2008-07-28  Simon Baldwin  <simonb@google.com>
6720
6721         * c-pragma.c (handle_pragma_message): New function.
6722         (init_pragma): Register handle_pragma_message.
6723         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
6724         documentation.
6725
6726 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
6727
6728         PR tree-optimization/35252
6729         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
6730         REALPART_EXPR to be considered as same load operation.
6731
6732 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
6733
6734         PR tree-optimization/36830
6735         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
6736         (expressions_equal_p): Return false if only one operand is null.
6737
6738 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
6739
6740         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
6741         version requirements.
6742
6743 2008-07-26  Olivier Hainque  <hainque@adacore.com>
6744
6745         * collect2.c (symkind): New enum.  Symbol kinds we care about.
6746         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
6747         code and head comment accordingly.
6748         (scan_prog_file): Use symkind names instead of bare integers.
6749
6750 2008-07-25  Jan Hubicka  <jh@suse.cz>
6751
6752         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
6753         DECL_INLINE.
6754         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
6755         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
6756         * dojump.c (clear_pending_stack_adjust): Likewise.
6757         * print-tree.c (print_node): Ignore DECL_INLINE.
6758         * tree-inline.c (inlinable_function_p): Likewise.
6759
6760 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
6761
6762         * doc/extend.texi (hot attribute): Document that the hot attribute
6763         turns on -O3 for some ports.
6764         (cold attribute): Document that the cold attribute turns on -Os
6765         for some ports
6766
6767         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
6768         reflect function specific option support.
6769
6770         * target.h (struct target_option_hooks): Add fields to say whether
6771         the cold attribute implies -Os and the hot attribute implies -O3.
6772
6773         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
6774         By default, do not turn on -Os for cold functions.
6775         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
6776         not turn on -O3 for hot functions.
6777
6778         * c-common.c (handle_hot_attribute): Use target hook to determine
6779         if hot functions should enable -O3.
6780         (handle_cold_attribute): Use target hook to determine if cold
6781         functions should enable -Os.
6782
6783         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
6784         (override_options): Move disable scheduling to
6785         optimization_options.
6786         (optimization_options): Disable scheduling here, not
6787         override_options.
6788         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6789         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6790
6791         * config/ia64/ia64.c (ia64_override_options): Move setting
6792         scheduling flags to ia64_optimization_options.
6793         (ia64_optimization_options): Disable scheduling options here, and
6794         not in ia64_override_options.
6795         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6796         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6797
6798 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
6799
6800         PR target/36936
6801         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
6802
6803 2008-07-25  Martin Jambor  <mjambor@suse.cz>
6804
6805         PR tree-optimization/36926
6806         * ipa-prop.c (ipa_analyze_call_uses): Call
6807         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
6808
6809 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
6810
6811         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
6812         movv2si_internal): Add mem = reg alternative.
6813
6814 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
6815
6816         PR bootstrap/36918
6817         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
6818         DEFAULT_PCC_STRUCT_RETURN to 127.
6819
6820 2008-07-24  Jan Hubicka  <jh@suse.cz>
6821
6822         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
6823         (build_cgraph_edges): Likewise.
6824         * cgraph.c (cgraph_node): Do not update assembler hash.
6825         (cgraph_remove_node): Drop non-unit-at-a-time code.
6826         * tree-pass.h (pass_O0_always_inline): Remove.
6827         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
6828         * toplev.c (process_options): Flag unit-at-a-time does not imply
6829         no section anchors.
6830         * cgraphunit.c: Update comments.
6831         (decide_is_function_needed): Drop non-unit-at-a-time mode.
6832         (cgraph_assemble_pending_functions): Remove.
6833         (cgraph_reset_node): Drop non-unit-at-a-time code.
6834         (cgraph_finalize_function): Likewise.
6835         (cgraph_analyze_function): Likewise.
6836         (cgraph_finalize_compilation_unit): Likewise.
6837         (cgraph_expand_function): Likewise.
6838         (cgraph_optimize): Likesise.
6839         (save_inline_function_body): Likewise.
6840         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
6841         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
6842         * ipa-inline.c: Update comments.
6843         (enum inlining_mode): remove INLINE_SPEED.
6844         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
6845         (cgraph_mark_inline_edge): Likewise.
6846         (try_inline): Likewise.
6847         (cgraph_decide_inlining_incrementally): Likewise.
6848         (cgraph_gate_inlining): Remove.
6849         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
6850         (cgraph_gate_early_inlining): Likewise.
6851         (gate_inline_passes): Remove.
6852         (pass_inline_parameters, pass_ipa_inline): Remove gates.
6853         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
6854         pass_O0_always_inline): Remove.
6855         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
6856         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
6857         * opts.c (no_unit_at_a_time_default): Remove.
6858         (decode_options): Remove flag_unit_at_a_time reset and warning.
6859         * opts.h (no_unit_at_a_time_default): Remove.
6860         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
6861         early in GNU dialect.
6862         (merge_decls): Update comment; drop unit-at-a-time check.
6863         (finish_decl): Likewise.
6864         (grok_declaration): Remove flag_inline_trees code.
6865         (finish_functions): Return on function returning non-void on all
6866         statics.
6867         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
6868         * cfgexpand.c (expand_one_static_var): Remove.
6869         (expand_one_var): Remove expand_one_static_var call.
6870         (expand_used_vars_for_block): Remove flag_unit_a_time check.
6871         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
6872         and flag_unit_at_a-time compatibility checks.
6873         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
6874         * tree-inline.c (flag_inline_trees): Remove.
6875         (inlinable_function_p): Don't check it.
6876         (expand_call_inline): Remove non-unit-at-a-time code.
6877         * tree-inline.h (flag_inline_trees): Remove.
6878         * tree-optimize.c (execute_early_local_optimizations): Remove
6879         unit-at-a-time checks.
6880         (tree_rest_of_compilation): Likewise.
6881         * combine.c (setup_incoming_promotions): Likewise.
6882         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
6883         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
6884         * passes.c (pass_inline_parameters): Update comments; remove
6885         O0_alwaysinline pass.
6886         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
6887         (execute_one_pass): Likewise.
6888         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
6889         (ix86_function_sseregparm): Likewise.
6890         * arm.c (arm_function_in_section_p): Likewise.
6891         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
6892         * varpool.c: Update comments.
6893         (decide_is_variable_needed): Remove unit-at-a-time checks.
6894         (varpool_finalize_decl): Likewise.
6895
6896 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
6897
6898         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
6899         to 2 instead of -1.
6900         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
6901
6902 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
6903
6904         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
6905         imp symbol extension.
6906
6907         2008-07-23  Ian Lance Taylor  <iant@google.com>
6908
6909         * tree-vrp.c (infer_value_range): Ignore asm statements when
6910         looking for memory accesses for -fdelete-null-pointer-checks.
6911
6912 2008-07-24  Ben Elliston  <bje@au.ibm.com>
6913
6914         * config/spu/spu-c.c (__vector_keyword): New variable.
6915         (vector_keyword): Likewise.
6916         (spu_categorize_keyword): New function.
6917         (spu_macro_to_expand): Likewise.
6918         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
6919         compiling an ISO C dialect.
6920
6921 2008-07-24  Ben Elliston  <bje@au.ibm.com>
6922
6923         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
6924         conventional usage.
6925
6926 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
6927
6928         * configure: Regenerate.
6929         * configure.ac: Require texinfo 4.7.
6930         * doc/install.texi: Document texinfo 4.7 requirement.
6931
6932 2008-07-23  Martin Jambor  <mjambor@suse.cz>
6933
6934         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
6935         rather than for DECL_SAVED_TREE.
6936         * ipa-prop.c: Include diagnostic.h.
6937         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
6938         thoroughly.
6939         (ipa_detect_param_modifications): Function rewritten from scratch.
6940         (ipa_compute_jump_functions): Changed accesses to modification flags.
6941         (ipa_free_node_params_substructures): Update flags destruction.
6942         (ipa_node_duplication_hook): Update flags duplication.
6943         (ipa_print_all_params_modified): Updated flag access.
6944         * ipa-prop.h (struct ipa_param_flags): New structure.
6945         (struct ipa_node_params): New field modification_analysis_done,
6946         modified_flags changed into param_flags.
6947         (ipa_is_ith_param_modified): Changed to use new flags.
6948         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
6949
6950         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
6951         ipa-cp.c and split into two functions.
6952         (ipa_print_node_jump_functions): New function.
6953         (compute_scalar_jump_functions): New function.
6954         (type_like_member_ptr_p): New function.
6955         (compute_pass_through_member_ptrs): New function.
6956         (fill_member_ptr_cst_jump_function): New function.
6957         (determine_cst_member_ptr): New function.
6958         (compute_cst_member_ptr_arguments): New function.
6959         (ipa_compute_jump_functions): Complete rewrite.
6960         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
6961         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
6962         (struct ipa_member_ptr_cst): New structure.
6963         (union jump_func_value): New field member_cst.
6964         * ipa-cp.c (ipcp_lat_is_insertable): New function.
6965         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
6966         jump function types.
6967         (ipcp_print_all_lattices): Slight fprintf rearrangement.
6968         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
6969         instead of ipcp_print_all_jump_functions.
6970         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
6971         only for replacable scalars.
6972
6973         * doc/invoke.texi (Optimize options): Add description of
6974         -findirect-inlining.
6975         * common.opt (flag_indirect_inlining): New flag.
6976         * opts.c (decode_options): Set flag_indirect_inlining when
6977         optimize >= 3.
6978
6979         * ipa-inline.c: Include ipa-prop.h.
6980         (inline_indirect_intraprocedural_analysis): New function.
6981         (inline_generate_summary): Allocate parameter and argument info
6982         structures, call inline_indirect_intraprocedural_analysis on each
6983         node when doing indirect inlining and deallocate indirect inlining
6984         data structures in the end.
6985         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
6986         (free_all_ipa_structures_after_iinln): New function.
6987         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
6988         done.
6989         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
6990
6991         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
6992         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6993         of computing the frequency separately.
6994         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6995         of computing the frequency separately.
6996         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
6997         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
6998         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
6999         (ipa_get_stmt_member_ptr_load_param): New function.
7000         (ipa_is_ssa_with_stmt_def): New function.
7001         (ipa_note_param_call): New function.
7002         (ipa_analyze_call_uses): New function.
7003         (ipa_analyze_stmt_uses): New function.
7004         (ipa_analyze_params_uses): New function.
7005         (ipa_free_node_params_substructures): Also free the param_calls linked
7006         list.
7007         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
7008         (ipa_print_node_param_flags): New function.
7009         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
7010         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
7011         * ipa-prop.h (struct ipa_param_flags): New field called.
7012         (struct ipa_param_call_note): New structure.
7013         (struct ipa_node_params): New fields param_calls and
7014         uses_analysis_done.
7015         (ipa_is_ith_param_called): New function.
7016         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
7017         ipa_analyze_params_uses and dump parameter flags.
7018
7019         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
7020         ipa_propagate_indirect_call_infos if performing indirect inlining,
7021         pass a new parameter new_edges to it.
7022         (add_new_edges_to_heap): New fucntion.
7023         (cgraph_decide_inlining_of_small_functions): New vector
7024         new_indirect_edges for newly found indirect edges , call
7025         ipa_propagate_indirect_call_infos after inlining.
7026         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
7027         inlining if performing indirect inlining.  Call
7028         free_all_ipa_structures_after_iinln when doing so too.
7029         (inline_generate_summary): Do not call
7030         free_all_ipa_structures_after_iinln here.
7031         * ipa-prop.c (update_jump_functions_after_inlining): New function.
7032         (print_edge_addition_message): New function.
7033         (update_call_notes_after_inlining): New function.
7034         (propagate_info_to_inlined_callees): New function.
7035         (ipa_propagate_indirect_call_infos): New function.
7036         * ipa-prop.h: Include cgraph.h
7037         (struct ipa_param_call_note): Fields reordered, new field processed.
7038         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
7039         flag indirect_call.
7040         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
7041         rediscovered call statements.
7042         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
7043         (dump_cgraph_node): Dump also the indirect_call flag.
7044         (cgraph_clone_edge): Copy also the indirect_call flag.
7045         * tree-inline.c (copy_bb): Do not check for fndecls from call
7046         expressions, check for edge availability when moving clones.
7047         (get_indirect_callee_fndecl): New function.
7048         (expand_call_inline): If callee declaration is not apprent from
7049         the statement, try calling get_indirect_callee_fndecl.  Do not
7050         issue warnings or call sorry when not inlinings an indirect edge.
7051         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
7052
7053         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
7054         bit more frandly to matching.
7055         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
7056         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
7057         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
7058
7059 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
7060
7061         PR 36907
7062         * opth-gen.awk: Suppress function specific features when building
7063         target libraries.
7064         * optc-gen.awk: Ditto.
7065
7066 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7067
7068         PR 35058
7069         * diagnostic.c (pedwarn): Add opt parameter.
7070         (pedwarn0): New.
7071         * c-tree.h (pedwarn_init): Add opt parameter.
7072         (pedwarn_c90): Likewise.
7073         (pedwarn_c99): Likewise.
7074         * c-errors.c (pedwarn_c99): Likewise.
7075         (pedwarn_c90): Likewise.
7076         * toplev.h (pedwarn): Update declaration.
7077         (pedwarn0): Declare.
7078         * c-lex.c: All calls to pedwarn changed.
7079         * builtins.c: All calls to pedwarn changed.
7080         * toplev.c: All calls to pedwarn changed.
7081         * c-decl.c: All calls to pedwarn changed.
7082         * c-typeck.c: All calls to pedwarn changed.
7083         * c-common.c: All calls to pedwarn changed.
7084         * c-parser.c: All calls to pedwarn changed.
7085
7086 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
7087             Karthik Kumar  <karthikkumar@gmail.com>
7088
7089         * attribs.c (file scope): Include c-common.h.
7090         (decl_attributes): Add support for #pragma GCC optimize and
7091         #pragma GCC option.
7092
7093         * targhooks.c (default_can_inline_p): New function that is the
7094         default for the TARGET_CAN_INLINE_P target hook.
7095
7096         * targhooks.h (default_can_inline_p): Add declaration.
7097
7098         * tree.c (cl_optimization_node): New static tree for building
7099         OPTIMIZATION_NODE tree.
7100         (cl_target_option_node): New static tree for building
7101         TARGET_OPTION_NODE tree.
7102         (cl_option_hash_table): New hash table for hashing
7103         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
7104         (cl_option_hash_hash): New function to provide the hash value for
7105         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
7106         (cl_option_hash_eq): New function to provide an equality test for
7107         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
7108         (tree_code_size): Add support for OPTIMIZATION_NODE and
7109         TARGET_OPTION_NODE trees.
7110         (tree_code_structure): Add support for OPTIMIZATION_NODE and
7111         TARGET_OPTION_NODE trees.
7112         (build_optimization_node): Build a tree that has all of the
7113         current optimization options.
7114         (build_target_option_node): Build a tree that has the target
7115         options that might be changed on a per function basis.
7116
7117         * tree.h (file scope): Include options.h.
7118         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
7119         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
7120         (TREE_OPTIMIZATION): Ditto.
7121         (TREE_TARGET_SPECIFIC): Ditto.
7122         (struct tree_function_decl): Add fields for remembering the
7123         current optimization options and target specific options.
7124         (struct tree_optimization_option): New tree variant that remembers
7125         the optimization options.
7126         (struct tree_target_option): New tree variant that remembers the
7127         target specific flags that might change for compiling a particular
7128         function.
7129         (union tree_node): Include tree_optimization_option and
7130         tree_target_option fields.
7131         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
7132         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
7133         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
7134         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
7135         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
7136         optimization and target options.
7137         (optimization_default_node): New macro to refer to global_trees
7138         field.
7139         (optimization_current_node): Ditto.
7140         (optimization_cold_node): Ditto.
7141         (optimization_hot_node): Ditto.
7142         (target_option_default_node): Ditto.
7143         (target_option_current_node): Ditto.
7144         (current_option_pragma): Ditto.
7145         (current_optimize_pragma): Ditto.
7146
7147         * target.h (struct gcc_target): Add valid_option_attribute_p,
7148         target_option_save, target_option_restore, target_option_print,
7149         target_option_pragma_parse, and can_inline_p hooks.
7150
7151         * toplev.h (parse_optimize_options): Add declaration.
7152         (fast_math_flags_struct_set_p): Ditto.
7153
7154         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
7155         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
7156         optimize is used.
7157
7158         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
7159         tree_can_inline_p hook to see if one function can inline another.
7160         (cgraph_decide_inlining): Ditto.
7161         (cgraph_decide_inlining_incrementally): Ditto.
7162
7163         * opts.c (decode_options): Add support for running multiple times
7164         to allow functions with different target or optimization options
7165         than was specified on the command line.
7166         (fast_math_flags_struct_set_p): New function that is similar to
7167         fast_math_flags_set_p, except it uses the values in the
7168         cl_optimization structure instead of global variables.
7169
7170         * optc-gen.awk: Add support for TargetSave to allow a back end to
7171         declare new fields that need to be saved when using function
7172         specific options.  Include flags.h and target.h in the options.c
7173         source.  Add support for Save to indicate which options can be set
7174         for individual functions.  Generate cl_optimize_save,
7175         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
7176         cl_target_option_restore, cl_target_option_print functions to
7177         allow functions to use different optimization or target options.
7178
7179         * opt-functions.awk (var_type_struct): Return the type used for
7180         storing the field in a structure.
7181
7182         * opth-gen.awk: Add support for TargetSave to allow a back end to
7183         declare new fields that need to be saved when using function
7184         specific options.  Add support for Save to indicate which options
7185         can be set for individual functions.  Only generate one extern for
7186         Mask fields.  Generate cl_optimization and cl_target_option
7187         structures to remember optimization and target options.
7188
7189         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
7190         collecting new tree nodes.
7191         (TS_TARGET_OPTION): Ditto.
7192
7193         * c-decl.c (merge_decls): Merge function specific target and
7194         optimization options.
7195
7196         * function.c (invoke_set_current_function_hook): If the function
7197         uses different optimization options, change the global variables
7198         to reflect this.
7199
7200         * coretypes.h (struct cl_optimization): Add forward reference.
7201         (struct cl_target_option): Ditto.
7202
7203         * c-pragma.c (option_stack): New static vector to remember the
7204         current #pragma GCC option stack.
7205         (handle_pragma_option): New function to support #pragma GCC option
7206         to change target options.
7207         (optimize_stack): New static vector to remember the current
7208         #pragma GCC optimize stack.
7209         (handle_pragma_optimize): New function to support #pragma GCC
7210         optimize to change optimization options.
7211         (init_pragma): Add support for #pragma GCC optimize and #pragma
7212         GCC option.
7213
7214         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
7215         optimization options.
7216         (TARGET_OPTION_NODE): New tree code for remembering certain target
7217         options.
7218
7219         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
7220         TARGET_OPTION_NODE trees.
7221
7222         * common.opt (-O): Add Optimization flag.
7223         (-Os): Ditto.
7224         (-fmath-errno): Ditto.
7225         (-falign-functions): Add UInteger flag to make sure flag gets full
7226         int in cl_optimization structure.
7227         (-falign-jumps): Ditto.
7228         (-falign-labels): Ditto.
7229         (-falign-loops): Ditto.
7230         (-fsched-stalled-insns): Ditto.
7231         (-fsched-stalled-insns-dep): Ditto.
7232
7233         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
7234         definition.
7235         (TARGET_OPTION_SAVE): Ditto.
7236         (TARGET_OPTION_RESTORE): Ditto.
7237         (TARGET_OPTION_PRINT): Ditto.
7238         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
7239         (TARGET_CAN_INLINE_P): Ditto.
7240         (TARGET_INITIALIZER): Add new hooks.
7241
7242         * tree-inline.c (tree_can_inline_p): New function to determine
7243         whether one function can inline another.  Check if the functions
7244         use compatible optimization options, and also call the backend
7245         can_inline_p hook.
7246
7247         * tree-inline.h (tree_can_inline_p): Add declaration.
7248
7249         * c-common.c (c_common_attribute): Add support for option and
7250         optimize attributes.
7251         (handle_option_attribute): Add support for the option attribute to
7252         allow the user to specify different target options for compiling a
7253         specific function.
7254         (handle_optimize_attribute): Add support for the optimize
7255         attribute to allow the user to specify different optimization
7256         options for compiling a specific function.
7257         (handle_hot_attribute): Turn on -O3 optimization for this one
7258         function if it isn't the default optimization level.
7259         (handle_cold_attribute): Turn on -Os optimization for this one
7260         function if it insn't the default optimization.
7261         (const_char_p): New const char * typedef.
7262         (optimize_args): New static vector to remember the optimization
7263         arguments.
7264         (parse_optimize_options): New function to set up the optimization
7265         arguments from either the optimize attribute or #pragma GCC optimize.
7266
7267         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
7268         (builtin_define_std): Ditto.
7269
7270         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
7271         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
7272         (x86_64-*-*): Ditto.
7273
7274         * Makefile.in (TREE_H): Add options.h.
7275         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
7276
7277         * doc/extend.texi (option attribute): Document new attribute.
7278         (optimize attribute): Ditto.
7279         (hot attribute): Document hot attribute sets -O3.
7280         (cold attribute): Document cold attribute sets -Os.
7281         (#pragma GCC option): Document new pragma.
7282         (#pragma GCC optimize): Ditto.
7283
7284         * doc/options.texi (TargetSave): Document TargetSave syntax.
7285         (UInteger): Document UInteger must be used for certain flags.
7286         (Save): Document Save option to create target specific options
7287         that can be saved/restored on a function specific context.
7288
7289         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
7290         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
7291
7292         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
7293         (TARGET_OPTION_SAVE): Ditto.
7294         (TARGET_OPTION_RESTORE): Ditto.
7295         (TARGET_OPTION_PRINT): Ditto.
7296         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
7297         (TARGET_CAN_INLINE_P): Ditto.
7298
7299         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
7300         -mfpmath=sse,387.
7301         (-mfpmath=both): Ditto.
7302
7303 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
7304             Karthik Kumar  <karthikkumar@gmail.com>
7305
7306         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
7307         (TARGET_POPCNT): Ditto.
7308         (TARGET_SAHF): Ditto.
7309         (TARGET_AES): Ditto.
7310         (TARGET_PCLMUL): Ditto.
7311         (TARGET_CMPXCHG16B): Ditto.
7312         (TARGET_RECIP): Move switch into target_flags.
7313         (TARGET_FUSED_MADD): Ditto.
7314         (ix86_arch_features): Make an unsigned char type.
7315         (ix86_tune_features): Ditto.
7316         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
7317         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
7318         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
7319
7320         * config/i386/i386.opt (arch): New TargetSave field to define
7321         fields that need to be saved for function specific option support.
7322         (tune): Ditto.
7323         (fpmath): Ditto.
7324         (branch_cost): Ditto.
7325         (ix86_isa_flags_explicit): Ditto.
7326         (tune_defaulted): Ditto.
7327         (arch_specified): Ditto.
7328         (-m128-long-double): Add Save flag to save option for target
7329         specific option support.
7330         (-m80387): Ditto.
7331         (-maccumulate-outgoing-args): Ditto.
7332         (-malign-double): Ditto.
7333         (-malign-stringops): Ditto.
7334         (-mfancy-math-387): Ditto.
7335         (-mhard-float): Ditto.
7336         (-mieee-fp): Ditto.
7337         (-minline-all-stringops): Ditto.
7338         (-minline-stringops-dynamically): Ditto.
7339         (-mms-bitfields): Ditto.
7340         (-mno-align-stringops): Ditto.
7341         (-mno-fancy-math-387): Ditto.
7342         (-mno-push-args): Ditto.
7343         (-mno-red-zone): Ditto.
7344         (-mpush-args): Ditto.
7345         (-mred-zone): Ditto.
7346         (-mrtd): Ditto.
7347         (-msseregparm): Ditto.
7348         (-mstack-arg-probe): Ditto.
7349         (-m32): Ditto.
7350         (-m64): Ditto.
7351         (-mmmx): Ditto.
7352         (-m3dnow): Ditto.
7353         (-m3dnowa): Ditto.
7354         (-msse): Ditto.
7355         (-msse2): Ditto.
7356         (-msse3): Ditto.
7357         (-msse4.1): Ditto.
7358         (-msse4.2): Ditto.
7359         (-msse4): Ditto.
7360         (-mno-sse4): Ditto.
7361         (-msse4a): Ditto.
7362         (-msse5): Ditto.
7363         (-mrecip): Move flag into target_flags.
7364         (-mcld): Ditto.
7365         (-mno-fused-madd): Ditto.
7366         (-mfused-madd): Ditto.
7367         (-mabm): Move flag into ix86_isa_flags.
7368         (-mcx16): Ditto.
7369         (-mpopcnt): Ditto.
7370         (-msahf): Ditto.
7371         (-maes): Ditto.
7372         (-mpclmul): Ditto.
7373
7374         * config/i386/i386-c.c: New file for #pragma support.
7375         (ix86_target_macros_internal): New function to #define or #undef
7376         target macros based when the user uses the #pragma GCC option to
7377         change target options.
7378         (ix86_pragma_option_parse): New function to add #pragma GCC option
7379         support.
7380         (ix86_target_macros): Move defining the target macros here from
7381         TARGET_CPU_CPP_BUILTINS in i386.h.
7382         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
7383         defined, initialize any subtarget #pragmas.
7384
7385         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
7386         REGISTER_TARGET_PRAGMAS.
7387
7388         * config/i386/t-i386: New file for x86 dependencies.
7389         (i386.o): Make dependencies mirror the include files used.
7390         (i386-c.o): New file, add dependencies.
7391
7392         * config/i386/i386-protos.h (override_options): Add bool argument.
7393         (ix86_valid_option_attribute_tree): Add declaration.
7394         (ix86_target_macros): Ditto.
7395         (ix86_register_macros): Ditto.
7396
7397         * config/i386/i386.c (ix86_tune_features): Move initialization of
7398         the target masks to initial_ix86_tune_features to allow functions
7399         to have different target options.  Make type unsigned char,
7400         instead of unsigned int.
7401         (initial_ix86_tune_features): New static vector to hold processor
7402         masks for the tune variables.
7403         (ix86_arch_features): Move initialization of the target masks to
7404         initial_ix86_arch_features to allow functions to have different
7405         target options.  Make type unsigned char, instead of unsigned int.
7406         (initial_ix86_arch_features): New static vector to hold processor
7407         masks for the arch variables.
7408         (enum ix86_function_specific_strings): New enum to describe the
7409         string options used for attribute((option(...))).
7410         (ix86_target_string): New function to return a string that
7411         describes the target options.
7412         (ix86_debug_options): New function to print the current options in
7413         the debugger.
7414         (ix86_function_specific_save): New function hook to save the
7415         function specific global variables in the cl_target_option structure.
7416         (ix86_function_specific_restore): New function hook to restore the
7417         function specific variables from the cl_target_option structure to
7418         the global variables.
7419         (ix86_function_specific_print): New function hook to print the
7420         target specific options in the cl_target_option structure.
7421         (ix86_valid_option_attribute_p): New function hook to validate
7422         attribute((option(...))) arguments.
7423         (ix86_valid_option_attribute_tree): New function that is common
7424         code between attribute((option(...))) and #pragma GCC option
7425         support that parses the options and returns a tree holding the options.
7426         (ix86_valid_option_attribute_inner_p): New helper function for
7427         ix86_valid_option_attribute_tree.
7428         (ix86_can_inline_p): New function hook to decide if one function
7429         can inline another on a target specific basis.
7430         (ix86_set_current_function); New function hook to switch target
7431         options if the user used attribute((option(...))) or #pragma GCC
7432         option.
7433         (ix86_tune_defaulted): Move to static file scope from
7434         override_options.
7435         (ix86_arch_specified): Ditto.
7436         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
7437         ix86_isa_flags.
7438         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
7439         (OPTION_MASK_ISA_ABM_SET): Ditto.
7440         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
7441         (OPTION_MASK_ISA_CX16_SET): Ditto.
7442         (OPTION_MASK_ISA_SAHF_SET): Ditto.
7443         (OPTION_MASK_ISA_AES_UNSET): Ditto.
7444         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
7445         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
7446         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
7447         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
7448         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
7449         (struct ptt): Move to static file scope from override_options.
7450         (processor_target_table): Ditto.
7451         (cpu_names): Ditto.
7452         (ix86_handle_option): Add support for options that are now isa options.
7453         (override_options): Add support for declaring functions that
7454         support different target options than were specified on the
7455         command line.  Move struct ptt, processor_target_table, cpu_names,
7456         ix86_tune_defaulted, ix86_arch_specified to static file scope.
7457         Add bool argument.  Fix up error messages so the appropriate error
7458         is given for either command line or attribute.
7459         (ix86_previous_fndecl): New static to remember previous function
7460         declaration to see if we need to change target options.
7461         (ix86_builtins_isa): New array to record the ISA of each builtin
7462         function.
7463         (def_builtin): Always create the builtin function, even if the
7464         current ISA doesn't support it.
7465         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
7466         tests for those builtins.
7467         (ix86_init_builtins): Remove TARGET_MMX test for calling
7468         ix86_init_mmx_sse_builtins.
7469         (ix86_expand_builtin): If the current ISA doesn't support a given
7470         builtin, signal an error.
7471         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
7472         (TARGET_SET_CURRENT_FUNCTION): Ditto.
7473         (TARGET_OPTION_SAVE): Ditto.
7474         (TARGET_OPTION_RESTORE): Ditto.
7475         (TARGET_OPTION_PRINT): Ditto.
7476         (TARGET_CAN_INLINE_P): Ditto.
7477
7478 2008-07-22  Rafael Ávila de Espíndola  <espindola@google.com>
7479
7480         * c-typeck.c (build_external_ref): Don't call assemble_external.
7481         * final.c (output_operand): Call assemble_external.
7482
7483 2008-07-21  DJ Delorie  <dj@redhat.com>
7484
7485         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
7486         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
7487
7488 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7489
7490         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
7491         original insn and splitter contents into ...
7492         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
7493         flag_unsafe_math_optimizations.  Add dummy scratch register.
7494         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
7495         !flag_unsafe_math_optimizations.  Returns number with next
7496         highest magnitude if this is still less or equal to the true
7497         quotient in magnitude.
7498
7499 2008-07-21  Rafael Ávila de Espíndola  <espindola@google.com>
7500
7501         * Makefile.in: Replace toplev.h with TOPLEV_H.
7502         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
7503         * c-lex.c (fe_file_change): Don't set in_system_header.
7504         * c-parser.c (c_token): Remove in_system_header.
7505         (c_lex_one_token): Don't set in_system_header.
7506         (c_parser_set_source_position_from_token): Don't set in_system_header.
7507         * diagnostic.c (diagnostic_report_diagnostic): Use location from
7508         diagnostic_info.
7509         (warning_at): New.
7510         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
7511         * flags.h (in_system_header): Remove.
7512         * function.c (saved_in_system_header): Remove.
7513         (push_cfun): Don't set in_system_header.
7514         (pop_cfun): Don't set in_system_header.
7515         (push_struct_function): Don't set in_system_header.
7516         * input.h (expanded_location): Add sysp.
7517         (in_system_header_at): New.
7518         (in_system_header): New.
7519         * toplev.c (in_system_header): Remove.
7520         * toplev.h: Include input.h
7521         (warning_at): New.
7522         * tree-cfg.c (execute_warn_function_return): Call warning_at.
7523         * tree-ssa.c (warn_uninit): Call warning_at.
7524         (warn_uninitialized_var): Update calls to warn_uninit.
7525         (warn_uninitialized_phi): Update calls to warn_uninit.
7526         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
7527         (expand_location): Initialize xloc.sysp.
7528         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
7529         (tree_decl_with_vis): Remove in_system_header_flag.
7530
7531 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
7532
7533         PR target/36822
7534         * recog.c (asm_operand_ok): Change the order of the extra
7535         memory constraint checks.
7536
7537 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7538
7539         PR tree-opt/36879
7540         * tree-switch-conversion.c (build_one_array): Call
7541         varpool_mark_needed_node and varpool_finalize_decl
7542         instead of assemble_variable.
7543
7544 2008-07-19  Jan Hubicka  <jh@suse.cz>
7545
7546         * cgraph.c (cgraph_add_new_function): Do early local passes.
7547         * tree-nrv.c (gate_pass_return_slot): New gate.
7548         (pass_nrv): Add the gate.
7549         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
7550         functions.
7551         (coalesce_ssa_name): Coalesce SSA names.
7552         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
7553         not optimizing so unused user vars remains visible.
7554         * common.opt (flag_tree_ter): Always enable by default.
7555         * tree-ssa-ter.c: Include flags.h
7556         (is_replaceable_p): Check that locations match; when aliasing is missing
7557         be conservative about loads.
7558         * tree-optimize.c (gate_init_datastructures): Remove.
7559         (pass_init_datastructures): New.
7560         * passes.c: Reorder passes so we always go into SSA.
7561
7562 2008-07-19  Jan Hubicka  <jh@suse.cz>
7563
7564         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
7565         * doc/invoke.texi (--combine): Likewise.
7566         (-finline-functions-called-once): Update levels when enabled.
7567         (-funit-at-a-time): Document new behaviour.
7568         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
7569         -fno-section-anchors when disabled explicitly.
7570         (inline params): They are not ignored now.
7571         (precompiled headers): Remove unit-at-a-time as being incompatible.
7572         * opts.c (decode_options): Handle unit-at-a-time as alias;
7573         imply -fno-section-anchors when toplevel reorder is disabled
7574         explicitly.
7575         * common.opt (ftoplevel-reorder): Set default value to 2.
7576         (funit-at-a-time): Set default value to 1.
7577         * config/rs6000/rs6000.c (optimization_options): Set section anchors
7578         to 2.
7579
7580 2008-07-19  Jan Hubicka  <jh@suse.cz>
7581
7582         * builtins.c (expand_builtin_int_roundingfn,
7583         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
7584         it is not useful.
7585
7586 2008-07-19  Richard Guenther  <rguenther@suse.de>
7587
7588         PR bootstrap/36864
7589         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
7590         * tree-ssa-sccvn.c (get_constant_value_id): New function.
7591         * tree-ssa-pre.c (get_expr_value_id): For newly created
7592         constant value-ids make sure to add the expression to its
7593         expression-set.
7594
7595 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
7596
7597         PR middle-end/36877
7598         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
7599         return value of the builtin is ignored.
7600
7601 2008-07-19  Olivier Hainque  <hainque@adacore.com>
7602
7603         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
7604         bits, a C conformant malloc implementation has to provide.
7605         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
7606
7607 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
7608
7609         PR target/36780
7610         PR target/36827
7611         * reload.c (find_reloads_subreg_address): Only reload address if
7612         reloaded == 0, not for reloaded != 1.
7613
7614         Revert:
7615         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
7616         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7617         (m32c_legitimate_address_p): Handle "++rii" addresses created by
7618         m32c_legitimize_reload_address.
7619
7620         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7621         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7622         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7623
7624 2008-07-19  Olivier Hainque  <hainque@adacore.com>
7625
7626         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
7627         argument, saying whether nested array are to be collapsed
7628         into a single array type DIE with multiple subscripts.
7629         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
7630         issues, centralize the nested array types collapsing control and
7631         disable the transformation for Ada.
7632
7633 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
7634
7635         PR target/36786
7636         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
7637         x86_64_shift_adj.
7638         (x86_64_shift_adj_2): New expander.
7639         (x86_64_shift_adj_3): Ditto.
7640         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
7641         to split TImode operands.
7642         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
7643         (ix86_split_lshr): Ditto.
7644
7645 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
7646
7647         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
7648         and __CHAR32_TYPE__.
7649         * c-typeck.c (digest_init): Support char16_t and char32_t.
7650         (set_nonincremental_init_from_string): Idem.
7651
7652 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
7653
7654         PR middle-end/36859
7655         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
7656         PREFERRED_STACK_BOUNDARY.
7657         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7658
7659 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
7660
7661         PR middle-end/36858
7662         * function.c (locate_and_pad_parm): Cap boundary earlier.
7663
7664 2008-07-17  Julian Brown  <julian@codesourcery.com>
7665
7666         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
7667         no-op for targets which don't use DLLs.
7668
7669 2008-07-17  Martin Jambor  <mjambor@suse.cz>
7670
7671         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
7672         that nodes are relevant by examining the node->analyzed flag.
7673         (ipcp_init_stage): Check which nodes are relevant, assert that the
7674         relevant ones are also required.
7675         (ipcp_propagate_stage): Check on the side arrays are properly
7676         allocated.
7677         (ipcp_print_all_jump_functions): Make sure not to touch any node
7678         that is not analyzed or an edge that does not have a corresponding
7679         entry in the on-the-side vectors.
7680         (ipcp_function_scale_print): Likewise.
7681         (ipcp_update_callgraph): Check that the node is relevant.
7682         (ipcp_insert_stage): Check that the node is relevant.  Check there is
7683         an info for every node and edge.
7684         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
7685         (ipa_print_all_tree_maps): Likewise and a new variable info.
7686         (ipa_print_all_params_modified): Likewise.
7687         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
7688
7689 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
7690
7691         PR target/25343
7692         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
7693
7694 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
7695
7696         PR rtl-optimization/36753
7697         * fwprop.c (use_killed_between): Don't shortcut
7698         single-definition global registers.
7699
7700 2008-07-16  Jan Hubicka  <jh@suse.cz>
7701
7702         * cgraph.h (varpool_empty_needed_queue): Declare.
7703         * cgraphunit.c (output_in_order): Mark all variables as needed;
7704         empty the queue.
7705         * varpool.c (varpool_assemble_node): Update debug queue.
7706         (varpool_assemble_pending_decls): Don't do it here.
7707         (varpool_empty_needed_queue):  New function.
7708
7709 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7710
7711         * recog.c (peephole2_optimize): Fix formatting.
7712
7713 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7714
7715         * c-pch.c (get_ident): Avoid C++ keywords.
7716         * combine-stack-adj.c (single_set_for_csa): Likewise.
7717         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
7718         output_asm_insn): Likewise.
7719         * reload.c (push_secondary_reload, find_reusable_reload,
7720         push_reload, combine_reloads, find_reloads,
7721         debug_reload_to_stream): Likewise.
7722         * reload.h (struct reload): Likewise.
7723         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
7724         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
7725         emit_output_reload_insns): Likewise.
7726         * targhooks.c (default_secondary_reload): Likewise.
7727         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
7728
7729 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7730
7731         * recog.c (validate_change_1, validate_change,
7732         validate_unshare_change, validate_replace_rtx_1, struct
7733         funny_match, constrain_operands, peephole2_optimize): Avoid C++
7734         keywords.
7735         * reload.c (push_secondary_reload, secondary_reload_class,
7736         scratch_reload_class, find_valid_class, find_reusable_reload,
7737         push_reload, find_dummy_reload, find_reloads_address_1,
7738         find_reloads_address_part, find_equiv_reg): Likewise.
7739         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
7740         choose_reload_regs): Likewise.
7741         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
7742         Likewise.
7743         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
7744         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
7745         * sched-rgn.c (concat_INSN_LIST): Likewise.
7746         * stor-layout.c (mode_for_size, mode_for_size_tree,
7747         smallest_mode_for_size): Likewise.
7748
7749 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7750
7751         * cfg.c (dump_reg_info): Avoid C++ keywords.
7752         * dwarf2asm.c (dw2_force_const_mem,
7753         dw2_asm_output_encoded_addr_rtx): Likewise.
7754         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
7755         * expmed.c (expand_shift): Likewise.
7756         * global.c (find_reg): Likewise.
7757         * graph.c (draw_edge): Likewise.
7758         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
7759         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
7760         widen_clz, widen_bswap, expand_parity, expand_unop,
7761         emit_cmp_and_jump_insn_1): Likewise.
7762         * postreload.c (reload_cse_simplify_operands): Likewise.
7763         * ra.h (add_neighbor): Likewise.
7764         * reg-stack.c (remove_regno_note, change_stack): Likewise.
7765         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
7766         record_reg_classes, copy_cost, record_address_regs,
7767         invalid_mode_change_p): Likewise.
7768         * regrename.c (regrename_optimize, scan_rtx_reg,
7769         dump_def_use_chain, find_oldest_value_reg,
7770         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
7771
7772 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
7773
7774         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
7775         MASK_POWERPC64 for power4 in previous commit.
7776
7777 2008-07-16  Olivier Hainque  <hainque@adacore.com>
7778
7779         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
7780         instead of bare conversion to cast const-ness away.
7781
7782 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
7783
7784         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
7785         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
7786         * config/xtensa/xtensa.c (xtensa_function_value): New function.
7787         (TARGET_FUNCTION_VALUE): Define.
7788
7789 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
7790
7791         * config/rs6000/rs6000.c (processor_target_table): Add
7792         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
7793
7794 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
7795
7796         PR target/36827
7797         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7798         (m32c_legitimate_address_p): Handle "++rii" addresses created by
7799         m32c_legitimize_reload_address.
7800
7801 2007-07-16  Rafael Ávila de Espíndola  <espindola@google.com>
7802
7803         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
7804         DECL_IN_SYSTEM_HEADER in sync.
7805
7806 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
7807
7808         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
7809         * tree-ssa-pre.c (pre_expr_eq): Ditto
7810         (get_constant_for_value_id): Take a type as an argument.
7811         (fully_constant_expression): Pass in type.
7812         (find_or_generate_expression): Short circuit constant case.
7813         (create_expression_by_pieces): Remove special casing of
7814         pointer_plus.
7815         (do_regular_insertion): Short circuit constant case.
7816         (do_partial_partial_insertion): Ditto.
7817
7818 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7819
7820         PR target/36782
7821         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
7822
7823 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
7824
7825         * config/xtensa/libgcc-xtensa.ver: New file.
7826         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
7827
7828 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7829
7830         * df-problems.c (df_set_note): Avoid C++ keywords.
7831         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
7832         * dse.c (record_store, remove_useless_values): Likewise.
7833         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
7834         gen_reg_rtx_offset, operand_subword, change_address_1,
7835         change_address, adjust_address_1, offset_address,
7836         widen_memory_access, emit_copy_of_insn_after): Likewise.
7837         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
7838         * fwprop.c (should_replace_address, propagate_rtx_1,
7839         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
7840         Likewise.
7841         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
7842         gcse_emit_move_after, update_ld_motion_stores): Likewise.
7843         * lcm.c (compute_insert_delete, pre_edge_lcm,
7844         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
7845         * lower-subreg.c (resolve_reg_notes): Likewise.
7846         * mode-switching.c (optimize_mode_switching): Likewise.
7847
7848 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7849
7850         * bt-load.c (add_btr_def, migrate_btr_def,
7851         branch_target_load_optimize): Avoid C++ keywords.
7852         * caller-save.c (insert_restore, insert_save, insert_one_insn):
7853         Likewise.
7854         * combine.c (subst, simplify_set, make_extraction,
7855         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
7856         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
7857         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
7858
7859 2008-07-15  Richard Guenther  <rguenther@suse.de>
7860
7861         PR middle-end/36369
7862         * c-common.c (strict_aliasing_warning): Do not warn for
7863         TYPE_REF_CAN_ALIAS_ALL pointers.
7864         (c_common_get_alias_set): may_alias types are not special.
7865         * tree.c (build_pointer_type_for_mode): Look up the may_alias
7866         attribute and set can_ref_all accordingly.
7867         (build_reference_type_for_mode): Likewise.
7868         * doc/extend.texi (may_alias): Clarify.
7869
7870 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7871
7872         PR target/36780
7873         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7874         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7875
7876 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7877
7878         PR target/31568
7879         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
7880         gcc_assert, instead call output_operand_lossage.
7881
7882 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
7883
7884         * builtins.c (std_canonical_va_list): Treat structure based
7885         va_list types.
7886
7887 2008-07-15  Ben Elliston  <bje@au.ibm.com>
7888
7889         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
7890
7891 2007-07-14  Rafael Ávila de Espíndola  <espindola@google.com>
7892
7893         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
7894         is set.
7895
7896 2008-07-14  Jan Hubicka  <jh@suse.cz>
7897
7898         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
7899         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
7900         fix predicates and constraints.
7901         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
7902         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
7903
7904 2008-07-14  Doug Kwan  <dougkwan@google.com>
7905
7906         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
7907         additional option file arm/eabi.opt.
7908         * config/arm/eabi.h (File): New configuration file for EABI targets.
7909         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
7910         SUBSUBTARGET_EXTRA_SPECS.
7911         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
7912         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
7913         from STARTFILE_SPEC so that it can be referenced in an override.
7914         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
7915         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
7916         can be referenced in an override.
7917         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
7918         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
7919         so that it can be referenced in an override.
7920         (LINK_SPEC): Use BPABI_LINK_SPEC.
7921         * config/arm/eabi.opt (File): New.
7922
7923 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7924
7925         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
7926         (FIXED_VALUE_H): New variable.
7927         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
7928         input.h, fixed-value.h.
7929         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
7930         (BASIC_BLOCK_H): Use $(BITMAP_H).
7931         (FUNCTION_H): Add varray.h.
7932         (IPA_REFERENCE_H): Use $(BITMAP_H).
7933         (CGRAPH_H): Add $(BASIC_BLOCK_H).
7934         (DF_H): Use $(BITMAP_H).
7935         (GGC_H): Add statistics.h.
7936         (INSN_ADDR_H): New.
7937         (INSN_ATTR_H): Use it.
7938         (SYSTEM_H): Add safe-ctype.h, filenames.h.
7939         (INPUT_H): New.
7940         (SYMTAB_H): Add $(OBSTACK_H).
7941         (CPP_INTERNAL_H): New.
7942         (TREE_DUMP_H): Add tree-pass.h.
7943         (TREE_FLOW_H): Use $(BITMAP_H)
7944         (PRETTY_PRINT_H): Use $(INPUT_H).
7945         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
7946         (GSTAB_H): New.
7947         (BITMAP_H): New.
7948         (many object files): Fix lots of header dependencies throughout.
7949
7950 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7951
7952         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
7953         New macros.
7954         (s-gtyp-input): Use them to write tmp-gi.list.
7955         (echo_to_gi.list): Remove.
7956
7957 2008-07-14  Richard Guenther  <rguenther@suse.de>
7958
7959         * tree-ssa-sccvn.c (pre_info): Remove.
7960         (switch_to_PRE_table): Likewise.
7961         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
7962         (set_hashtable_value_ids): Do not create value-ids for the
7963         optimistic tables.
7964         (run_scc_vn): Remove double test.  Remove bogus special-case
7965         in value-number printing.
7966         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
7967         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
7968         SSA_NAME_VALUE.
7969         * tree-flow-inline.h (get_value_handle): Remove.
7970         * tree-flow.h (get_value_handle): Remove.
7971
7972 2008-07-14  Martin Jambor  <mjambor@suse.cz>
7973
7974         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
7975         in which we generate arithmetics is not a subrange.
7976
7977 2008-07-14  Martin Jambor  <mjambor@suse.cz>
7978
7979         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
7980
7981 2008-07-14  Richard Guenther  <rguenther@suse.de>
7982
7983         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
7984
7985 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7986
7987         PR target/36745
7988         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
7989         reload for symbol refs moved to r0 with -fPIC.
7990         (legitimize_pic_address): Use the target register as temporary
7991         reg if possible.
7992         (emit_symbolic_move): Adjust comment.
7993         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
7994         New expanders.
7995
7996 2008-07-14  Ben Elliston  <bje@au.ibm.com>
7997
7998         * c-common.h (C_CPP_HASHNODE): New macro.
7999         * coretypes.h (struct cpp_token): Forward declare.
8000         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8001         the context-sensitive keyword method.
8002         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
8003         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
8004         expand_bool_pixel): New.
8005         (altivec_categorize_keyword): New function.
8006         (init_vector_keywords): New function.
8007         (rs6000_macro_to_expand): Likewise.
8008         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
8009         compiling an ISO C dialect.
8010
8011 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
8012
8013         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
8014         (create_expression_by_pieces): Fix typo.
8015         (do_regular_insertion): Use debug counter here too.
8016
8017 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
8018
8019         PR target/35492.
8020         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
8021         CONST_OK_FOR_LETTER_P.  All port-local users changed.
8022         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
8023         implement Kp matching power-of-two.
8024         (CONSTRAINT_LEN): Define to match.
8025         * config/cris/cris.md: Replace all use of constraint K with Kc.
8026         ("*btst*): Use Kp for operand 0 of last alternative.
8027
8028 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8029
8030         PR testsuite/36440
8031         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
8032         and quad formats.
8033
8034 2008-07-13  Jan Hubicka  <jh@suse.cz>
8035
8036         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
8037         to be mangled too.
8038
8039 2008-07-13  Richard Guenther  <rguenther@suse.de>
8040
8041         PR middle-end/36811
8042         * langhooks.c (lhd_print_error_function): Deal with recursive
8043         BLOCK trees.
8044
8045 2008-07-12  Jan Hubicka  <jh@suse.cz>
8046
8047         * cgraph.c (assembler_name_hash): New static var.
8048         (hash_node_by_assembler_name, eq_assembler_name): New.
8049         (cgraph_node_for_asm): Use hashtable.
8050         (cgraph_remove_node): Maintain hashtable.
8051         (change_decl_assembler_name): Sanity check that names are not changing
8052         after aliasing was processed.
8053         * cgraph.h (varpoon_node): Add next GGC marker.
8054         * tree.c (decl_assembler_name_equal): Constify.
8055         (decl_assembler_name_hash): New.
8056         * tree.h (decl_assembler_name_equal): Constify.
8057         (decl_assembler_name_hash): Update.
8058
8059 2008-07-12  David Daney  <ddaney@avtrex.com>
8060
8061         * config/mips/driver-native.c (host_detect_local_cpu): Handle
8062         sb1 and r5000 cpus.
8063
8064 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
8065
8066         * doc/md.texi: Document the MIPS "v" constraint.
8067         * config/mips/mips.h (reg_class): Revert last change.
8068         (REG_CLASS_NAMES): Likewise.
8069         (REG_CLASS_CONTENTS): Likewise.
8070         * config/mips/mips.c (mips_regno_to_class): Likewise.
8071         * config/mips/constraints.md (v): Likewise, but add documentation.
8072         Add a comment to say that this constraint should not be used in
8073         gcc code.
8074
8075 2008-07-11  DJ Delorie  <dj@redhat.com>
8076
8077         * config/h8300/h8300.md (length): Fix branch offset limit.
8078
8079 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
8080
8081         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
8082         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
8083         (avr_hard_regno_scratch_ok): New function.
8084         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
8085         * config/avr/avr.md (all peepholes that request a scratch register):
8086         Remove avr_peep2_scratch_safe use.
8087
8088 2008-07-11  Tom Tromey  <tromey@redhat.com>
8089             Ian Lance Taylor  <iant@google.com>
8090
8091         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
8092         (struct c_common_resword): Define.
8093         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
8094         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
8095         (c_common_reswords, num_c_common_reswords): Declare.
8096         * c-common.c (c_common_reswords): New global const array.
8097         (num_c_common_reswords): New const int.
8098         * c-parser.c (struct resword, reswords): Don't define.
8099         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
8100         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
8101         than reswords.  If warning about C++ keywords, give them a special
8102         RID code.
8103         (c_lex_one_token): Warn about C++ keywords.  Call
8104         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
8105         (c_parser_external_declaration): Look for RID_xxx rather than
8106         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
8107         (c_parser_statement_after_labels): Likewise.
8108         (c_parser_objc_class_instance_variables): Likewise.
8109         (c_parser_objc_class_declaration): Likewise.
8110         (c_parser_objc_try_catch_statement): Likewise.
8111         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
8112         (declspecs_add_type): Likewise.
8113
8114 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
8115
8116         * ggc-page.c (alloc_page):
8117         Substituting xmalloc, xcalloc with
8118         XNEWVEC and XCNEWVAR macros which add the
8119         needed casts.
8120
8121 2008-07-11  Richard Guenther  <rguenther@suse.de>
8122
8123         PR tree-optimization/36765
8124         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
8125         aliases from HEAP vars to SMTs.
8126
8127 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8128
8129         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
8130         * configure.ac (loose_warn): Move -Wc++-compat from here...
8131         (strict_warn): ...to here.
8132         * configure: Regenerate.
8133
8134 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
8135
8136         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
8137         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
8138         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
8139         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
8140         excluding more specific h8300-*-* and sh-*-* targets.
8141
8142 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
8143
8144         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
8145         (eliminate): Ditto.
8146         (execute_pre): Call loop_optimizer_finalize in early exit.
8147
8148 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
8149
8150         PR middle-end/36790
8151         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
8152         uids in the bitmap, not just VAR_DECL uids.
8153
8154         PR rtl-optimization/36419
8155         * combine-stack-adj.c (adjust_frame_related_expr): New function.
8156         (combine_stack_adjustments_for_block): Call it if needed.  Delete
8157         correct insn.
8158         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
8159         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
8160         prologue sp adjustment.
8161
8162 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
8163
8164         PR other/28322
8165         * opts.c (print_ignored_options): Report postponed diagnostics for
8166         unknown -Wno-* options as warnings, not errors.
8167         (postpone_unknown_option_error): Renamed to...
8168         (postpone_unknown_option_warning): ... this.
8169
8170 2008-07-09  Doug Kwan  <dougkwan@google.com>
8171
8172         Revert:
8173         2008-07-08  Doug Kwan  <dougkwan@google.com>
8174
8175         * config/arm/arm.opt (mandroid): New option.
8176         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
8177         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
8178         (CC1_SPEC): Same.
8179         (CC1PLUS_SPEC): Same.
8180         (LIB_SPEC): Same.
8181         (STARTFILE_SPEC): Same.
8182         (ENDFILE_SPEC): Same.
8183         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
8184         used.
8185
8186 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
8187
8188         PR target/35802
8189         * config/mips/mips.h (reg_class): Remove V1_REG.
8190         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
8191         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
8192         instead of V1_REGS.
8193         (mips_get_tp): New function.
8194         (mips_legitimize_tls_address): Use it.
8195         * config/mips/constraints.md (v): Delete.
8196         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
8197         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
8198         After reload, split into a move and ...
8199         (*tls_get_tp_<mode>_split): ...this new instruction.
8200
8201 2008-07-09  David Daney  <ddaney@avtrex.com>
8202
8203         * config/mips/driver-native.c: Include coretypes.h and tm.h.
8204
8205 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
8206
8207         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
8208         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
8209         Add c argument.
8210         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
8211         htab_delete should be called.  Don't free c.
8212         (lookup_tmp_var): Create temp_htab lazily.
8213         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
8214         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
8215         callers.
8216         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
8217         lower_omp_ordered, lower_omp_critical, lower_omp_for,
8218         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
8219         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
8220         * tree-sra.c (generate_element_init): Likewise.
8221         * tree-mudflap.c (execute_mudflap_function_ops,
8222         execute_mudflap_function_decls): Likewise.
8223         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
8224         * tree-gimple.h (struct gimplify_ctx): New type.
8225         (push_gimplify_context): Adjust prototype.
8226
8227 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
8228
8229         * tree-ssa-pre.c (phi_translate_1): Update placement of
8230         add_to_value calls.
8231
8232 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
8233
8234         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
8235         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
8236         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
8237         * targhooks.c (default_hard_regno_scratch_ok): New function.
8238         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
8239         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
8240         * recog.c:  Include "target.h".
8241         (peep2_find_free_register): Add check for global regs. Add target
8242         specific check.
8243         * Makefile.in (recog.o): Depend on target.h.
8244
8245 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
8246
8247         * config/sh/sh.c (sh_canonical_va_list_type): New.
8248         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
8249
8250 2008-07-09  Raksit Ashok <raksit@google.com>
8251
8252         * doc/invoke.texi (Option Summary): Mention new option
8253         -Wdisallowed-function-list=...
8254         (Warning Options): Document -Wdisallowed-function-list=...
8255         * common.opt (Wdisallowed-function-list=): New flag.
8256         * flags.h (warn_disallowed_functions): External definition of new
8257         boolean warning flag.
8258         (warn_if_disallowed_function_p): Declare new function.
8259         * opts.c (warning_disallowed_functions): New static variable.
8260         (warn_disallowed_functions): New boolean warning flag.
8261         (warn_if_disallowed_function_p): New function.
8262         (add_comma_separated_to_vector): Rename
8263         add_instrument_functions_exclude_list to this.
8264         (common_handle_option): Handle new option. Rename calls to
8265         add_instrument_functions_exclude_list into calls to
8266         add_comma_separated_to_vector.
8267         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
8268         based on flag warn_disallowed_functions.
8269
8270 2008-07-09  Christian Bruel  <christian.bruel@st.com>
8271
8272         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
8273          instead of get_attr_length.
8274
8275 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8276
8277         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
8278         keywords.
8279         * genemit.c (gen_insn): Likewise.
8280         * gengtype.c (note_def_vec): Likewise.
8281         * gengtype.h (note_def_vec): Likewise.
8282         * genoutput.c (struct data, output_insn_data, process_template,
8283         gen_expand, gen_split, note_constraint): Likewise.
8284         * genrecog.c (new_decision, add_to_sequence, factor_tests,
8285         make_insn_sequence): Likewise.
8286         * gensupport.c (record_insn_name): Likewise.
8287
8288 2008-07-08  Doug Kwan  <dougkwan@google.com>
8289
8290         * config/arm/arm.opt (mandroid): New option.
8291         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
8292         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
8293         (CC1_SPEC): Same.
8294         (CC1PLUS_SPEC): Same.
8295         (LIB_SPEC): Same.
8296         (STARTFILE_SPEC): Same.
8297         (ENDFILE_SPEC): Same.
8298         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
8299         used.
8300
8301 2008-07-08  Raksit Ashok  <raksit@google.com>
8302
8303         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
8304         (set_storage_via_setmem): Fix expected_align parameter.
8305         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
8306         missing from the list.
8307         * doc/md.texi (movmem): Explicitly state that expected alignment is
8308         to be expressed in bytes.
8309         (setmem): Explicitly state that expected alignment is to be expressed
8310         in bytes.
8311
8312 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
8313
8314         * reload.c (find_reloads_subreg_address): Do not require validity
8315         of address in original mode before reloading address.
8316
8317 2008-07-07  Tianwei Sheng  <tianweis@google.com>
8318
8319         * df-core.c (df_remove_problem): Adjust the access to avoid out of
8320         bounds array access.
8321
8322 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
8323
8324         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
8325
8326 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
8327
8328         Fix PR tree-optimization/23455
8329         Fix PR tree-optimization/35286
8330         Fix PR tree-optimization/35287
8331         * Makefile.in (OBJS-common): Remove tree-vn.o.
8332         (tree-vn.o): Remove.
8333         * dbgcnt.def: Add treepre_insert debug counter.
8334         * gcc/tree-flow.h (add_to_value): Updated for other changes.
8335         (debug_value_expressions): Ditto.
8336         (print_value_expressions): Ditto.
8337         * tree-pretty-print.c (dump_generic_node): Updated for
8338         VALUE_HANDLE removal.
8339         * tree-ssa-dom.c (record_equality): Ditto.
8340         (cprop_operand): Ditto.
8341         (lookup_avail_expr): Ditto.
8342         * tree-ssa-threadedge.c
8343         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
8344         (simplify_control_stmt_condition): Ditto.
8345         * tree.c (tree_code_size): Ditto.
8346         (tree_node_structure): Ditto.
8347         (iterative_hash_expr): Ditto.
8348         * tree.def: Ditto.
8349         * tree.h (VALUE_HANDLE_ID): Ditto.
8350         (VALUE_HANDLE_EXPR_SET): Ditto.
8351         (struct tree_value_handle): Ditto.
8352         (union tree_node): Ditto.
8353         * treestruct.def: Ditto.
8354         * tree-vn.c: Removed.
8355         * tree-ssa-pre.c: Rewritten entirely.
8356         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
8357         (constant_value_ids): Ditto.
8358         (vn_nary_op_t): Moved to header.
8359         (vn_phi_t): Ditto.
8360         (vn_reference_op_t): Ditto
8361         (vn_reference_t): Ditto.
8362         (next_value_id): New variable.
8363         (VN_INFO): Add an assert.
8364         (vn_constant_eq): New function.
8365         (vn_constant_hash): Ditto.
8366         (get_or_alloc_constant_value_id): Ditto.
8367         (value_id_constant_p): Ditto.
8368         (vn_reference_compute_hash): De-staticify.
8369         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
8370         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
8371         (valueize_refs): Update opcode if it changes from ssa name to constant.
8372         (vn_reference_lookup_1): Add new argument.
8373         (vn_reference_lookup):  Ditto.
8374         (vn_reference_lookup_pieces): New function.
8375         (vn_reference_insert): Add return type. Modify to deal with value ids.
8376         (vn_reference_insert_pieces):  New function.
8377         (vn_nary_op_compute_hash): De-staticify.
8378         (vn_nary_op_eq): Ditto.
8379         (vn_nary_op_lookup_pieces): New function.
8380         (vn_nary_op_lookup): Add new argument.
8381         (vn_nary_op_insert_pieces): New function.
8382         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
8383         (vn_phi_insert): Ditto.
8384         (visit_unary_op): Update for callee changes.
8385         (visit_binary_op): Ditto.
8386         (visit_reference_op_load): Ditto.
8387         (visit_reference_op_store): Ditto.
8388         (init_scc_vn): Init next_value_id, constant_to_value_id and
8389         constant_value_ids.
8390         (free_scc_vn): Free them.
8391         (set_hashtable_value_ids): New function.
8392         (run_scc_vn): Use it.
8393         (get_max_value_id): New function.
8394         (get_next_value_id): Ditto.
8395         (expressions_equal_p): Moved from tree-vn.c
8396         (sort_vuses): Ditto.
8397         (sort_vuses_heap): Ditto.
8398         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
8399         above).
8400         * tree.c (iterative_hash_hashval_t): Made non-static
8401         * tree.h (iterative_hash_hashval_t): Declare it.
8402
8403 2008-07-08  Martin Jambor  <mjambor@suse.cz>
8404
8405         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
8406         instead of ipa_create_node_params.
8407         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
8408         ipa_check_create_edge_args, free them with
8409         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
8410
8411         * ipa-prop.c: Include flags.h and tree-inline.h.
8412         (ipa_node_params_vector): New variable.
8413         (ipa_edge_args_vector): New variable.
8414         (edge_removal_hook_holder): New variable.
8415         (node_removal_hook_holder): New variable.
8416         (edge_duplication_hook_holder): New variable.
8417         (node_duplication_hook_holder): New variable.
8418         (ipa_detect_param_modifications): Check for presence of modified flags.
8419         (ipa_compute_jump_functions): Check for presence of jump functions.
8420         (ipa_free_edge_args_substructures): New function.
8421         (ipa_create_node_params): Removed.
8422         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
8423         (ipa_free_node_params_substructures): New function.
8424         (ipa_free_all_node_params): Changed to deallocate the on-the-side
8425         vector.
8426         (ipa_edge_removal_hook): New function.
8427         (ipa_node_removal_hook): New function.
8428         (duplicate_array): New function.
8429         (ipa_edge_duplication_hook): New function.
8430         (ipa_node_duplication_hook): New function.
8431         (ipa_register_cgraph_hooks): New function.
8432         (ipa_unregister_cgraph_hooks): New function.
8433         (free_all_ipa_structures_after_ipa_cp): New function.
8434
8435         * ipa-prop.h: Include vec.h.
8436         (ipa_node_params_t): New typedef with vector types for it.
8437         (ipa_edge_args_t):  New typedef with vector types for it.
8438         (IPA_NODE_REF): Changed to access an on-the-side vector.
8439         (IPA_EDGE_REF): Changed to access an on-the-side vector.
8440         (ipa_check_create_node_params): New function.
8441         (ipa_check_create_edge_args): New function.
8442
8443         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
8444         all users.
8445
8446 2008-07-07  Tom Tromey  <tromey@redhat.com>
8447
8448         * configure, config.in: Rebuilt.
8449         * configure.ac: Don't check for scandir or alphasort.
8450
8451 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
8452
8453         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
8454         types immediately after creating them.
8455
8456 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
8457
8458         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
8459
8460 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
8461
8462         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
8463         dump_constraint_graph.
8464         (dump_constraint_edge): New function.
8465         (dump_constraint_graph): New function.
8466         (debug_constraint_graph): New function.
8467         (dump_constraint): Removed useless comparison.
8468         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
8469         (dump_constraint_graph): Declare.
8470         (debug_constraint_graph): Declare.
8471         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
8472
8473 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
8474
8475         * config/i386/i386.c (is_va_list_char_pointer): New.
8476         (ix86_va_start): Replace compare with ms_va_list_type_node
8477         by is_va_list_char_pointer.
8478         (ix86_gimplify_va_arg): Likewise.
8479
8480 2008-07-07  Martin Jambor  <mjambor@suse.cz>
8481
8482         * cgraph.c (cgraph_edge_max_uid): New variable.
8483         (struct cgraph_edge_hook_list): New type.
8484         (struct cgraph_node_hook_list): New type.
8485         (struct cgraph_2edge_hook_list): New type.
8486         (struct cgraph_2node_hook_list): New type.
8487         (first_cgraph_edge_removal_hook): New variable.
8488         (first_cgraph_node_removal_hook): New variable.
8489         (first_cgraph_edge_duplicated_hook): New variable.
8490         (first_cgraph_node_duplicated_hook): New variable.
8491         (cgraph_add_edge_removal_hook): New function.
8492         (cgraph_remove_edge_removal_hook): New function.
8493         (cgraph_call_edge_removal_hooks):  New function.
8494         (cgraph_add_node_removal_hook):  New function.
8495         (cgraph_remove_node_removal_hook):  New function.
8496         (cgraph_call_node_removal_hooks):  New function.
8497         (cgraph_add_edge_duplication_hook):  New function.
8498         (cgraph_remove_edge_duplication_hook):  New function.
8499         (cgraph_call_edge_duplication_hooks):  New function.
8500         (cgraph_add_node_duplication_hook):  New function.
8501         (cgraph_remove_node_duplication_hook):  New function.
8502         (cgraph_call_node_duplication_hooks):  New function.
8503         (cgraph_create_edge): Assign to edge uid.
8504         (cgraph_remove_edge): Call edge removal hooks.
8505         (cgraph_node_remove_callees): Call edge removal hooks.
8506         (cgraph_node_remove_callers): Call edge removal hooks.
8507         (cgraph_remove_node): Call node removal hooks.
8508         (cgraph_clone_edge): Call edge duplication hooks.
8509         (cgraph_clone_node): Call node duplication hooks.
8510
8511         * cgraph.h (cgraph_edge): New field uid.
8512         (cgraph_edge_hook): New type.
8513         (cgraph_node_hook): New type.
8514         (cgraph_2edge_hook): New type.
8515         (cgraph_2node_hook): New type.
8516
8517 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
8518
8519         * config.in: Regenerate.
8520
8521 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
8522
8523         * gcc.c (print_sysroot): New.
8524         (option_map, display_help, process_command): Handle the
8525         -print-sysroot option.
8526         (main): Print the sysroot if requested.
8527         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
8528
8529 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8530
8531         PR target/34780
8532         * unwind-pe.h (size_of_encoded_value): add attribute unused.
8533
8534 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
8535
8536         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
8537         (assign_parm_setup_block_p): Also check mode of entry_parm.
8538
8539 2008-07-07  Richard Guenther  <rguenther@suse.de>
8540
8541         * tree-ssa-structalias.h (set_used_smts): Remove.
8542         * tree-ssa-structalias.c (used_smts): Likewise.
8543         (set_used_smts): Likewise.
8544         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
8545         call to set_used_smts.
8546
8547 2008-07-07  Richard Guenther  <rguenther@suse.de>
8548
8549         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
8550         (new_var_info): Set it to false.
8551         (solution_set_add): Correctly handle pointers outside a var and
8552         inside a field.
8553         (type_safe): Treat variables with is_full_var properly.
8554         (do_sd_constraint): Likewise.
8555         (do_ds_constraint): Likewise.
8556         (process_constraint): Remove zeroing offset for !use_field_sensitive.
8557         (get_constraint_for_ptr_offset): New function.
8558         (get_constraint_for_component_ref): For addresses at least include
8559         the last field of the variable.  Handle is_full_vars properly.
8560         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
8561         (handle_ptr_arith): Remove.
8562         (find_func_aliases): Simplify assignment handling.
8563         (create_function_info_for): For parameter and result varinfos set
8564         is_full_var flag.
8565         (create_variable_info_for): Set is_full_var flag whenever we
8566         just created a single varinfo for a decl.
8567         (init_alias_vars): Initialize use_field_sensitive from
8568         max-fields-for-field-sensitive parameter.
8569
8570 2008-07-07  Richard Guenther  <rguenther@suse.de>
8571
8572         PR tree-optimization/36713
8573         * tree-flow-inline.h (is_call_used): New function.
8574         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
8575         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8576         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
8577
8578 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8579
8580         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
8581
8582 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
8583
8584         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
8585
8586 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8587             Nathan Sidwell  <nathan@codesourcery.com>
8588
8589         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
8590         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
8591         tmake_file.
8592         * config/m68k/t-linux: New.
8593         * doc/install.texi: Document m68k-*-linux is now multilibbed by
8594         default.
8595
8596 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
8597
8598         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
8599         * config/m68k/m68k-devices.def: Remove multilibs that only differ
8600         by MAC/EMAC.
8601
8602 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8603
8604         * gcc.c (execute): Fix -Wc++-compat warning.
8605
8606 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
8607
8608         PR target/36720
8609         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
8610         constant for little endian.
8611
8612 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
8613
8614         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
8615         mips_base_mips16 instead of TARGET_MIPS16.
8616         (mips_base_mips16): Declare.
8617         * config/mips/mips.c (mips_base_mips16): Make global.
8618         (was_mips16_p): Remove GTY marker.
8619         (was_mips16_pch_p): New variable.
8620         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
8621         (mips_override_options): Force to non-MIPS16 mode initially.
8622         Do not complain about MIPS16 PIC incompatibilities here.
8623         Only allow -mgpopt if -mexplicit-relocs is in force for
8624         non-MIPS16 code.
8625
8626 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
8627
8628         * configure.ac: Check for caddr_t, define to char * if not defined.
8629         * configure: Regenerate.
8630         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
8631         (mmap_gt_pch_use_address): Likewise.
8632         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
8633
8634 2008-07-06  Richard Guenther  <rguenther@suse.de>
8635
8636         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
8637         (new_var_info): Deal with it.
8638         (solution_set_add): Likewise.
8639         (bitpos_of_field): Make signed, fix.
8640         (struct fieldoff): Remove type and decl fields.  Make size field
8641         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
8642         flags.
8643         (fieldoff_compare): Deal with it.
8644         (push_fields_onto_fieldstack): Remove has_union argument, glob
8645         adjacent non-pointer fields together.
8646         (create_function_info_for): Do not set has_union.
8647         (create_variable_info_for): Simplify.
8648
8649 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
8650
8651         * config.gcc (extra_headers): Add cross-stdarg.h for target
8652         x86_64-*-* and i?86-*-*.
8653         * config/i386/cross-stdarg.h: New.
8654         * builtins.c (std_fn_abi_va_list): New.
8655         (std_canonical_va_list_type): New.
8656         (stabilize_va_list): Replace va_list_type_node use by
8657         mtarget.canonical_va_list_type.
8658         (gimplify_va_arg_expr): Likewise.
8659         (expand_builtin_va_copy): Replace va_list_type_node use by
8660         mtarget.fn_abi_va_list.
8661         * tree-sra.c (is_va_list_type): New helper.
8662         (decl_can_be_decomposed_p): Replace
8663         va_list_type_node use by is_va_list_type.
8664         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
8665         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8666         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
8667         * config/i386/i386-protos.h (ix86_get_valist_type): New.
8668         (ix86_enum_va_list): New.
8669         * config/i386/i386.c (sysv_va_list_type_node): New.
8670         (ms_va_list_type_node): New.
8671         (ix86_function_type_abi): Remove sorry.
8672         (ix86_build_builtin_va_list_abi): New.
8673         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
8674         for 64-bit targets.
8675         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
8676         (ix86_init_builtins_va_builtins_abi): New.
8677         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
8678         for 64-bit targets.
8679         (ix86_handle_abi_attribute): New.
8680         (attribute_spec): Add sysv_abi and ms_abi.
8681         (ix86_fn_abi_va_list): New.
8682         (ix86_canonical_va_list_type): New.
8683         (ix86_enum_va_list): New.
8684         (TARGET_FN_ABI_VA_LIST): New.
8685         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8686         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
8687         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
8688         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8689         (TARGET_ENUM_VA_LIST): New.
8690         * expr.h (std_fn_abi_va_list): New.
8691         (std_canonical_va_list_type): New.
8692         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
8693         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8694         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
8695         TARGET_CANONICAL_VA_LIST_TYPE.
8696         * target.h (struct gcc_target): Add fn_abi_va_list hook
8697         and canonical_va_list_type hook.
8698
8699 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8700
8701         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
8702         integral and pointer types.
8703
8704 2008-07-04  Roger Sayle  <roger@eyesopen.com>
8705
8706         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
8707         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
8708
8709 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8710
8711         PR target/36684
8712         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
8713
8714 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
8715
8716         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
8717         build_gimple_modify_stmt.
8718         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
8719         gimple operand.  Use fold_build* instead of build*.
8720
8721 2008-07-04  Richard Guenther  <rguenther@suse.de>
8722
8723         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
8724         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
8725         properly to compute the reachability set if we do field-sensitive PTA.
8726         * invoke.texi (max-fields-for-field-sensitive): Document default.
8727         * opts.c (decode_options): Set max-fields-for-field-sensitive to
8728         100 for optimize >= 2.
8729
8730 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8731
8732         * ggc-zone.c (lookup_page_table_if_allocated,
8733         set_page_table_entry, zone_find_object_size, alloc_small_page,
8734         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
8735         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
8736         -Wc++-compat and/or -Wcast-qual warnings.
8737
8738 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
8739
8740         PR target/36634
8741         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
8742         pic_offset_table_rtx to be marked as used here.
8743         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
8744         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
8745         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
8746         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
8747         !TARGET_SECURE_PLT.
8748
8749 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8750
8751         * alloc-pool.c (hash_descriptor, eq_descriptor,
8752         alloc_pool_descriptor): Fix -Wc++-compat warnings.
8753         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
8754         Likewise.
8755         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
8756         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
8757         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
8758         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
8759         Likewise.
8760
8761 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
8762
8763         * tree-flow.h (loop_only_exit_p): Declare.
8764         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
8765         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
8766         the number of iterations if it is constant.  Otherwise, if this is the
8767         only possible exit of the loop, use the conservative estimate on the
8768         number of iterations of the entire loop if available.
8769
8770 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
8771
8772         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
8773         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
8774         Add synchronization functions.
8775         * config/sync.c: New file.
8776         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
8777         (LIBGCC_SYNC_CFLAGS): Likewise.
8778
8779 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
8780
8781         PR target/36710
8782         * config/i386/i386.md (mode): Add TF to "mode" attribute.
8783         (*pushtf_sse): New insn pattern.
8784         (pushtf splitters): New splitters.
8785
8786 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
8787
8788         PR middle-end/35736
8789         * predict.c (build_predict_expr): Use void_type_node for the tree
8790         type, instead of NULL_TREE.
8791
8792 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
8793
8794         * config/i386/i386.c (contains_aligned_value_p): Return true
8795         for TCmode.
8796         (ix86_data_alignment): Align TCmode to 128bits.
8797         (ix86_local_alignment): Likewise.
8798
8799 2008-07-03  Andrew Haley  <aph@redhat.com>
8800
8801         PR bootstrap/33304
8802         * vec.h (VEC_TA): New.
8803         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
8804         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
8805         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
8806         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
8807         (C_COMMON_FIXED_TYPES): Remove first arg.
8808         (C_COMMON_FIXED_MODE_TYPES): Likewise.
8809         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
8810         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
8811         not to use empty macro arguments.
8812
8813 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
8814
8815         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
8816         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
8817         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
8818         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
8819         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
8820         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
8821         config/ia64/crtn.asm, config/m68hc11/larith.asm,
8822         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
8823         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
8824         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
8825         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
8826         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
8827         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
8828         config/rs6000/e500crtres64gpr.asm,
8829         config/rs6000/e500crtres64gprctr.asm,
8830         config/rs6000/e500crtrest32gpr.asm,
8831         config/rs6000/e500crtrest64gpr.asm,
8832         config/rs6000/e500crtresx32gpr.asm,
8833         config/rs6000/e500crtresx64gpr.asm,
8834         config/rs6000/e500crtsav32gpr.asm,
8835         config/rs6000/e500crtsav64gpr.asm,
8836         config/rs6000/e500crtsav64gprctr.asm,
8837         config/rs6000/e500crtsavg32gpr.asm,
8838         config/rs6000/e500crtsavg64gpr.asm,
8839         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
8840         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
8841         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
8842         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
8843         config/sparc/sol2-cn.asm: Remove .file directives.
8844
8845 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
8846
8847         * resource.c (mark_referenced_resources): Look inside
8848         UNSPEC_VOLATILEs and ASM_INPUTs.
8849
8850 2008-07-02  Ian Lance Taylor  <iant@google.com>
8851
8852         * rtlanal.c (add_reg_note): New function.
8853         * rtl.h (add_reg_note): Declare.
8854         * auto-inc-dec.c (attempt_change): Use add_reg_note.
8855         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
8856         * builtins.c (expand_builtin_longjmp): Likewise.
8857         (expand_builtin_nonlocal_goto): Likewise.
8858         * calls.c (emit_call_1, expand_call): Likewise.
8859         * cfgexpand.c (add_reg_br_prob_note): Likewise.
8860         * cfglayout.c (fixup_reorder_chain): Likewise.
8861         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
8862         (commit_one_edge_insertion): Likewise.
8863         * combine.c (move_deaths, distribute_notes): Likewise.
8864         * df-problems.c (df_set_note): Likewise.
8865         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
8866         (set_unique_reg_note): Likewise.
8867         (emit_copy_of_insn_after): Likewise.
8868         * expr.c (expand_expr_real): Likewise.
8869         * gcse.c (add_label_notes): Likewise.
8870         * haifa-sched.c (create_check_block_twin): Likewise.
8871         * jump.c (mark_jump_label_1): Likewise.
8872         * loop-doloop.c (add_test, doloop_modify): Likewise.
8873         * loop-unswitch.c (compare_and_jump_seq): Likewise.
8874         * lower-subreg.c (move_eh_region_note): Likewise.
8875         * optabs.c (emit_libcall_block): Likewise.
8876         * predict.c (predict_insn): Likewise.
8877         (combine_predictions_for_insn): Likewise.
8878         * recog.c (peephole2_optimize): Likewise.
8879         * regmove.c (try_auto_increment): Likewise.
8880         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
8881         * reload.c (find_reloads): Likewise.
8882         * reload1.c (fixup_eh_region_note): Likewise.
8883         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
8884         * reorg.c (delete_prior_computation): Likewise.
8885         (delete_computation, dbr_schedule): Likewise.
8886         * config/pa/pa.c (legitimize_pic_address): Likewise.
8887         * config/sh/sh.c (sh_reorg): Likewise.
8888
8889 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
8890
8891         PR target/36669
8892         * config/libgcc-glibc.ver: Add %exclude.
8893         * config/m32r/libgcc-glibc.ver: Likwise.
8894         * config/s390/libgcc-glibc.ver: Likwise.
8895         * config/sh/libgcc-glibc.ver: Likwise.
8896         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
8897
8898         * config/i386/libgcc-glibc.ver: New.
8899
8900         * config/i386/libgcc-x86_64-glibc.ver: Removed.
8901
8902 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
8903
8904         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
8905         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
8906         i[34567]86-*-linux*, x86_64-*-linux*.  Add
8907         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
8908         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
8909         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
8910         i[34567]86-*-linux*, x86_64-*-linux*.
8911
8912         * libgcc-std.ver: Add empty GCC_4.4.0.
8913
8914         * mkmap-symver.awk: Support multiple versions per symbol.
8915
8916         * config/i386/i386.c (ix86_init_builtins): Always define
8917         __builtin_fabsq and __builtin_copysignq with fallbacks.
8918         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
8919         and __builtin_copysignq if SSE2 isn't available.
8920
8921         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
8922         (LIBGCC2_TF_CEXT): Likwise.
8923         (TF_SIZE): Likwise.
8924
8925         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
8926
8927         * config/i386/sfp-machine.h: Moved to libgcc.
8928
8929         * config/i386/sfp-machine.h: New.
8930         * config/i386/t-linux: Likwise.
8931
8932         * config/i386/t-darwin: Remove softfp_wrap_start and
8933         softfp_wrap_end.
8934         * config/i386/t-darwin64: Likewise.
8935
8936         * config/i386/t-fprules-softfp64: Renamed to ...
8937         * config/i386/t-fprules-softfp: This.
8938
8939         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
8940         and softfp_wrap_end.
8941
8942 2008-07-02  Jason Merrill  <jason@redhat.com>
8943
8944         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
8945
8946         * tree.c (ctor_to_list): New fn.
8947         * tree.h: Declare it.
8948         (CONSTRUCTOR_ELT): New macro.
8949         (CONSTRUCTOR_NELTS): New macro.
8950
8951 2008-07-02  Richard Guenther  <rguenther@suse.de>
8952
8953         * tree-ssa-structalias.c (struct variable_info): Reorder
8954         to fill padding on 64bit hosts.  Make collapsed_to an int.
8955         (get_varinfo_fc): Deal with that.
8956         (new_var_info): Likewise.
8957         (collapse_rest_of_var): Likewise.
8958
8959 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
8960
8961         * doc/install.texi (--enable-java-home): Document.
8962         (--enable-aot-compile-rpm): Likewise.
8963         (--with-arch-directory): Likewise.
8964         (--with-os-directory): Likewise.
8965         (--with-origin-name): Likewise.
8966         (--with-arch-suffix): Likewise.
8967         (--with-jvm-root-dir): Likewise.
8968         (--with-jvm-jar-dir): Likewise.
8969         (--with-python-dir): Likewise.
8970
8971 2008-07-02  Richard Guenther  <rguenther@suse.de>
8972
8973         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
8974         from decls explicitly.  Merge operand checking from tuples.
8975
8976 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8977
8978         * tree-switch-conversion.c: Included timevar.h which I forgot before.
8979
8980 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8981
8982         * tree-switch-conversion.c: Included timevar.h
8983         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
8984
8985         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
8986
8987 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8988
8989         * tree-switch-conversion.c: Corrected various comments and
8990         whitespace issues
8991         (build_constructors): Fixed minor formatting mistakes.
8992
8993         * invoke.texi (Optimize Options): Corrected the
8994         switch-conversion-max-branch-ratio parameter.
8995
8996 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
8997
8998         * final.c (asm_insn_count): Return zero for an empty asm body.
8999
9000 2008-07-02  Richard Guenther  <rguenther@suse.de>
9001
9002         * bitmap.h (bitmap_set_bit): Return bool.
9003         (bitmap_clear_bit): Likewise.
9004         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
9005         write to the bitmap if it would.
9006         (bitmap_clear_bit): Likewise.
9007         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
9008         bitmap_set_bit return value.
9009         (add_pred_graph_edge): Likewise.
9010         (add_graph_edge): Likewise.
9011         (do_sd_constraint): Likewise.
9012         (do_ds_constraint): Likewise.
9013
9014 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9015
9016         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
9017         Fix -Wc++-compat and/or -Wcast-qual warnings.
9018         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
9019         gen_regparm_prefix): Likewise.
9020         * vmsdbgout.c (write_modbeg, lookup_filename,
9021         vmsdbgout_source_line, vmsdbgout_init): Likewise.
9022
9023 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
9024
9025         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
9026         defaults.h definition apply.
9027
9028 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
9029
9030         * function.c (assign_parm_remove_parallels): New.
9031         (assign_parm_setup_block_p): Do not return true for non-BLKmode
9032         PARALLELs.
9033         (assign_parm_setup_block): Do not handle them.
9034         (assign_parm_setup_reg, assign_parm_setup_stack): Call
9035         assign_parm_remove_parallels.
9036
9037 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
9038
9039         * c-typeck.c (convert_for_assignment): Use
9040         vector_targets_convertible_p.
9041         * c-common.c (vector_targets_convertible_p): New.
9042         * c-common.h (vector_targets_convertible_p): New prototype.
9043         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
9044         opaque_p_V2SI_type_node.
9045
9046 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
9047
9048         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
9049         RFmode constants.
9050
9051 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
9052
9053         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
9054         TFmode constants via two element DImode vector for hosts with
9055         HOST_BITS_PER_WIDE_INT < 64.
9056         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
9057         also for HOST_BITS_PER_WIDE_INT < 64.
9058
9059 2008-07-01  Richard Guenther  <rguenther@suse.de>
9060
9061         PR tree-optimization/36666
9062         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
9063         (get_constraint_exp_from_ssa_var): Split into ...
9064         (get_constraint_exp_for_temp): ... this ...
9065         (get_constraint_for_ssa_var): ... and that.
9066         Return constraint expressions for all touched sub-fields
9067         if the results address is not taken.
9068         (process_constraint): Remove assertion that aggregate
9069         assignments do not happen at this place.
9070         (get_constraint_for_component_ref): Add address_p argument.
9071         Return constraint expressions for all touched sub-fields
9072         if the results address is not taken.
9073         (do_deref): Use get_constraint_exp_for_temp.
9074         (get_constraint_for_1): Rename from ...
9075         (get_constraint_for): ... this.  Add the old function as wrapper.
9076         (do_structure_copy): Use get_constraint_for_1.
9077
9078 2008-07-01  Martin Jambor  <mjambor@suse.cz>
9079
9080         * Makefile.in (tree-switch-conversion.o): Add.
9081         (OBJS-common): Add tree-swtch-conversion.o.
9082         * passes.c (init_optimization_passes): Add pass_convert_switch.
9083         * tree-pass.h: (pass_convert_switch): Add.
9084         * tree-switch-conversion.c: New file.
9085         * gcc.dg/tree-ssa/cswtch.c: New testcase.
9086         * common.opt (ftree-cswtch): New option.
9087         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
9088         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
9089         * opts.c (decode_options): Set flag_tree_switch_conversion when
9090         optimization level is >= 2.
9091         * doc/invoke.texi (Optimize Options): Added description of
9092         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
9093
9094 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9095
9096         * config/darwin-driver.c (darwin_default_min_version): Fix
9097         -Wc++-compat warnings.
9098
9099 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
9100
9101         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
9102         of operand 0.
9103
9104 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
9105
9106         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
9107
9108 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
9109
9110         PR rtl-optimization/34744
9111         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
9112         (df_scan_free_internal): Free data structures not
9113         allocated in storage pools.
9114         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
9115         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
9116         df_scan_free_mws_vec.
9117         * dse.c (dse_step6): Free offset_map_p and offset_map_n
9118         unconditionally.
9119
9120 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
9121
9122         * config/i386/i386.c (contains_aligned_value_p): Return true
9123         for __float128.
9124         (ix86_function_arg_boundary): Return its natural boundary
9125         for __float128.
9126         (return_in_memory_32): Don't check TDmode.
9127         (ix86_split_to_parts): Support splitting into 4 parts and
9128         support TFmode for 32bit target.
9129         (ix86_split_long_move): Support splitting into 4 parts.
9130         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
9131         for SSE2.
9132         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
9133         (ix86_init_builtins): Here.
9134         (ix86_scalar_mode_supported_p): Always return true for TFmode.
9135         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
9136         'q' and 'w', respectively.
9137
9138         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
9139         TARGET_64BIT.
9140         (movtf_internal): Likewise.
9141         (<code>tf2): Likewise.
9142         (*absnegtf2_sse): Likewise.
9143         (copysign<mode>3): Likewise.
9144         (copysign<mode>3_const): Likewise.
9145         (copysign<mode>3_var): Likewise.
9146         (define_split UNSPEC_COPYSIGN): Likewise.
9147         * config/i386/sse.md (*nandtf3): Likewise.
9148         (<code>tf3): Likewise.
9149         (*<code>tf3): Likewise.
9150
9151 2008-06-30  Joey Ye  <joey.ye@intel.com>
9152             H.J. Lu  <hongjiu.lu@intel.com>
9153
9154         * global.c (compute_regsets): Set frame_pointer_needed here.
9155         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
9156
9157 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
9158
9159         * doc/install.texi (specific): Expand Windows build notes.
9160
9161 2008-06-30  Ira Rosen  <irar@il.ibm.com>
9162
9163         PR tree-optimization/36648
9164         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
9165         number of prolog iterations by step. Fix the comment.
9166
9167 2008-06-30  Richard Guenther  <rguenther@suse.de>
9168
9169         PR middle-end/36671
9170         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
9171         handle calls from ECF_MALLOC functions.
9172         (handle_pure_call): ECF_MALLOC functions do not return
9173         call-used memory.
9174         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
9175
9176 2008-06-29  Andreas Schwab  <schwab@suse.de>
9177
9178         * config/m68k/m68k.c (print_operand): Always print a float
9179         constant in hex.
9180         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
9181         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
9182         Remove macros.
9183
9184         * config/rs6000/x-linux64: Remove never used file.
9185
9186 2008-06-29  Richard Guenther  <rguenther@suse.de>
9187
9188         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
9189         prototype.
9190         (struct alias_info): Move ...
9191         * tree-ssa-alias.c: ... here.
9192         (update_alias_info): Declare.
9193         (compute_may_aliases): Call it.
9194         (update_alias_info): New function.
9195         * tree-ssa-structalias.c (update_alias_info): Move ...
9196         * tree-ssa-alias.c (update_alias_info_1): ... here.
9197         * tree-ssa-structalias.c (process_constraint_1): Remove
9198         unused from_call argument.  Rename to ...
9199         (process_constraint): ... this.  Delete old wrapper.
9200         (make_constraint_to): Adjust callers.
9201         (handle_const_call): Likewise.
9202         (handle_pure_call): Likewise.
9203         (init_base_vars): Likewise.
9204         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
9205         (find_func_aliases): We don't need structure copies for
9206         complex types.
9207         (make_constraint_from_anything): Remove.
9208         (create_variable_info_for): For globals make constraints
9209         from escaped, not from anything.
9210         (compute_points_to_sets): Do not call update_alias_info.
9211         (ipa_pta_execute): Use make_constraint_from.
9212
9213 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9214
9215         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
9216         (bitmap.o-warn, dominance.o-warn): New.
9217         * configure.ac (cxx_compat_warn): Delete.
9218         (loose_warn): Add -Wcast-qual and -Wc++-compat.
9219         * system.h: Remove #pragma diagnostic for -Wcast-qual and
9220         -Wc++-compat.
9221         * configure: Regenerate.
9222
9223         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
9224         warnings.
9225
9226 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9227
9228         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
9229         * df-scan.c (df_notes_rescan): Likewise.
9230         * ggc-page.c (set_page_table_entry): Likewise.
9231         * intl.c (gcc_gettext_width): Likewise.
9232         * varasm.c (get_unnamed_section, get_noswitch_section,
9233         get_section): Likewise.
9234
9235 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
9236
9237         * regrename.c (build_def_use): Don't copy RTX.
9238
9239 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
9240
9241         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
9242         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
9243         punctuation.  Use @ref instead of @xref.
9244         (Function Names): Remove stray @display/@end display.
9245         (C++ Attributes): Use @ref instead of @xref.
9246         (Deprecated Features): Fix punctuation around @xref.
9247         (Backwards Compatibility): Likewise.
9248         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
9249
9250 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
9251
9252         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
9253         constants for E500 double.
9254
9255 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9256
9257         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
9258         element type of const_vector.
9259
9260 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
9261
9262         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
9263         Remove FLAGS_REG clobber from expander pattern.
9264         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
9265         (anddi3, andsi3, andhi3, andqi3): Ditto.
9266         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
9267         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
9268         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
9269         (ashlsi3, ashlhi3, ashlqi3): Ditto.
9270         (ashrsi3, ashrhi3, ashrqi3): Ditto.
9271         (lshrsi3, lshrhi3, lshrqi3): Ditto.
9272         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
9273         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
9274
9275 2008-06-28  Richard Guenther  <rguenther@suse.de>
9276
9277         * tree-ssa-structalias.c (callused_id, var_callused,
9278         callused_tree): Add.
9279         (handle_pure_call): New function.
9280         (find_func_aliases): Call it.
9281         (find_what_p_points_to): Handle the call-used set.
9282         (clobber_what_escaped): Likewise.
9283         (compute_call_used_vars): New function.
9284         (init_base_vars): Init the call-used variable.
9285         (do_sd_constraint): Do not propagate the solution from CALLUSED
9286         but use CALLUSED as a placeholder.
9287         (solve_graph): Likewise.
9288         * tree-flow-inline.h (gimple_call_used_vars): New function.
9289         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
9290         (compute_call_used_vars): Declare.
9291         * tree-ssa-alias.c (set_initial_properties): Call
9292         compute_call_used_vars.
9293         (reset_alias_info): Clear call-used variables.
9294         (add_call_clobber_ops): Assert we are not called for const/pure
9295         functions.  Remove handling of them.
9296         (add_call_read_ops): Handle pure functions by adding the
9297         call-used set of variables as VUSEs.
9298         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
9299         (delete_tree_ssa): Free it.
9300         * tree-dfa.c (remove_referenced_var): Clear the var from the
9301         call-used bitmap.
9302
9303 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
9304
9305         * tree.c (build_varargs_function_type_list): New.
9306         (build_function_type_list_1): New.
9307         (build_function_type_list): Use build_function_type_list_1.
9308         * tree.h (build_varargs_function_type_list): New.
9309
9310 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9311
9312         PR target/34856
9313         * config/spu/spu.c (spu_builtin_splats): Do not generate
9314         invalid CONST_VECTOR expressions.
9315         (spu_expand_vector_init): Likewise.
9316
9317 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
9318
9319         * optabs.c (libfunc_decls): New variable.
9320         (libfunc_decl_hash, libfunc_decl_eq): New functions.
9321         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
9322         for the same function twice.
9323
9324 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
9325
9326         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
9327         ix86_expand_binary_operator directly.
9328         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
9329         for operand 2.
9330         (*ashrti3_1): Ditto.
9331         (*lshrti3_1): Ditto.
9332         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
9333         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
9334         using only one splitter.  Conditionaly execute splitter before or
9335         after peephole2 pass.
9336         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
9337         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
9338         Use only one alternative in asm template.
9339         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
9340         in asm template.
9341         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
9342         "J" operand constraint for operand 2.
9343         (*ashldi3_cconly_rex64): Ditto.
9344         (*ashrdi3_cmp_rex64): Ditto.
9345         (*ashrdi3_cconly_rex64): Ditto.
9346         (*lshrdi3_cmp_rex64): Ditto.
9347         (*lshrdi3_cconly_rex64): Ditto.
9348         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
9349         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
9350         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
9351         gen_x86_shrd_1.
9352
9353 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
9354
9355         * gimplify.c (omp_is_private): Don't return true if decl is not
9356         already private on #pragma omp for or #pragma omp parallel for.
9357
9358         PR debug/36617
9359         * tree-cfg.c (struct move_stmt_d): Replace block field with
9360         orig_block and new_block fields.
9361         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
9362         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
9363         (move_block_to_fn): Replace vars_map and new_label_map arguments
9364         with struct move_stmt_d pointer.
9365         (replace_block_vars_by_duplicates): New function.
9366         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
9367         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
9368         all subblocks of ORIG_BLOCK to the new function.  Call
9369         replace_block_vars_by_duplicates.
9370         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
9371         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
9372         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
9373         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
9374         (expand_omp): Temporarily set input_location to the location of
9375         region's controlling stmt.
9376         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
9377         BIND_EXPR, push ctx->block_vars and gimplification vars into
9378         the BIND_EXPR and its block's BLOCK_VARS instead of directly
9379         into dest function.
9380         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
9381         there are any BLOCK_VARS.
9382         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
9383         OMP_PARALLEL or OMP_TASK stmt.
9384         (lower_omp): Save and restore input_location around the lower_omp_1
9385         call.
9386
9387 2008-06-27  Richard Guenther  <rguenther@suse.de>
9388
9389         PR tree-optimization/36400
9390         PR tree-optimization/36373
9391         PR tree-optimization/36344
9392         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
9393         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
9394         (update_alias_info): Remove call clobbering code.
9395         (make_constraint_to): New helper function.
9396         (make_escape_constraint): Likewise.
9397         (handle_rhs_call): Use it on all pointer containing arguments.
9398         Also mark the static chain escaped.
9399         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
9400         instead of ANYTHING.
9401         (make_constraint_from): New helper split out from ...
9402         (make_constraint_from_anything): ... here.
9403         (find_func_aliases): Add constraints for escape sites.
9404         (intra_create_variable_infos): Make constraints from NONLOCAL
9405         for parameters.
9406         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
9407         as ANYTHING.
9408         (clobber_what_p_points_to): Remove.
9409         (clobber_what_escaped): New function.
9410         (init_base_vars): Init NONLOCAL and ESCAPED.
9411         (do_sd_constraint): Do not propagate the solution from ESCAPED
9412         but use ESCAPED as a placeholder.
9413         (solve_graph): Likewise.
9414         * tree-flow.h (clobber_what_p_points_to): Remove.
9415         (clobber_what_escaped): Declare.
9416         * tree-ssa-alias.c (set_initial_properties): Call it.
9417         Remove code clobbering escaped pointers.
9418
9419 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
9420
9421         * function.c (allocate_struct_function): Only allocate a unique
9422         funcdef_no if the decl is nonzero.
9423
9424 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
9425
9426         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
9427         * config/mips/mips.c (mips_split_const_insns): New function.
9428         * config/mips/mips.md (move_type): New attribute.
9429         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
9430         (dword_mode): New attribute.
9431         (type): Avoid long line.  Map "move_type"s to "type"s,
9432         choosing "multi" for doubleword moves if appropriate.
9433         Swap MTC/MFC comments to match their declaration order.
9434         (extended_mips16): Default to "yes" if "move_type" is "sll0",
9435         "type" is "branch" or "jal" is "direct".
9436         (length): Handle "extended_mips16" first.  Make the default
9437         "0" for "ghost" instructions.  Set the length from "move_type".
9438         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
9439         of "type", with "sll0" for the register alternative.  Remove the
9440         "extended_mips16" attribute.
9441         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
9442         of "type", with "shift_shift" for the register alternative.
9443         Remove the "length" attribute.
9444         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
9445         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
9446         of "type", with "andi" for the register alternative.
9447         (*zero_extendqihi2): Likewise.
9448         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
9449         of "andi" instead of a "type" of "arith".
9450         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
9451         instead of "type".
9452         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
9453         (mov_<store>r, *mov<mode>_ra): Likewise.
9454         (extendsidi2): Use "move_type" instead of "type", with "move"
9455         for the register alternative.
9456         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
9457         of "type", with "signext" for the register alternative.
9458         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
9459         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
9460         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
9461         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
9462         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
9463         (unnamed branch insn): Likewise.
9464         (*movdi_gp32_fp64): Fold into...
9465         (*movdi_32bit): ...here.
9466         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
9467         (*movdf_hardfloat): ...this new pattern.
9468         (*movdf_softfloat): Remove redundant FPR alternatives.
9469         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
9470         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
9471         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
9472         the "move" attribute.
9473         (*movdi_32bit): Use "move_type" instead of "type" and remove the
9474         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
9475         and "store" for COP loads and stores.
9476         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
9477         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
9478         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
9479         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
9480         (*movtf_mips16, *movv2sf): Likewise.
9481         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
9482         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
9483         (mfhc1<mode>): Use "move_type" instead of "move".
9484         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
9485         (loadgp_blockage): Remove the "length" attribute.
9486         (blockage, set_got_version, update_got_version): Likewise.
9487         (call_internal): Remove the "extended_mips16" attribute.
9488         (call_value_internal, call_value_multiple_internal): Likewise.
9489         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
9490         instead of "move".
9491         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
9492         the "length" attribute.
9493
9494 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9495
9496         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
9497         -Wcast-qual warnings.
9498         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
9499         handle_pragma_pop_macro): Likewise.
9500         * collect2.c (resolve_lib_name): Likewise.
9501         * config/arc/arc.c (arc_init): Likewise.
9502         * config/arm/arm.c (neon_builtin_compare,
9503         locate_neon_builtin_icode): Likewise.
9504         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
9505         * config/bfin/bfin.c (bfin_init_machine_status,
9506         bfin_optimize_loop): Likewise.
9507         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
9508         * config/cris/cris.c (cris_init_expanders): Likewise.
9509         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
9510         * config/darwin.c (machopic_indirection_eq,
9511         machopic_indirection_name, machopic_output_indirection): Likewise.
9512         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
9513         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
9514         frv_optimize_membar): Likewise.
9515         * config/i386/cygwin.h (mingw_scan,
9516         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
9517         * config/i386/cygwin1.c (mingw_scan): Likewise.
9518         * config/i386/i386.c (machopic_output_stub): Likewise.
9519         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
9520         i386_pe_unique_section): Likewise.
9521         * config/ia64/ia64.c (ia64_init_machine_status,
9522         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
9523         Likewise.
9524         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
9525         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
9526         * config/m68k/m68k.c (m68k_handle_option,
9527         m68k_sched_md_init_global): Likewise.
9528         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
9529         mcore_unique_section): Likewise.
9530         * config/mips/mips.c (mips_block_move_straight,
9531         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
9532         Likewise.
9533         * config/mmix/mmix.c (mmix_init_machine_status,
9534         mmix_encode_section_info): Likewise.
9535         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
9536         * config/rs6000/rs6000.c (rs6000_init_machine_status,
9537         print_operand_address, output_toc, redefine_groups,
9538         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
9539         * config/s390/s390.c (s390_init_machine_status): Likewise.
9540         * config/score/score.c (score_block_move_straight,
9541         score_block_move_loop_body): Likewise.
9542         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
9543         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
9544         * emit-rtl.c (find_auto_inc): Likewise.
9545         * gcc.c (translate_options, process_command): Likewise.
9546         * reorg.c (dbr_schedule): Likewise.
9547         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
9548         * xcoffout.c (xcoffout_declare_function): Likewise.
9549
9550 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
9551
9552         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
9553         ipa-pta working again.
9554
9555 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
9556
9557         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
9558         genautomata.
9559
9560 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
9561
9562         * config.gcc (powerpc*-*-*): Add new core e500mc.
9563         * config/rs6000/e500mc.md: New file.
9564         * config/rs6000/rs6000.c (processor_costs): Add new costs for
9565         e500mc.
9566         (rs6000_override_options): Add e500mc case to
9567         processor_target_table. Altivec and Spe options not allowed
9568         with e500mc. Add isel instruction to e500mc by
9569         default. Initialize rs6000_cost for e500mc.
9570         (rs6000_issue_rate): Set issue rate for e500mc.
9571         * config/rs6000/rs6000.h (processor_type): Add
9572         PROCESSOR_PPCE500MC.
9573         (ASM_CPU_SPEC): Add e500mc.
9574         Set TARGET_ISEL to rs6000_isel.
9575         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
9576         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
9577         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
9578         Include e500mc.md.
9579         * doc/invoke.texi: Add e500mc to list of cpus.
9580
9581 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9582
9583         PR c/34867
9584         * c-lex.c (lex_charconst): Initialize unsignedp.
9585
9586 2008-06-27  Olivier Hainque  <hainque@adacore.com>
9587
9588         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
9589         documented assumptions.
9590
9591 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
9592
9593         * dwarf2out.c: Remove trailing white spaces.  Break long line
9594         in comments.
9595
9596 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
9597
9598         * libfuncs.h (LTI_synchronize): New libfunc_index.
9599         (synchronize_libfunc): Declare.
9600         * builtins.c (expand_builtin_synchronize): Consider using
9601         synchronize_libfunc before falling back on an asm blockage.
9602         * config/mips/mips.c: Include libfuncs.h
9603         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
9604
9605 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
9606
9607         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
9608         parameter.  Copy stack_reg to r11 where appropriate.
9609         (no_global_regs_above): Add gpr parameter.
9610         (rs6000_stack_info): Only add padding for SPE save area if we
9611         are saving SPE GPRs and CR.
9612         (saveres_routine_syms): New variable.
9613         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
9614         Define.
9615         (rs6000_savres_routine_sym): New function.
9616         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
9617         split out of...
9618         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
9619         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
9620         Tweak FPR out-of-line saving.
9621         (rs6000_make_savres_rtx): New function.
9622         (rs6000_use_multiple_p): New function.
9623         (rs6000_savres_strategy): New function.
9624         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
9625         out-of-line if appropriate.
9626         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
9627         if we are optimizing for size.
9628         (GP_SAVE_INLINE): Define.
9629         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
9630         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
9631         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
9632         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
9633         (*save_fpregs_<mode>): Add use of r11.
9634         (*restore_gpregs_<mode>): New insn.
9635         (*return_and_restore_gpregs_<mode>): New insn.
9636         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
9637         use r11.
9638         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
9639         (*restore_gpregs_spe): New insn.
9640         (*return_and_restore_gpregs_spe): New insn.
9641         * config/rs6000/predicates.md (save_world_operation): Fix check.
9642
9643 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9644
9645         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
9646         this point, so assert that.
9647
9648 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9649
9650         * cfganal.c: Include vec.h and vecprim.h.
9651         (compute_idf): Import from...
9652         * tree-into-ssa (compute_idf): ...here.
9653         * basic-block.h (compute_idf): Export.
9654
9655 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
9656
9657         * c-decl.c (merge_decls): Use !current_function_decl to check for
9658         extern declaration of C99 inline function being at file scope.
9659
9660 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
9661
9662         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
9663
9664 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9665
9666         * alias.c (record_alias_subset, init_alias_analysis): Fix
9667         -Wc++-compat and/or -Wcast-qual warnings.
9668         * attribs.c (lookup_attribute_spec): Likewise.
9669         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
9670         copy_bb, connect_traces,
9671         find_rarely_executed_basic_blocks_and_cr): Likewise.
9672         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
9673         note_btr_set, migrate_btr_defs): Likewise.
9674         * builtins.c (result_vector, expand_builtin_memcpy,
9675         expand_builtin_mempcpy_args, expand_builtin_strncpy,
9676         builtin_memset_read_str, expand_builtin_printf,
9677         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
9678         Likewise.
9679         * caller-save.c (mark_set_regs): Likewise.
9680         * calls.c (expand_call, emit_library_call_value_1): Likewise.
9681         * cgraph.c (cgraph_edge): Likewise.
9682         * combine.c (likely_spilled_retval_1): Likewise.
9683         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
9684         htab_counts_entry_del, get_coverage_counts): Likewise.
9685         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
9686         new_cselib_val): Likewise.
9687         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
9688         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
9689         Likewise.
9690         * df-core.c (df_compact_blocks): Likewise.
9691         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
9692         * df-scan.c (df_grow_reg_info, df_ref_create,
9693         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
9694         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
9695         df_record_entry_block_defs, df_record_exit_block_uses,
9696         df_bb_verify): Likewise.
9697         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
9698         DF_REF_EXTRACT_MODE_CONST): New.
9699         * dominance.c (get_immediate_dominator, get_dominated_by,
9700         nearest_common_dominator, root_of_dom_tree,
9701         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
9702         -Wc++-compat and/or -Wcast-qual warnings.
9703         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
9704         record_store, replace_read, check_mem_read_rtx, scan_insn,
9705         dse_step1, dse_record_singleton_alias_set): Likewise.
9706         * dwarf2asm.c (dw2_force_const_mem): Likewise.
9707
9708 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9709
9710         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
9711         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
9712         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
9713         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
9714         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
9715         add_ranges_num, add_ranges_by_labels, file_info_cmp,
9716         file_name_acquire, output_file_names, add_const_value_attribute,
9717         premark_used_types_helper, file_table_eq, file_table_hash,
9718         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
9719         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
9720         -Wcast-qual warnings.
9721         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
9722         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
9723         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
9724         gen_reg_rtx, start_sequence, init_emit): Likewise.
9725         * et-forest.c (et_new_occ, et_new_tree): Likewise.
9726         * except.c (init_eh_for_function, gen_eh_region,
9727         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
9728         arh_to_landing_pad, arh_to_label, add_action_record,
9729         add_call_site, switch_to_exception_section): Likewise.
9730         * expmed.c (synth_mult): Likewise.
9731         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
9732         store_expr): Likewise.
9733         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
9734         Likewise.
9735         * function.c (assign_stack_temp_for_type,
9736         allocate_struct_function, match_asm_constraints_1): Likewise.
9737         * gcov-io.c (gcov_allocate): Likewise.
9738         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
9739         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
9740         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
9741         record_one_set, insert_expr_in_table, insert_set_in_table,
9742         dump_hash_table, compute_hash_table_work, alloc_hash_table,
9743         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
9744         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
9745         -Wcast-qual warnings.
9746
9747 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9748
9749         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
9750         -Wcast-qual warnings.
9751         * gcc.c (process_command): Likewise.
9752         * genattrtab.c (oballoc): Use XOBNEW.
9753         (oballocvec): Define.
9754         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
9755         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
9756         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
9757         -Wc++-compat and/or -Wcast-qual warnings.
9758         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
9759         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
9760         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
9761         gen_presence_absence_set, gen_automaton, gen_regexp_el,
9762         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
9763         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
9764         add_excls, process_presence_absence_names,
9765         process_presence_absence_patterns, add_presence_absence,
9766         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
9767         get_free_state, add_arc, get_free_automata_list_el,
9768         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
9769         transform_3, cache_presence, create_ainsns, create_automata,
9770         create_state_ainsn_table, dfa_insn_code_enlarge,
9771         output_trans_func, output_min_issue_delay_func,
9772         output_dead_lock_func, output_reset_func,
9773         output_get_cpu_unit_code_func, output_dfa_start_func,
9774         expand_automata): Likewise.
9775         * genextract.c (gen_insn): Likewise.
9776         * gengtype-lex.l: Likewise.
9777         * gengtype.c (read_input_list, adjust_field_type,
9778         process_gc_options): Likewise.
9779         * genoutput.c (note_constraint): Likewise.
9780         * genpreds.c (mangle, add_constraint): Likewise.
9781         * genrecog.c (process_define_predicate, new_decision,
9782         add_to_sequence): Likewise.
9783         * gensupport.c (record_insn_name): Likewise.
9784
9785 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9786
9787         * config/i386/driver-i386.c (detect_caches_amd,
9788         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
9789         and/or -Wcast-qual warnings.
9790         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
9791         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
9792         gt_pch_save): Likewise.
9793         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
9794         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
9795         * global.c (compute_regsets): Likewise.
9796         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
9797         finish_graph_dump_file): Likewise.
9798         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
9799         unlink_bb_notes): Likewise.
9800         * integrate.c (get_hard_reg_initial_val): Likewise.
9801         * ipa-prop.c (ipa_push_func_to_list): Likewise.
9802         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
9803         * local-alloc.c (update_equiv_regs): Likewise.
9804         * loop-invariant.c (check_invariant_table_size,
9805         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
9806         Likewise.
9807         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
9808         altered_reg_used, mark_altered): Likewise.
9809         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
9810         insert_var_expansion_initialization,
9811         combine_var_copies_in_loop_exit, apply_opt_in_copies,
9812         release_var_copies): Likewise.
9813         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
9814         analyze_matrix_decl, add_allocation_site, analyze_transpose,
9815         analyze_accesses_for_phi_node, check_var_notmodified_p,
9816         check_allocation_function, find_sites_in_func,
9817         record_all_accesses_in_func, transform_access_sites,
9818         transform_allocation_sites): Likewise.
9819         * omp-low.c (new_omp_region, create_omp_child_function_name,
9820         check_omp_nesting_restrictions, check_combined_parallel,
9821         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
9822         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
9823         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
9824         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
9825         Likewise.
9826         * opts-common.c (prune_options): Likewise.
9827         * opts.c (add_input_filename, print_filtered_help,
9828         get_option_state): Likewise.
9829         * params.c (add_params): Likewise.
9830         * passes.c (set_pass_for_id, next_pass_1,
9831         do_per_function_toporder, pass_fini_dump_file): Likewise.
9832         * postreload.c (reload_cse_simplify_operands): Likewise.
9833         * predict.c (tree_predicted_by_p, tree_predict_edge,
9834         clear_bb_predictions, combine_predictions_for_bb): Likewise.
9835
9836 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9837
9838         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
9839         warnings.
9840         * recog.c (check_asm_operands, validate_change_1): Likewise.
9841         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
9842         subst_asm_stack_regs): Likewise.
9843         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
9844         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
9845         * regmove.c (reg_is_remote_constant_p): Likewise.
9846         * regrename.c (regrename_optimize, scan_rtx_reg,
9847         kill_clobbered_value, kill_set_value, kill_autoinc_value):
9848         Likewise.
9849         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
9850         regstat_compute_calls_crossed): Likewise.
9851         * reload1.c (init_reload, new_insn_chain,
9852         has_nonexceptional_receiver, reload, copy_reloads,
9853         calculate_needs_all_insns, init_elim_table): Likewise.
9854         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
9855         * rtl.c (shallow_copy_rtx_stat): Likewise.
9856         * rtlanal.c (parms_set): Likewise.
9857         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
9858         sbitmap_resize, sbitmap_vector_alloc): Likewise.
9859         * sched-ebb.c (earliest_block_with_similiar_load,
9860         add_deps_for_risky_insns): Likewise.
9861         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
9862         schedule_region): Likewise.
9863         * see.c (eq_descriptor_pre_extension,
9864         hash_descriptor_pre_extension, hash_del_pre_extension,
9865         eq_descriptor_properties, hash_descriptor_properties,
9866         hash_del_properties, see_seek_pre_extension_expr,
9867         see_initialize_data_structures, see_print_register_properties,
9868         see_print_pre_extension_expr, see_delete_merged_def_extension,
9869         see_delete_unmerged_def_extension, see_emit_use_extension,
9870         see_pre_delete_extension, see_map_extension, see_commit_changes,
9871         see_analyze_merged_def_local_prop,
9872         see_analyze_merged_def_local_prop,
9873         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
9874         see_set_prop_merged_def, see_set_prop_unmerged_def,
9875         see_set_prop_unmerged_use, see_print_one_extension,
9876         see_merge_one_use_extension, see_merge_one_def_extension,
9877         see_store_reference_and_extension, see_update_uses_relevancy,
9878         see_update_defs_relevancy): Likewise.
9879         * statistics.c (hash_statistics_hash, hash_statistics_eq,
9880         hash_statistics_free, curr_statistics_hash): Likewise.
9881         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
9882         expand_asm_operands, expand_return, case_bit_test_cmp,
9883         expand_case): Likewise.
9884         * stor-layout.c (start_record_layout): Likewise.
9885         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
9886         gt_pch_save_stringpool): Likewise.
9887         * tree-data-ref.c (hash_stmt_vertex_info,
9888         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
9889         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
9890
9891 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
9892
9893         PR target/36627
9894         * config/i386/i386.md : Change constraints of HImode and QImode
9895         immediate operands from "i" to "n".  Change SImode "ni" constraint to
9896         "i" and SImode "rmi" constraint to "g".  Remove all constraints
9897         from const0_operand and const1_operand predicated operands.
9898         (i): Change QImode and HImode attribute from "i" to "n".
9899         (*subqi_2): Change HImode operands to QImode.
9900         (*subqi_3): Ditto.
9901
9902 2008-06-25  Olivier Hainque  <hainque@adacore.com>
9903
9904         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
9905         sed substitutions.
9906
9907 2008-06-25  Richard Guenther  <rguenther@suse.de>
9908
9909         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
9910         not overflow the result type.
9911
9912 2008-06-25  Richard Guenther  <rguenther@suse.de>
9913
9914         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
9915         (vn_lookup): Likewise.
9916
9917 2008-06-25  Richard Guenther  <rguenther@suse.de>
9918
9919         PR tree-optimization/35518
9920         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
9921         * tree-sra.c (instantiate_element): Use fold_build3 to build
9922         BIT_FIELD_REFs.
9923         (try_instantiate_multiple_fields): Likewise.
9924
9925 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9926
9927         * config/rs6000/rs6000.md: Change all string instruction's clobber to
9928         be early clobbers.
9929
9930 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9931
9932         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
9933         use_backchain_to_restore_sp to true
9934         if the offset of the link register save area would go over the 32k - 1
9935         offset limit of the load
9936         instructions.
9937
9938 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
9939
9940         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
9941         anchor for the type-punning blurb.  Cross-reference "Structures
9942         unions enumerations and bit-fields implementation".  Provide a
9943         cast-through-pointer example.  Make final sentence self-contained.
9944         * doc/implement-c.texi (Structures unions enumerations and
9945         bit-fields implementation): Cross-reference the type-punning blurb
9946         in the -fstrict-aliasing documentation.
9947
9948 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9949
9950         PR middle-end/36594
9951         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
9952         the memory instead of the memory itself for the save area.
9953
9954 2008-06-24  Olivier Hainque  <hainque@adacore.com>
9955             Nicolas Roche  <roche@adacore.com>
9956
9957         * gengtype.c (srcdir_len): size_t instead of int.
9958         (get_file_realbasename): New function.  For F a filename, the real
9959         basename of F, with all the path components stripped.
9960         (get_file_srcdir_relative_path): New function.  For F a filename, the
9961         relative path to F from $(srcdir).
9962         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
9963         get_file_realbasename.  Adjust the head comment.
9964         (get_prefix_langdir_index): New function. For F a filename, return the
9965         lang_dir_names[] relative index of the language directory that is
9966         a prefix in F.
9967         (get_file_langdir): For F a filename, return the name of the language
9968         directory where F is located.
9969         (get_file_gtfilename): New function. The gt- output file name for an
9970         input filename F.
9971         (get_output_file_with_visibility): Replace in-line computations with
9972         uses of get_file_gtfilename and get_prefix_langdir_index.
9973         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
9974
9975 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
9976
9977         PR tree-optimization/36504
9978         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
9979         references without base address.
9980
9981 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9982
9983         PR middle-end/36584
9984         * calls.c (expand_call): Increase alignment for recursive functions.
9985
9986 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
9987
9988         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
9989         (TARGET_FUNCTION_VALUE): New define.
9990         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
9991         * config/avr/avr.h (FUNCTION_VALUE): Remove.
9992
9993 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9994
9995         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
9996         (fmod<mode>3): Ditto.
9997         (remainderxf3): Ditto.
9998         (remainder<mode>3): Ditto.
9999
10000 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
10001
10002         PR target/36533
10003         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
10004         REG is a hard register.
10005
10006         PR tree-optimization/36508
10007         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
10008         499, don't check it at all in release compilers.
10009
10010 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
10011
10012         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
10013         together with SSE_TARGET_MATH to disable insn pattern.
10014         (*fop_<MODEF:mode>_2_i387): Ditto.
10015         (*fop_<MODEF:mode>_3_i387): Ditto.
10016
10017 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
10018
10019         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
10020
10021 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10022
10023         PR middle-end/34906
10024         * gimplify.c (gimplify_asm_expr): Check the return code of
10025         parse_output_constraint call, set function return and is_inout
10026         value if it failed.
10027
10028 2008-06-22  Ian Lance Taylor  <iant@google.com>
10029
10030         * c-lex.c (narrowest_unsigned_type): Change itk to int.
10031         (narrowest_signed_type): Likewise.
10032         * c-typeck.c (c_common_type): Change local variable mclass to enum
10033         mode_class, twice.
10034         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
10035         tcc_comparison, not the tree code itself.
10036         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
10037         (c_expand_expr): Cast modifier to enum expand_modifier.
10038         * c-common.h (C_RID_CODE): Add casts.
10039         (C_SET_RID_CODE): Define.
10040         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
10041         (c_lex_one_token): Add cast to avoid warning.
10042         (c_parser_objc_type_name): Rename local typename to type_name.
10043         (check_no_duplicate_clause): Change code parameter to enum
10044         omp_clause_code.
10045         (c_parser_omp_var_list_parens): Change kind parameter to enum
10046         omp_clause_code.
10047         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
10048         c_parser_omp_list_var_parens.
10049         (c_parser_omp_threadprivate): Likewise.
10050         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
10051         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
10052         * c-format.c (NO_FMT): Define.
10053         (printf_length_specs): Use NO_FMT.
10054         (asm_fprintf_length_specs): Likewise.
10055         (gcc_diag_length_specs): Likewise.
10056         (scanf_length_specs): Likewise.
10057         (strfmon_length_specs): Likewise.
10058         (gcc_gfc_length_specs): Likewise.
10059         (printf_flag_specs): Change 0 to STD_C89.
10060         (asm_fprintf_flag_specs): Likewise.
10061         (gcc_diag_flag_specs): Likewise.
10062         (gcc_cxxdiag_flag_specs): Likewise.
10063         (scanf_flag_specs): Likewise.
10064         (strftime_flag_specs): Likewise.
10065         (strfmon_flag_specs): Likewise.
10066         (print_char_table): Likewise.
10067         (asm_fprintf_char_table): Likewise.
10068         (gcc_diag_char_table): Likewise.
10069         (gcc_tdiag_char_table): Likewise.
10070         (gcc_cdiag_char_table): Likewise.
10071         (gcc_cxxdiag_char_table): Likewise.
10072         (gcc_gfc_char_table): Likewise.
10073         (scan_char_table): Likewise.
10074         (time_char_table): Likewis.
10075         (monetary_char_table): Likewise.
10076         * c-format.h (BADLEN): Likewise.
10077
10078 2008-06-21  Ian Lance Taylor  <iant@google.com>
10079
10080         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
10081         Define END_OF_BASE_TREE_CODES around inclusion.
10082         * tree.c (tree_code_type): New global array.
10083         (tree_code_length, tree_code_name): Likewise.
10084         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
10085         $(lang_tree_files).
10086         (all-tree.def, s-alltree): New targets.
10087         (gencheck.h, s-gencheck): Remove.
10088         (tree.o): Depend upon all-tree.def.
10089         (build/gencheck.o): Remove gencheck.h dependency.
10090         (mostlyclean): Don't remove gencheck.h.
10091         * c-common.h (enum c_tree_code): Remove.
10092         * c-lang.c (tree_code_type): Remove.
10093         (tree_code_length, tree_code_name): Remove.
10094         * gencheck.c (tree_codes): Include all-tree.def, rather than
10095         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
10096         after it is used.
10097         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
10098         than tree.def.
10099         * cp/cp-tree.h (enum cplus_tree_code): Remove.
10100         (operator_name_info): Size to MAX_TREE_CODES.
10101         (assignment_operator_name_info): Likewise.
10102         * cp/cp-lang.c (tree_code_type): Remove.
10103         (tree_code_length, tree_code_name): Remove.
10104         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
10105         (assignment_operator_name_info): Likewise.
10106         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
10107         MAX_TREE_CODES.
10108         * cp/mangle.c (write_expression): Likewise.
10109         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
10110         * fortran/f95-lang.c (tree_code_type): Remove.
10111         (tree_code_length, tree_code_name): Remove.
10112         * java/java-tree.h (enum java_tree_code): Remove.
10113         * java/lang.c (tree_code_type): Remove.
10114         (tree_code_length, tree_code_name): Remove.
10115         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
10116         * objc/objc-act.h (enum objc_tree_code): Remove.
10117         * objc/objc-lang.c (tree_code_type): Remove.
10118         (tree_code_length, tree_code_name): Remove.
10119         * objcp/objcp-lang.c (tree_code_type): Remove.
10120         (tree_code_length, tree_code_name): Remove.
10121         * ada/ada-tree.h (enum gnat_tree_code): Remove.
10122         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
10123         * ada/misc.c (tree_code_type): Remove.
10124         (tree_code_length, tree_code_name): Remove.
10125
10126 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
10127
10128         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
10129         the grand_bitmap_obstack.
10130
10131 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10132
10133         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
10134         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
10135         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
10136         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
10137         move_stmt_r, new_label_mapper): Likewise.
10138         * tree-complex.c (cvc_lookup): Likewise.
10139         * tree-dfa.c (create_function_ann): Likewise.
10140         * tree-dump.c (dump_register): Likewise.
10141         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
10142         find_phi_replacement_condition): Likewise.
10143         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
10144         tree_function_versioning): Likewise.
10145         * tree-into-ssa.c (cmp_dfsnum): Likewise.
10146         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
10147         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
10148         get_nonlocal_debug_decl, convert_nonlocal_reference,
10149         convert_nonlocal_omp_clauses, get_local_debug_decl,
10150         convert_local_reference, convert_local_omp_clauses,
10151         convert_nl_goto_reference, convert_nl_goto_receiver,
10152         convert_tramp_reference, convert_call_expr): Likewise.
10153         * tree-outof-ssa.c (contains_tree_r): Likewise.
10154         * tree-parloops.c (reduction_phi, initialize_reductions,
10155         eliminate_local_variables_1, add_field_for_reduction,
10156         add_field_for_name, create_phi_for_local_result,
10157         create_call_for_reduction_1, create_loads_for_reductions,
10158         create_stores_for_reduction, create_loads_and_stores_for_name):
10159         Likewise.
10160         * tree-phinodes.c (allocate_phi_node): Likewise.
10161         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
10162         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
10163         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
10164         * tree-ssa-coalesce.c (compare_pairs): Likewise.
10165         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
10166         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
10167         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
10168         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10169         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
10170         vn_nary_op_insert): Likewise.
10171         * tree-ssa.c (redirect_edge_var_map_add,
10172         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
10173         * tree-vectorizer.c (vectorize_loops): Likewise.
10174         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
10175         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
10176         tree_cons_stat, build1_stat, build_variant_type_copy,
10177         decl_init_priority_lookup, decl_fini_priority_lookup,
10178         decl_priority_info, decl_restrict_base_lookup,
10179         decl_restrict_base_insert, decl_debug_expr_lookup,
10180         decl_debug_expr_insert, decl_value_expr_lookup,
10181         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
10182         type_hash_add, get_file_function_name, tree_check_failed,
10183         tree_not_check_failed, tree_range_check_failed,
10184         omp_clause_range_check_failed, build_omp_clause,
10185         build_vl_exp_stat): Likewise.
10186         * value-prof.c (gimple_histogram_value,
10187         gimple_duplicate_stmt_histograms): Likewise.
10188         * var-tracking.c (attrs_list_insert, attrs_list_copy,
10189         unshare_variable, variable_union_info_cmp_pos, variable_union,
10190         dataflow_set_different_1, dataflow_set_different_2,
10191         vt_find_locations, variable_was_changed, set_variable_part,
10192         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
10193         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
10194         section_entry_hash, object_block_entry_eq,
10195         object_block_entry_hash, create_block_symbol,
10196         initialize_cold_section_name, default_function_rodata_section,
10197         strip_reg_name, set_user_assembler_name, const_desc_eq,
10198         build_constant_desc, output_constant_def, lookup_constant_def,
10199         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
10200         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
10201         default_internal_label): Likewise.
10202         * varray.c (varray_init, varray_grow): Likewise.
10203         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
10204
10205 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
10206
10207         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
10208         operators for "test" insn.  Macroize insn using SWI mode macro.
10209         (*jcc_fused_2): Ditto.
10210         (*jcc_fused_3): Macroize insn using SWI mode macro.
10211         (*jcc_fused_4): Ditto.
10212
10213 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
10214
10215         * tree-ssa-pre.c: Fix typo in comment.
10216         (init_antic, fini_antic): Add explicit funtions for
10217         initializing and deinitializing ANTIC and AVAIL sets.
10218         (create_expression_by_pieces): Fix typo in comment.
10219         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
10220         (execute_pre): Eventually dump details about ANTIC_IN.
10221
10222 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10223
10224         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
10225         * gcc.c (translate_options, init_spec, store_arg, read_specs,
10226         add_to_obstack, file_at_path, find_a_file, execute,
10227         add_preprocessor_option, add_assembler_option, add_linker_option,
10228         process_command, insert_wrapper, do_option_spec, do_self_spec,
10229         spec_path, do_spec_1, is_directory, main, used_arg,
10230         getenv_spec_function): Likewise.
10231         * tlink.c (symbol_hash_lookup, file_hash_lookup,
10232         demangled_hash_lookup, symbol_push, file_push, frob_extension):
10233         Likewise.
10234
10235 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
10236
10237         * doc/rtl.texi: Updated subreg section.
10238
10239 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
10240
10241         PR c++/36523
10242         * cgraphunit.c (cgraph_process_new_functions): Don't clear
10243         node->needed and node->reachable.
10244         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
10245         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
10246         (expand_task_call): Don't call expand_task_copyfn.
10247         (expand_task_copyfn): Renamed to...
10248         (finalize_task_copyfn): ... this.
10249
10250 2008-06-19  Jan Hubicka  <jh@suse.cz>
10251
10252         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
10253         clobbering framepointer.
10254
10255 2008-06-19  Jan Hubicka  <jh@suse.cz>
10256
10257         * tree-optimize.c (execute_early_local_optimizations): Set
10258         cgraph_state only at first invocation.
10259
10260 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10261
10262         * system.h (-Wc++-compat): Activate as a warning, no an error.
10263
10264 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
10265
10266         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
10267         instead of "#" in insn asm template.
10268         (*jcc_fused_2): Ditto.
10269
10270 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
10271
10272         * config/i386/i386.h (ix86_tune_indices)
10273         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
10274         (TARGET_FUSE_CMP_AND_BRANCH): New define.
10275         * config/i386/i386.md (*jcc_fused_1): New insn pattern
10276         (*jcc_fused_2): Ditto.
10277         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
10278         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
10279         (print operand): Handle 'E' and 'e' code.
10280
10281 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
10282
10283         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
10284         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
10285         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10286
10287 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
10288
10289         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
10290         node->decl.
10291         (cgraph_expand_function): Use local copy of decl.
10292         (cgraph_expand_all_functions): Remove redundant initialization of
10293         order_pos.
10294         (cgraph_optimize): Reword internal_error message.
10295
10296 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
10297
10298         * arm-protos.h (arm_return_in_memory): Remove public
10299         arm_return_in_memory() prototype.
10300         * arm.c (arm_return_in_memory): Add static prototype, add target
10301         hook macro, change definition and comments.
10302         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
10303
10304 2008-06-19  Ben Elliston  <bje@au.ibm.com>
10305
10306         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
10307         real.c: Remove references to IEEE 754R.
10308         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
10309         * doc/libgcc.texi (Decimal float library routines): Likewise.
10310
10311 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10312
10313         * targhooks.h (struct gcc_target): New member unwind_word_mode.
10314         (default_unwind_word_mode): Add prototype.
10315         * targhooks.c (default_unwind_word_mode): New function.
10316         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
10317         instead of word_mode.
10318         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
10319         (TARGET_INITIALIZER): Use it.
10320
10321         * c-common.c (handle_mode_attribute): Support "unwind_word"
10322         mode attribute.
10323         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
10324
10325         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
10326         word_mode to access SjLj_Function_Context member "data".
10327         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
10328         conversion from targetm.eh_return_filter_mode () to
10329         targetm.unwind_word_mode () if they differ.
10330
10331         * builtin-types.def (BT_UNWINDWORD): New primitive type.
10332         (BT_FN_UNWINDWORD_PTR): New function type.
10333         (BT_FN_WORD_PTR): Remove.
10334         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
10335         * except.c (expand_builtin_extend_pointer): Convert pointer to
10336         targetm.unwind_word_mode () instead of word_mode.
10337
10338         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
10339         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
10340         (spu_unwind_word_mode): New function.
10341         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
10342         (TARGET_UNWIND_WORD_MODE): Define.
10343         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
10344
10345 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10346
10347         * config/spu/spu.c (reg_align): Remove.
10348         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
10349         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
10350         (spu_split_store): Likewise.
10351
10352 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
10353
10354         * gcc/tree-vn.c: Fix typo in comment.
10355
10356 2008-06-18  Jan Hubicka  <jh@suse.cz>
10357
10358         * cgraphunit.c (cgraph_optimize): Output debug info when doing
10359         toplevel reorder too.
10360
10361 2008-06-18  Jan Hubicka  <jh@suse.cz>
10362
10363         * c-opts.c (c_common_post_options): PCH is not compatible with
10364         no-unit-at-a-time.
10365         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
10366         -fno-toplevel-reorder by default now.
10367
10368 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10369
10370         PR documentation/30739
10371         * doc/install.texi (Prerequisites): Document dependency on awk.
10372
10373 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
10374             Ian Lance Taylor  <iant@google.com>
10375
10376         PR rtl-optimization/35604
10377         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
10378         only want to change jump destinations, not eventual label comparisons.
10379
10380 2008-06-16  Jan Hubicka  <jh@suse.cz>
10381
10382         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
10383         syntax errors.
10384         (cgraph_analyze_function): Likewise.
10385
10386 2008-06-16  Jan Hubicka  <jh@suse.cz>
10387
10388         * cgraph.h (cgraph_mark_if_needed): New function.
10389         * cgraphunit.c (cgraph_mark_if_needed): New function.
10390         * c-decl.c (duplicate_decl): Use it.
10391
10392 2008-06-16  Jan Hubicka  <jh@suse.cz>
10393
10394         * cgraph.c (cgraph_add_new_function): When in expansion state, do
10395         lowering.
10396
10397 2008-06-16  Jan Hubicka  <jh@suse.cz>
10398
10399         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
10400
10401 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
10402             Kazu Hirata  <kazu@codesourcery.com>
10403             Maxim Kuvyrkov  <maxim@codesourcery.com
10404
10405         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
10406         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
10407         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
10408         EXTRA_SPEC_FUNCTIONS.
10409         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
10410         (DRIVER_SELF_SPECS): Adjust.
10411         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
10412         * config/mips/st.h, config/mips/t-st: New.
10413         * config/mips/driver-native.c, config/mips/x-native: New.
10414         * doc/invoke.texi (MIPS): Document 'native' value for -march and
10415         -mtune options.
10416
10417 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10418
10419         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
10420         from it.
10421         (ISA_HAS_FP_CONDMOVE): New macro.
10422         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
10423         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
10424         (ISA_HAS_NMADD3_NMSUB3): New macro.
10425         * config/mips/mips.c (mips_rtx_costs): Update.
10426         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
10427         compiling for ST Loongson 2E/2F.
10428         (madd<mode>): Rename to madd4<mode>.  Update.
10429         (madd3<mode>): New pattern.
10430         (msub<mode>): Rename to msub4<mode>.  Update.
10431         (msub3<mode>): New pattern.
10432         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
10433         (nmadd3<mode>): New pattern.
10434         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
10435         (nmadd3<mode>_fastmath): New pattern.
10436         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
10437         (nmsub3<mode>): New pattern.
10438         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
10439         (nmsub3<mode>_fastmath): New pattern.
10440         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
10441
10442 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
10443
10444         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
10445         (DF_REF_INSN_INFO): New.
10446         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
10447         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
10448         with a NULL DF_REF_INSN_INFO.
10449         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
10450         DF_INSN_SET.
10451         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
10452         DF_INSN_INFO_EQ_USES): New.
10453         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
10454         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
10455         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
10456         * df-core.c: Update comment for above changes.
10457         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
10458         DF_INSN_UID_* macros.
10459         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
10460         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
10461         insn rtx.  Update all callers.
10462         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
10463         df_ref_create_structure, df_insn_refs_collect): Likewise.
10464         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
10465         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
10466         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
10467         macros to access the insn refs.
10468         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
10469         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
10470         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
10471         for accessing the refs.
10472         (try_fwprop_subst): Likewise.
10473         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
10474         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
10475         for accessing the refs.
10476         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
10477         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
10478         to look at the insn refs.
10479         (record_uses): Likewise.
10480         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
10481         function anymore.
10482         (mark_artificial_uses): Don't mark_insn for artificial refs.
10483         (mark_reg_rependencies): Likewise.
10484
10485         * doc/rtl.texi: Remove documentation of ADDRESSOF.
10486
10487 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10488
10489         * configure: Regenerate.
10490
10491 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10492
10493         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
10494         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10495         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10496
10497 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10498
10499         * config/avr/avr.c (avr_mcu_t): Add attiny167.
10500         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10501         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10502
10503 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10504
10505         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
10506         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10507         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10508
10509 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
10510
10511         * tree-ssa-sccvn.c: Fix format of comments.
10512
10513 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
10514
10515         * cgraph.c: Remove unneeded forward declarations of eq_node()
10516         and hash_node().
10517
10518 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
10519
10520         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
10521         REG_RETVAL notes.
10522         (see_update_relevancy): Likewise.
10523         * fwprop.c (try_fwprop_subst): Likewise.
10524         * rtlanal.c (noop_move_p): Likewise.
10525         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
10526         notes to non-existing libcall blocks.
10527         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
10528         Remove orig_set.
10529         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
10530         (dead_libcall_p): Remove.
10531         (delete_trivially_dead_insns): Don't use it.
10532         * web.c (union_defs): Remove comment about keeping nops.
10533         * gcse.c (hash_scan_insn): Don't take libcall pointers.
10534         (compute_hash_table_work): Don't track libcall notes.
10535         (do_local_cprop): Don't take libcall pointers.  Don't update
10536         libcall notes.
10537         (adjust_libcall_notes): Deleted.
10538         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
10539         ever have existed in the first place).
10540         (replace_store_insn): Don't try to remove libcall notes.
10541         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
10542         (resolve_reg_notes): Don't call them.
10543         (resolve_simple_move): Likewise.
10544         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
10545         Don't remove REG_RETVAL notes.
10546         * emit-rtl.c (try_split): Don't update libcall notes.
10547         (emit_copy_of_insn_after): Dito.
10548         * cselib.c (cselib_current_insn_in_libcall): Remove.
10549         (cselib_process_insn): Don't set/clear it.
10550         (new_elt_loc_list): Don't record it.
10551         (cselib_init): Don't initialize it.
10552         * cselib.c (struct elt_loc_list): Remove in_libcall field.
10553         * loop-invariant.c (find_invariant_insn): Don't look for libcall
10554         notes.
10555         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
10556         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
10557         (init_deps): Don't initialize it.
10558         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
10559         * combine.c (delete_noop_moves): Don't update libcall notes.
10560         (can_combine_p): Remove now pointless #if 0 block.
10561         (try_combine): Remove another obsolete #if 0 block.
10562         (distribute_notes): Don't distribute libcall notes.
10563         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
10564         * dce.c (libcall_dead_p): Remove.
10565         (delete_unmarked_insns): Don't handle libcall blocks.
10566         (preserve_libcall_for_dce): Remove.
10567         (prescan_insns_for_dce): Don't special-case libcall block insns.
10568         * reload1 (reload): Don't handle libcall notes.
10569         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
10570         documentation.
10571
10572 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
10573
10574         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
10575         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10576         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10577
10578 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
10579
10580         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
10581         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10582         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10583
10584 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10585
10586         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
10587
10588 2008-06-16  Ira Rosen  <irar@il.ibm.com>
10589
10590         PR tree-optimization/36493
10591         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
10592         the arguments list. Use VECTYPE to create vector pointer.
10593         (vectorizable_store): Fail if accesses through a pointer to vectype
10594         do not alias the original memory reference operands.
10595         Call vect_create_data_ref_ptr without the removed argument.
10596         (vectorizable_load): Likewise.
10597         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
10598         removed argument.
10599
10600 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
10601
10602         PR target/36336
10603         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
10604         reg_equiv_constant.
10605
10606 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
10607
10608         * config/mips/loongson2ef.md: New file.
10609         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
10610         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
10611         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
10612         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
10613         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
10614         and loongson_2f.
10615         (loongson2ef.md): New include.
10616         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
10617         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
10618         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
10619         (loongson_gt_<mode>, loongson_extract_halfword)
10620         (loongson_insert_halfword_0, loongson_insert_halfword_2)
10621         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
10622         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
10623         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
10624         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
10625         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
10626         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
10627         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
10628         (vec_interleave_low<mode>): Define type attribute.
10629         * config/mips/mips.c (mips_ls2): New static variable.
10630         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
10631         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
10632         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
10633         Implement target scheduling hooks.
10634         (mips_multipass_dfa_lookahead): Update to handle tuning for
10635         Loongson 2E/2F.
10636         (mips_sched_init): Initialize data for Loongson scheduling.
10637         (mips_ls2_variable_issue): New static function.
10638         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
10639         Add sanity check.
10640         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
10641         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
10642         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
10643         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
10644         Handle ST Loongson 2E/2F cores.
10645         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
10646
10647 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10648
10649         * omp-low.c (extract_omp_for_data): Fix comment typo.
10650         * c.opt: Fix typo.
10651
10652 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10653
10654         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
10655         FIXME note about gcc/config.guess.
10656         * doc/options.texi (Option file format): Remove non-ASCII bytes.
10657         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
10658         * doc/cppopts.texi: Likewise.
10659         * doc/extend.texi: Likewise.
10660         * doc/gcc.texi: Likewise.
10661         * doc/gccint.texi: Likewise.
10662         * doc/gcov.texi: Likewise.
10663         * doc/gty.texi: Likewise.
10664         * doc/hostconfig.texi: Likewise.
10665         * doc/install.texi: Likewise.
10666         * doc/invoke.texi: Likewise.
10667         * doc/loop.texi: Likewise.
10668         * doc/makefile.texi: Likewise.
10669         * doc/md.texi: Likewise.
10670         * doc/passes.texi: Likewise.
10671         * doc/tm.texi: Likewise.
10672         * doc/tree-ssa.texi: Likewise.
10673         * doc/trouble.texi: Likewise.
10674
10675 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
10676             Nathan Sidwell  <nathan@codesourcery.com>
10677             Maxim Kuvyrkov  <maxim@codesourcery.com>
10678             Richard Sandiford  <rdsandiford@googlemail.com>
10679
10680         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
10681         * config/mips/mips-protos.h (mips_expand_vector_init): New.
10682         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
10683         builtins.
10684         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
10685         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
10686         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
10687         V8QImode cases.
10688         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
10689         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
10690         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
10691         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
10692         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
10693         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
10694         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
10695         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
10696         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
10697         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
10698         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
10699         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
10700         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
10701         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
10702         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
10703         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
10704         (mips_builtins): Add Loongson builtins.
10705         (mips_loongson_2ef_bdesc): New.
10706         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
10707         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
10708         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
10709         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
10710         New.
10711         (mips_expand_vector_init): New.
10712         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
10713         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
10714         if appropriate.
10715         * config/mips/mips.md: Add unspec numbers for Loongson
10716         builtins.  Include loongson.md.
10717         (MOVE64): Include Loongson vector modes.
10718         (SPLITF): Include Loongson vector modes.
10719         (HALFMODE): Handle Loongson vector modes.
10720         * config/mips/loongson.md: New.
10721         * config/mips/loongson.h: New.
10722         * config.gcc: Add loongson.h header for mips*-*-* targets.
10723         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
10724
10725 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
10726
10727         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
10728         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
10729         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
10730         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
10731         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
10732         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
10733         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
10734         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
10735         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
10736         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
10737         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
10738         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
10739         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
10740         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
10741         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
10742         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
10743         Remove use_fixproto=yes.
10744         (ia64*-*-hpux*): Remove comment about using fixproto.
10745         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
10746
10747 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10748
10749         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
10750         library rebuilds.
10751         * configure: Regenerate.
10752
10753 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
10754
10755         PR middle-end/36520
10756         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
10757         before evaluating it.
10758
10759 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
10760
10761         PR c/36507
10762         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
10763         nested inline functions.
10764         (start_decl, start_function): Don't invert DECL_EXTERNAL
10765         for nested inline functions.
10766
10767 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
10768
10769         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
10770         splits that must be made for correctness.
10771
10772 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
10773
10774         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
10775         (AVAIL_NON_MIPS16): Likewise.
10776         (mips_builtin_description): Replace target_flags with a predicate.
10777         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
10778         (dspr2_32): New availability predicates.
10779         (MIPS_BUILTIN): New macro.
10780         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
10781         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
10782         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
10783         Replace the TARGET_FLAGS parameters with AVAIL parameters.
10784         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
10785         (mips_dsp_32only_bdesc): Merge into...
10786         (mips_builtins): ...this new array.
10787         (mips_bdesc_map, mips_bdesc_arrays): Delete.
10788         (mips_init_builtins): Update after above changes.
10789         (mips_expand_builtin_1): Merge into...
10790         (mips_expand_builtin): ...here and update after above changes.
10791
10792 2008-06-12  Paul Brook  <paul@codesourcery.com>
10793
10794         * longlong.h (__arm__): Define count_leading_zeros.
10795         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
10796         (clzsi2, clzdi2): New functions.
10797         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
10798         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
10799         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
10800         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
10801         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
10802         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
10803         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
10804         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
10805         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
10806         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
10807
10808 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
10809
10810         * config/m68k/m68k.c (m68k_tune_flags): New.
10811         (override_options): Compute m68k_tune_flags.
10812         (MULL_COST, MULW_COST): Update for various variants of CFV2.
10813         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
10814
10815 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
10816
10817         PR middle-end/36506
10818         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
10819
10820 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
10821
10822         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
10823         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
10824
10825 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
10826
10827         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
10828         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
10829
10830 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
10831
10832         PR middle-end/36506
10833         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
10834         reductions.
10835
10836 2008-06-12  Richard Guenther  <rguenther@suse.de>
10837
10838         PR tree-optimization/36345
10839         * tree-flow.h (struct ptr_info_def): Align escape_mask,
10840         add memory_tag_needed flag.
10841         (may_alias_p): Declare.
10842         * tree-ssa-alias.c (may_alias_p): Export.
10843         (set_initial_properties): Use memory_tag_needed flag.
10844         (update_reference_counts): Likewise.
10845         (reset_alias_info): Reset memory_tag_needed flag.
10846         (create_name_tags): Check memory_tag_needed flag.
10847         (dump_points_to_info_for): Dump it.
10848         * tree-ssa-structalias.c (struct variable_info): Remove
10849         directly_dereferenced flag.
10850         (new_var_info): Do not initialize it.
10851         (process_constraint_1): Do not set it.
10852         (update_alias_info): Set is_dereferenced flag.
10853         (set_uids_in_ptset): Use may_alias_p.
10854         (set_used_smts): Check memory_tag_needed flag.
10855         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
10856         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
10857         memory_tag_needed flag.
10858         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
10859         from broken design.
10860
10861 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
10862
10863         * config/i386/i386.c (ix86_compute_frame_layout): Disable
10864         red zone for w64 abi.
10865         (ix86_expand_prologue): Likewise.
10866         (ix86_force_to_memory): Likewise.
10867         (ix86_free_from_memory): Likewise.
10868
10869 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
10870
10871         PR target/36425
10872         * config/rs6000/rs6000.c (rs6000_override_options): Set
10873         rs6000_isel conditionally to the absence of comand line override.
10874         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
10875         Remove duplicate rs6000_isel setting.
10876         * config/rs6000/eabispe.h: Ditto.
10877
10878 2008-06-11  Richard Guenther  <rguenther@suse.de>
10879
10880         * alias.c (get_alias_set): Use the element alias-set for arrays.
10881         (record_component_aliases): For arrays and vectors do nothing.
10882         * c-common.c (strict_aliasing_warning): Handle the cases
10883         of alias set zero explicitly.
10884         * Makefile.in (dfp.o-warn): Add -Wno-error.
10885
10886 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
10887
10888         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
10889         tune_32 tune_64.
10890         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
10891         tune_32 tune_64 to supported_defaults.  Allow values not
10892         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
10893         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
10894         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
10895         with_cpu_64 to generic for 64-bit-supporting configurations, not
10896         with_cpu.  Remove FIXMEs.
10897         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
10898         --with-arch-64, --with-tune-32, --with-tune-64): Document.
10899         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
10900         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
10901         arch_32 and arch_64.
10902
10903 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
10904             Olivier Hainque  <hainque@adacore.com>
10905
10906         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
10907         Use DECL_SIZE_UNIT to retrieve the size of the field.
10908
10909 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
10910
10911         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
10912         with function calls after declarations.  Lay out
10913         neon_float_type_node before further use.
10914
10915 2008-06-11  Richard Guenther  <rguenther@suse.de>
10916
10917         * tree-flow.h (may_point_to_global_var): Declare.
10918         * tree-ssa-alias.c (may_point_to_global_var): New function.
10919         * tree-ssa-sink.c (is_hidden_global_store): Use it.
10920
10921 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
10922
10923         * configure.ac: Teach that fido supports .debug_line.
10924         * configure: Regenerate.
10925
10926 2008-06-10  Tom Tromey  <tromey@redhat.com>
10927
10928         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
10929         debug hook.
10930
10931 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
10932
10933         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
10934         (encode_decimal64, decode_decimal64, encode_decimal128,
10935         decode_decimal128): Reverse order of 32-bit parts of value if host
10936         and target endianness differ.
10937
10938 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
10939
10940         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
10941         Avoid division by 0.
10942         (tree_mod_pow2_value_transform): Likewise.
10943         (tree_ic_transform): Likewise.
10944         (tree_stringops_transform): Likewise.
10945         (tree_mod_subtract_transform): Likewise.
10946         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
10947         (copy_edges_for_bb): Likewise.
10948         (initialize_cfun): Likewise.
10949
10950 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
10951
10952         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
10953         nonmemory_operand. Add "N" operand constraint.
10954         (*btsi): Ditto.
10955         (*jcc_btdi_mask_rex64): New instruction and split pattern.
10956         (*jcc_btsi_mask): Ditto.
10957         (*jcc_btsi_mask_1): Ditto.
10958
10959 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
10960
10961         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
10962         TYPE_CANONICAL for copied element type.
10963
10964 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
10965
10966         PR target/36473
10967         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
10968         Add m_CORE2 and m_GENERIC.
10969         * config/i386/predicates.md (bt_comparison_operator): New predicate.
10970         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
10971         (*btsi): Ditto.
10972         (*jcc_btdi_rex64): New instruction and split pattern.
10973         (*jcc_btsi): Ditto.
10974         (*jcc_btsi_1): Ditto.
10975         (*btsq): Fix Intel asm dialect operand order.
10976         (*btrq): Ditto.
10977         (*btcq): Ditto.
10978
10979 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
10980
10981         PR middle-end/36447
10982         * simplify-rtx.c (simplify_subreg): Add check for shift count
10983         greater than size.
10984
10985 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
10986
10987         * doc/md.texi: Synchronize with later constraints.md change.
10988         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
10989         with a C implementation.
10990         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
10991         MFLO handling.
10992         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
10993         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
10994         when moving to and from MD_REGNUM.
10995         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
10996         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
10997         Handle byte and halfword moves.
10998         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
10999         separately.
11000         * config/mips/constraints.md (h): Turn into NO_REGS.
11001         (l, x): Update documentation.
11002         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
11003         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
11004         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
11005         (HILO): New mode iterator.
11006         (MOVE128): Add TI.
11007         (any_div): New code iterator.
11008         (u): Extend code attribute to div and udiv.
11009         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
11010         d_operand in the splitters.  Remove redundant CONST_INT checks.
11011         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
11012         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
11013         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
11014         accordingly, using normal moves instead of unspecs to move LO into
11015         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
11016         (<u>mulsidi3): Handle expansion in C code.
11017         (<u>mulsidi3_32bit_internal): Rename to...
11018         (<u>mulsidi3_32bit): ...this.
11019         (<u>mulsidi3_32bit_r4000): Fix insn separator.
11020         (*<u>mulsidi3_64bit): Rename to...
11021         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
11022         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
11023         to set LO and HI to the multiplication result.  Use a normal move
11024         for MFLO and an unspec for MFHI.
11025         (*<u>mulsidi3_64bit_parts): Replace with...
11026         (<u>mulsidi3_64bit_hilo): ...this new instruction.
11027         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
11028         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
11029         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
11030         instead of HI.  Split the instruction into a separate multiplication
11031         and MFHI if !TARGET_FIX_R4000.
11032         (<su>muldi3_highpart): Likewise.
11033         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
11034         and the "=h" clobber.
11035         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
11036         (<u>mulditi3): New expander.
11037         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
11038         (madsi): Remove "=h" clobber.
11039         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
11040         Force the modulus result to be a GPR and split the instruction into
11041         a division followed by an MFHI after reload.
11042         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
11043         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
11044         the MIPS16 HIGH define_split.
11045         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
11046         of acc<->gpr moves to "multi".
11047         (*movdi_64bit): Replace the single "x" alternative with
11048         alternatives for moving into and out of "a".
11049         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
11050         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
11051         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
11052         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
11053         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
11054         (movti): New expander.
11055         (*movti, *movti_mips16): New insns.
11056         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
11057         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
11058         (mthi<GPR:mode>_<HILO:mode>): Likewise.
11059         * config/mips/predicates.md (fpr_operand): Delete.
11060         (d_operand): New predicate.
11061
11062 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
11063
11064         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
11065         failure on some Bourne shells.
11066         (x86_64-*-*): Ditto.
11067
11068 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
11069
11070         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
11071
11072 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
11073
11074         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
11075         (sparc-sun-solaris2*): Likewise.
11076
11077 2008-06-09  Arnaud Charlet  <charlet@adacore.com
11078
11079         * doc/install.texi: Update requirements to build the Ada compiler.
11080
11081 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
11082
11083         * df-scan.c (struct df_scan_problem_data): Remove the
11084         mw_link_pool alloc pool.
11085         (df_scan_free_internal): Don't free it.
11086         (df_scan_alloc): Don't allocate it.
11087         * df.h (struct df_link): Update comment.
11088
11089 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
11090
11091         * except.h: Correct checks for when SJLJ exceptions must be used.
11092
11093 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11094
11095         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
11096         default.
11097
11098 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
11099
11100         PR tree-optimization/36218
11101         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
11102         configure for the build system.
11103         (BUILD_LDFLAGS): Define.
11104         * configure: Regenerate.
11105         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
11106
11107 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
11108
11109         PR target/36424
11110         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
11111         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
11112         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
11113
11114 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
11115
11116         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
11117
11118 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
11119
11120         * config.gcc (Obsolete configurations): Remove list of
11121         configurations.
11122         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
11123         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
11124         targets matched by those patterns.
11125         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
11126         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
11127         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
11128         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
11129         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
11130         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
11131         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
11132         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
11133         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
11134         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
11135         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
11136         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
11137         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
11138         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
11139         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
11140         Make code for Solaris 7 and greater unconditional for Solaris.
11141         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
11142         Remove --with-* handling.
11143         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
11144         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
11145         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
11146         LINK_OS_WINDISS_SPEC): Remove.
11147         * config/rs6000/sysv4.opt (mwindiss): Remove.
11148         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
11149         * configure: Regenerate.
11150         * doc/cpp.texi: Don't mention BeOS.
11151         * doc/extend.texi (interrupt): Don't mention MS1.
11152         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
11153         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
11154         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
11155         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
11156         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
11157         Remove.
11158         * doc/invoke.texi (MT Options): Remove.
11159         (-mwindiss): Remove.
11160         (CRIS Options): Remove cris-axis-aout references.
11161         (HPPA Options): Don't mention hppa1.1-*-pro.
11162         * doc/md.texi: (MorphoTech family): Remove.
11163         * libgcc2.c: Don't handle UWIN.
11164         * config/alpha/t-unicosmk: Remove.
11165         * config/alpha/unicosmk.h: Remove.
11166         * config/arm/kaos-arm.h: Remove.
11167         * config/arm/kaos-strongarm.h: Remove.
11168         * config/arm/strongarm-coff.h: Remove.
11169         * config/arm/strongarm-elf.h: Remove.
11170         * config/arm/strongarm-pe.h: Remove.
11171         * config/arm/t-strongarm-pe: Remove.
11172         * config/arm/t-xscale-coff: Remove.
11173         * config/arm/t-xscale-elf: Remove.
11174         * config/arm/xscale-coff.h: Remove.
11175         * config/arm/xscale-elf.h: Remove.
11176         * config/chorus.h: Remove.
11177         * config/cris/aout.h: Remove.
11178         * config/cris/aout.opt: Remove.
11179         * config/cris/t-aout: Remove.
11180         * config/i386/beos-elf.h: Remove.
11181         * config/i386/kaos-i386.h: Remove.
11182         * config/i386/ptx4-i.h: Remove.
11183         * config/i386/sco5.h: Remove.
11184         * config/i386/sco5.opt: Remove.
11185         * config/i386/sysv4-cpp.h: Remove.
11186         * config/i386/sysv5.h: Remove.
11187         * config/i386/t-beos: Remove.
11188         * config/i386/t-sco5: Remove.
11189         * config/i386/t-uwin: Remove.
11190         * config/i386/uwin.asm: Remove.
11191         * config/i386/uwin.h: Remove.
11192         * config/kaos.h: Remove.
11193         * config/mips/windiss.h: Remove.
11194         * config/mt: Remove directory.
11195         * config/pa/pa-osf.h: Remove.
11196         * config/pa/pa-pro-end.h: Remove.
11197         * config/pa/t-pro: Remove.
11198         * config/ptx4.h: Remove.
11199         * config/rs6000/beos.h: Remove.
11200         * config/rs6000/kaos-ppc.h: Remove.
11201         * config/rs6000/t-beos: Remove.
11202         * config/rs6000/windiss.h: Remove.
11203         * config/sh/kaos-sh.h: Remove.
11204         * config/sol2-6.h: Remove.
11205         * config/sparc/sol26-sld.h: Remove.
11206         * config/sparc/sysv4-only.h: Remove.
11207         * config/vax/bsd.h: Remove.
11208         * config/vax/t-memfuncs: Remove.
11209         * config/vax/ultrix.h: Remove.
11210         * config/vax/vaxv.h: Remove.
11211         * config/windiss.h: Remove.
11212
11213 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
11214
11215         PR rtl-optimization/36438
11216         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
11217         for vector shifts with constant scalar shift operands.
11218
11219 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
11220
11221         * doc/invoke.texi: Document -march=xlr.
11222         * config/mips/xlr.md: New file.
11223         * config/mips/mips.md: Include it.
11224         (cpu): Add "xlr".
11225         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
11226         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
11227         (mips_rtx_cost_data): Likewise.
11228
11229 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
11230
11231         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
11232         PRE_INC and PRE_DEC cases.
11233
11234 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
11235
11236         PR rtl-optimization/36419
11237         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
11238         the emitting jump insn.
11239
11240         PR target/36362
11241         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
11242         is not bool, boolify the whole *expr_p and convert to the desired type.
11243
11244 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
11245
11246         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
11247         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
11248         Add omp_private_outer_ref hook, add another argument to
11249         omp_clause_default_ctor hook.
11250         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
11251         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
11252         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
11253         hook_tree_tree_tree_tree_null.
11254         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
11255         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
11256         * hooks.c (hook_tree_tree_tree_tree_null): New function.
11257         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
11258         * tree.def (OMP_TASK): New tree code.
11259         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
11260         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
11261         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
11262         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
11263         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
11264         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
11265         OMP_CLAUSE_COLLAPSE_EXPR): Define.
11266         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
11267         (OMP_DIRECTIVE_P): Add OMP_TASK.
11268         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
11269         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
11270         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
11271         and OMP_CLAUSE_UNTIED entries.
11272         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
11273         num_ops to 2.
11274         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11275         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
11276         * tree-pretty-print.c (dump_omp_clause): Handle
11277         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
11278         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
11279         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
11280         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
11281         warning about unsigned iterators.  Change decl/init/cond/incr
11282         arguments to TREE_VECs, check arguments for all collapsed loops.
11283         (c_finish_omp_taskwait): New function.
11284         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
11285         ws_clauses.
11286         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
11287         default_function_array_conversion on init.  Add par_clauses argument.
11288         If decl is present in parallel's lastprivate clause, change it to
11289         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
11290         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
11291         collapse count in clauses.
11292         (c_parser_omp_for, c_parser_omp_parallel): Adjust
11293         c_parser_omp_for_loop callers.
11294         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
11295         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
11296         (c_parser_omp_clause_name): Handle collapse and untied clauses.
11297         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
11298         functions.
11299         (c_parser_omp_clause_schedule): Handle schedule(auto).
11300         Include correct location in the error message.
11301         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
11302         and PRAGMA_OMP_CLAUSE_UNTIED.
11303         (OMP_TASK_CLAUSE_MASK): Define.
11304         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
11305         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
11306         * tree-nested.c (convert_nonlocal_omp_clauses,
11307         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
11308         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
11309         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11310         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
11311         OMP_CLAUSE_DECL.
11312         (conver_nonlocal_reference, convert_local_reference,
11313         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
11314         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
11315         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
11316         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
11317         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
11318         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
11319         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
11320         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
11321         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
11322         OMP_CLAUSE_UNTIED.
11323         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
11324         * c-common.h (c_finish_omp_taskwait): New prototype.
11325         * gimple-low.c (lower_stmt): Handle OMP_TASK.
11326         * tree-parloops.c (create_parallel_loop): Create 1 entry
11327         vectors for OMP_FOR_{INIT,COND,INCR}.
11328         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
11329         (make_edges): Handle OMP_TASK.
11330         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
11331         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11332         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
11333         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
11334         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
11335         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
11336         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
11337         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
11338         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
11339         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
11340         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
11341         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
11342         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
11343         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
11344         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
11345         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
11346         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
11347         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
11348         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
11349         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
11350         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
11351         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
11352         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
11353         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
11354         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
11355         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
11356         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
11357         original iterator is present in lastprivate clause or if
11358         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
11359         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11360         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
11361         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
11362         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
11363         if it is set, lookup var in outer contexts too.  Handle
11364         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
11365         to be implicitly determined firstprivate for task regions.
11366         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
11367         if it is set, lookup var in outer contexts too.  Set
11368         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
11369         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
11370         OMP_CLAUSE_UNTIED.  Take region_type as last argument
11371         instead of in_parallel and in_combined_parallel.
11372         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
11373         Adjust callers.
11374         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
11375         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
11376         (new_omp_context): Set default_kind to
11377         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
11378         (omp_region_type): New enum.
11379         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
11380         fields, add region_type.
11381         (new_omp_context): Take region_type as argument instead of is_parallel
11382         and is_combined_parallel.
11383         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
11384         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
11385         ctx->is_combined_parallel checks.
11386         (gimplify_omp_task): New function.
11387         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
11388         OMP_CLAUSE_UNTIED.
11389         * omp-low.c (extract_omp_for_data): Use schedule(static)
11390         for schedule(auto).  Handle pointer and unsigned iterators.
11391         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
11392         Add loops argument.  Extract data for collapsed OMP_FOR loops.
11393         (expand_parallel_call): Assert sched_kind isn't auto,
11394         map runtime schedule to index 3.
11395         (struct omp_for_data_loop): New type.
11396         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
11397         Add loop, loops, collapse and iter_type fields.
11398         (workshare_safe_to_combine_p): Disallow combined for if
11399         iter_type is unsigned long long.  Don't combine collapse > 1 loops
11400         unless all bounds and steps are constant.  Adjust extract_omp_for_data
11401         caller.
11402         (expand_omp_for_generic): Handle pointer, unsigned and long long
11403         iterators.  Handle collapsed OMP_FOR loops.  Adjust
11404         for struct omp_for_data changes.  If libgomp function doesn't return
11405         boolean_type_node, add comparison of the return value with 0.
11406         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
11407         pointer, unsigned and long long iterators.  Adjust for struct
11408         omp_for_data changes.
11409         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
11410         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
11411         unsigned long long.  Allocate loops array, pass it to
11412         extract_omp_for_data.  For collapse > 1 loops use always
11413         expand_omp_for_generic.
11414         (omp_context): Add sfield_map and srecord_type fields.
11415         (is_task_ctx, lookup_sfield): New functions.
11416         (use_pointer_for_field): Use is_task_ctx helper.  Change first
11417         argument's type from const_tree to tree.  Clarify comment.
11418         In OMP_TASK disallow copy-in/out sharing.
11419         (build_sender_ref): Call lookup_sfield instead of lookup_field.
11420         (install_var_field): Add mask argument.  Populate both record_type
11421         and srecord_type if needed.
11422         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
11423         in srecord_type.
11424         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
11425         and DECL_FIELD_OFFSET.
11426         (scan_sharing_clauses): Adjust install_var_field callers.  For
11427         firstprivate clauses on explicit tasks allocate the var by value in
11428         record_type unconditionally, rather than by reference.
11429         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
11430         Use is_taskreg_ctx instead of is_parallel_ctx.
11431         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11432         (create_omp_child_function_name): Add task_copy argument, use
11433         *_omp_cpyfn* names if it is true.
11434         (create_omp_child_function): Add task_copy argument, if true create
11435         *_omp_cpyfn* helper function.
11436         (scan_omp_parallel): Adjust create_omp_child_function callers.
11437         Rename parallel_nesting_level to taskreg_nesting_level.
11438         (scan_omp_task): New function.
11439         (lower_rec_input_clauses): Don't run constructors for firstprivate
11440         explicit task vars which are initialized by *_omp_cpyfn*.
11441         Pass outer var ref to omp_clause_default_ctor hook if
11442         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
11443         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
11444         OMP_CLAUSE_REDUCTION_INIT.
11445         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
11446         avoid duplicate setting of fields.  Handle
11447         OMP_CLAUSE_PRIVATE_OUTER_REF.
11448         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
11449         copy-out if TREE_READONLY, only copy-in.
11450         (expand_task_copyfn): New function.
11451         (expand_task_call): New function.
11452         (struct omp_taskcopy_context): New type.
11453         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
11454         New functions.
11455         (lower_omp_parallel): Rename to...
11456         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
11457         Call create_task_copyfn if srecord_type is needed.  Adjust
11458         sender_decl type.
11459         (task_shared_vars): New variable.
11460         (check_omp_nesting_restrictions): Warn if work-sharing,
11461         barrier, master or ordered region is closely nested inside OMP_TASK.
11462         Add warnings for barrier if closely nested inside of work-sharing,
11463         ordered, or master region.
11464         (scan_omp_1): Call check_omp_nesting_restrictions even for
11465         GOMP_barrier calls.  Rename parallel_nesting_level to
11466         taskreg_nesting_level.  Handle OMP_TASK.
11467         (lower_lastprivate_clauses): Even if some lastprivate is found on a
11468         work-sharing construct, continue looking for them on parent parallel
11469         construct.
11470         (lower_omp_for_lastprivate): Add lastprivate clauses
11471         to the beginning of dlist rather than end.  Adjust for struct
11472         omp_for_data changes.
11473         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
11474         not after it.  Handle collapsed OMP_FOR loops, adjust for
11475         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
11476         (get_ws_args_for): Adjust extract_omp_for_data caller.
11477         (scan_omp_for): Handle collapsed OMP_FOR
11478         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11479         (lower_omp_single_simple): If libgomp function doesn't return
11480         boolean_type_node, add comparison of the return value with 0.
11481         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
11482         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
11483         (parallel_nesting_level): Rename to...
11484         (taskreg_nesting_level): ... this.
11485         (is_taskreg_ctx): New function.
11486         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
11487         of is_parallel_ctx.
11488         (execute_lower_omp): Rename parallel_nesting_level to
11489         taskreg_nesting_level.
11490         (expand_omp_parallel): Rename to...
11491         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
11492         Call omp_task_call for OMP_TASK regions.
11493         (expand_omp): Adjust caller, handle OMP_TASK.
11494         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
11495
11496         * bitmap.c (bitmap_default_obstack_depth): New variable.
11497         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
11498         if argument is NULL and bitmap_default_obstack is already initialized.
11499         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
11500         at the end.
11501         * matrix-reorg.c (matrix_reorg): Likewise.
11502
11503 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
11504
11505         * config/i386/i386.md (*indirect_jump): Macroize using P
11506         mode iterator.  Remove !TARGET_64BIT from insn constraints.
11507         (*tablejump_1): Ditto.
11508         (*indirect_jump_rex64): Remove insn pattern.
11509         (*tablejump_1_rex64): Ditto.
11510         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
11511         and eh_return_si insn patterns.
11512
11513 2008-06-06  Richard Guenther  <rguenther@suse.de>
11514
11515         * tree-ssa-structalias.c (merge_smts_into): Remove.
11516         (find_what_p_points_to): Do not bother to compute the
11517         points-to set for pt_anything pointers.
11518         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
11519         for pt_anything pointers is ok.
11520
11521 2008-06-06  Jan Hubicka  <jh@suse.cz>
11522
11523         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
11524
11525 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11526
11527         * cgraph.c: Fix typos in comments.
11528         (cgraph_availability_names): Fix string typo.
11529         * fold-const.c: Fix typos in comments.
11530         (fold_binary): Fix typo in warning.
11531         * genautomata.c: Fix typos in comments.
11532         (check_presence_pattern_sets): Fix typo in local variable.
11533         (output_description): Fix typo in output.
11534         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
11535         * hwint.h: Likewise.
11536         * matrix-reorg.c (check_allocation_function): Likewise.
11537         * omega.c (smooth_weird_equations): Likewise.
11538         * auto-inc-dec.c: Fix typos in comments.
11539         * bb-reorder.c: Likewise.
11540         * builtins.c: Likewise.
11541         * c-common.c: Likewise.
11542         * c-cppbuiltin.c: Likewise.
11543         * c-parser.c: Likewise.
11544         * c-pretty-print.c: Likewise.
11545         * cfgcleanup.c: Likewise.
11546         * cfgexpand.c: Likewise.
11547         * cfghooks.c: Likewise.
11548         * cfglayout.c: Likewise.
11549         * cfgloopmanip.c: Likewise.
11550         * cgraphunit.c: Likewise.
11551         * coverage.c: Likewise.
11552         * dbxout.c: Likewise.
11553         * df-byte-scan.c: Likewise.
11554         * df-core.c: Likewise.
11555         * df-problems.c: Likewise.
11556         * df-scan.c: Likewise.
11557         * dfp.c: Likewise.
11558         * dominance.c: Likewise.
11559         * domwalk.c: Likewise.
11560         * dse.c: Likewise.
11561         * dwarf2out.c: Likewise.
11562         * emit-rtl.c: Likewise.
11563         * et-forest.c: Likewise.
11564         * function.c: Likewise.
11565         * function.h: Likewise.
11566         * gcc.c: Likewise.
11567         * gcov-io.c: Likewise.
11568         * gcov.c: Likewise.
11569         * gcse.c: Likewise.
11570         * genattrtab.c: Likewise.
11571         * ggc-page.c: Likewise.
11572         * gimplify.c: Likewise.
11573         * gthr-lynx.h: Likewise.
11574         * haifa-sched.c: Likewise.
11575         * ipa-cp.c: Likewise.
11576         * ipa-inline.c: Likewise.
11577         * ipa-prop.h: Likewise.
11578         * ipa-pure-const.c: Likewise.
11579         * ipa-struct-reorg.c: Likewise.
11580         * ipa-struct-reorg.h: Likewise.
11581         * ipa-type-escape.c: Likewise.
11582         * ipa.c: Likewise.
11583         * loop-doloop.c: Likewise.
11584         * mips-tfile.c: Likewise.
11585         * mkmap-flat.awk: Likewise.
11586         * mkmap-symver.awk: Likewise.
11587         * modulo-sched.c: Likewise.
11588         * omp-low.c: Likewise.
11589         * optabs.c: Likewise.
11590         * optabs.h: Likewise.
11591         * opts.c: Likewise.
11592         * passes.c: Likewise.
11593         * postreload-gcse.c: Likewise.
11594         * postreload.c: Likewise.
11595         * predict.c: Likewise.
11596         * pretty-print.h: Likewise.
11597         * profile.c: Likewise.
11598         * protoize.c: Likewise.
11599         * ra-conflict.c: Likewise.
11600         * real.c: Likewise.
11601         * recog.c: Likewise.
11602         * regclass.c: Likewise.
11603         * regs.h: Likewise.
11604         * reload.c: Likewise.
11605         * rtl-error.c: Likewise.
11606         * rtlanal.c: Likewise.
11607         * scan.h: Likewise.
11608         * sched-rgn.c: Likewise.
11609         * see.c: Likewise.
11610         * stmt.c: Likewise.
11611         * target.h: Likewise.
11612         * tree-dfa.c: Likewise.
11613         * tree-eh.c: Likewise.
11614         * tree-flow-inline.h: Likewise.
11615         * tree-inline.c: Likewise.
11616         * tree-into-ssa.c: Likewise.
11617         * tree-loop-distribution.c: Likewise.
11618         * tree-nested.c: Likewise.
11619         * tree-parloops.c: Likewise.
11620         * tree-pass.h: Likewise.
11621         * tree-pretty-print.c: Likewise.
11622         * tree-profile.c: Likewise.
11623         * tree-scalar-evolution.c: Likewise.
11624         * tree-sra.c: Likewise.
11625         * tree-ssa-alias-warnings.c: Likewise.
11626         * tree-ssa-ccp.c: Likewise.
11627         * tree-ssa-coalesce.c: Likewise.
11628         * tree-ssa-dom.c: Likewise.
11629         * tree-ssa-dse.c: Likewise.
11630         * tree-ssa-forwprop.c: Likewise.
11631         * tree-ssa-live.c: Likewise.
11632         * tree-ssa-live.h: Likewise.
11633         * tree-ssa-loop-im.c: Likewise.
11634         * tree-ssa-loop-ivopts.c: Likewise.
11635         * tree-ssa-loop-niter.c: Likewise.
11636         * tree-ssa-loop-prefetch.c: Likewise.
11637         * tree-ssa-phiopt.c: Likewise.
11638         * tree-ssa-phiprop.c: Likewise.
11639         * tree-ssa-sccvn.c: Likewise.
11640         * tree-ssa-ter.c: Likewise.
11641         * tree-ssa-threadupdate.c: Likewise.
11642         * tree-ssa.c: Likewise.
11643         * tree-vect-analyze.c: Likewise.
11644         * tree-vect-transform.c: Likewise.
11645         * tree-vectorizer.c: Likewise.
11646         * tree-vn.c: Likewise.
11647         * tree-vrp.c: Likewise.
11648         * tree.c: Likewise.
11649         * tree.def: Likewise.
11650         * tree.h: Likewise.
11651         * unwind-dw2-fde.c: Likewise.
11652         * unwind.inc: Likewise.
11653         * value-prof.c: Likewise.
11654         * vmsdbgout.c: Likewise.
11655
11656 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
11657
11658         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
11659         always place FP constants in the TOC for TARGET_POWERPC64.
11660         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
11661
11662 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
11663
11664         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
11665         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
11666         enable for TARGET_E500_DOUBLE.
11667         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
11668         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
11669         floating-point modes like integer modes for E500 double.
11670         (rs6000_legitimate_offset_address_p): Likewise.
11671         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
11672         addressing for DDmode for E500 double.
11673         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
11674         modes as using 64-bits of registers for E500 double.
11675         (spe_build_register_parallel): Do not handle DDmode or TDmode.
11676         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
11677         specially for E500 double.
11678         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
11679         TDmode for E500 double.
11680         (rs6000_gimplify_va_arg): Only handle SDmode in registers
11681         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
11682         (rs6000_split_multireg_move): Do not handle TDmode specially for
11683         E500 double.
11684         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
11685         using 64-bit registers for E500 double.
11686         (emit_frame_save): Do not handle DDmode specially for E500 double.
11687         (gen_frame_mem_offset): Likewise.
11688         (rs6000_function_value): Do not call spe_build_register_parallel
11689         for DDmode or TDmode.
11690         (rs6000_libcall_value): Likewise.
11691         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
11692         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
11693         for E500 double.
11694
11695 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
11696
11697         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
11698         in comments.
11699
11700 2008-06-04  Junjie Gu <jgu@tensilica.com>
11701
11702         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
11703         comparison for frame pointers.
11704
11705 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
11706
11707         PR target/27386
11708         * config/avr/avr.h (PUSH_ROUNDING): Remove.
11709
11710 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
11711
11712         PR target/30243
11713         * builtins.c (expand_builtin_signbit): Don't take lowpart when
11714         register is already smaller or equal to required mode.
11715
11716 2008-06-04  Xinliang David Li  <davidxl@google.com>
11717
11718         * tree-call-cdce.c: New file.
11719         (cond_dead_built_in_calls): New static variable.
11720         (input_domain): New struct.
11721         (check_pow): New function.
11722         (check_builtin_call): Ditto.
11723         (check_target_format): Ditto.
11724         (is_call_dce_candidate): Ditto.
11725         (gen_one_condition): Ditto.
11726         (gen_conditions_for_domain): Ditto.
11727         (get_domain): Ditto.
11728         (gen_conditions_for_pow_cst_base): Ditto.
11729         (gen_conditions_for_pow_int_base): Ditto.
11730         (gen_conditions_for_pow): Ditto.
11731         (get_no_error_domain): Ditto.
11732         (gen_shrink_wrap_conditions): Ditto.
11733         (shrink_wrap_one_built_in_call): Ditto.
11734         (shink_wrap_conditional_dead_built_in_calls): Ditto.
11735         (tree_call_cdce): Ditto.
11736         (gate_call_cdce): Ditto.
11737         (pass_call_cdce): New gimple pass.
11738         * passes.c: (init_optimization_passes): New pass.
11739         * tree-pass.h: New pass declaration.
11740         * opts.c (decode_options): New flag setting.
11741         * common.opt: Add -ftree-builtin-call-dce flag.
11742         * Makefile.in: Add new source file.
11743         * tempvar.def: New tv_id.
11744         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
11745
11746 2008-06-04  Richard Guenther  <rguenther@suse.de>
11747
11748         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
11749         (is_call_clobbered): Always check var_ann->call_clobbered.
11750         (mark_call_clobbered): Always set var_ann->call_clobbered.
11751         (clear_call_clobbered): Always clear var_ann->call_clobbered.
11752         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
11753         (reset_alias_info): Clear call clobbering info on MTAGs and
11754         globals as well.
11755         (set_pt_anything): Set pt_global_mem.
11756         (create_tag_raw): Adjust comment.
11757         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
11758
11759 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
11760             Maxim Kuvyrkov  <maxim@codesourcery.com>
11761
11762         * config/m68k/m68k.opt (mxgot): New option.
11763         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
11764         (m68k_output_addr_const_extra): New.
11765         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
11766         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
11767         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
11768         * doc/invoke.texi (M680x0 Options): Document -mxgot.
11769
11770 2008-06-04  Richard Guenther  <rguenther@suse.de>
11771
11772         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
11773         negative or non-representable offsets.
11774
11775 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
11776
11777         * config/i386/i386.c (ix86_gen_leave): New.
11778         (ix86_gen_pop1): Likewise.
11779         (ix86_gen_add3): Likewise.
11780         (ix86_gen_sub3): Likewise.
11781         (ix86_gen_sub3_carry): Likewise.
11782         (ix86_gen_one_cmpl2): Likewise.
11783         (ix86_gen_monitor): Likewise.
11784         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
11785         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11786         ix86_gen_one_cmpl2 and ix86_gen_monitor.
11787         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
11788         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
11789         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
11790         (ix86_expand_epilogue): Updated.
11791         (print_operand): Handle integer register operand for 'z'.
11792         (ix86_expand_strlensi_unroll_1): Likewise.
11793         (ix86_expand_strlen): Likewise.
11794         (ix86_expand_builtin): Likewise.
11795         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
11796         mov{q}/mov{l} and add{q}/add{l}.
11797
11798 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
11799
11800         * config/i386/i386.md (P): New mode iterator.
11801         (SFmode push_operand splitter): Macroize DImode and SImode pushes
11802         using P mode iterator.
11803         (DFmode push_operand splitter): Ditto.
11804         (XFmode push_operand splitter): Ditto.
11805         (DFmode float_extend SFmode push_operand splitter): Ditto.
11806         (XFmode float_extend SFmode push_operand splitter): Do not generate
11807         SImode pushes for 64bit target.  Macroize Dimode and SImode
11808         pushes using P mode iterator.
11809         (XFmode float_extend DFmode push_operand splitter): Ditto.
11810
11811 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
11812
11813         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
11814         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
11815         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
11816         return type to int.
11817         (ix86_call_abi_override): Remove check for call_used_regs.
11818
11819 2008-06-03  Richard Guenther  <rguenther@suse.de>
11820
11821         * tree-ssa-structalias.c (find_func_aliases): Add constraints
11822         for the lhs of calls if the return type contains pointers.
11823
11824 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
11825
11826         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
11827         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
11828         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
11829         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
11830         of cfun and DEFAULT_ABI to deceide abi mode.
11831         (DEFAULT_ABI): New.
11832         (REG_PARM_STACK_SPACE): Removed.
11833         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
11834         (STACK_BOUNDARY): Use default target to deceide stack boundary.
11835         * config/i386/i386-protos.h (ix86_cfun_abi): New.
11836         (ix86_function_abi): Likewise.
11837         (ix86_function_type_abi): Likewise.
11838         (ix86_call_abi_override): Likewise.
11839         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
11840         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
11841         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
11842         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
11843         specific defines.
11844         (X86_64_REGPARM_MAX): New.
11845         (X86_64_SSE_REGPARM_MAX): New.
11846         (X64_REGPARM_MAX): New.
11847         (X64_SSE_REGPARM_MAX): New.
11848         (X86_32_REGPARM_MAX): New.
11849         (X86_32_SSE_REGPARM_MAX): New.
11850         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
11851         (ix86_function_regparm): Handle user calling abi.
11852         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
11853         by DEFAULT_ABI versus SYSV_ABI check.
11854         (ix86_reg_parm_stack_space): New.
11855         (ix86_function_type_abi): New.
11856         (ix86_call_abi_override): New.
11857         (ix86_function_abi): New.
11858         (ix86_cfun_abi): New.
11859         (init_cumulative_args): Call abi specific initialization.
11860         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
11861         (function_arg_64): Extend SSE_REGPARM_MAX check.
11862         (function_arg (): Remove TARGET_64BIT_MS_ABI.
11863         (ix86_pass_by_reference): Likewise.
11864         (ix86_function_value_regno_p): Likewise.
11865         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
11866         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
11867         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
11868         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
11869         (setup_incoming_varargs_64): Adjust regparm for call abi.
11870         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
11871         (ix86_va_start): Likewise.
11872         (ix86_gimplify_va_arg): Likewise.
11873         (ix86_expand_prologue): Likewise.
11874         (output_pic_addr_const): Likewise.
11875         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
11876         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
11877         (x86_output_mi_thunk): Likewise.
11878         (x86_function_profiler): Likewise.
11879         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
11880         (SYSV_ABI, MS_ABI): New constants.
11881         (DEFAULT_ABI): New.
11882         (init_regs): Add prototype of function in regclass.c file.
11883         (OVERRIDE_ABI_FORMAT): New.
11884         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
11885         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
11886         (OUTGOING_REG_PARM_STACK_SPACE): New.
11887         (ix86_reg_parm_stack_space): New prototype.
11888         (CUMULATIVE_ARGS): Add call_abi member.
11889         (machine_function): Add call_abi member.
11890         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
11891         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
11892
11893 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
11894
11895         PR target/34879
11896         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
11897         (avr_builtin_setjmp_frame_value): New function.
11898         * config/avr/avr.md (nonlocal_goto_receiver): Define.
11899         (nonlocal_goto): Define.
11900
11901 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
11902
11903         * config/mips/mips.c (mips_emit_loadgp): Return early if
11904         there is nothing do to, otherwise emit a blockage if
11905         !TARGET_EXPLICIT_RELOCS || crtl->profile.
11906         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
11907
11908 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11909
11910         * configure.ac: Drop unneeded backslash ending up in config.in.
11911         * acinclude.m4: Likewise.
11912         * config.in: Regenerate.
11913
11914 2008-05-26  Jan Hubicka  <jh@suse.cz>
11915
11916         * predict.c (maybe_hot_frequency_p): Break out of...
11917         (maybe_hot_bb_p): ... here.
11918         (maybe_hot_edge_p): New.
11919         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
11920         * basic-block.h (maybe_hot_edge_p): Declare.
11921
11922 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
11923
11924         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
11925         (*cmpfp_<mode>_cc): Ditto.
11926         (*fp_jcc_8<mode>_387): Ditto.
11927         (*fop_<MODEF:mode>_2_i387): Ditto.
11928         (*fop_<MODEF:mode>_3_i387): Ditto.
11929         (*fop_xf_2_i387): Ditto.
11930         (*fop_xf_3_i387): Ditto.
11931
11932 2008-06-02  Tomas Bily  <tbily@suse.cz>
11933
11934         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
11935
11936 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11937
11938         * config/mips/mips.c (mips_valid_offset_p): New function.
11939         (mips_valid_lo_sum_p): Likewise.
11940         (mips_classify_address): Use them.
11941         (mips_force_address): New function.
11942         (mips_legitimize_address): Use it.
11943         * config/mips/mips.md (MOVE128): New mode iterator.
11944         (movtf): Require TARGET_64BIT.  Remove empty strings.
11945         (*movtf_internal): Rename to...
11946         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
11947         of "R" and use {,fp}{load,store} attributes instead of "multi".
11948         Use a separate define_split.
11949         (*movtf_mips16): New pattern.
11950
11951 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11952
11953         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
11954         * config/mips/mips.c (mips_expand_before_return): New function.
11955         (mips_expand_epilogue): Call it.
11956         * config/mips/mips.md (return): Turn into a define_expand.
11957         (*return): New insn.
11958
11959 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11960
11961         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
11962         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
11963         functions.  Do not emit uses and clobbers of CONCATs; individually
11964         use and clobber their operands.
11965         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
11966         gen_clobber, emit_use and gen_use.
11967         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
11968         (expand_builtin_return): Likewise.
11969         * cfgbuild.c (count_basic_blocks): Likewise.
11970         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
11971         * explow.c (emit_stack_restore): Likewise.
11972         * expmed.c (extract_bit_field_1): Likewise.
11973         * expr.c (convert_move, emit_move_complex_parts): Likewise.
11974         (emit_move_multi_word, store_constructor): Likewise.
11975         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
11976         (thread_prologue_and_epilogue_insns): Likewise.
11977         * lower-subreg.c (resolve_simple_move): Likewise.
11978         * optabs.c (widen_operand, expand_binop): Likewise.
11979         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
11980         * reload.c (find_reloads): Likewise.
11981         * reload1.c (eliminate_regs_in_insn): Likewise.
11982         * stmt.c (expand_nl_goto_receiver): Likewise.
11983         * config/alpha/alpha.md (builtin_longjmp): Likewise.
11984         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
11985         * config/arm/arm.c (arm_load_pic_register): Likewise.
11986         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
11987         * config/arm/arm.md (untyped_return): Likewise.
11988         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
11989         * config/avr/avr.c (expand_prologue): Likewise.
11990         * config/bfin/bfin.c (do_unlink): Likewise.
11991         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
11992         * config/cris/cris.c (cris_expand_prologue): Likewise.
11993         * config/darwin.c (machopic_indirect_data_reference): Likewise.
11994         (machopic_legitimize_pic_address): Likewise.
11995         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
11996         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
11997         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
11998         (ix86_expand_convert_uns_didf_sse): Likewise.
11999         (ix86_expand_vector_init_general): Likewise.
12000         * config/ia64/ia64.md (eh_epilogue): Likewise.
12001         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
12002         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
12003         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
12004         (config/iq2000/iq2000.c): Likewise.
12005         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
12006         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
12007         (builtin_longjmp): Likewise.
12008         * config/mn10300/mn10300.md (call, call_value): Likewise.
12009         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
12010         * config/pdp11/pdp11.md (abshi2): Likewise.
12011         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
12012         * config/s390/s390.c (s390_emit_prologue): Likewise.
12013         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
12014         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
12015         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
12016         * config/sh/sh.c (prepare_move_operands): Likewise.
12017         (output_stack_adjust, sh_expand_epilogue): Likewise.
12018         (sh_set_return_address, sh_expand_t_scc): Likewise.
12019         * config/sparc/sparc.c (load_pic_register): Likewise.
12020         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
12021         * config/spu/spu.c (spu_expand_epilogue): Likewise.
12022         * config/v850/v850.c (expand_epilogue): Likewise.
12023
12024 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
12025
12026         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
12027         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
12028         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
12029         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
12030         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
12031         stack pointer register.
12032         (output_movhi): Remove code for interrupt specific writing to the
12033         stack pointer register.
12034
12035 2008-05-31  Richard Guenther  <rguenther@suse.de>
12036
12037         PR tree-optimization/34244
12038         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
12039         (tree_expr_nonzero_warnv_p): Likewise.
12040         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
12041         ssa_name_nonnegative_p.
12042         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
12043         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
12044         not tree_expr_nonzero_warnv_p.
12045
12046         PR tree-optimization/36262
12047         Revert
12048         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
12049
12050         PR tree-optimization/34244
12051         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
12052         (record_numbers_of_iterations): New function.
12053         (execute_vrp): Cache the numbers of iterations of loops.
12054         * tree-scalar-evolution.c (scev_reset_except_niters):
12055         New function.
12056         (scev_reset): Use scev_reset_except_niters.
12057         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
12058
12059 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
12060
12061         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
12062         __WORKAROUND_RETS when appropriate.
12063
12064 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
12065
12066         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
12067         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
12068         mode iterator.
12069         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
12070         *fop_df_comm_sse insn patterns using MODEF mode iterator.
12071         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
12072         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
12073         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
12074         *fop_df_1_mixed insn patterns using MODEF mode iterator.
12075         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
12076         *fop_df_1_sse insn patterns using MODEF mode iterator.
12077         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
12078         *fop_df_1_i387 insn patterns using MODEF mode iterator.
12079         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
12080         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
12081         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
12082         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
12083         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
12084         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
12085         (*fop_xf_4_i387): Use <MODE> for mode attribute.
12086         (*fop_xf_5_i387): Ditto.
12087         (*fop_xf_6_i387): Ditto.
12088
12089 2008-05-30  Richard Guenther  <rguenther@suse.de>
12090
12091         * builtins.c (build_string_literal): Avoid generating
12092         a non-gimple_val result.
12093
12094 2008-05-30  DJ Delorie  <dj@redhat.com>
12095
12096         * exec-tool.in: Use an environment variable (private) instead of a
12097         file (shared) as a semaphore, so as to not break parallel builds.
12098
12099 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
12100
12101         * optabs.c (maybe_encapsulate_block): Remove.
12102         (emit_libcall_block): Adjust accordingly.
12103         * optabs.h (maybe_encapsulate_block): Remove prototype.
12104
12105         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
12106         Don't use maybe_encapsulate_block.
12107
12108 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
12109
12110         * config/rs6000/rs6000.c (rs6000_legitimize_address,
12111         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
12112         rtx is a SYMBOL_REF before calling get_pool_constant.
12113
12114 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
12115
12116         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
12117
12118 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
12119
12120         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
12121         rather than OS names to choose INO_T_EQ definition.
12122         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
12123         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
12124
12125 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
12126
12127         PR target/36348
12128         * config/darwin-f.c: New.
12129         * config/t-darwin: Added rule to build darwin-f.o.
12130         * config.gcc: Defined new variable, fortran_target_objs.
12131         (*-*-darwin*): Set fortran_target_objs.
12132         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
12133         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
12134         * configure: Regenerated.
12135
12136 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
12137
12138         PR target/35771
12139         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
12140         canonical type if needed.
12141
12142 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
12143
12144         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
12145
12146 2008-05-29  Richard Guenther  <rguenther@suse.de>
12147
12148         PR tree-optimization/36343
12149         PR tree-optimization/36346
12150         PR tree-optimization/36347
12151         * tree-flow.h (clobber_what_p_points_to): Declare.
12152         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
12153         pointed-to variable is dereferenced is irrelevant to whether
12154         the pointer can access the pointed-to variable.
12155         (clobber_what_p_points_to): New function.
12156         * tree-ssa-alias.c (set_initial_properties): Use it.
12157         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
12158         call clobber check for NMTs.
12159
12160 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
12161
12162         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
12163         for printing gcov_type.
12164
12165 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
12166
12167         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
12168         and the eh region information.
12169         * value-prof.c (gimple_move_stmt_histograms): New function.
12170         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
12171
12172 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
12173
12174         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
12175
12176 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
12177
12178         * value-prof.c (tree_ic_transform): Print counts.
12179         * tree-profile.c (tree_gen_ic_func_profiler):
12180         Clear __gcov_indreict_call_callee variable to avoid misattribution
12181         of the profile.
12182
12183 2008-05-28  Rafael Espíndola  <espindola@google.com>
12184
12185         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
12186         invalid sharing.
12187
12188 2008-05-28  Richard Guenther  <rguenther@suse.de>
12189
12190         PR tree-optimization/36339
12191         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
12192         and clobbering code out of the loop.
12193
12194 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
12195
12196         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
12197         letters defined.
12198
12199         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
12200         s390_contiguous_bitmask_p, s390_symref_operand_p,
12201         s390_check_symref_alignment, s390_reload_larl_operand,
12202         s390_reload_symref_address): New functions.
12203         (s390_branch_condition_mnemonic): Support compare and branch
12204         instructions.
12205         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
12206         and 'W' constraints.
12207         (s390_secondary_reload): Add secondary reloads for unaligned
12208         symbol refs or symbol refs to floating point or QI/TI mode
12209         integer values.
12210         (legitimate_address_p): Accept symbol references as addresses.
12211         (s390_expand_insv): Use rotate and insert selected bits
12212         instruction for insv when building for z10.
12213         (print_operand_address): Handle symbol ref addresses.
12214         (print_operand): Output modifier 'c' added for signed byte values.
12215         (s390_encode_section_info): Mark symbol refs with
12216         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
12217
12218         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
12219         (length attribute): RRF, RRR have 4 byte length.
12220         (FPALL, INTALL): New mode iterators added.
12221         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
12222         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
12223         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
12224         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
12225         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
12226         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
12227         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
12228         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
12229         instructions.
12230         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
12231         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
12232         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
12233         reload<INTALL:mode><P:mode>_toreg_z10,
12234         reload<FPALL:mode><P:mode>_tomem_z10,
12235         reload<FPALL:mode><P:mode>_toreg_z10,
12236         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
12237         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
12238         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
12239         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
12240         definition.
12241         (movmem, clrmem, cmpmem): New splitters added.
12242
12243         * config/s390/predicates.md (larl_operand): Use
12244         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
12245         SYMBOL_REF_ALIGN1_P.
12246         (s390_signed_integer_comparison,
12247         s390_unsigned_integer_comparison): New predicates.
12248
12249         * config/s390/s390-protos.h (s390_check_symref_alignment,
12250         s390_contiguous_bitmask_p, s390_reload_larl_operand,
12251         s390_reload_symref_address,
12252         s390_compare_and_branch_condition_mask): Prototypes added.
12253
12254         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
12255         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
12256         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
12257
12258 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
12259
12260         * config/s390/s390.c (z10_cost): New cost function for z10.
12261         (s390_handle_arch_option, override_options): Support -march=z10 switch.
12262         (s390_issue_rate): Adjust issue rate for z10.
12263         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
12264         (processor_flags): Add PF_Z10.
12265         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
12266         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
12267         * gcc/config.gcc: Add z10.
12268
12269 2008-05-28  Richard Guenther  <rguenther@suse.de>
12270
12271         PR tree-optimization/36291
12272         * tree-flow. h (struct gimple_df): Remove var_anns member.
12273         * tree-flow-inline.h (gimple_var_anns): Remove.
12274         (var_ann): Simplify.
12275         * tree-dfa.c (create_var_ann): Simplify.
12276         (remove_referenced_var): Clear alias info from var_anns of globals.
12277         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
12278         (delete_tree_ssa): Clear alias info from var_anns of globals.
12279         Do not free var_anns.
12280         (var_ann_eq): Remove.
12281         (var_ann_hash): Likewise.
12282
12283 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
12284
12285         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
12286         and loongson2f entries.
12287         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
12288         * config/mips/mips.h (processor_type): Add Loongson-2E
12289         and Loongson-2F entries.
12290         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
12291         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
12292         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
12293         * doc/invoke.texi (MIPS Options): Document loongson2e
12294         and loongson2f processor names.
12295
12296 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
12297
12298         PR target/35767
12299         PR target/35771
12300         * config/i386/i386.c (ix86_function_arg_boundary): Use
12301         alignment of canonical type.
12302         (ix86_expand_vector_move): Check unaligned memory access for
12303         all SSE modes.
12304
12305 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
12306
12307         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
12308         Moved to the front of file.
12309
12310 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
12311             H.J. Lu  <hongjiu.lu@intel.com>
12312
12313         * dwarf2out.c (current_fde): New.
12314         (add_cfi): Use it.
12315         (lookup_cfa:): Likewise.
12316         (dwarf2out_end_epilogue): Likewise.
12317         (dwarf2out_note_section_used): Likewise.
12318
12319 2008-05-27  Michael Matz  <matz@suse.de>
12320
12321         PR c++/27975
12322         * c.opt (Wenum-compare): New warning option.
12323         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
12324
12325 2008-05-27  Michael Matz  <matz@suse.de>
12326
12327         PR middle-end/36326
12328         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
12329         non-BLKmode types.
12330         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
12331         into memory as tail calls.
12332
12333 2008-05-27  Richard Guenther  <rguenther@suse.de>
12334
12335         PR tree-optimization/36339
12336         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
12337         pointers cause all addressable variables to be call clobbered.
12338
12339 2008-05-27  Richard Guenther  <rguenther@suse.de>
12340
12341         PR tree-optimization/36245
12342         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
12343
12344 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12345
12346         * config/s390/s390.md: Replace all occurences of the 'm'
12347         constraint with 'RT'.
12348
12349 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12350
12351         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
12352         definitions added.
12353         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
12354         "*movdi_64".
12355         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
12356         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
12357         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
12358
12359 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12360
12361         * reload.c: (find_reloads): Skip alternatives according to the
12362         "enabled" attribute. Constify the constraint variable.
12363         * recog.c (get_attr_enabled): Add default implementation.
12364         (extract_insn): Set the alternative_enabled_p array
12365         in the recog_data struct.
12366         (preprocess_constraints, constrain_operands): Skip
12367         alternatives according to the "enabled" attribute
12368         * recog.h (struct recog_data): New field alternative_enabled_p.
12369         (skip_alternative): New inline function.
12370         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
12371         (record_reg_classes): Skip alternative according to the
12372         "enabled" attribute.
12373
12374         * doc/md.texi: Add documention for the "enabled" attribute.
12375
12376 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12377
12378         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
12379         * postreload.c (reload_cse_simplify_operands): Replace 'm'
12380         constraint with TARGET_MEM_CONSTRAINT.
12381         * recog.c (asm_operand_ok, preprocess_constraints,
12382         constrain_operands): Likewise.
12383         * regclass.c (record_reg_classes): Likewise.
12384         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
12385         * reload1.c (maybe_fix_stack_asms): Likewise.
12386         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12387         * recog.h: Adjust comment.
12388         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
12389         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
12390         * doc/md.texi: Add a note to description of 'm' constraint.
12391         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
12392
12393 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
12394
12395         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
12396         that the bitfield is of integral type before testing its precision.
12397
12398 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
12399             Sa Liu  <saliu@de.ibm.com>
12400
12401         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
12402         __modti3, __udivti3, __umodti3 and __udivmodti4.
12403         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
12404         that implement TImode mul and div functions.
12405         * config/spu/multi3.c: New. Implement __multi3.
12406         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
12407         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
12408         functions on SPU.
12409
12410 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
12411
12412         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
12413         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
12414         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
12415         tls_sysv_suffix): New mode and mode attribute iterators.
12416         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
12417         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
12418         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
12419         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
12420         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
12421         iterators.
12422
12423 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12424
12425         PR tree-optimization/36329
12426         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
12427         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
12428         * cgraphbuild.c (initialize_inline_failed): Use the latter
12429         macro in lieu of the former.
12430         * ipa-inline.c (cgraph_mark_inline): Likewise.
12431         (cgraph_decide_inlining_of_small_function): Likewise.
12432         (cgraph_decide_inlining): Likewise.
12433         (cgraph_decide_inlining_incrementally): Likewise.
12434
12435 2008-05-26  Tristan Gingold  <gingold@adacore.com>
12436             Anatoly Sokolov  <aesok@post.ru>
12437
12438         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
12439         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
12440         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
12441         optimization for 'avr6' architecture.
12442
12443 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
12444
12445         PR target/34932
12446         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
12447
12448 2008-05-26  Richard Guenther  <rguenther@suse.de>
12449
12450         * tree-ssa-sccvn.c (expr_has_constants): Declare.
12451         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
12452
12453 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
12454
12455         PR middle-end/36253
12456         * caller-save.c (insert_restore): Verify alignment of spill space.
12457         (insert_save): Likewise.
12458         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
12459         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
12460         (STACK_SLOT_ALIGNMENT): Likewise.
12461         * function.c (LOCAL_ALIGNMENT): Removed.
12462         (get_stack_local_alignment): New.
12463         (assign_stack_local): Use it.  Set alignment on stack slot.
12464         (assign_stack_temp_for_type): Use get_stack_local_alignment.
12465         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
12466         (STACK_SLOT_ALIGNMENT): New.
12467         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
12468         stack slot in XFmode.
12469
12470         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
12471
12472 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
12473
12474         PR/36321
12475         * config/i386/i386.md (allocate_stack_worker_64): Make sure
12476         argument operand in rax isn't removed.
12477
12478 2008-05-26  Richard Guenther  <rguenther@suse.de>
12479
12480         PR middle-end/36300
12481         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
12482         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
12483
12484 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12485
12486         PR bootstrap/36331
12487         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
12488
12489 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
12490
12491         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
12492         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
12493
12494 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12495
12496         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
12497         build a trampoline if we don't want one.
12498         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
12499         return zero for nested functions if we don't want a trampoline.
12500
12501 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12502
12503         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
12504
12505 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12506
12507         PR fortran/18428
12508         * c.opt: Removed undocumented option '-lang-fortran'.
12509         * c-common.h: Removed global variable 'lang_fortran'.
12510         * c-opts.c (c_common_handle_option): Removed code to handle
12511         option '-lang-fortran'. Updated includes.
12512         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
12513         definition of '__GFORTRAN__'.
12514         (define__GNUC__): Reimplemented to use BASEVER and
12515         cpp_define_formatted.
12516         (builtin_define_with_value_n): Removed.
12517         * c-incpath.h: Renamed to ...
12518         * incpath.h: ... this.
12519         * c-incpath.c: Renamed to ...
12520         * incpath.c: ... this. Updated includes.
12521         * fix-header.c: Updated includes.
12522         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
12523         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
12524         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
12525
12526 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12527
12528         * tree.h: Update the table of flags used on tree nodes.
12529         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
12530         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
12531         (FORCED_LABEL): Add access check.
12532         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
12533         (ASM_INPUT_P): Likewise.
12534         (ASM_VOLATILE_P): Likewise.
12535         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
12536         (OMP_SECTION_LAST): Access private_flag directly.
12537         (OMP_RETURN_NOWAIT): Likewise.
12538         (OMP_PARALLEL_COMBINED): Likewise.
12539         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
12540         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
12541         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
12542         deprecated_flag directly.
12543
12544 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12545
12546         * final.c (frame_pointer_needed): Removed.
12547         * flags.h (frame_pointer_needed): Likewise.
12548
12549         * function.h (rtl_data): Add frame_pointer_needed.
12550         (frame_pointer_needed): New.
12551
12552 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
12553
12554         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
12555
12556 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
12557
12558         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
12559         SRC is a REG.
12560
12561 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
12562
12563         * c-common.c (strip_array_types): Move function to..
12564         * tree.c: ..here.
12565         (get_inner_array_type): Delete.
12566         * c-common.h (strip_array_types): Move declaration to..
12567         * tree.h: ..here.
12568         (get_inner_array_type): Delete.
12569         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
12570         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
12571         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12572         * config/pa/pa.c (emit_move_sequence): Likewise.
12573
12574 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12575
12576         * config/i386/i386.md (*sse_prologue_save_insn): Set length
12577         attribute to 34.
12578
12579 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
12580
12581         * function.c: Include target hook for nonlocal_goto frame value.
12582
12583 2008-05-24  Richard Guenther  <rguenther@suse.de>
12584
12585         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
12586         variable can be only accessed through a pointer or a union.
12587
12588 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12589
12590         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
12591         * doc/extend.texi: Likewise.
12592
12593 2008-05-23  DJ Delorie  <dj@redhat.com>
12594
12595         * config/m32c/jump.md (untyped_call): Add.
12596
12597         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
12598         for A24 to PSImode.
12599         (m32c_address_cost): Detail costs for indirect offsets.
12600
12601 2008-05-23  Rafael Espíndola  <espindola@google.com>
12602
12603         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
12604         if a node is a SUBREG.
12605         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
12606         is a SUBREG.
12607
12608 2008-05-23  Paul Brook  <paul@codesourcery.com>
12609             Carlos O'Donell  <carlos@codesourcery.com>
12610
12611         * doc/extend.texi: Clarify use of __attribute__((naked)).
12612         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12613         * target.h (gcc_target): Add allocate_stack_slots_for_args.
12614         * function.c (use_register_for_decl): Use
12615         targetm.calls.allocate_stack_slots_for_args.
12616         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12617         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
12618         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
12619
12620 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
12621
12622         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
12623
12624 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
12625
12626         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
12627         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
12628         is only rounded once.
12629
12630 2008-05-23  Richard Guenther  <rguenther@suse.de>
12631
12632         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
12633
12634 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
12635             Jakub Jelinek  <jakub@redhat.com>
12636
12637         PR target/36079
12638         * configure.ac: Handle --enable-cld.
12639         * configure: Regenerated.
12640         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
12641         * config/i386/i386.h (struct machine_function): Add needs_cld field.
12642         (ix86_current_function_needs_cld): New define.
12643         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
12644         (cld): New isns pattern.
12645         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
12646         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
12647         * config/i386/i386.opt (mcld): New option.
12648         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
12649         TARGET_CLD and ix86_current_function_needs_cld.
12650         (override_options): Use -mcld by default for 32-bit code if
12651         USE_IX86_CLD.
12652
12653         * doc/install.texi (Options specification): Document --enable-cld.
12654         * doc/invoke.texi (Machine Dependent Options)
12655         [i386 and x86-64 Options]: Add -mcld option.
12656         (Intel 386 and AMD x86-64 Options): Document -mcld option.
12657
12658 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
12659         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
12660         (return_in_memory_64): Likewise.
12661         (return_in_memory_ms_64): Likewise.
12662
12663 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12664
12665         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
12666         * builtins.c (fold_builtin_fpclassify): New.
12667         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
12668         * builtins.def (BUILT_IN_FPCLASSIFY): New.
12669         * c-common.c (handle_type_generic_attribute): Adjust to accept
12670         fixed arguments before an elipsis.
12671         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
12672         * doc/extend.texi: Document __builtin_fpclassify.
12673
12674 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
12675
12676         * omp-low.c (gate_expand_omp_ssa): Remove.
12677         (pass_expand_omp_ssa): Remove.
12678         (gate_expand_omp): Do not check for flag_openmp_ssa.
12679         * common.opt (-fopenmp-ssa): Remove.
12680         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
12681
12682 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12683
12684         * config/sh/sh.opt (mfixed-range): New option.
12685         * config/sh/sh-protos.h (sh_fix_range): Declare.
12686         * config/sh/sh.c (sh_fix_range): New function.
12687         * config/sh/sh.h (sh_fixed_range_str): Declare.
12688         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
12689         is not empty.
12690         * doc/invoke.texi (SH Options): Document -mfixed-range.
12691
12692 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
12693
12694         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
12695         it before the redeclaration.
12696
12697 2008-05-22  Anatoly Sokolov <aesok@post.ru>
12698
12699         * config/avr/avr.c (get_sequence_length): Add new function.
12700         (expand_prologue, expand_epilogue): Remove duplicate code.
12701
12702 2008-05-22  Rafael Espíndola  <espindola@google.com>
12703
12704         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
12705         sharing.
12706
12707 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
12708
12709         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
12710         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
12711
12712         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
12713         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
12714         (vect_update_misalignment_for_peel): Likewise.
12715         (vector_alignment_reachable_p): Likewise.
12716         * tree-vect-transform.c (vectorizable_load): Likewise.
12717         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
12718         (get_vectype_for_scalar_type): Pass mode of scalar_type
12719         to UNITS_PER_SIMD_WORD.
12720
12721         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
12722         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12723         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12724         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12725         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12726
12727 2008-05-22  Ira Rosen  <irar@il.ibm.com>
12728
12729         PR tree-optimization/36293
12730         * tree-vect-transform.c (vect_transform_strided_load): Don't check
12731         if the first load must be skipped because of a gap.
12732
12733 2008-05-22  Richard Guenther  <rguenther@suse.de>
12734
12735         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
12736         more cases of offset disambiguation that is possible if
12737         strict-aliasing rules apply.
12738         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
12739         for basic offset and type-based disambiguation.
12740
12741 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12742
12743         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
12744         ix86_expand_vector_set on V16QImode for SSE4.1.
12745
12746 2008-05-21  Tom Tromey  <tromey@redhat.com>
12747
12748         * c.opt (Wimport): Mark as undocumented.
12749         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
12750         -Wno-import.
12751         (Warning Options): Likewise.
12752         * doc/cppopts.texi: Don't mention -Wimport.
12753
12754 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
12755
12756         PR tree-optimization/36287
12757         PR tree-optimization/36286
12758         * lambda-code.c (build_access_matrix): Do not use the loop->num
12759         for computing the number of induction variables: use the loop depth
12760         instead.
12761
12762 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
12763
12764         PR/36280
12765         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
12766         option -f(no-)leading-underscore.
12767
12768 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12769
12770         * config/i386/i386.c (ix86_expand_vector_init_general): Use
12771         GET_MODE_NUNITS (mode).
12772
12773 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
12774
12775         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
12776         (-mmulhw): Add 464 to description.
12777         (-mdlmzb): Likewise.
12778         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
12779         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
12780         464fp entries.
12781         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
12782         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
12783         * config/rs6000/rs6000.md: Update comments for 464.
12784
12785 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
12786
12787         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
12788
12789 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12790
12791         * config/i386/sse.md (vec_extractv4sf): Removed.
12792         (vec_extractv2df): Likewise.
12793         (vec_extractv2di): Likewise.
12794         (vec_extractv4si): Likewise.
12795         (vec_extractv8hi): Likewise.
12796         (vec_extractv16qi): Likewise.
12797         (vec_extract<mode>): New.
12798
12799 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12800
12801         * config/i386/sse.md (vec_setv4sf): Removed.
12802         (vec_setv2df): Likewise.
12803         (vec_setv2di): Likewise.
12804         (vec_setv4si): Likewise.
12805         (vec_setv8hi): Likewise.
12806         (vec_setv16qi): Likewise.
12807         (vec_set<mode>): New.
12808
12809 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12810
12811         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
12812         goto for vec_concat and vec_interleave.
12813
12814 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12815
12816         * config/i386/sse.md (vec_initv4sf): Removed.
12817         (vec_initv2df): Likewise.
12818         (vec_initv2di): Likewise.
12819         (vec_initv4si): Likewise.
12820         (vec_initv8hi): Likewise.
12821         (vec_initv16qi): Likewise.
12822         (vec_init<mode>): New.
12823
12824 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
12825
12826         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
12827
12828 2008-05-21  Tom Tromey  <tromey@redhat.com>
12829
12830         * ggc-zone.c (lookup_page_table_if_allocated): New function.
12831         (zone_find_object_offset): Likewise.
12832         (gt_ggc_m_S): Likewise.
12833         (highest_bit): Likewise.
12834         * ggc-page.c (gt_ggc_m_S): New function.
12835         * stringpool.c (string_stack): Remove.
12836         (init_stringpool): Update.
12837         (ggc_alloc_string): Use ggc_alloc.
12838         (maybe_delete_ident): New function.
12839         (ggc_purge_stringpool): Likewise.
12840         (gt_ggc_m_S): Remove.
12841         * ggc-common.c (ggc_protect_identifiers): New global.
12842         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
12843         ggc_protect_identifiers.
12844         * ggc.h (ggc_protect_identifiers): Declare.
12845         (gt_ggc_m_S): Update.
12846         (ggc_purge_stringpool): Declare.
12847         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
12848         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
12849         special case.
12850         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
12851
12852 2008-05-21  David S. Miller  <davem@davemloft.net>
12853
12854         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
12855         tmake_file.
12856
12857 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12858
12859         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
12860         once finished.
12861
12862 2008-05-20  David Daney  <ddaney@avtrex.com>
12863
12864         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
12865         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
12866         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
12867         UNSPEC_UPDATE_GOT_VERSION): Renumber.
12868         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
12869         (atomic_hiqi_op): New define_code_iterator.
12870         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
12871         mips_expand_compare_and_swap_12.
12872         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
12873         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
12874         (sync_<optab><mode>, sync_old_<optab><mode>,
12875         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
12876         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
12877         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
12878         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
12879         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
12880         (test_and_set_12): New insn.
12881         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
12882         sync_new_<optab><mode>, sync_old_nand<mode>,
12883         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
12884         clobber to operand 0 for SI and DI mode insns.
12885         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
12886         mips_gen_fn_4): New typedefs.
12887         (mips_gen_fn_ptrs): Define new union type.
12888         (mips_expand_compare_and_swap_12): Remove declaration.
12889         (mips_expand_atomic_qihi): Declare function.
12890         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
12891         (mips_expand_atomic_qihi): ... this.  Use new generator function
12892         parameter.
12893         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
12894         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
12895         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
12896         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
12897         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
12898         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
12899         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
12900         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
12901         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
12902         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
12903         New macros.
12904
12905 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
12906
12907         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
12908         the missing break.
12909
12910 2008-05-20  Anatoly Sokolov <aesok@post.ru>
12911
12912         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
12913         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
12914         (avr_attribute_table): Add 'OS_main' function attribute.
12915         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
12916         functions with 'OS_main' attribute.
12917
12918 2008-05-20  Richard Guenther  <rguenther@suse.de>
12919
12920         PR tree-optimization/35204
12921         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
12922         helper, split out from ...
12923         (DFS): ... here.  Make the DFS walk non-recursive.
12924
12925 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
12926             Jan Sjodin  <jan.sjodin@amd.com>
12927
12928         PR tree-optimization/36181
12929         * tree-parloops.c (loop_has_vector_phi_nodes): New.
12930         (parallelize_loops): Don't parallelize when the loop has vector
12931         phi nodes.
12932
12933 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12934             Sebastian Pop  <sebastian.pop@amd.com>
12935
12936         * tree-loop-linear.c (gather_interchange_stats): Look in the access
12937         matrix, and never look at the tree representation of the memory
12938         accesses.
12939         (linear_transform_loops): Computes parameters and access matrices.
12940         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
12941         when fails.
12942         (access_matrix_get_index_for_parameter): New.
12943         * tree-data-ref.h (struct access_matrix): New.
12944         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
12945         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
12946         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
12947         am_vector_index_for_loop): New.
12948         (struct data_reference): Add field access_matrix.
12949         (DR_ACCESS_MATRIX): New.
12950         (compute_data_dependences_for_loop): Update declaration.
12951         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
12952         * lambda.h (lambda_vector_vec_p): Declared.
12953         * lambda-code.c: Depend on pointer-set.h.
12954         (lambda_collect_parameters_from_af, lambda_collect_parameters,
12955         av_for_af_base, av_for_af, build_access_matrix,
12956         lambda_compute_access_matrices): New.
12957         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
12958
12959 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
12960
12961         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
12962         $SOURCEDIR/include.
12963
12964 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12965             Sebastian Pop  <sebastian.pop@amd.com>
12966
12967         PR tree-optimization/36206
12968         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
12969         FOLD_CONVERSIONS.
12970         (instantiate_scev_1): Rename flags to fold_conversions.
12971         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
12972         outeside instantiation_loop.
12973         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
12974         (evolution_function_is_affine_or_constant_p): Removed.
12975         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
12976         instantiate_scev.
12977         (analyze_siv_subscript): Pass in the loop nest number.
12978         Call evolution_function_is_affine_in_loop instead of
12979         evolution_function_is_affine_p.
12980         (analyze_overlapping_iterations): Pass in the loop nest number.
12981
12982 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12983             Sebastian Pop  <sebastian.pop@amd.com>
12984
12985         PR tree-optimization/36206
12986         * tree-chrec.h (chrec_fold_op): New.
12987         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
12988         and other trees.
12989
12990 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
12991
12992         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
12993         (DIRS_EQ): New.
12994         (remove_duplicates): Do not set inode on non-inode systems.
12995         Use DIRS_EQ.
12996
12997 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
12998
12999         * config.gcc (tm_file): Update comments about relative pathnames.
13000
13001 2008-05-20  Richard Guenther  <rguenther@suse.de>
13002
13003         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
13004         * tree-ssa-sccvn.c (process_scc): Likewise.
13005         * tree-ssa-sink.c (execute_sink_code): Likewise.
13006         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13007         * tree-vrp.c (process_assert_insertions): Likewise.
13008         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
13009         (perform_tree_ssa_dce): Likewise.
13010         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
13011         (dump_dominator_optimization_stats): Likewise.
13012         * tree-vectorizer.c (vectorize_loops): Likewise.
13013
13014 2008-05-20  Richard Guenther  <rguenther@suse.de>
13015
13016         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
13017
13018 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
13019
13020         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
13021         (ix86_i386elf_return_in_memory): Likewise.
13022         (ix86_i386interix_return_in_memory): Likewise.
13023         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
13024         (SUBTARGET_RETURN_IN_MEMORY): New.
13025         * config/i386/i386elf.h: Likewise.
13026         * config/i386/ptx4-i.h: Likewise.
13027         * config/i386/sol2-10.h: Likewise.
13028         * config/i386/sysv4.h: Likewise.
13029         * config/i386/vx-common.h: Likewise.
13030         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
13031         * config/i386/i386.c (ix86_return_in_memory): Made static and
13032         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
13033         (ix86_i386elf_return_in_memory): Removed.
13034         (ix86_i386interix_return_in_memory): Removed.
13035         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
13036         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
13037
13038 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
13039
13040         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
13041
13042 2008-05-19  Xinliang David Li  <davidxl@google.com>
13043
13044         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
13045         * opts.c: Ditto.
13046         * common.opt: Ditto.
13047         * doc/invoke.texi: Ditto.
13048
13049 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
13050
13051         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
13052         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
13053
13054 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
13055
13056         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
13057         sizes of operand array from 8/4 to 4/2.
13058         (ix86_expand_vector_init_general): Change size of operand array
13059         from 32 to 16.  Remove op0, op1 and half_mode.
13060
13061 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
13062
13063         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
13064         (ix86_expand_vector_init_interleave): Likewise.
13065         (ix86_expand_vector_init_general): Use them.  Assert
13066         word_mode == SImode when n_words == 4.
13067
13068 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
13069
13070         * config/i386/i386.c (ix86_secondary_reload): New static function.
13071         (TARGET_SECONDARY_RELOAD): New define.
13072         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
13073         * config/i386/i386.md (reload_outqi): Remove.
13074
13075 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13076
13077         PR middle-end/35509
13078         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
13079         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
13080         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
13081         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
13082         (fold_builtin_1): Likewise.
13083         * builtins.def (BUILT_IN_ISINF_SIGN): New.
13084         c-common.c (check_builtin_function_arguments): Handle
13085         BUILT_IN_ISINF_SIGN.
13086         * doc/extend.texi: Document __builtin_isinf_sign.
13087         * fold-const.c (operand_equal_p): Handle COND_EXPR.
13088
13089 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
13090
13091         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
13092         EH cleanup at the end of the pass, search for those that have been
13093         turned into forwarder blocks and do the cleanup on their successor.
13094
13095 2008-05-18  Richard Guenther  <rguenther@suse.de>
13096
13097         * tree-cfg.c (verify_gimple_expr): Allow conversions from
13098         pointers to sizetype and vice versa.
13099
13100 2008-05-18 Xinliang David Li   <davidxl@google.com>
13101
13102         * gcc/tree-ssa-dce.c: Coding style fix.
13103         (check_pow): Documentation comment.
13104         (check_log): Documenation comment. Coding style fix.
13105         (is_unnecessary_except_errno_call): Ditto.
13106         (gen_conditions_for_pow): Ditto.
13107         (gen_conditions_for_log): Ditto.
13108         (gen_shrink_wrap_conditions): Ditto.
13109         (shrink_wrap_one_built_in_calls): Ditto.
13110         * gcc/doc/invoke.texi: Better documentation string.
13111         * ChangeLog: Fix wrong change log entries from
13112         May 17 checkin on function call DCE.
13113
13114 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
13115
13116         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
13117
13118 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
13119
13120         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
13121         * df-problems.c (simulation routines): Fixed block comment to
13122         properly say how to add forwards scanning functions.
13123
13124 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
13125
13126         * tree-inline.c (setup_one_parameter): Remove dead code.
13127
13128 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
13129
13130         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
13131         a BIT_AND_EXPR only for an INTEGER_TYPE.
13132
13133 2008-05-17 Xinliang David Li   <davidxl@google.com>
13134
13135         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
13136         (check_pow, check_log, is_unnecessary_except_errno_call): New
13137         functions to check for eliminating math functions that are pure
13138         except for setting errno.
13139         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
13140         general condition expressions for shrink-wrapping pow/log calls.
13141         (gen_shrink_wrap_conditions): Ditto.
13142         (shrink_wrap_one_built_in_call): Ditto.
13143         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
13144         (mark_operand_necessary): If debugging, output if OP is necessary.
13145         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
13146         unnecessary.
13147         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
13148         opt level >= 2.
13149         * gcc/common.opt: New user flag -ftree-builtin-dce.
13150         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
13151
13152 2008-05-16  David S. Miller  <davem@davemloft.net>
13153
13154         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
13155         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
13156
13157 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
13158
13159         PR target/36246
13160         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
13161
13162 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13163
13164         * ifcvt.c (dead_or_predicable): Rename
13165         df_simulate_one_insn_backwards to df_simulate_one_insn.
13166         * recog.c (peephole2_optimize): Ditto.
13167         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
13168         Ditto.
13169         * df.h: Rename df_simulate_one_insn_backwards to
13170         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
13171         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
13172         scanning of defs and uses.
13173         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
13174         (df_simulate_one_insn_forwards): Removed.
13175
13176 2008-05-16  Doug Kwan  <dougkwan@google.com>
13177
13178         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
13179         QNaN & SNaN.
13180         (real_from_string): Handle NaNs and Inf as approriate.
13181
13182 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
13183
13184         * doc/gty.texi (Source Files Containing Type Information): Note
13185         that headers should appear first in the gtfiles list.
13186
13187 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13188
13189         * tree.def (COND_EXEC): Properly documented this code.
13190
13191 2008-05-16  Diego Novillo  <dnovillo@google.com>
13192
13193         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
13194         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
13195         the new field.
13196
13197 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13198
13199         * tree-ssa-dse (max_stmt_uid): Removed.
13200         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
13201         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
13202         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
13203         * function.h (cfun.last_stmt_uid): New field.
13204         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
13205         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
13206         New functions.
13207         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
13208         (create_stmt_ann): Initialize the ann->uid field.
13209         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
13210         with new calls.
13211         * tree-flow.h (renumber_gimple_stmt_uids): New function.
13212
13213 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
13214
13215         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
13216         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
13217         (init_empty_tree_cfg): Call it.
13218
13219 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13220
13221         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
13222         Update all users.
13223
13224 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13225
13226         * doc/invoke.text (-fdump-tree-*-verbose): New option.
13227         * tree-dump.c (dump_options): New verbose option.
13228         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
13229         Add verbose dump.
13230         * tree-pass.h (TDF_VERBOSE): New dump flag.
13231         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
13232         (tree-flow.h): Added include.
13233         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
13234
13235 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
13236
13237         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
13238
13239         From Jie Zhang  <jie.zhang@analog.com>
13240         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13241         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
13242         mcpu=bf561-none and mcpu=bf561-0.2.
13243         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13244         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
13245         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13246         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
13247         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
13248         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
13249         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
13250         option.
13251         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
13252         (cputype_selected): Remove.
13253         (bfin_handle_option): Don't use cputype_selected.
13254         (override_options): When no mcpu option, enable all workarounds.
13255         Don't use bfin_workarounds.
13256         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
13257         processor type.
13258         (DEFAULT_CPU_TYPE): Don't define.
13259
13260 2008-05-16  Richard Guenther  <rguenther@suse.de>
13261
13262         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
13263         on deletion of the last stmt.
13264
13265 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13266
13267         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
13268         V8HImode for SSE2 and V16QImode for SSE4.1.
13269
13270 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
13271
13272         * cgraph.h (compute_inline_parameters): Made public.
13273         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
13274         variable_generate_summary, function_write_summary,
13275         variable_write_summary, variable_read_summary.  Added generate_summary,
13276         write_summary, read_summary.
13277         * cgraphunit.c (cgraph_process_new_functions): Changed call from
13278         pass_ipa_inline.function_generate_summary, to
13279         compute_inline_parameters.
13280         * ipa-inline.c (compute_inline_parameters): Made public and added
13281         node parameter.
13282         (compute_inline_parameters_for_current): New function.
13283         (pass_inline_param): Now calls compute_inline_parameters_for_current.
13284         (inline_generate_summary): Removed parameter and made to loop over
13285         all cgraph nodes.
13286         (pass_ipa_inline): Updated for new IPA_PASS structure.
13287         * passes.c (execute_ipa_summary_passes): Now is called once per
13288         pass rather than once per node*pass.
13289
13290 2008-05-15  Anatoly Sokolov <aesok@post.ru>
13291
13292         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
13293         avr_have_mul_p, avr_asm_only_p): Remove variables.
13294         (avr_override_options): Remove initialization of removed variables.
13295         (avr_file_start):  Convert removed variables to fields of
13296         'struct base_arch_s *avr_current_arch'.
13297         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
13298         (AVR_HAVE_MUL): (Ditto.).
13299         (AVR_HAVE_MOVW): (Ditto.).
13300         (AVR_HAVE_LPMX): (Ditto.).
13301         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
13302         avr_asm_only_p): Remove declaration.
13303
13304 2008-05-15  Diego Novillo  <dnovillo@google.com>
13305
13306         * config/arm/arm.c (arm_return_in_memory): Fix return type.
13307         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
13308
13309 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
13310
13311         PR middle-end/36194
13312         * combine.c (check_conversion): Rename back to check_promoted_subreg.
13313         Don't call record_truncated_value from here.
13314         (record_truncated_value): Turn it into a for_each_rtx callback.
13315         (record_truncated_values): New function.
13316         (combine_instructions): Call note_uses with record_truncated_values.
13317         Change name of check_conversion to check_promoted_subreg.
13318
13319 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
13320
13321         * doc/sourcebuild.texi: Document support for torture tests.
13322
13323 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
13324
13325         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
13326         to alternative 4 of operand 2.
13327
13328 2008-05-15  Richard Guenther  <rguenther@suse.de>
13329
13330         * tree-pass.h (current_pass): Declare.
13331         (get_pass_for_id): Likewise.
13332         * passes.c (passes_by_id, passes_by_id_size): New globals.
13333         (set_pass_for_id): New function.
13334         (get_pass_for_id): Likewise.
13335         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
13336         (execute_function_todo): Flush per function statistics.
13337         * toplev.c (compile_file): Init statistics.
13338         (general_init): Do early statistics initialization.
13339         (finalize): Finish statistics.
13340         * statistics.h (statistics_early_init): Declare.
13341         (statistics_init): Likewise.
13342         (statistics_fini): Likewise.
13343         (statistics_fini_pass): Likewise.
13344         (statistics_counter_event): Likewise.
13345         (statistics_histogram_event): Likewise.
13346         * statistics.c: New file.
13347         * Makefile.in (OBJS-common): Add statistics.o.
13348         (statistics.o): Add dependencies.
13349         * doc/invoke.texi (-fdump-statistics): Document.
13350
13351         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
13352         (insert): Likewise.
13353         (execute_pre): Use statistics_counter_event.
13354         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
13355         (substitute_and_fold): Increment it.  Use statistics_counter_event.
13356
13357 2008-05-15  Diego Novillo  <dnovillo@google.com>
13358
13359         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
13360
13361         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
13362         * tree-ssa-alias.c (new_type_alias): Remove references to
13363         sub-variables from comment.
13364         * tree-ssa-operands.c (swap_tree_operands): Likewise.
13365
13366 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13367
13368         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
13369         attribute to 1 only for insertps alternative.
13370
13371 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
13372
13373         * config/bfin/bfin.md (loadbytes): New pattern.
13374         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
13375         (bfin_init_builtins): Initialize it.
13376         (bdesc_1arg): Add it.
13377
13378 2008-05-15  Sa Liu  <saliu@de.ibm.com>
13379
13380         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
13381         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
13382         * testsuite/lib/target-supports.exp: Add
13383         check_effective_target_fortran_integer_16.
13384
13385 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
13386
13387         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
13388         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
13389         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
13390         (TARGET_RETURN_IN_MEMORY): Define.
13391
13392 2008-05-15  Richard Guenther  <rguenther@suse.de>
13393
13394         PR middle-end/36244
13395         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
13396         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
13397         represent unmodifiable vars.
13398
13399 2008-05-15  Richard Guenther  <rguenther@suse.de>
13400
13401         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
13402         INDIRECT_REF and TARGET_MEM_REF.
13403         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
13404         TARGET_MEM_REF.
13405
13406 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
13407             H.J. Lu  <hongjiu.lu@intel.com>
13408
13409         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
13410         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
13411         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
13412         insn alternatives.  Add missing alternatives.
13413         (*vec_concatv2di_rex64_sse4_1): Likewise.
13414         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
13415         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
13416         Require TARGET_SSE.
13417
13418 2008-05-15  Richard Guenther  <rguenther@suse.de>
13419
13420         PR tree-optimization/36009
13421         PR tree-optimization/36204
13422         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
13423         (determine_invariantness_stmt): Record the loop a store is
13424         always executed in.
13425         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
13426         dependency.
13427
13428 2008-05-15  Richard Guenther  <rguenther@suse.de>
13429
13430         PR tree-optimization/34330
13431         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
13432         through the pointer will alias the SMT.
13433
13434 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
13435
13436         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
13437
13438 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13439
13440         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
13441
13442 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13443             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13444
13445         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
13446         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
13447         (vashl_optab): New optab for vector/vector shifts.
13448         (vashr_optab): Ditto.
13449         (vlshr_optab): Ditto.
13450         (vrotl_optab): Ditto.
13451         (vrotr_optab): Ditto.
13452         (optab_subtype): New enum for optab_for_tree_code call.
13453         (optab_for_tree_code): Add enum optab_subtype argument.
13454
13455         * optabs.c (optab_for_tree_code): Take an additional argument to
13456         distinguish between a vector shift by a scalar and vector shift by
13457         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
13458         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
13459         vector shift by a vector.
13460         (expand_widen_pattern_expr): Pass additional argument to
13461         optab_for_tree_code.
13462
13463         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
13464         vrotl_optab, vrotr_optab.
13465
13466         * expr.c (expand_expr_real_1): Update calls to
13467         optab_for_tree_code to distinguish between vector shifted by a
13468         scalar and vector shifted by a vector.
13469         * tree-vectorizer.c (supportable_widening_operation): Ditto.
13470         (supportable_narrowing_operation): Ditto.
13471         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
13472         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
13473         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
13474         (vect_create_epilog_for_reduction): Ditto.
13475         (vectorizable_reduction): Ditto.
13476         (vectorizable_operation): Ditto.
13477         (vect_strided_store_supported): Ditto.
13478         (vect_strided_load_supported): Ditto.
13479         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
13480         * expmed.c (expand_shift): Ditto.
13481
13482         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
13483         scalar type.
13484         (ashr@var{m}3): Ditto.
13485         (vashl@var{m}3): Document new vector/vector shift standard name.
13486         (vashr@var{m}3): Ditto.
13487         (vlshr@var{m}3): Ditto.
13488         (vrotl@var{m}3): Ditto.
13489         (vrotr@var{m}3): Ditto.
13490
13491         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
13492         (PPERM_INVERT): Ditto.
13493         (PPERM_REVERSE): Ditto.
13494         (PPERM_REV_INV): Ditto.
13495         (PPERM_ZERO): Ditto.
13496         (PPERM_ONES): Ditto.
13497         (PPERM_SIGN): Ditto.
13498         (PPERM_INV_SIGN): Ditto.
13499         (PPERM_SRC1): Ditto.
13500         (PPERM_SRC2): Ditto.
13501
13502         * config/i386/sse.md (mulv2di3): Add SSE5 support.
13503         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
13504         allows a memory operand to be the value being added, and split it
13505         to improve vectorization.
13506         (sse5_pmacsdqh_mem): Ditto.
13507         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
13508         (sse5_mulv2div2di3_high): Ditto.
13509         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
13510         (vec_pack_trunc_v4si): Ditto.
13511         (vec_pack_trunc_v2di): Ditto.
13512         (sse5_pcmov_<mode>): Remove code that tried to use use
13513         andps/andnps instead of pcmov.
13514         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
13515         pmacsdqh instructions.
13516         (vec_widen_smult_lo_v4si): Ditto.
13517
13518         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
13519         (PPERM_INVERT): Ditto.
13520         (PPERM_REVERSE): Ditto.
13521         (PPERM_REV_INV): Ditto.
13522         (PPERM_ZERO): Ditto.
13523         (PPERM_ONES): Ditto.
13524         (PPERM_SIGN): Ditto.
13525         (PPERM_INV_SIGN): Ditto.
13526         (PPERM_SRC1): Ditto.
13527         (PPERM_SRC2): Ditto.
13528         (ix86_expand_sse_movcc): Move the SSE5 test after the if
13529         true/false tests.
13530         (ix86_expand_int_vcond): If SSE5 generate all possible integer
13531         comparisons.
13532         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
13533         says ignore whether the last reference is a memory operand.
13534
13535 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13536             Paolo Bonzini <bonzini at gnu dot org>
13537
13538         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
13539         shift patterns.
13540
13541         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
13542         (vlshr<mode>3): Rename from vlshr<mode>3.
13543         (vashr<mode>3): Rename from vashr<mode>3.
13544         (mulv4sf3): Change the names of vector shift patterns.
13545         (mulv4si3): Ditto.
13546         (negv4sf2): Ditt.
13547
13548         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
13549         shift insns.
13550
13551         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
13552         (SI_SHLHI): Ditto.
13553         (SI_SHL): Ditto.
13554         (SI_SHLI): Ditto.
13555         (SI_ROTH): Ditto.
13556         (SI_ROTHI): Ditto.
13557         (SI_ROT): Ditto.
13558         (SI_ROTI): Ditto.
13559         (SPU_RL_0): Ditto.
13560         (SPU_RL_1): Ditto.
13561         (SPU_RL_2): Ditto.
13562         (SPU_RL_3): Ditto.
13563         (SPU_RL_4): Ditto.
13564         (SPU_RL_5): Ditto.
13565         (SPU_RL_6): Ditto.
13566         (SPU_RL_7): Ditto.
13567         (SPU_SL_0): Ditto.
13568         (SPU_SL_1): Ditto.
13569         (SPU_SL_2): Ditto.
13570         (SPU_SL_3): Ditto.
13571         (SPU_SL_4): Ditto.
13572         (SPU_SL_5): Ditto.
13573         (SPU_SL_6): Ditto.
13574         (SPU_SL_7): Ditto.
13575
13576         * config/spu/spu.md (v): New iterator macro to add v for vector types.
13577         (floatunssidf2_internal): Change vector/vector shift names.
13578         (floatunsdidf2_internal): Ditto.
13579         (mulv8hi3): Ditto.
13580         (ashrdi3): Ditto.
13581         (ashrti3): Ditto.
13582         (cgt_df): Ditto.
13583         (cgt_v2df): Ditto.
13584         (dftsv): Ditto.
13585         (vashl<mode>3): Rename from ashl<mode>3.
13586         (vashr<mode>3): Rename from ashr<mode>3.
13587         (vlshr<mode>3): Rename from lshr<mode>3.
13588         (vrotl<mode>3): Rename from rotl<mode>3.
13589
13590 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13591
13592         PR target/36224
13593         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
13594         multiply gives the wrong value when doing widening multiplies.
13595         (vec_widen_smult_lo_v4si): Ditto.
13596
13597 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
13598
13599         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
13600         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
13601         emit_library_call_value.
13602         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
13603         * tree.h (ECF_LIBCALL_BLOCK): Removed.
13604         * calls.c (initialize_argument_information, precompute_arguments,
13605         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
13606         (precompute_arguments): Removed flags parameter.
13607         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
13608
13609 2008-05-14  Richard Guenther  <rguenther@suse.de>
13610
13611         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
13612         Make sure to register the store if the use is a PHI_NODE.
13613
13614 2008-05-14  Olivier Hainque  <hainque@adacore.com>
13615
13616         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
13617         memory if the component is to be referenced in BLKmode according
13618         to get_inner_reference.
13619
13620 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
13621
13622         * calls.c (emit_library_call_value_1): Restore code clearing
13623         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
13624
13625 2008-05-14  Olivier Hainque  <hainque@adacore.com>
13626             Nicolas Roche  <roche@adacore.com>
13627
13628         * configure.ac: Add support for a "gcc_subdir" variable in
13629         config-lang.in, to denote a subdirectory where the language/GCC
13630         integration files are to be found.
13631         * configure: Regenerate.
13632
13633 2008-05-14  Ira Rosen  <irar@il.ibm.com>
13634
13635         PR tree-optimization/36098
13636         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
13637         value for the first load in the group in case of a gap.
13638         (vect_build_slp_tree): Check that there are no gaps in loads.
13639
13640 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
13641
13642         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
13643         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
13644         expand_copysign_bit, ): Change call to emit_no_conflict_block to
13645         emit_insn and remove unneeded code to construct extra args.
13646         (emit_no_conflict_block): Removed.
13647         * optabls.h: (emit_no_conflict_block): Removed.
13648         * cse.c (cse_extended_basic_block): Remove search for
13649         REG_NO_CONFLICT note.
13650         * global.c: Removed incorrect comment added in revision 117.
13651         * expr.c (convert_move): Change call to emit_no_conflict_block to
13652         emit_insn.
13653         * recog.c: Change comments so that they do not mention
13654         REG_NO_CONFLICT.
13655         * local_alloc.c (combine_regs): Removed last parameter.
13656         (no_conflict_p): Removed.
13657         (block_alloc): Removed note, no_conflict_combined_regno and set
13658         local vars. Removed all code to process REG_NO_CONFLICT blocks.
13659         (combine_regs): Removed already_dead and code to look for
13660         REG_NO_CONFLICT notes.
13661         * lower_subreg (remove_retval_note): Removed code to look for
13662         REG_NO_CONFLICT block.
13663         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
13664         (resolve_clobber): Remove code to process libcalls that have
13665         REG_NO_CONFLICT notes.
13666         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
13667         case.
13668         * combine.c (can_combine_p, distribute_notes):  Removed
13669         REG_NO_CONFLICT case.
13670         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
13671         to emit_insns.
13672         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
13673         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
13674         Ditto.
13675         * reg-notes.def (NO_CONFLICT): Removed.
13676
13677 2008-05-14  David S. Miller  <davem@davemloft.net>
13678
13679         * config/sparc/sparc.c (sparc_profile_hook): If
13680         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
13681         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
13682         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
13683
13684 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
13685
13686         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
13687
13688 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
13689
13690         PR target/36222
13691         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
13692         and op1 expansion before vector concat to have less live pseudos.
13693
13694 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
13695
13696         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
13697         ix86_expand_vector_set if supported.
13698
13699 2008-05-13  Diego Novillo  <dnovillo@google.com>
13700             Kenneth Zadeck  <zadeck@naturalbridge.com>
13701
13702         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
13703
13704         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
13705         phinodes_print_statistics, init_ssanames, fini_ssanames,
13706         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
13707         release_ssa_name, release_defs, replace_ssa_name_symbol,
13708         ssanames_print_statistics): Move ...
13709         * tree-flow.h: ... here.
13710         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
13711         Use FN instead of cfun.
13712         (make_ssa_name_fn): Rename from make_ssa_name.
13713         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
13714         * tree-flow-inline.h (make_ssa_name): Move from
13715         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
13716         * omp-low.c (expand_omp_parallel):
13717         * tree-flow-inline.h (redirect_edge_var_map_result):
13718         * tree-ssa.c (init_tree_ssa): Add argument FN.
13719         Use it instead of cfun.  Update all users.
13720
13721 2008-05-13  Tom Tromey  <tromey@redhat.com>
13722
13723         PR preprocessor/22168:
13724         * doc/cpp.texi (Top): Update menu.
13725         (Alternatives to Wrapper #ifndef): New node.
13726         (Other Directives): Document deprecation.
13727         (Obsolete Features): Remove menu.
13728         (Assertions): Merge node into Obsolete Features.
13729         (Obsolete once-only headers): Move earlier; rename to Alternatives
13730         to Wrapper #ifndef.
13731         * doc/cppopts.texi: Update.
13732         * c.opt (Wdeprecated): Enable for C and ObjC.
13733         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
13734         (C++ Dialect Options): Move -Wno-deprecated from here to...
13735         (Warning Options): ... here.
13736
13737 2008-05-13  Richard Guenther  <rguenther@suse.de>
13738
13739         PR middle-end/36227
13740         * fold-const.c (fold_sign_changed_comparison): Do not allow
13741         changes in pointer-ness.
13742
13743 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
13744
13745         PR target/24713
13746         * config/sh/sh.c (sh_expand_prologue): Don't clear
13747         RTX_FRAME_RELATED_P for push insns.
13748
13749 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
13750
13751         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
13752
13753 2008-05-12  Anatoly Sokolov <aesok@post.ru>
13754
13755         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
13756         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
13757         Use 'machine->is_leaf' instead of 'leaf_func_p'.
13758
13759 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
13760
13761         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
13762         (*vec_concatv4sf_sse): This.
13763         (*sse2_concatv2si): Renamed to ...
13764         (*vec_concatv2si_sse2): This.
13765         (*sse1_concatv2si): Renamed to ...
13766         (*vec_concatv2si_sse): This.
13767         (*vec_concatv2di_rex): Renamed to ...
13768         (*vec_concatv2di_rex64): This.
13769         (*vec_concatv2si_sse4_1): New.
13770         (*vec_concatv2di_rex64_sse4_1): Likewise.
13771
13772 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
13773
13774         PR rtl-optimization/36111
13775         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
13776         that was created for swappable operands.
13777
13778 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
13779
13780         PR ada/36001
13781         * Makefile.in: Substitute GNATMAKE and GNATBIND.
13782         * configure.ac: Add call to ACX_PROG_GNAT.
13783
13784 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
13785
13786         * optc-gen.awk: Fix comment typo.
13787
13788 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
13789
13790         * pretty-print.c (pp_integer_with_precision): Use
13791         HOST_LONG_LONG_FORMAT.
13792
13793 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
13794
13795         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
13796
13797 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13798
13799         * config/i386/i386.c (bdesc_ptest): Removed.
13800         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
13801         (bdesc_args): Add __builtin_ia32_ptestz128,
13802         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
13803         (ix86_init_mmx_sse_builtins): Updated.
13804         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
13805         (ix86_expand_builtin): Updated.
13806
13807 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
13808
13809         * tree-cfg.c (valid_fixed_convert_types_p): New function.
13810         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
13811
13812 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
13813
13814         * value-prof.c (interesting_stringop_to_profile): Do not
13815         return early for BUILT_IN_MEMPCPY.
13816
13817 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
13818
13819         * calls.c (expand_call): Don't use callgraph to increase
13820         preferred_stack_boundary.
13821
13822         * cgraph.h (cgraph_rtl_info): Use unsigned on
13823         preferred_incoming_stack_boundary.
13824
13825         * final.c (rest_of_clean_state): Use unsigned on
13826         preferred_stack_boundary.
13827
13828 2008-05-09  Tom Tromey  <tromey@redhat.com>
13829
13830         PR preprocessor/22231:
13831         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
13832         proceeding.
13833
13834 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
13835
13836         PR tree-optimization/36129
13837         * tree-ssa-ccp.c: Include value-prof.h.
13838         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
13839         built-in function was folded to a constant.
13840         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
13841
13842 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
13843             Sebastian Pop  <sebastian.pop@amd.com>
13844
13845         * tree-scalar-evolution.c: Document instantiate_scev.
13846         (instantiate_parameters_1): Renamed instantiate_scev_1.
13847         Don't use the same loop for instantiation_loop and evolution_loop.
13848         (instantiate_scev): New.
13849         (instantiate_parameters): Moved...
13850         (resolve_mixers): Update call to instantiate_scev_1 to pass the
13851         same loop twice.  Maintains the semantics for this function.
13852         * tree-scalar-evolution.h (instantiate_scev): Declare.
13853         (instantiate_parameters): ...here.  Now static inline.
13854         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
13855         instead of resolve_mixers.
13856
13857 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
13858
13859         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
13860
13861 2008-05-09  Tomas Bily  <tbily@suse.cz>
13862
13863         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
13864         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
13865         * tree-ssa-structalias.c (get_constraint_for): Likewise.
13866         * c-common.c (c_common_truthvalue_conversion): Likewise.
13867         * tree-object-size.c (compute_object_offset): Likewise.
13868         * tree-inline.c (estimate_num_insns_1): Likewise.
13869         * varasm.c (const_hash_1, compare_constant, copy_constant)
13870         (compute_reloc_for_constant, output_addressed_constants)
13871         (initializer_constant_valid_p): Likewise.
13872         * c-omp.c (check_omp_for_incr_expr): Likewise.
13873         * gimplify.c (gimplify_expr): Likewise.
13874         * c-typeck.c (c_finish_return): Likewise.
13875         * tree-vectorizer.c (supportable_widening_operation)
13876         (supportable_narrowing_operation): Likewise.
13877         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
13878         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
13879         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
13880         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
13881         (descr_info_loc): Likewise.
13882         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
13883         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
13884         (fold_unary): Likewise.
13885         * builtins.c (get_pointer_alignment): Likewise.
13886         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
13887         (instantiate_parameters_1): Likewise.
13888         * tree.c (expr_align, stabilize_reference): Likewise.
13889         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
13890         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13891         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
13892         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13893         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
13894         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
13895         Likewise.
13896         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
13897         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
13898         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
13899         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
13900         (forward_propagate_comparison)
13901         (tree_ssa_forward_propagate_single_use_vars): Likewise.
13902         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
13903         * emit-rtl.c (component_ref_for_mem_expr)
13904         (set_mem_attributes_minus_bitpos): Likewise.
13905         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
13906         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
13907         Likewise.
13908         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
13909         (build_function_call, pointer_diff, build_compound_expr)
13910         (c_finish_return): Likewise.
13911         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
13912         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
13913         Likewise.
13914         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
13915         * expr.c (is_aligning_offset): Likewise.
13916         * tree-ssa-alias.c (is_escape_site): Likewise.
13917         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
13918         (check_all_va_list_escapes): Likewise.
13919         * tree-ssa-loop-ivopts.c (determine_base_object)
13920         (determine_common_wider_type): Likewise.
13921         * dojump.c (do_jump): Likewise.
13922         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
13923         * tree-gimple.c (is_gimple_cast): Likewise.
13924         * fold-const.c (decode_field_reference, )
13925         (fold_sign_changed_comparison, fold_unary, fold_comparison)
13926         (fold_binary): Likewise.
13927         * tree-ssa-alias-warnings.c (find_alias_site_helper)
13928         (already_warned_in_frontend_p): Likewise.
13929         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
13930         * tree.c (really_constant_p, get_unwidened): Likewise.
13931         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
13932         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
13933         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
13934         Likewise.
13935         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
13936         CONVERT_EXPR_P.
13937         (CONVERT_EXPR_P): Define.
13938         (CASE_CONVERT): Define.
13939
13940 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
13941
13942         PR middle-end/36117
13943         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
13944         (delete_unmarked_insns): When deleting a call, call
13945         delete_unreachable_blocks.
13946         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
13947         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
13948
13949 2008-05-08  Richard Guenther  <rguenther@suse.de>
13950
13951         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
13952         (-ftree-salias): Likewise.
13953         (salias-max-implicit-fields): Remove param documentation.
13954         (salias-max-array-elements): Likewise.
13955         * tree-pass.h (pass_create_structure_vars): Remove.
13956         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13957         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13958         * tree-ssa-alias.c (create_structure_vars): Remove.
13959         (gate_structure_vars): Likewise.
13960         (pass_create_structure_vars): Likewise.
13961         (gate_build_alias): Likewise.
13962         (pass_build_alias): Adjust to run always and dump the function.
13963         * common.opt (ftree-salias): Hide.
13964         * passes.c (init_optimization_passes): Remove
13965         pass_create_structure_vars, adjust comment.
13966         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13967         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13968         * opts.c (decode_options): Do not set flag_tree_salias.
13969         (common_handle_option): Add OPT_ftree_salias to the backward
13970         compatibility section.
13971
13972 2008-05-08  Richard Guenther  <rguenther@suse.de>
13973
13974         * tree-flow-inline.h (var_can_have_subvars): Move ...
13975         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
13976         * tree-flow.h (var_can_have_subvars): Remove.
13977         (push_fields_onto_fieldstack): Remove.
13978         (sort_fieldstack): Likewise.
13979         (struct fieldoff): Move ...
13980         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
13981         alias_set and base_for_components fields.
13982         (sort_fieldstack): Make static.
13983         (push_fields_onto_fieldstack): Likewise.  Remove code that
13984         handles anything but RECORD_TYPEs.  Remove alias_set and
13985         base_for_components handling.
13986         (create_variable_info_for): Adjust.
13987
13988 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
13989
13990         * common.opt (Wframe-larger-than=): Shorten the help message
13991         to one line.
13992         * doc/invoke.texi (Wframe-larger-than=): Add more description.
13993
13994 2008-05-08  Rafael Espíndola  <espindola@google.com>
13995
13996         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
13997         trap.
13998         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
13999         trap and that both operands are gimple values.
14000         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
14001         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
14002         is a fp operation.
14003
14004 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
14005
14006         * read-rtl.c (join_c_conditions): Return the first string if the
14007         two strings are equal.
14008
14009 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
14010
14011         * gensupport.h (pred_data): Add a "num_codes" field.
14012         (add_predicate_code): Declare.
14013         * gensupport.c (add_predicate_code): New function.
14014         (std_pred_table): Add an "allows_const_p" field.
14015         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
14016         Remove the (incomplete) list of such codes from the codes field.
14017         (init_predicate_table): Use add_predicate_code.  Add all
14018         RTX_CONST_OBJs if allows_const_p is true.
14019         * genrecog.c (process_define_predicate): Use add_predicate_code.
14020
14021 2008-05-08  David Daney  <ddaney@avtrex.com>
14022             Richard Sandiford  <rsandifo@nildram.co.uk>
14023
14024         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
14025         special case of constant zero operands.
14026         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
14027         old and new values.  Special case constant zero values.
14028         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
14029         fails.
14030         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
14031         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
14032
14033 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
14034
14035         PR target/36090
14036         * simplify-rtx.c (simplify_plus_minus): Create CONST of
14037         similar RTX_CONST_OBJ before CONST_INT.
14038
14039 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
14040
14041         * stmt.c (expand_stack_restore): Change sa mode if needed.
14042
14043 2008-05-08  Richard Guenther  <rguenther@suse.de>
14044
14045         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
14046         return type to bool.
14047         (ix86_sol10_return_in_memory): Likewise.
14048         (ix86_i386elf_return_in_memory): Likewise.
14049         (ix86_i386interix_return_in_memory): Likewise.
14050         * config/i386/i386.c (ix86_return_in_memory): Likewise.
14051         (ix86_sol10_return_in_memory): Likewise.
14052         (ix86_i386elf_return_in_memory): Likewise.
14053         (ix86_i386interix_return_in_memory): Likewise.
14054
14055 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
14056
14057         PR bootstrap/36180
14058         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
14059         fndecl argument.
14060         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
14061         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
14062         declared in front.
14063
14064 2008-05-08  Richard Guenther  <rguenther@suse.de>
14065
14066         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
14067         * tree-data-ref.h (struct dr_alias): Remove subvars field.
14068         (DR_SUBVARS): Remove.
14069         * tree-dfa.c (dump_subvars_for): Remove.
14070         (debug_subvars_for): Likewise.
14071         (dump_variable): Do not dump subvars.
14072         (remove_referenced_var): Do not remove subvars.
14073         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
14074         (lookup_subvars_for_var): Remove.
14075         (get_subvars_for_var): Likewise.
14076         (get_subvars_at): Likewise.
14077         (get_first_overlapping_subvar): Likewise.
14078         (overlap_subvar): Likewise.
14079         * tree-flow.h (subvar_t): Remove.
14080         (struct var_ann_d): Remove subvars field.
14081         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
14082         argument.  Remove special handling of SFTs.
14083         (compute_tag_properties): Likewise.
14084         (set_initial_properties): Likewise.
14085         (compute_call_clobbered): Likewise.
14086         (count_mem_refs): Likewise.
14087         (compute_memory_partitions): Likewise.
14088         (compute_flow_insensitive_aliasing): Likewise.
14089         (setup_pointers_and_addressables): Likewise.
14090         (new_type_alias): Likewise.
14091         (struct used_part): Remove.
14092         (used_portions): Likewise.
14093         (struct used_part_map): Likewise.
14094         (used_part_map_eq): Likewise.
14095         (used_part_map_hash): Likewise.
14096         (free_used_part_map): Likewise.
14097         (up_lookup): Likewise.
14098         (up_insert): Likewise.
14099         (get_or_create_used_part_for): Likewise.
14100         (create_sft): Likewise.
14101         (create_overlap_variables_for): Likewise.
14102         (find_used_portions): Likewise.
14103         (create_structure_vars): Likewise.
14104         * tree.def (STRUCT_FIELD_TAG): Remove.
14105         * tree.h (MTAG_P): Adjust.
14106         (struct tree_memory_tag): Remove base_for_components and
14107         unpartitionable flags.
14108         (struct tree_struct_field_tag): Remove.
14109         (SFT_PARENT_VAR): Likewise.
14110         (SFT_OFFSET): Likewise.
14111         (SFT_SIZE): Likewise.
14112         (SFT_NONADDRESSABLE_P): Likewise.
14113         (SFT_ALIAS_SET): Likewise.
14114         (SFT_UNPARTITIONABLE_P): Likewise.
14115         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
14116         (union tree_node): Remove sft field.
14117         * alias.c (get_alias_set): Remove special handling of SFTs.
14118         * print-tree.c (print_node): Remove handling of SFTs.
14119         * tree-dump.c (dequeue_and_dump): Likewise.
14120         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
14121         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
14122         * tree-predcom.c (set_alias_info): Do not set subvars.
14123         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
14124         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
14125         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
14126         (add_vars_for_offset): Remove.
14127         (add_virtual_operand): Remove special handling of SFTs.
14128         (add_call_clobber_ops): Likewise.
14129         (add_call_read_ops): Likewise.
14130         (get_asm_expr_operands): Likewise.
14131         (get_modify_stmt_operands): Likewise.
14132         (get_expr_operands): Likewise.
14133         (add_to_addressable_set): Likewise.
14134         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
14135         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
14136         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
14137         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
14138         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
14139         (tree_node_structure): Likewise.
14140         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
14141         handling of SFTs.
14142         (find_what_p_points_to): Likewise.
14143
14144 2008-05-08  Sa Liu  <saliu@de.ibm.com>
14145
14146         * config/spu/spu.md: Fixed subti3 pattern.
14147
14148 2008-05-08  Richard Guenther  <rguenther@suse.de>
14149
14150         PR middle-end/36154
14151         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14152         sure to create a representative for trailing arrays for PTA.
14153
14154 2008-05-08  Richard Guenther  <rguenther@suse.de>
14155
14156         PR middle-end/36172
14157         * fold-const.c (operand_equal_p): Two objects which types
14158         differ in pointerness are not equal.
14159
14160 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
14161
14162         * calls.c (compute_argument_block_size): Add argument tree fndecl.
14163         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
14164         (emit_library_call_value_1): Add new variable fndecl initialized by
14165         NULL_TREE. It should be the decl type of orgfun, but this information
14166         seems not to be available here, so it uses the default calling abi.
14167         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
14168         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
14169         by TARGET_RETURN_IN_MEMORY.
14170         * config/i386/i386-interix.h: Likewise.
14171         * config/i386/i386.h: Likewise.
14172         * config/i386/i386elf.h: Likewise.
14173         * config/i386/ptx4-i.h: Likewise.
14174         * config/i386/sol2-10.h: Likewise.
14175         * config/i386/sysv4.h: Likewise.
14176         * config/i386/vx-common.h: Likewise.
14177         * config/cris/cris.h: Removed #if 0 clause.
14178         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
14179         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
14180         argument.
14181         (ix86_sol10_return_in_memory): Likewise.
14182         (ix86_i386elf_return_in_memory): New.
14183         (ix86_i386interix_return_in_memory): New.
14184         * config/mt/mt-protos.h (mt_return_in_memory): New.
14185         * config/mt/mt.c: Likewise.
14186         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
14187         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
14188         * config/bfin/bfin.h: Likewise.
14189         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
14190         argument.
14191         * config/bfin/bfin.c: Likewise.
14192         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
14193         * config/alpha/unicosmk.h: Likewise.
14194         * config/i386/cygming.h: Likewise.
14195         * config/iq2000/iq2000.h: Likewise.
14196         * config/mips/mips.h: Likewise.
14197         * config/mn10300/mn10300.h: Likewise.
14198         * config/rs6000/rs6000.h: Likewise.
14199         * config/score/score.h: Likewise.
14200         * config/spu/spu.h: Likewise.
14201         * config/v850/v850.h: Likewise.
14202         * defaults.h: Likewise.
14203         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
14204         * expr.c (emit_block_move): Adjust use of
14205         OUTGOING_REG_PARM_STACK_SPACE.
14206         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
14207         OUTGOING_REG_PARM_STACK_SPACE.
14208         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
14209
14210 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
14211
14212         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
14213         on OMP_RETURN for OMP_FOR.
14214
14215         PR debug/35896
14216         * dwarf2out.c (dw_expand_expr, common_check): Removed.
14217         (fortran_common): New function.
14218         (gen_variable_die): Call fortran_common instead of common_check,
14219         adjust for it returning tree instead of rtx.  Formatting.
14220
14221 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
14222
14223         PR rtl/7335
14224         PR rtl/33826
14225         * see.c (see_copy_insn): Copy new pure const attributes for new call.
14226         * c-decl.c (merge_decls): Ditto.
14227         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
14228         to RTL_CONST_OR_PURE_CALL_P.
14229         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
14230         Initialized DECL_LOOPING_CONST_PURE.
14231         (process_call_operands): Set tree_side_effects properly.
14232         * tree.h (TREE_READONLY_DECL_P): Removed.
14233         (DECL_IS_PURE): Renamed to DECL_PURE_P.
14234         (DECL_LOOPING_OR_CONST_P): New macro.
14235         (struct tree_function_decl): Added looping_const_or_pure_p.
14236         (ECF_*) Renumbered.
14237         (ECF_LOOPING_OR_CONST_P): New macro.
14238         * rtlanal.c (pure_const_p): Removed.
14239         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
14240         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
14241         to RTL_CONST_CALL_P.
14242         * ipa-pure-const.c (pure_const_state_e): Added looping field.
14243         (check_decl, check_tree, check_call, scan_function): Initialize
14244         looping.
14245         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
14246         (static_execute): Set looping true for recursive functions.
14247         Undo setting state to IPA_NEITHER for recursive functions.
14248         * cse.c (cse_insn):
14249         * ifcvt.c (noce_can_store_speculate_p): Changed
14250         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
14251         RTL_CONST_OR_PURE_CALL_P.
14252         * dse.c (scan_insn): Ditto.
14253         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
14254         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
14255         RTL_CONST_OR_PURE_CALL_P.
14256         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
14257         pure_call_p to RTL_CONST_CALL_P.
14258         * gimplify.c (gimplify_call_expr): Clear side effects for
14259         non-looping pure and constant calls.
14260         * calls.c (emit_call_1): Set rtl flags from ecf flags.
14261         (flags_from_decl_or_type): Set ecf flags from decl flags.
14262         (initialize_argument_information): Turn off
14263         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
14264         Change const to pure if callee_copies is true rather than just
14265         turning off const.
14266         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
14267         way of marking pure calls.
14268         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
14269         Remove hack that was supposed to fix pr7335 and remove old
14270         way of marking pure calls.
14271         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
14272         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
14273         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
14274         RTL_CONST_OR_PURE_CALL_P.
14275         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
14276         * loop-invariant.c (find_exits, find_invariant_bb): Changed
14277         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
14278         * sched-deps.c (schedule_analyze): Ditto.
14279         * rtl.h (struct rtx_def): Use call field, unchanging field, and
14280         return_val field of calls to represent pure and const function info.
14281         (CONST_OR_PURE_CALL_P): Deleted macro.
14282         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
14283         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
14284         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
14285         TREE_READONLY.
14286         * tree-optimize.c (execute_fixup_cfg): Added test for
14287         ECF_LOOPING_CONST_OR_PURE.
14288         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
14289         DECL_PURE_P.
14290         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
14291         effects for looping pure or const calls.
14292         (verify_gimple_expr): Added verification code.
14293         * config/alpha/alpha.c (alpha_legitimize_address,
14294         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
14295         RTL_CONST_CALL_P.
14296         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
14297         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
14298         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
14299         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
14300         RTL_CONST_OR_PURE_CALL_P.
14301         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
14302         and const calls to be deleted.
14303
14304 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
14305
14306         PR target/35714
14307         * config/i386/mmx.md (mmx_subv2sf3): New expander.
14308         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
14309         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
14310         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14311         to handle nonimmediate operands.
14312         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
14313         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
14314         to handle nonimmediate operands.
14315         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
14316         (mmx_pmulhrwv4hi3): New expander.  Use
14317         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14318         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
14319         (sse2_umulv1siv1di3): New expander.  Use
14320         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14321         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
14322         (mmx_eq<mode>3): New expander.  Use
14323         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14324         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
14325         (mmx_uavgv8qi3): New expander.  Use
14326         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14327         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
14328         (mmx_uavgv4hi3): New expander.  Use
14329         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14330
14331         * config/i386/sse.md
14332         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
14333         to handle nonimmediate operands.
14334         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
14335         to handle nonimmediate operands.
14336         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
14337         to handle nonimmediate operands.
14338         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
14339         to handle nonimmediate operands.
14340         (sse2_unpckhpd_exp): New expander.  Use
14341         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14342         (sse2_unpcklpd_exp): New expander.  Use
14343         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14344         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
14345         to handle nonimmediate operands.
14346         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
14347         to handle nonimmediate operands.
14348         (*sse2_<plusminus_insn><mode>3): Rename from
14349         sse2_<plusminus_insn><mode>3 insn pattern.
14350         (sse2_<plusminus_insn><mode>3): New expander.  Use
14351         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14352         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
14353         (sse2_umulv2siv2di3): New expander.  Use
14354         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14355         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
14356         (sse4_1_mulv2siv2di3): New expander.  Use
14357         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14358         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
14359         (sse2_pmaddwd): New expander.  Use
14360         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14361         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
14362         (sse2_eq<mode>3): New expander.  Use
14363         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14364         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
14365         (sse4_1_eqv2di3): New expander.  Use
14366         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14367         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
14368         (sse2_uavgv16qi3): New expander.  Use
14369         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14370         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
14371         (sse2_uavgv16qi3): New expander.  Use
14372         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14373         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
14374         (sse2_uavgv8hi3): New expander.  Use
14375         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14376         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
14377         (ssse3_pmulhrswv8hi3): New expander.  Use
14378         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14379         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
14380         (ssse3_pmulhrswv4hi3): New expander.  Use
14381         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14382
14383         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
14384         (<sse>_vmmul<mode>3): Ditto.
14385         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
14386         (divv2df3): Ditto.
14387         (ssse3_pmaddubsw128): Use register_operand for operand 1.
14388         (ssse3_pmaddubsw): Ditto.
14389
14390         * config/i386/i386.c (struct_builtin_description)
14391         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
14392         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
14393         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
14394         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
14395         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
14396         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
14397         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
14398         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
14399         (ix86_fixup_binary_operands): Assert that src1
14400         and src2 must have the same mode when swapped.
14401         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
14402         and ix86_binary_operator_ok.  Do not force operands in registers
14403         when optimizing.
14404
14405 2008-05-07  Jan Hubicka  <jh@suse.cz>
14406
14407         * cgraph.c (dump_cgraph_node): Update.
14408         * cgraph.h (cgraph_local_info): Break out inline summary.
14409         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
14410         hook.
14411         * ipa-inline (inline_summary): New accestor function.
14412         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
14413         cgraph_decide_inlining, compute_inline_parameters): Update.
14414         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
14415
14416 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
14417
14418         Cleanup ColdFire scheduling support and add V4 pipeline model.
14419
14420         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
14421         (define_attr cpu): Add cfv4 value.
14422         (define_attr type, define_attr type1): Merge into a single 'type'
14423         attribute.  Update all uses.
14424         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
14425         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
14426         Update all uses.
14427         (define_attr opx_mem, define_attr opy_mem): Remove.
14428         (define_attr op_mem): Clean up, update comment.
14429         (define_attr size): Use specific values instead of general int.
14430         (define_attr guess, define_attr split): Remove.  Update all uses.
14431         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
14432         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
14433         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
14434         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
14435         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
14436         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
14437         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
14438         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
14439         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
14440         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
14441         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
14442         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
14443         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
14444         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
14445         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
14446         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
14447         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
14448         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
14449         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
14450         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
14451         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
14452         Update or set attributes.
14453         (stack_tie): New fake instruction.
14454
14455         * config/m68k/m68k.h (TUNE_CFV4): New macro.
14456         (m68k_sched_attr_size): Update declaration.
14457         (m68k_sched_attr_type2): Remove.
14458         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
14459         Declare new bypass predicates.
14460
14461         * config/m68k/m68k.c (m68k_sched_issue_rate,
14462         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
14463         implementations.
14464         (TARGET_SCHED_ISSUE_RATE,
14465         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
14466         (override_options): Handle scheduling for ColdFire V4 core.
14467         (m68k_expand_prologue): Emit stack_tie.
14468         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
14469         'OP_TYPE_FPN'.  Update all uses.
14470         (sched_guess_p): Remove.
14471         (sched_address_type): Handle symbolic addresses.
14472         (sched_get_operand): New static function.
14473         (sched_operand_type): Merge into sched_attr_op_type.
14474         (sched_attr_op_type): Handle FP registers, handle quick constants,
14475         update.
14476         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
14477         (m68k_sched_attr_size): Update.  Move logic to ...
14478         (sched_get_attr_size_int): New static function.
14479         (sched_get_opxy_mem_type): New static function.
14480         (m68k_sched_attr_op_mem): Update.
14481         (m68k_sched_attr_type2): Remove.
14482         (sched_cfv4_bypass_data): New static variable.
14483         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
14484         (m68k_sched_issue_rate): Implement scheduler hook.
14485         (struct _sched_ib: enabled_p): New field.
14486         (m68k_sched_variable_issue): Update.  Handle V4.
14487         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
14488         sched_dump_class_func_t, sched_dump_split_class,
14489         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
14490         sched_dump_dfa_class, m68k_sched_dump): Remove.
14491         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
14492         hook.
14493         (m68k_sched_init_global): Remove statisctics dumping, introduce
14494         sanity check that all instructions have pipeline reservations.  Handle
14495         ColdFire V4 core.
14496         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
14497         Handle ColdFire V4 core.
14498         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
14499         New static functions.
14500         (m68k_sched_address_bypass_p): New bypass predicate.
14501         (sched_get_indexed_address_scale): New static function.
14502         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
14503
14504         * cf.md: Update comments.
14505         (define_attr type2): Remove.  Use 'type' attribute instead.
14506         Update all uses.
14507         (cf_ib): Rename to cfv123_ib.  Update all uses.
14508         (cf_oep): Rename to cfv123_oep.  Update all uses.
14509         (cf_chr): Rename to cfv123_chr.  Update all uses.
14510         (cf_mem): Rename to cfv123_mem.  Update all uses.
14511         (cf_mac): Move to more appropriate place.
14512         (cfv123_guess): New automaton and cpu_unit.
14513         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
14514         Update uses of 'size' attribute.  Handle before reload scheduling.
14515         (cfv123_guess): New dummy reservation for unhandled instructions.
14516         (cfv4_*): Pipeline description of ColdFire V4 core.
14517         (ignore): New reservation to handle 'ignore' type.
14518
14519 2008-05-07  Ian Lance Taylor  <iant@google.com>
14520
14521         PR middle-end/36013
14522         * gimplify.c (find_single_pointer_decl_1): Don't look through
14523         indirections.
14524         (find_single_pointer_decl): Adjust comments.
14525
14526 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
14527
14528         PR middle-end/36137
14529         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
14530         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
14531
14532         PR middle-end/36106
14533         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
14534         integral type rather than floating point, then VIEW_CONVERT_EXPR
14535         to the floating point type.
14536
14537 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
14538
14539         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
14540         TFmode op0 to register.
14541
14542 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
14543
14544         * c-decl.c (grokdeclarator): Comment typo.
14545
14546 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
14547
14548         * tree-flow.h: Remove prototype for computed_goto_p.
14549         * tree-cfg.c (computed_goto_p): Make static.
14550
14551 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
14552
14553         PR target/35657
14554         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
14555         (contains_aligned_value_p): This.  Handle _Decimal128.
14556         (ix86_function_arg_boundary): Only align _Decimal128 to its
14557         natural boundary and handle it properly.
14558
14559 2008-05-06  Martin Jambor  <mjambor@suse.cz>
14560
14561         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
14562         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
14563         (ipcp_method_set_orig_node): Removed.
14564         (ipcp_cval_get_cvalue_type): Removed.
14565         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
14566         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
14567         (ipcp_cval_set_cvalue_type): Removed.
14568         (ipcp_cval_get_cvalue): Removed.
14569         (ipcp_cval_set_cvalue): Removed.
14570         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
14571         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
14572         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
14573         (ipcp_cval_meet): Renamed to ipa_lattice_meet
14574         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
14575         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
14576         (ipcp_get_ith_lattice): Changed parameters.
14577         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
14578         (ipcp_lattice_from_jfunc): Changed parameters.
14579         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
14580         (ipcp_method_cval_print): Added temporary variable info.
14581         (ipcp_redirect): Removed already unused local variable caller.
14582         (ipcp_redirect): New temporary variable orig_callee_info
14583         (ipcp_redirect): Removed newly unused local variable callee.
14584         (ipcp_redirect): Removed (a bit confusing) local variable type.
14585         (ipcp_insert_stage): Added local variable info.
14586         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
14587         renamed too
14588         (ipcp_formal_create): Removed.
14589         (ipcp_method_cval_set): Removed.
14590         (ipcp_propagate_stage): Renamed lattice variables.
14591         (ipcp_method_cval_set_cvalue_type): Removed.
14592         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
14593         (ipcp_print_all_lattices): Changed printed strings to refer to
14594         lattices rather than cvals.
14595         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
14596         (ipcp_propagate_const): Changed formal parameters.
14597         (build_const_val): Changed formal parameters.
14598         (ipcp_insert_stage): Removed useless variable cvalue
14599         (build_const_val): Changed formal parameters.
14600         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
14601         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
14602         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
14603         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
14604         (ipcp_print_func_profile_counts): Changed string from "method" to
14605         "function"
14606         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
14607         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
14608         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
14609         (ipcp_structures_print): Renamed to ipcp_print_all_structures
14610         (ipcp_profile_print): Renamed to ipcp_print_profile_data
14611         (ipcp_lat_is_const): Changed parameters and made inline.
14612         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
14613         (ipcp_redirect): Renamed to ipcp_need_redirect_p
14614         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
14615         the predicate condition directly
14616         (ipcp_propagate_stage): Added local variable args. Removed local
14617         variable callee.  (Both are mere code simplifications.)
14618         (ipcp_method_dont_insert_const): Renamed to
14619         ipcp_node_not_modifiable_p.
14620         (ipcp_node_not_modifiable_p): Made inline.
14621         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
14622         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
14623         (ipcp_print_all_lattices): Removed variable cvalue
14624         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
14625         Updated comments.
14626
14627 2008-05-06  Olivier Hainque  <hainque@adacore.com>
14628
14629         * tree-sra.c (try_instantiate_multiple_fields): Early return
14630         if field has POINTER_TYPE.
14631
14632 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
14633
14634         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
14635         by using 'q' specifier for instruction.
14636         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
14637
14638 2008-05-06  Anatoly Sokolov <aesok@post.ru>
14639
14640         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14641         Change mode of zero_extract from QImode to HImode.
14642         (sign bit tests peepholes): (Ditto.).
14643
14644 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
14645
14646         * config/i386/mmx.md: Remove double backslashes from asm templates.
14647         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
14648         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14649         to handle nonimmediate operands.
14650         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
14651         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14652         to handle nonimmediate operands.
14653         (*mmx_<code>v2sf3_finite): New insn pattern.
14654         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
14655         (mmx_<code>v2sf3): New expander.  Use
14656         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14657         (mmx_<plusminus_insn><mode>3): New expander.  Use
14658         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14659         (*mmx_<plusminus_insn><mode>3): New insn pattern.
14660         (mmx_add<mode>3): Removed.
14661         (mmx_ssadd<mode>3): Ditto.
14662         (mmx_usadd<mode>3): Ditto.
14663         (mmx_sub<mode>3): Ditto.
14664         (mmx_sssub<mode>3): Ditto.
14665         (mmx_ussub<mode>3): Ditto.
14666         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
14667         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
14668         to handle nonimmediate operands.
14669         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
14670         insn pattern.
14671         (mmx_smulv4hi3_highpart): New expander.  Use
14672         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14673         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
14674         insn pattern.
14675         (mmx_umulv4hi3_highpart): New expander.  Use
14676         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14677         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
14678         (mmx_<code>v4hi3): New expander.  Use
14679         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14680         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
14681         (mmx_<code>v8qi3): New expander.  Use
14682         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14683         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
14684         (mmx_<code><mode>3): New expander.  Use
14685         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14686
14687 2008-05-05  Jan Hubicka  <jh@suse.cz>
14688
14689         PR tree-optimization/36118
14690         * passes.c (pass_init_dump_file): Fix dump header.
14691
14692 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14693
14694         PR middle-end/36141
14695         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
14696         VCE for function decls.
14697
14698 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
14699
14700         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
14701
14702 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
14703
14704         * config/i386/i386.md (sat_plusminus): New.
14705         (plusminus_insn): Likewise.
14706         (plusminus_mnemonic): Likewise.
14707         (addsub): Removed.
14708         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
14709         (*<addsub><mode>3_cc_overflow): Renamed to ...
14710         (*<plusminus_insn><mode>3_cc_overflow): This.
14711         (*<addsub>si3_zext_cc_overflow): Renamed to ...
14712         (*<plusminus_insn>si3_zext_cc_overflow): This.
14713
14714         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
14715         (<plusminus_insn><mode>3): This.
14716         (*<addsub><mode>3): Renamed to ...
14717         (*<plusminus_insn><mode>3): This.
14718         (<sse>_vm<addsub><mode>3): Renamed to ...
14719         (<sse>_vm<plusminus_insn><mode>3): This.
14720         (sse3_h<addsub>v4sf3): Renamed to ...
14721         (sse3_h<plusminus_insn>v4sf3): This.
14722         (sse3_h<addsub>v2df3): Renamed to ...
14723         (sse3_h<plusminus_insn>v2df3): This.
14724         (<plusminus_insn><mode>3): New.
14725         (*<plusminus_insn><mode>3): Likewise.
14726         (sse2_<plusminus_insn><mode>3): Likewise.
14727         (add<mode>): Removed.
14728         (*add<mode>3): Likewise.
14729         (sse2_ssadd<mode>3): Likewise.
14730         (sse2_usadd<mode>3): Likewise.
14731         (sub<mode>3): Likewise.
14732         (*sub<mode>3): Likewise.
14733         (sse2_sssub<mode>3): Likewise.
14734         (sse2_ussub<mode>3): Likewise.
14735
14736 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
14737
14738         * gthr-single.h: Add in required interface elements as per gthr.h.
14739         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
14740         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
14741         Generalize UNUSED macro.
14742         (__gthread_once): Add.
14743         (__gthread_key_create): Add.
14744         (__gthread_key_delete): Add.
14745         (__gthread_getspecific): Add.
14746         (__gthread_setspecific): Add.
14747
14748 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
14749
14750         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
14751         the same size types for the indirect reference on the rhs, then
14752         create a VCE.
14753
14754 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
14755
14756         * config/i386/i386.md
14757         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
14758         one insn template instead of template series.
14759         (*xordi_1_rex64): Ditto.
14760         (*xordi_2_rex64): Ditto.
14761
14762 2008-05-05  Ira Rosen  <irar@il.ibm.com>
14763
14764         PR tree-optimization/36119
14765         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
14766         in case of SLP.
14767
14768 2008-06-04  Jan Hubicka  <jh@suse.cz>
14769
14770         tree-optimization/36100
14771         * tree-pass.h (pass_O0_always_inline): Declare.
14772         * ipa-inline.c (inline_transform): Remove dead code.
14773         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
14774         pass_O0_always_inline): New.
14775         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
14776
14777 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
14778
14779         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
14780         mnemonic in this_param move for TARGET_64BIT.
14781
14782 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
14783
14784         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
14785         (*strmovsi_rex_1): Ditto.
14786         (*strsetsi_1): Ditto.
14787         (*strsetsi_rex_1): Ditto.
14788
14789         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
14790         adddicc expanders using SWI mode iterator.
14791
14792 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
14793
14794         PR target/36121
14795         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
14796         argument handling.
14797
14798 2008-05-04  David S. Miller  <davem@davemloft.net>
14799
14800         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
14801         (sparc*-*-linux*): Use linux.h in tm_file.
14802         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
14803         compiler defaulting to 32-bit.
14804         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
14805         no longer needed.
14806         * config/sparc/linux.h: Remove definitions now obtained
14807         properly from linux.h
14808         * config/sparc/linux64.h: Likewise.
14809         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
14810         don't want this setting for 32-bit builds in a biarch compiler.
14811         * doc/install.texi: Add sparc-linux to list of targets
14812         supporting --enable-targets=all.
14813
14814 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
14815
14816         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
14817
14818 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
14819
14820         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
14821         after V4SI_FTYPE_V8HI.
14822         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
14823         case V4SI_FTYPE_V2DF.
14824
14825 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
14826
14827         * doc/invoke.texi (max-flow-memory-locations): Removed.
14828         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
14829
14830 2008-05-03  Richard Guenther  <rguenther@suse.de>
14831
14832         PR middle-end/34973
14833         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
14834
14835 2008-05-02  David S. Miller  <davem@davemloft.net>
14836
14837         * config.gcc (need_64bit_hwint): Document libcpp dependency.
14838
14839 2008-05-02  Simon Baldwin <simonb@google.com>
14840
14841         PR bootstrap/36108
14842         * c-common.h (warn_array_subscript_range): Removed.
14843         * c-common.c (warn_array_subscript_range): Ditto.
14844         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
14845         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
14846
14847 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14848
14849         * config/i386/i386.c (ix86_special_builtin_type): New.
14850         (bdesc_special_args): Likewise.
14851         (ix86_expand_special_args_builtin): Likewise.
14852         (ix86_init_mmx_sse_builtins): Updated.
14853         (ix86_expand_builtin): Updated.
14854         (ix86_expand_store_builtin): Removed.
14855         (ix86_expand_unop_builtin): Likewise.
14856
14857         * config/i386/mm3dnow.h (__v2sf): Moved to ...
14858         * config/i386/mmintrin.h (__v2sf): Here.
14859
14860         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
14861         const __v2sf.
14862         (_mm_loadl_pi): Likewise.
14863         (_mm_storeh_pi): Replace __v2si with __v2sf.
14864         (_mm_storel_pi): Likewise.
14865
14866         * doc/extend.texi: Correct __builtin_ia32_loadhps,
14867         __builtin_ia32_loadlps, __builtin_ia32_storehps,
14868         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
14869         __builtin_ia32_loadlpd.
14870
14871 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14872
14873         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
14874         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
14875         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
14876         (ix86_init_mmx_sse_builtins): Updated.
14877         (ix86_expand_args_builtin): Likewise.
14878         (ix86_expand_builtin): Likewise.
14879         (ix86_expand_unop1_builtin): Renamed to ...
14880         (ix86_expand_unop_vec_merge_builtin): This.
14881
14882 2008-05-01  Jan Hubicka  <jh@suse.cz>
14883
14884         PR bootstrap/36100
14885         * ipa-inline.c (inline_generate_summary): Make static.
14886         (inline_transform): Do not call inlining at -O0; make static.
14887         * passes.c (execute_todo): Add sanity check.
14888         (execute_one_ipa_transform_pass): Execute proper flags.
14889
14890 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
14891
14892         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
14893         (DECL_NONADDRESSABLE_P): Likewise.
14894         * alias.c (record_component_aliases): Fix comment.
14895
14896 2008-05-01  Simon Baldwin <simonb@google.com>
14897
14898         * c-common.h (warn_array_subscript_range): New function.
14899         * c-common.c (warn_array_subscript_range): Ditto.
14900         * tree-vrp.c (check_array_ref): Corrected code to agree with
14901         comment, ignoring only arrays of size 0 or size 1.
14902         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
14903
14904 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14905
14906         * config/i386/i386.c (ix86_builtin_type): Replace
14907         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
14908         (bdesc_args): Updated.
14909         (ix86_init_mmx_sse_builtins): Likewise.
14910         (ix86_expand_args_builtin): Likewise.
14911
14912         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
14913         with __v1di.
14914
14915         * doc/extend.texi: Correct __builtin_ia32_palignr.
14916
14917 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14918
14919         PR target/36095
14920         * config/i386/i386.c (bdesc_crc32): Removed.
14921         (ix86_expand_crc32): Likewise.
14922         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
14923         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
14924         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
14925         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
14926         UINT_FTYPE_UINT_UCHAR.
14927         (bdesc_args): Updated. Add crc32 builtins.
14928         (ix86_init_mmx_sse_builtins): Updated.
14929         (ix86_expand_args_builtin): Updated to support subreg.
14930
14931         * doc/extend.texi: Correct __builtin_ia32_crc32di.
14932
14933 2008-05-01  Jan Hubicka  <jh@suse.cz>
14934
14935         * tree-pass.h (opt_pass): Add IPA_PASS.
14936         (varpool_node, cgraph_node): Forward declare.
14937         (ipa_opt_pass): Define.
14938         (pass_ipa_inline): Turn into ipa_opt_pass.
14939         (pass_apply_inline): Remove.
14940         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
14941         (apply_inline): Turn into ....
14942         (inline_transform): ... this one.
14943         (inline_generate_summary): New function.
14944         (pass_apply_inline): Remove.
14945         * function.h (ipa_opt_pass): Forward declare structure; typedef;
14946         vector.
14947         (struct function): Add ipa_transforms_to_apply.
14948         * passes.c (register_one_dump_file): Work on IPA_PASS.
14949         (init_optimization_passes): Remove pass_inline_parameters and
14950         pass_apply_inline.
14951         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
14952         (execute_one_pass) ... here; apply transforms when possible.
14953         (add_ipa_transform_pass, execute_ipa_summary_asses,
14954         execute_one_ipa_transform_pass): New.
14955         (execute_ipa_pass_list): Update for IPA_PASS type.
14956
14957 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14958
14959         * config/i386/i386.c (ix86_builtin_type): Add
14960         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
14961         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
14962         (bdesc_args): Add SSE4a builtins.
14963         (ix86_init_mmx_sse_builtins): Updated.
14964         (ix86_expand_args_builtin): Likewise.
14965         (ix86_expand_builtin): Likewise.
14966
14967 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14968
14969         * config/i386/i386.c (ix86_builtin_type): Add
14970         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
14971         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
14972         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
14973         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
14974         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
14975         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
14976         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
14977         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
14978         and DI_FTYPE_DI_DI_INT.
14979         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
14980         (ix86_init_mmx_sse_builtins): Updated.
14981         (ix86_expand_args_builtin): Likewise.
14982         (ix86_expand_builtin): Likewise.
14983         (ix86_expand_binop_imm_builtin): Removed.
14984
14985         * doc/extend.texi: Correct __builtin_ia32_palignr128.
14986
14987 2008-04-30  Richard Guenther  <rguenther@suse.de>
14988
14989         PR tree-optimization/32921
14990         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
14991
14992 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
14993
14994         * config/arm/arm.c (arm_unwind_emit): Use
14995         crtl->all_throwers_are_sibcalls instead of
14996         cfun->all_throwers_are_sibcalls.
14997         (arm_output_fn_unwind): Likewise.
14998         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
14999         instead of cfun->uses_pic_offset_table.
15000         (frv_expand_prologue): Likewise.
15001         (frv_frame_pointer_required): Likewise.
15002         (frv_expand_fdpic_call): Likewise.
15003         (frv_emit_movsi): Likewise.
15004         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
15005         cfun->returns_pcc_struct instead of
15006         current_function_returns_pcc_struct.
15007         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
15008         instead of cfun->calls_eh_return.
15009         (m32c_pushm_popm): Likewise.
15010         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
15011         "extern" declaration.
15012
15013 2008-04-30  Richard Guenther  <rguenther@suse.de>
15014
15015         PR tree-optimization/21636
15016         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
15017         constant address.
15018         (evaluate_stmt): Print the likely value.
15019         (ccp_visit_stmt): Avoid excessive vertical spacing.
15020
15021 2008-04-30  Rafael Espíndola  <espindola@google.com>
15022
15023         * builtins.c (fold_call_expr): Return realret.
15024         * tree-ssa-threadedge.c
15025         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
15026         __builtin_object_size.
15027
15028 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
15029
15030         * gcc.c (wrapper_string): New variable.
15031         (insert_wrapper): New function.
15032         (execute): New option -wrapper.
15033         * doc/invoke.texi (Overall Options): New driver option -wrapper.
15034
15035 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
15036
15037         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
15038         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
15039         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
15040         from...
15041         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
15042         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
15043         config/rs6000/e500crtres64gprctr.asm,
15044         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
15045         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
15046         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
15047         config/rs6000/e500crtsav64gprctr.asm,
15048         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
15049         config/rs6000/e500crtsavg64gprctr.asm: New files.
15050         * config/rs6000/t-ppccomm: Add build rules for new files.
15051         (LIB2FUNCS_STATIC_EXTRA): Add new files.
15052         * config/rs6000/t-netbsd: Add build rules for new files.
15053         (LIB2FUNCS_STATIC_EXTRA): New variable.
15054         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
15055         (CRTSAVRES_DEFAULT_SPEC): Likewise.
15056         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
15057
15058 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
15059
15060         * config/i386/i386.c (ix86_builtin_type): Add
15061         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
15062         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
15063         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
15064         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
15065         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
15066         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
15067         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
15068         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
15069         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
15070         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
15071         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
15072         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
15073         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
15074         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
15075         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
15076         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
15077         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
15078         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
15079         V1DI_FTYPE_V2SI_V2SI.
15080         (bdesc_2arg): Moved to ...
15081         (bdesc_args): Here.
15082         (ix86_init_mmx_sse_builtins): Updated.
15083         (ix86_expand_args_builtin): Updated.  Take a pointer
15084         to const struct builtin_description.  Handle comparison
15085         builtin functions.
15086         (ix86_expand_sse_compare): Take a new argument for swapping operands.
15087         (ix86_expand_builtin): Updated.
15088
15089         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
15090         (ssse3_pmaddubsw128): This.
15091         (ssse3_pmaddubswv4hi3): Renamed to ...
15092         (ssse3_pmaddubsw): This.
15093
15094         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
15095         (__builtin_ia32_packssdw128): Likewise.
15096         (__builtin_ia32_packuswb128): Likewise.
15097         (__builtin_ia32_pmaddubsw): Likewise.
15098         (__builtin_ia32_pmaddubsw128): Likewise.
15099
15100 2008-04-30  Richard Guenther  <rguenther@suse.de>
15101
15102         PR tree-optimization/14847
15103         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
15104         (recognize_bits_test): Use it.
15105         (recognize_single_bit_test): Likewise.
15106
15107 2008-04-30  Martin Jambor  <mjambor@suse.cz>
15108
15109         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
15110         instead of setting number of formal parameters to zero.
15111         (ipcp_init_stage): Do not set the number of actual parameters to zero
15112         either.
15113         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
15114         which are called with variable number of arguments.
15115         (ipcp_insert_stage): Explicitely skipping all nodes which are
15116         called with variable number of arguments.
15117         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
15118         number of parameters.
15119
15120         * ipa-prop.h (struct ipa_node_params): Added flag
15121         called_with_var_arguments
15122         (ipa_set_param_count): Added.  Changed sole setter to use it.
15123         (ipa_get_param_count): Added.  All readers of param_count
15124         converted to use it instead.
15125         (ipa_set_called_with_variable_arg): Added.
15126         (ipa_is_called_with_var_arguments): Added.
15127         (ipa_get_ith_param): Added.  All readers of param_decls converted
15128         to use it instead.
15129         (ipa_set_cs_argument_count): Added, sole writer to argument_count
15130         changed to use it.
15131         (ipa_get_cs_argument_count): Added, all readers of argument_count
15132         changed to cal it.
15133         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
15134         to use it.
15135
15136         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
15137         (struct ipcp_lattice): Renamed cval_type to type
15138         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
15139
15140         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
15141         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
15142         (ipcp_insert_stage): Changed the type of variable cvalue to tree
15143         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
15144         (build_const_val): Changed the type of parameter cvalue to tree
15145         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
15146         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
15147
15148         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
15149         constant
15150
15151         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
15152         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
15153         (ipa_add_method): Renamed to ipa_push_func_to_list
15154         (ipa_remove_method): Renamed to ipa_pop_func_from_list
15155         (ipa_callsite_param_count): Removed.
15156         (ipa_callsite_param_count_set): Removed.
15157         (ipa_callsite_param): Removed.
15158         (ipa_callsite_callee): Removed.
15159         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
15160         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
15161         (ipa_method_formal_count): Removed.
15162         (ipa_method_formal_count_set): Removed.
15163         (ipa_method_get_tree): Removed.
15164         (ipa_method_tree_map_create): Removed.
15165         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
15166         (ipa_create_param_decls_array): Creates the array itself
15167         (ipa_create_param_decls_array): Temporary variable info instead of
15168         a few dereferences.
15169         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
15170         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
15171         (get_type): Removed.
15172         (ipa_jf_get_info_type): Removed.
15173         (ipa_node_create): Renamed to ipa_create_node_params
15174         (ipa_free): Renamed to ipa_free_all_node_params
15175         (ipa_nodes_create): Renamed to ipa_create_all_node_params
15176         (ipa_edges_create): Renamed to ipa_create_all_edge_args
15177         (ipa_edges_free): Renamed to ipa_free_all_edge_args
15178         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
15179         (ipa_free_all_node_params): Deallocation to jump_functions moved to
15180         ipa_free_all_edge_args
15181         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
15182         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
15183         (ipa_create_methodlist_node): Removed.
15184         (ipa_methodlist_method): Removed.
15185         (ipa_methodlist_method_set): Removed.
15186         (ipa_methodlist_next_method): Removed.
15187         (ipa_methodlist_next_method_set): Removed.
15188         (ipa_method_is_modified): Removed.
15189         (ipa_method_modify_create): Removed.
15190         (ipa_method_modify_init): Temporary variable info instead of a few
15191         dereferences.
15192         (ipa_detect_param_modifications): Temporary variable info instead of
15193         a few dereferences.
15194         (ipa_compute_jump_functions): Temporary variable info instead of
15195         a few dereferences.
15196         (ipa_method_modify_set): Removed.
15197         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
15198         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
15199         than craph_node as the first parameter.
15200         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
15201         (ipa_method_modify_init): Removed.
15202         (ipa_compute_jump_functions): Added a temp variable instead of
15203         repeatadly dereferencing the cgraph_edge.aux pointer
15204         (ipa_callsite_param_set_type): Removed.
15205         (ipa_compute_jump_functions): i renamed to index and moved to
15206         an inner block
15207         (ipa_callsite_param_set_info_type_formal): Removed.
15208         (ipa_callsite_param_set_info_type): Removed.
15209         (ipa_callsite_param_map_create): Removed.
15210         (ipa_callsite_tree): Removed.
15211         (ipa_callsite_caller): Removed.
15212         (ipa_pop_func_from_list): return_method removed to return_func
15213
15214         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
15215         prefixed all values with IPA_. Changed all users.
15216         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
15217         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
15218         and FORMAL_IPATYPE IPA_PASS_THROUGH.
15219         (union parameter_info): Renamed to jump_func_value.
15220         (union jump_func_value): Renamed value to constant
15221         (struct ipa_jump_func): Renamed info_type to value
15222         (struct ipa_node): Renamed to ipa_node_params
15223         (struct ipa_node_params): Renamed ipa_arg_num to param_count
15224         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
15225         (struct ipa_node_params): Renamed ipa_mod to modified_flags
15226         (struct ipa_edge): Renamed to ipa_edge_args
15227         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
15228         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
15229         (struct ipa_methodlist): Renamed to ipa_func_list
15230         (struct ipa_func_list): method_p renamed to node, next_method
15231         renamed to next
15232         (ipa_methodlist_p): Removed, switched all users to struct pointer
15233         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
15234
15235 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
15236
15237         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
15238         (rs6000_emit_epilogue): Use backchain to restore only when we
15239         have a large frame.  Make use of frame pointer to restore if we
15240         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
15241
15242 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
15243
15244         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
15245         Add mode to zero_extract.
15246         (sign bit tests peepholes): (Ditto.).
15247
15248 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
15249
15250         * config/i386/i386.c (ix86_builtins): Replace Prescott New
15251         Instructions in comments with SSE3.
15252         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
15253         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
15254         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
15255         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
15256         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
15257         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
15258         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
15259         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
15260         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
15261         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
15262         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
15263         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
15264         (bdesc_sse_args): Renamed to ...
15265         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
15266         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
15267         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
15268         IX86_BUILTIN_FABSQ.
15269         (bdesc_1arg): Moved to ...
15270         (bdesc_args): Here.
15271         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
15272         Instructions in comments with SSE3.
15273         (ix86_expand_sse_operands_builtin): Renamed to ...
15274         (ix86_expand_args_builtin): This.  Updated.
15275         (ix86_expand_unop1_builtin): Update comments.
15276         (ix86_expand_builtin): Updated.
15277
15278 2008-04-29  Richard Guenther  <rguenther@suse.de>
15279
15280         PR tree-optimization/36078
15281         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
15282         Update virtual SSA form after cleaning up the CFG.
15283
15284 2008-04-29  Richard Guenther  <rguenther@suse.de>
15285
15286         PR middle-end/15255
15287         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
15288
15289 2008-04-29  Richard Guenther  <rguenther@suse.de>
15290
15291         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
15292         (compute_may_aliases): Do not call finalize_ref_all_pointers.
15293         (compute_flow_insensitive_aliasing): Do not treat
15294         PTR_IS_REF_ALL pointers special.
15295         (get_smt_for): Likewise.
15296         (may_alias_p): Re-structure.
15297         (is_escape_site): A ref-all pointer conversion is not an escape site.
15298         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
15299         PTR_IS_REF_ALL pointers special.
15300         * tree-ssa-structalias.h (struct alias_info): Remove
15301         ref_all_symbol_mem_tag field.
15302         (PTR_IS_REF_ALL): Remove.
15303
15304 2008-04-29  Richard Guenther  <rguenther@suse.de>
15305
15306         PR middle-end/36077
15307         * fold-const.c (extract_muldiv_1): In combining division constants
15308         make sure to never overflow.
15309
15310 2008-04-29  Nick Clifton  <nickc@redhat.com>
15311
15312         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
15313
15314 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15315
15316         PR bootstrap/35169
15317         * optc-gen.awk: Work around HP-UX/IA awk bug.
15318
15319 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
15320
15321         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
15322         2008-04-25 commit.
15323
15324 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
15325
15326         PR target/36073
15327         * config/i386/i386.md
15328         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
15329         Change operand 1 predicate to nonimmediate_operand.
15330
15331 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
15332
15333         PR debug/36060
15334         * dwarf2out.c (struct die_struct): Mark as chain_circular through
15335         die_sub field.
15336         * gengtype.c (walk_type, write_func_for_structure): Handle
15337         chain_circular.
15338         * doc/gty.texi: Document chain_circular.
15339
15340 2008-04-28  Richard Guenther  <rguenther@suse.de>
15341
15342         PR tree-optimization/36066
15343         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
15344         SCEV and loop.
15345
15346 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
15347
15348         PR target/36064
15349         * config/i386/i386.md
15350         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
15351         Use match_scratch instead of match_operand for operands 3 and 4.
15352
15353 2008-04-27  Richard Guenther  <rguenther@suse.de>
15354
15355         PR tree-optimization/18754
15356         PR tree-optimization/34223
15357         * tree-pass.h (pass_complete_unrolli): Declare.
15358         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
15359         loop size before and after unconditionally of UL_NO_GROWTH in effect.
15360         Rewrite loop into loop closed SSA form if it is not already.
15361         (tree_unroll_loops_completely): Re-structure to iterate over
15362         innermost loops with intermediate CFG cleanups.
15363         Unroll outermost loops only if requested or the code does not grow
15364         doing so.
15365         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
15366         loops are available.
15367         (tree_vectorize): Instead do so here.
15368         (tree_complete_unroll): Also unroll outermost loops.
15369         (tree_complete_unroll_inner): New function.
15370         (gate_tree_complete_unroll_inner): Likewise.
15371         (pass_complete_unrolli): New pass.
15372         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
15373         uses outside of the loop.
15374         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
15375         form if it is available.
15376         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
15377         * passes.c (init_optimization_passes): Schedule complete inner
15378         loop unrolling pass before the first CCP pass after final inlining.
15379
15380 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
15381
15382         * targhooks.h (default_emutls_var_fields,
15383         default_emutls_var_init): Declare.
15384         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
15385         * target.h (struct gcc_target): Add struct emutls member.
15386         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
15387         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
15388         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
15389         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
15390         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
15391         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
15392         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
15393         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
15394         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
15395         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
15396         emit debug information.
15397         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
15398         * varasm.c: Include targhooks.h.
15399         (emutls_object_section, emutls_tmpl_section): New.
15400         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
15401         (EMUTLS_SEPARATOR): New.
15402         (prefix_name): New.
15403         (get_emutls_object_name): New.
15404         (default_emutls_var_fields): New, broken out of ...
15405         (get_emutls_object_type): ... here.  Adjust to use target hooks.
15406         (get_emutls_init_templ_addr): Adjust to use target hooks.
15407         (emutls_decl): Adjust to use target hooks.
15408         (emutls_finish): Likewise.
15409         (default_emutls_var_init): New, broken out of ...
15410         (assemble_variable): ... here.  Adjust to use target hooks.
15411         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
15412         SECCAT_EMUTLS_TMPL.
15413         * c-common.c (handle_section_attribute): Prevent overriding
15414         sections for emulated tls with special sections.
15415         * config/i386/i386.c (x86_64_elf_select_section): Add
15416         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
15417         (x86_64_elf_unique_section): Likewise.
15418         * config/vxworks.c: Include tree.h.
15419         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
15420         (vxworks_override_options): Set TLS scheme.
15421         * doc/tm.texi (Emulated TLS): New node.
15422
15423 2008-04-26  Simon Baldwin <simonb@google.com>
15424
15425         PR c/35652
15426         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
15427         with propagated string constants.
15428
15429 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
15430
15431         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
15432         constraint for operand 2 when operand 0 is memory operand.
15433         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
15434         operand 0 is memory operand.
15435         (fix_trunc<mode>_i387_with_temp): Ditto.
15436         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
15437         operand 2 when operand 1 is memory operand.
15438         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
15439         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
15440         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
15441         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
15442         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
15443         operands 2,3 and 4 when operand 1 is memory operand.
15444         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
15445         is memory operand.
15446         (fistdi2_floor_with_temp): Ditto.
15447         (fist<mode>2_floor_with_temp): Ditto.
15448         (fistdi2_ceil_with_temp): Ditto.
15449         (fist<mode>2_ceil_with_temp): Ditto.
15450         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
15451
15452 2008-04-26  David Daney  <ddaney@avtrex.com>
15453
15454         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
15455         unspec_volitile.
15456         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
15457         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
15458         UNSPEC_UPDATE_GOT_VERSION): Renumber.
15459         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
15460         (compare_and_swap_12): New insn.
15461         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
15462         * config/mips/mips.c (mips_force_binary): New function.
15463         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
15464         (mips_expand_compare_and_swap_12): New function.
15465         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
15466
15467 2008-04-25  Jan Hubicka  <jh@suse.cz>
15468
15469         PR testsuite/35843
15470         * cfgexpand.c (pass_expand): Turn into RTL pass.
15471         * passes.c (execute_one_pass): Do pass typechecking after execution.
15472         * tree-pass.h (pass_expand): Turn into RTL pass.
15473
15474         * function.h (struct rtl_data): Move here fields
15475         accesses_prior_frames, calls_eh_return, saves_all_registers,
15476         has_nonlocal_goto, has_asm_statement, is_thunk,
15477         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
15478         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
15479         arg_pointer_save_area_init from struct function; turn into bool.
15480         (struct function): Move
15481         calls_eh_return, saves_all_registers, has_nonlocal_goto,
15482         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
15483         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
15484         tail_call_emit, arg_pointer_save_area_init
15485         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
15486         (current_function_returns_struct, current_function_returns_pcc_struct,
15487         current_function_calls_setjmp, current_function_calls_alloca,
15488         current_function_accesses_prior_frames,
15489         current_function_calls_eh_return, current_function_is_thunk,
15490         current_function_stdarg, current_function_profile,
15491         current_function_limit_stack, current_function_uses_pic_offset_table,
15492         current_function_uses_const_pool, current_function_has_nonlocal_label,
15493         current_function_saves_all_registers,
15494         current_function_has_nonlocal_goto,
15495         current_function_has_asm_statement): Remove accesor macros.
15496         * ra-conflict.c (global_conflicts): Update.
15497         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
15498         (suitable_for_tail_call_opt_p): Update.
15499         * builtins.c (expand_builtin_return_addr): Update.
15500         (expand_builtin_setjmp_setup): Update.
15501         (expand_builtin_nonlocal_goto): Update.
15502         * final.c (final_start_function): Update.
15503         (profile_function): Update.
15504         (leaf_function_p): Update.
15505         (only_leaf_regs_used): Update.
15506         * df-scan.c (df_get_exit_block_use_set): Update.
15507         * dojump.c (clear_pending_stack_adjust): Update.
15508         * tree-stdarg.c (gate_optimize_stdarg): Update.
15509         * gimple-low.c (lower_function_body): Update.
15510         * global.c (compute_regsets): Update.
15511         (global_alloc): Update.
15512         * dwarf2out.c (dwarf2out_begin_prologue): Update.
15513         * expr.c (expand_assignment): Update.
15514         * dse.c (dse_step0): Update.
15515         (dse_step1): Update.
15516         * c-decl.c (store_parm_decls): Update.
15517         * local-alloc.c (combine_regs): Update.
15518         (find_free_reg): Update.
15519         * function.c (assign_parms_augmented_arg_list): Update.
15520         (assign_parm_find_data_types): Update.
15521         (assign_parms): Update.
15522         (allocate_struct_function): Update.
15523         (expand_function_start): Update.
15524         (expand_function_end): Update.
15525         (get_arg_pointer_save_area): Update.
15526         (thread_prologue_and_epilogue_insns): Update.
15527         (rest_of_match_asm_constraints): Update.
15528         * stor-layout.c (variable_size): Update.
15529         * gcse.c (gcse_main): Update.
15530         (bypass_jumps): Update.
15531         * gimplify.c (gimplify_function_tree): Update.
15532         * calls.c (emit_call_1): Update.
15533         (expand_call): Update.
15534         * bt-load.c (compute_defs_uses_and_gen): Update.
15535         * except.c (sjlj_assign_call_site_values): Update.
15536         (sjlj_emit_function_enter): Update.
15537         (can_throw_external): Update.
15538         (set_nothrow_function_flags): Update.
15539         (expand_builtin_unwind_init): Update.
15540         (expand_eh_return): Update.
15541         (convert_to_eh_region_ranges): Update.
15542         (output_function_exception_table): Update.
15543         * emit-rtl.c (gen_tmp_stack_mem): Update.
15544         * cfgexpand.c (expand_used_vars): Update.
15545         (tree_expand_cfg): Update.
15546         * cfgcleanup.c (rest_of_handle_jump): Update.
15547         * explow.c (allocate_dynamic_stack_space): Update.
15548         * varasm.c (assemble_start_function): Update.
15549         (force_const_mem): Update.
15550         (mark_constant_pool): Update.
15551         * tree-optimize.c (tree_rest_of_compilation): Update.
15552         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
15553         * tree-cfg.c (notice_special_calls): Update.
15554         (is_ctrl_altering_stmt): Update.
15555         (tree_can_make_abnormal_goto): Update.
15556         (tree_purge_dead_abnormal_call_edges): Update.
15557         * config/alpha/predicates.md: Update.
15558         * config/alpha/alpha.c (alpha_sa_mask): Update.
15559         (alpha_sa_size): Update.
15560         (alpha_does_function_need_gp): Update.
15561         (alpha_expand_prologue): Update.
15562         (alpha_start_function): Update.
15563         (alpha_output_function_end_prologue): Update.
15564         (alpha_expand_epilogue): Update.
15565         * config/frv/frv.c (frv_stack_info): Update.
15566         (frv_expand_epilogue): Update.
15567         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
15568         (s390_register_info): Update.
15569         (s390_frame_info): Update.
15570         (s390_init_frame_layout): Update.
15571         (s390_can_eliminate): Update.
15572         (save_gprs): Update.
15573         * config/spu/spu.c (spu_split_immediate): Update.
15574         (need_to_save_reg): Update.
15575         (spu_expand_prologue): Update.
15576         (spu_expand_epilogue): Update.
15577         * config/sparc/sparc.md: Update.
15578         * config/sparc/sparc.c (eligible_for_return_delay): Update.
15579         (sparc_tls_got): Update.
15580         (legitimize_pic_address): Update.
15581         (sparc_emit_call_insn): Update.
15582         (sparc_expand_prologue): Update.
15583         (output_return): Update.
15584         (print_operand): Update.
15585         (sparc_function_ok_for_sibcall): Update.
15586         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
15587         * config/m32r/m32r.md: Update.
15588         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
15589         (m32r_compute_frame_size): Update.
15590         (m32r_expand_prologue): Update.
15591         (m32r_expand_epilogue): Update.
15592         (m32r_legitimize_pic_address): Update.
15593         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
15594         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15595         * config/i386/i386.c (ix86_frame_pointer_required): Update.
15596         (gen_push): Update.
15597         (ix86_save_reg): Update.
15598         (ix86_compute_frame_layout): Update.
15599         (ix86_expand_prologue): Update.
15600         (ix86_expand_epilogue): Update.
15601         * config/sh/sh.c (output_stack_adjust): Update.
15602         (calc_live_regs): Update.
15603         (sh5_schedule_saves): Update.
15604         (sh_expand_prologue): Update.
15605         (sh_expand_epilogue): Update.
15606         (sh_setup_incoming_varargs): Update.
15607         (sh_allocate_initial_value): Update.
15608         (sh_get_pr_initial_val): Update.
15609         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
15610         * config/sh/sh.md (label:): Update.
15611         * config/avr/avr.c (out_movhi_mr_r): Update.
15612         * config/crx/crx.h (enum): Update.
15613         * config/xtensa/xtensa.h (along): Update.
15614         * config/stormy16/stormy16.c Update.
15615         (xstormy16_compute_stack_layout): Update.
15616         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
15617         (fr30_expand_prologue): Update.
15618         * config/cris/cris.c (cris_conditional_register_usage): Update.
15619         (cris_reg_saved_in_regsave_area): Update.
15620         (cris_initial_frame_pointer_offset): Update.
15621         (cris_simple_epilogue): Update.
15622         (cris_expand_prologue): Update.
15623         (cris_expand_epilogue): Update.
15624         (cris_expand_pic_call_address): Update.
15625         (cris_asm_output_symbol_ref): Update.
15626         (cris_asm_output_label_ref): Update.
15627         * config/cris/cris.md Update.
15628         * config/iq2000/iq2000.c (compute_frame_size): Update.
15629         (iq2000_expand_epilogue): Update.
15630         * config/mt/mt.h (save_direction): Update.
15631         * config/mn10300/mn10300.c (mn10300_function_value): Update.
15632         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
15633         (ia64_secondary_reload_class): Update.
15634         * config/m68k/m68k.c (m68k_save_reg): Update.
15635         (m68k_expand_prologue): Update.
15636         (m68k_expand_epilogue): Update.
15637         (legitimize_pic_address): Update.
15638         * config/rs6000/rs6000.c (rs6000_got_register): Update.
15639         (first_reg_to_save): Update.
15640         (first_altivec_reg_to_save): Update.
15641         (compute_vrsave_mask): Update.
15642         (compute_save_world_info): Update.
15643         (rs6000_stack_info): Update.
15644         (spe_func_has_64bit_regs_p): Update.
15645         (rs6000_ra_ever_killed): Update.
15646         (rs6000_emit_eh_reg_restore): Update.
15647         (rs6000_emit_allocate_stack): Update.
15648         (rs6000_emit_prologue): Update.
15649         (rs6000_emit_epilogue): Update.
15650         (rs6000_output_function_epilogue): Update.
15651         (output_profile_hook): Update.
15652         (rs6000_elf_declare_function_name): Update.
15653         * config/rs6000/rs6000.h (rs6000_args): Update.
15654         * config/rs6000/rs6000.md: Update.
15655         * config/mcore/mcore.c (mcore_expand_prolog): Update.
15656         * config/arc/arc.c (arc_output_function_epilogue): Update.
15657         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
15658         * config/darwin.c (machopic_function_base_name): Update.
15659         * config/score/score3.c (score3_compute_frame_size): Update.
15660         (rpush): Update.
15661         (rpop): Update.
15662         (score3_epilogue): Update.
15663         * config/score/score7.c (score7_compute_frame_size): Update.
15664         (score7_prologue): Update.
15665         (score7_epilogue): Update.
15666         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
15667         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15668         * config/arm/arm.c (use_return_insn): Update.
15669         (require_pic_register): Update.
15670         (arm_load_pic_register): Update.
15671         (arm_compute_save_reg0_reg12_mask): Update.
15672         (arm_compute_save_reg_mask): Update.
15673         (thumb1_compute_save_reg_mask): Update.
15674         (output_return_instruction): Update.
15675         (arm_output_function_prologue): Update.
15676         (arm_output_epilogue): Update.
15677         (arm_get_frame_offsets): Update.
15678         (arm_expand_prologue): Update.
15679         (thumb_pushpop): Update.
15680         (thumb_exit): Update.
15681         (thumb1_expand_prologue): Update.
15682         (thumb1_expand_epilogue): Update.
15683         (arm_unwind_emit): Update.
15684         (arm_output_fn_unwind): Update.
15685         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
15686         * config/arm/arm.md: Update.
15687         * config/pa/pa.md: Update.
15688         * config/pa/pa.c (legitimize_pic_address): Update.
15689         (compute_frame_size): Update.
15690         (hppa_expand_prologue): Update.
15691         (hppa_expand_epilogue): Update.
15692         (borx_reg_operand): Update.
15693         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
15694         (HARD_REGNO_RENAME_OK): Update.
15695         * config/mips/mips.c (mips_global_pointer): Update.
15696         (mips_save_reg_p): Update.
15697         (mips_compute_frame_info): Update.
15698         (mips_frame_pointer_required): Update.
15699         (mips_expand_prologue): Update.
15700         (mips_expand_epilogue): Update.
15701         (mips_can_use_return_insn): Update.
15702         (mips_reorg_process_insns): Update.
15703         * config/v850/v850.c (compute_register_save_size): Update.
15704         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
15705         * config/mmix/mmix.c (along): Update.
15706         (mmix_expand_epilogue): Update.
15707         * config/bfin/bfin.c (legitimize_pic_address): Update.
15708         (must_save_p): Update.
15709         (stack_frame_needed_p): Update.
15710         (add_to_reg): Update.
15711         (bfin_expand_prologue): Update.
15712         * stmt.c (expand_asm_operands): Update.
15713         * reload1.c (reload): Update.
15714         (init_elim_table): Update.
15715
15716 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
15717
15718         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
15719
15720 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
15721
15722         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
15723         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
15724         (mov<mode>): Removed.
15725         (*movv4sf_internal): Likewise.
15726         (*movv2df_internal): Likewise.
15727
15728 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
15729
15730         * config.gcc (crx-*-elf): Remove deprecation.
15731
15732 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
15733
15734         * config/i386/cygming-crtend.c (register_frame_ctor): Register
15735         __gcc_deregister_frame with atexit.
15736         (deregister_frame_dtor): Remove.
15737
15738 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
15739             Nathan Sidwell  <nathan@codesourcery.com>
15740
15741         * config/rs6000/rs6000.opt (mspe): Remove Var property.
15742         (misel): Likewise.
15743         * config/rs6000/rs6000.h (rs6000_spe): Declare.
15744         (rs6000_isel): Likewise.
15745         * config/rs6000/rs6000.c (rs6000_spe): New variable.
15746         (rs6000_isel): New variable.
15747         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
15748
15749 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15750
15751         PR c++/35758
15752         * c-common.c (handle_vector_size_attribute): Call
15753         lang_hooks.types.reconstruct_complex_type instead of
15754         reconstruct_complex_type.
15755         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
15756         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
15757         * langhooks.h (struct lang_hooks_for_types): Add
15758         reconstruct_complex_type hook.
15759         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
15760         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
15761
15762 2008-04-24  Richard Guenther  <rguenther@suse.de>
15763
15764         * c-common.h (check_builtin_function_arguments): Declare.
15765         * c-common.c (validate_nargs): New function.
15766         (check_builtin_function_arguments): Likewise.
15767         * c-typeck.c (build_function_call): Call
15768         check_builtin_function_arguments.
15769         * builtins.c (fold_builtin_classify): Remove error reporting code.
15770         (fold_builtin_unordered_cmp): Likewise.
15771         (fold_builtin_1): Likewise.
15772         (fold_builtin_n): Likewise.
15773
15774 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15775
15776         PR tree-optimization/36008
15777         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
15778         the original op1, rather than delta by step.
15779
15780 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
15781             Sebastian Pop  <sebastian.pop@amd.com>
15782
15783         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
15784         eliminate_local_variables_stmt, eliminate_local_variables,
15785         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
15786         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
15787         of code delimited by two edges in the CFG.
15788         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
15789         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
15790         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
15791         the case of parallelisation of reductions.
15792         (expr_invariant_in_region_p): New.
15793
15794         * tree-flow.h (gather_blocks_in_sese_region): Declared.
15795         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
15796
15797 2008-04-24  Ira Rosen  <irar@il.ibm.com>
15798             Richard Guenther  <rguenther@suse.de>
15799
15800         PR tree-optimization/36034
15801         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
15802         incapable of dealing with loads with gaps.
15803
15804 2008-04-24  Rafael Espíndola  <espindola@google.com>
15805
15806         * tree-flow.h (vrp_evaluate_conditional): Change signature.
15807         * tree-ssa-propagate.c (fold_predicate_in): Update call to
15808         vrp_evaluate_conditional.
15809         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
15810         (vrp_evaluate_conditional): Split the cond argument.
15811         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
15812         (simplify_stmt_for_jump_threading): Update call to
15813         vrp_evaluate_conditional.
15814
15815 2008-04-24  Ira Rosen  <irar@il.ibm.com>
15816
15817         PR tree-optimization/35982
15818         * tree-vect-analyze.c (vect_check_interleaving): Check that the
15819         interleaved data-refs are of the same type.
15820
15821 2008-04-24  Danny Smith  <dannysmith@users.net>
15822
15823         * c-format.c (check_format_info_main): Use strncmp rather than a
15824         magic prefix to handle multichar length specs.
15825         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
15826         Don't prefix "I64" and "I32" with '\0'.
15827
15828 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15829
15830         PR target/36015
15831         * config/i386/i386.c (init_cumulative_args): Don't pass anything
15832         in registers for -m32 only if stdarg_p (fntype).
15833
15834 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
15835
15836         PR rtl-optimization/36006
15837         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
15838         temp to op0 in order to avoid invalid rtx sharing.
15839
15840 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
15841
15842         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
15843         check TREE_INVARIANT.
15844         * tree-gimple.c (is_gimple_address): New.
15845         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
15846         * tree-gimple.h (is_gimple_address): New.
15847         * tree.h (decl_address_invariant_p): New.
15848         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
15849         (build_string): Likewise.
15850         (decl_address_invariant_p): New, from is_gimple_invariant_address.
15851         (tree_invariant_p_1): Likewise.
15852         (save_expr): Use it.
15853         (tree_invariant_p): New.
15854         (skip_simple_arithmetic): Use it.
15855         (stabilize_reference_1): Use it.
15856         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
15857         simplify.
15858         (build1_stat): Drop code to compute TREE_INVARIANT.
15859         (build2_stat): Drop code to compute TREE_INVARIANT.
15860         (build3_stat): Drop code to compute TREE_INVARIANT.
15861         (build4_stat): Drop code to compute TREE_INVARIANT.
15862         (build5_stat): Drop code to compute TREE_INVARIANT.
15863         (build7_stat): Drop code to compute TREE_INVARIANT.
15864         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
15865         * tree.h (struct tree_base): Remove invariant_flag.
15866         (TREE_INVARIANT): Remove.
15867         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
15868         (fold_builtin_expect): Check TREE_CONSTANT.
15869         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
15870         * c-tree.h (c_expr_to_decl): Drop third parameter.
15871         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
15872         (build_c_cast): Don't set TREE_INVARIANT.
15873         (pop_init_level): Don't set TREE_INVARIANT.
15874         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
15875         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
15876         TREE_CONSTANT.
15877         (gimplify_init_constructor): Don't set TREE_INVARIANT.
15878         (gimplify_addr_expr): Adjust comment.
15879         * tree-mudflap.c (mf_build_string):
15880         * print-tree.c (print_node): Don't print TREE_INVARIANT.
15881         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
15882         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
15883         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
15884         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
15885         * langhooks.h (struct lang_hooks): Drop third parameter from
15886         expr_to_decl.
15887
15888 2008-04-23  Richard Guenther  <rguenther@suse.de>
15889
15890         PR tree-optimization/27799
15891         PR tree-optimization/32921
15892         PR tree-optimization/32624
15893         * tree-ssa-structalias.c (merge_smts_into): Only merge the
15894         SMTs aliases and the tag itself into the solution.
15895         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
15896         merge the points-to solution back into the SMT aliases.
15897         (may_alias_p): Use alias_set_subset_of instead of
15898         aliases_conflict_p.  A pointer which points to
15899         memory with alias set zero may access any variable.
15900
15901 2008-04-23  Richard Guenther  <rguenther@suse.de>
15902
15903         * alias.c (alias_set_subset_of): Correctly handle asking
15904         if zero is a subset of an alias set with zero child.
15905         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
15906         (compute_flow_insensitive_aliasing): Correctly walk all
15907         pointers.  Do not unnecessarily union sets.
15908
15909 2008-04-23  Richard Guenther  <rguenther@suse.de>
15910
15911         PR middle-end/36021
15912         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
15913
15914 2008-04-22  Tomas Bily  <tbily@suse.cz>
15915
15916         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
15917         unreachable case.
15918         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
15919         NON_LVALUE_EXPR.
15920         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15921         * tree-ssa-structalias.c (get_constraint_for): Likewise.
15922         * tree-inline.c (estimate_num_insns_1): Likewise.
15923         * varasm.c (const_hash_1, compare_constant, copy_constant)
15924         (compute_reloc_for_constant, output_addressed_constants): Likewise.
15925         * emit-rtl.c (component_ref_for_mem_expr)
15926         (set_mem_attributes_minus_bitpos): Likewise.
15927         * expr.c (highest_pow2_factor, expand_expr_real_1, )
15928         (is_aligning_offset): Likewise.
15929         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
15930         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15931         * dojump.c (do_jump): Likewise.
15932         * builtins.c (get_pointer_alignment, get_memory_rtx)
15933         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
15934         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
15935
15936 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
15937
15938         PR rtl-optimization/36017
15939         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
15940         expanding the library call.
15941
15942 2008-04-22  Ian Lance Taylor  <iant@google.com>
15943
15944         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
15945         than size_in_bytes.
15946
15947 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
15948
15949         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
15950         of LR/CTR moves for Power6.
15951
15952 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
15953
15954         PR middle-end/36003
15955         * passes.c (init_optimization_passes): Remove
15956         pass_fast_rtl_byte_dce.
15957
15958 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
15959
15960         PR target/29096
15961         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
15962         builtin functions to generate faster code.
15963         (_mm_cvtpu16_ps): Ditto.
15964         (_mm_cvtpi32x2_ps): Ditto.
15965
15966 2008-04-22  Nick Clifton  <nickc@redhat.com>
15967
15968         * common.opt (ftree-loop-distribution): Add Optimization
15969         attribute.
15970
15971         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
15972         (frv_expand_builtin_va_start): Likewise.
15973
15974         * config/arm/arm.c (thumb_find_work_register): Fix location of
15975         argument register count.
15976
15977 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
15978
15979         Support scheduling for ColdFire V1 and V3 microarchitecture.
15980         Improve scheduling of multiplication instructions.
15981
15982         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
15983         (mac): New instruction attribute.
15984         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
15985         (m68k_sched_mac): New variable.
15986         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
15987         Handle cfv1 and cfv3.
15988         (max_insn_size): New static variable.
15989         (struct _sched_ib): New type.
15990         (sched_ib): New static variable.
15991         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
15992         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
15993         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
15994         Update.
15995         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
15996         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
15997         new variables.  Update.
15998         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
15999         Add modeling of cfv3 instruction buffer.  Update.
16000         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
16001         * config/m68k/m68k.h (TUNE_CFV3): New macro.
16002         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
16003         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
16004         a particular reservation applies to.
16005         (type2): Reorganize attribute values.  Rename alu to alu_reg,
16006         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
16007         to mul_l and mul_w.
16008         (cf_ib_*): Simplify description of instruction buffer.
16009         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
16010         (cf_mem): Split into cf_mem1 and cf_mem2.
16011         (cf_v2_move_??): Rename to cfv12_alu_??.
16012         (cf_v2_move_l_??): Rename to cfv12_omove_??.
16013         (cf_v2_mul_??): Remove reservations.
16014         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
16015         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
16016         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
16017         appropriate place.
16018         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
16019         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
16020         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
16021         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
16022         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
16023         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
16024         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
16025         expansions of the above reservations for instructions of sizes
16026         1, 2 and 3 words.
16027
16028 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
16029
16030         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
16031
16032 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
16033
16034         * coverage.c: Include tree-pass.h.
16035         (coverage_counter_alloc): Print da_file_name to the dump file.
16036
16037 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
16038
16039         * sbitmap.c (sbitmap_range_empty_p): New function.
16040         * sbitmap.h (sbitmap_range_empty_p): New function.
16041         * bitmap.h: Now includes obstack.h.
16042
16043 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
16044             Kenneth Zadeck  <zadeck@naturalbridge.com>
16045
16046         * dbgcnt.def (ra_byte_scan): Added.
16047         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
16048         when the last hit happens for a counter.
16049         * timevar.def (TV_DF_BYTE_LR): New variable.
16050         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
16051         * passes.c (pass_fast_rtl_byte_dce): New pass.
16052         * fwprop.c (update_df): Added mode to call df_ref_create.
16053         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
16054         DF_REF_EXTRACT_OFFSET.
16055         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
16056         DF_BYTE_LR_OUT, df_byte_lr): New macro.
16057         (df_mm): New enum.
16058         (df_ref_extract): Added mode field.
16059         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
16060         DF_REF_EXTRACT_OFFSET.
16061         (DF_REF_EXTRACT_MODE): New macro.
16062         (df_byte_lr_bb_info): New structure.
16063         (df_print_byte_regset, df_compute_accessed_bytes,
16064         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
16065         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
16066         df_byte_lr_simulate_uses,
16067         df_byte_lr_simulate_artificial_refs_at_top,
16068         df_byte_lr_simulate_artificial_refs_at_end,
16069         df_compute_accessed_bytes): New function.
16070         (df_ref_create): Add parameter.
16071         (df_byte_lr_get_bb_info): New inline function.
16072         * df-scan.c (df_ref_record, df_uses_record,
16073         df_ref_create_structure): Added mode parameter.
16074         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
16075         df_defs_record, df_uses_record, df_get_conditional_uses,
16076         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
16077         df_entry_block_defs_collect, df_exit_block_uses_collect):
16078         Added mode parameter to calls to df_ref_record, df_uses_record,
16079         df_ref_create_structure.
16080         (df_ref_equal_p, df_ref_compare): Added test for modes.
16081         (df_ref_create_structure): Added code to set mode.  Renamed
16082         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
16083         DF_REF_EXTRACT_OFFSET.
16084         * df-core.c (df_print_byte_regset): New function.
16085         * df-byte-scan.c: New file.
16086         * df-problems.c (df_rd_transfer_function): Removed unnecessary
16087         calls to BITMAP_FREE.
16088         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
16089         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
16090         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
16091         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
16092         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
16093         df_byte_lr_local_compute, df_byte_lr_init,
16094         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
16095         df_byte_lr_transfer_function, df_byte_lr_free,
16096         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
16097         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
16098         df_byte_lr_simulate_uses,
16099         df_byte_lr_simulate_artificial_refs_at_top,
16100         df_byte_lr_simulate_artificial_refs_at_end): New function.
16101         * dce.c (byte_dce_process_block): New function.
16102         (dce_process_block): au is now passed in rather than computed
16103         locally.  Changed loops that look at artificial defs to not look
16104         for conditional or partial ones, because there never are any.
16105         (fast_dce): Now is able to drive byte_dce_process_block or
16106         dce_process_block depending on the kind of dce being done.
16107         (rest_of_handle_fast_dce): Add parameter to fast_dce.
16108         (rest_of_handle_fast_byte_dce): New function.
16109         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
16110         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
16111
16112 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
16113
16114         PR fortran/35019
16115         * gcc.h: Added fortran options that take arguments to
16116         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
16117         macros.
16118
16119 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
16120
16121         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
16122         scalarization if on the LHS and not a full access.
16123
16124 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16125
16126         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
16127
16128 2008-04-18  Rafael Espíndola  <espindola@google.com>
16129
16130         * tree-vrp.c (find_case_label_index): Fix the binary search.
16131         (find_case_label_range): New.
16132         (vrp_visit_switch_stmt): Use find_case_label_range.
16133         (simplify_switch_using_ranges): Use find_case_label_range.
16134
16135 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16136
16137         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
16138         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
16139
16140 2008-04-18  Tom Tromey  <tromey@redhat.com>
16141
16142         PR libcpp/15500:
16143         * doc/cpp.texi (Implementation-defined behavior): Mention
16144         -finput-charset.
16145
16146 2008-04-18  Ian Lance Taylor  <iant@google.com>
16147
16148         * fold-const.c (pointer_may_wrap_p): New static function.
16149         (fold_comparison): Add another test for pointer overflow.  Use
16150         pointer_may_wrap_p to disable some false positives.
16151
16152 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
16153
16154         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
16155         (fname_as_string): Match updated cpp_interpret_string prototype.
16156         (fix_string_type): Support char16_t* and char32_t*.
16157         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
16158         derivative) nodes.  Register as builtin if C++0x.
16159         (c_parse_error): Support CPP_CHAR{16,32}.
16160         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
16161         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
16162         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
16163         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
16164         CTI_CHAR32_ARRAY_TYPE>: New elements.
16165         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
16166         char32_type_node, signed_char32_type_node, char16_array_type_node,
16167         char32_array_type_node): New defines.
16168         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
16169         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
16170         (lex_string): Support CPP_STRING{16,32}, match updated
16171         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
16172         (lex_charconst): Support CPP_CHAR{16,32}.
16173         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
16174         and CPP_STRING{16,32}.
16175
16176 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
16177
16178         PR bootstrap/35457
16179         * aclocal.m4: Regenerate.
16180         * configure: Regenerate.
16181
16182 2008-04-18  Jan Hubicka  <jh@suse.cz>
16183
16184         * except.c (dw2_size_of_call_site_table,
16185         sjlj_size_of_call_site_table): Use vector API for call_site_record.
16186
16187         * cgraphbuild.c (build_cgraph_edges): Update.
16188         * tree-pass.h: Update comment.
16189         * final.c (leaf_function_p): Update.
16190         (leaf_renumber_regs): Update.
16191         (rest_of_clean_state): Update.
16192         * omp-low.c (expand_omp_parallel): Update.
16193         * ipa-reference.c (analyze_function): Update.
16194         * reorg.c (find_end_label): Update.
16195         (optimize_skip): Update.
16196         (fill_simple_delay_slots): Update.
16197         (fill_simple_delay_slots): Update.
16198         (make_return_insns): Update.
16199         (dbr_schedule): Update.
16200         * gimple-low.c (record_vars_into): Update.
16201         * cfgbuild.c (make_edges): Update.
16202         * function.c (assign_stack_local): Update.
16203         (assign_parm_adjust_stack_rtl): Update.
16204         (locate_and_pad_parm): Update.
16205         (allocate_struct_function): Do not initialize stack_alignment_needed
16206         and preferred_stack_boundary here.
16207         (stack_protect_prologue): Update.
16208         (stack_protect_epilogue): Update.
16209         (expand_function_start): Initialize stack_alignment_needed,
16210         preferred_stack_boundary and max_jumptable_ents.
16211         (expand_function_end): Update.
16212         (free_after_compilation): Do not NULLify epilogue_delay_list.
16213         * function.h (struct rtl_data): Add stack_protect_guard,
16214         stack_alignment_needed,
16215         preferred_stack_boundary, epilogue_delay_list.
16216         (struct function): Remove value_histograms, stack_alignment_needed,
16217         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
16218         last_label_uid,
16219         unexpanded_var_list, stack_protect_guard.
16220         (current_function_epilogue_delay_list): Remove.
16221         * ipa-type-escape.c (analyze_function): Update.
16222         * gimplify.c (pop_gimplify_context): Update comment.
16223         * calls.c (expand_call): Update.
16224         (emit_library_call_value_1): Update.
16225         * except.c (set_nothrow_function_flags): Update.
16226         * cfgexpand.c (get_decl_align_unit): Update.
16227         (create_stack_guard): Update.
16228         (estimated_stack_frame_size): Update.
16229         (expand_used_vars): Update.
16230         (tree_expand_cfg): Free histogram earliers, init expansion variables.
16231         * explow.c (allocate_dynamic_stack_space): Update.
16232         * tree-ssa-live.c (remove_unused_locals): Update.
16233         * varasm.c (mark_constant_pool): Update.
16234         * tree-inline.c (remap_decls): Update.
16235         (initialize_cfun): Update.
16236         (declare_return_variable): Update.
16237         (inline_forbidden_p): Update.
16238         (expand_call_inline): Update.
16239         (declare_inline_vars): Update.
16240         (tree_function_versioning): Update.
16241         * tree-flow.h (value_histograms): New.
16242         (VALUE_HISTOGRAMS): New macro.
16243         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
16244         last_label_uid.
16245         * tree-cfg.c (set_bb_for_stmt): Update.
16246         (replace_by_duplicate_decl): Update.
16247         (move_block_to_fn): Update.
16248         (new_label_mapper): Update.
16249         (dump_function_to_file): Update.
16250         * ipa-struct-reorg.c (build_data_structure): Update.
16251         * cfgrtl.c (print_rtl_with_bb): Update.
16252         * reload1.c (reload): Update.
16253         (reload): Update.
16254         * config/i386/i386.c (setup_incoming_varargs_64,
16255         ix86_compute_frame_layout): Update.
16256         * config/arc/arc.c (arc_output_function_epilogue): Update.
16257
16258 2008-04-18  Marius Strobl <marius@FreeBSD.org>
16259
16260         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
16261         for FreeBSD as well.
16262         * gthr-posix95.h: Likewise.
16263
16264 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
16265
16266         PR rtl-optimization/35838
16267         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
16268         out the byte offset of the first subreg.
16269
16270 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
16271
16272         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
16273         to split_ti instead of three separate calls with single member arrays.
16274         (subti3 splitter): Ditto.
16275         (adddi3 splitter): Ditto with split_di.
16276         (subdi3 splitter): Ditto.
16277         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
16278         two separate calls with single member arrays.  Swap match_dup
16279         operands 1 and 2 to better fit into the array.
16280         (negdi2 splitter): Ditto with split_di.
16281         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
16282         two separate calls with single member arrays.  Swap match_dup operands
16283         6 and 7 to better fit into the array.
16284
16285 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
16286
16287         * config/i386/i386.c (sse_builtin_type): New.
16288         (bdesc_sse_args): Likewise.
16289         (bdesc_sse_3arg): Removed.
16290         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
16291         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
16292         IX86_BUILTIN_ROUNDPS.
16293         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
16294         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
16295         IX86_BUILTIN_ROUNDPS.
16296         (ix86_expand_sse_4_operands_builtin): Removed.
16297         (ix86_expand_sse_operands_builtin): New.
16298         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
16299         and CODE_FOR_sse4_1_roundps.
16300         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
16301         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
16302
16303 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
16304
16305         PR target/35907
16306         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
16307         regs before frame pop when needed.  If use_backchain_to_restore_sp
16308         then load backchain into a temp reg to restore vr and vrsave.  Add
16309         code to restore vr after frame pop if possible.
16310
16311 2008-04-17  Richard Guenther  <rguenther@suse.de>
16312
16313         * tree-vn.c (expressions_equal_p): Do not check type
16314         equality or compatibility before calling operand_equal_p.
16315         * fold-const.c (operand_equal_p): Check equivalence of
16316         integer constants before bailing out due to signedness or
16317         precision differences.
16318         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
16319         spurious differences in type qualification.  Ignore types
16320         for COMPONENT_REFs at all.
16321
16322 2008-04-17  Christian Bruel  <christian.bruel@st.com>
16323
16324         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
16325         msw_skip comparison.
16326
16327 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
16328
16329         PR c/35739
16330         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
16331         reg type.
16332
16333         PR tree-optimization/35899
16334         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
16335         rather than TREE_OPERAND.
16336
16337 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
16338
16339         PR target/35944
16340         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
16341         temporary registers.  Change operand predicate to general_operand.
16342         (remainderxf3): Ditto.
16343
16344 2008-04-16  Richard Guenther  <rguenther@suse.de>
16345
16346         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
16347         * tree-affine.c (aff_combination_expand): Look through some
16348         conversions.
16349
16350 2008-04-15  Doug Kwan  <dougkwan@google.com>
16351
16352         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
16353         for hex printing.
16354         * tree-pretty-print.c (dump_generic_node): Ditto.
16355         * final.c (output_addr_const): Ditto.
16356         * dwarf2out.c (output_cfi): Ditto.
16357         * c-pretty-print.c (pp_c_integer_constant): Ditto.
16358         * print-rtl.c (print_rtx): Ditto.
16359         * print-tree.c (print_node_brief, print_node): Ditto.
16360         * c-common.c (match_case_to_enum_1): Ditto.
16361         * sched-vis.c (print_value): Ditto.
16362         * config/i386/i386.c (print_operand): Cast to long unsigned int
16363         for hex printing.
16364
16365 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
16366         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
16367         MS Windows VirtualProtect function.
16368
16369 2008-04-15  Jan Hubicka  <jh@suse.cz>
16370
16371         * gengtype.c (write_root): Param_is argument is OK.
16372         * expr.c (expand_expr_real_1): Update call of get_exception_*.
16373         * function.h: Include varray.h
16374         (rtl_eh): New stucture based on except.c one.
16375         (call_site_record): New forward declaration and vector type.
16376         * calls.c (emit_call_1): Do not call
16377         note_current_region_may_contain_throw.
16378         * except.c (eh_status): Remove cur_region, try_region since they are
16379         unused.
16380         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
16381         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
16382         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
16383         Remove call_site_data_used, call_site_data_size.
16384         Turn call_site_record into vector in function.h.
16385         (note_current_region_may_contain_throw): Remove.
16386         (get_exception_pointer, get_exception_filter): Do not take struct
16387         function argument; update.
16388         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
16389         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
16390         build_post_landing_pads, dw2_build_landing_pads,
16391         sjlj_assign_call_site_values, sjlj_mark_call_sites,
16392         sjlj_emit_function_enter, sjlj_emit_function_enter,
16393         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
16394         sjlj_build_landing_pads, finish_eh_generation,
16395         remove_exception_handler_label, remove_eh_handler,
16396         maybe_remove_eh_handler, add_reachable_handler,
16397         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
16398         add_action_record, collect_one_action_chain, add_call_site,
16399         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
16400         sjlj_output_call_site_table, output_function_exception_table,
16401         * except.h (note_current_region_may_contain_throw): Remove
16402         (get_exception_pointer, get_exception_filter): Do not take struct
16403         function argument.
16404         * Makefile.in (GTFILES): Put varargs before struct function.
16405
16406 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16407
16408         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
16409         punt for STRING_CST.
16410         (get_constraint_for): Deal with STRING_CST here instead.
16411
16412 2008-04-15  Richard Guenther  <rguenther@suse.de>
16413
16414         * tree-ssa-propagate.c (substitute_and_fold): Substitute
16415         statements in a basic-block with a backward walk.  Do not
16416         substitute into dead statements but instead remove those.
16417
16418 2008-04-15  Richard Guenther  <rguenther@suse.de>
16419
16420         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
16421         to zero, thus disable creation of SFTs.
16422
16423 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16424
16425         * tree-predcom.c (suitable_reference_p): Return false if the
16426         reference can throw.
16427
16428 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
16429
16430         PR c/35751
16431         * c-decl.c (finish_decl): If extern or static var has variable
16432         size, set TREE_TYPE (decl) to error_mark_node.
16433
16434 2008-04-15  Rafael Espíndola  <espindola@google.com>
16435
16436         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
16437         variable arg1.
16438
16439 2008-04-15  Richard Guenther  <rguenther@suse.de>
16440
16441         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
16442         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
16443         (visit_reference_op_load): Do walk vuse-vdef chains on
16444         vn_reference_lookup.
16445         (visit_reference_op_store): But do not here.
16446         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
16447         vn_reference_lookup.
16448         (vn_lookup_with_vuses): But do so here.
16449
16450 2008-04-14  Ian Lance Taylor  <iant@google.com>
16451
16452         * fold-const.c (fold_overflow_warning): Remove assertion.
16453
16454 2008-04-15  Ben Elliston  <bje@au.ibm.com>
16455
16456         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
16457         temp1 local variables.
16458
16459 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
16460
16461         PR target/35661
16462         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
16463         ".text.unlikely" section as executable.
16464
16465 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
16466
16467         * config/ia64/ia64.c (rtx_needs_barrier): Handle
16468         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
16469         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
16470         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
16471         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
16472         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
16473         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
16474
16475 2008-04-14  Ian Lance Taylor  <iant@google.com>
16476
16477         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
16478         * fold-const.c (fold_comparison): If appropriate, test
16479         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
16480         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
16481         reassociating a pointer type.
16482         * doc/invoke.texi (Optimize Options): Document that
16483         -fstrict-overflow applies to pointer wraparound.
16484
16485 2008-04-13  Jan Hubicka  <jh@suse.cz>
16486
16487         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
16488
16489 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
16490
16491         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
16492         we are going to "save the world".
16493
16494 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
16495
16496         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
16497         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
16498         operand 0 constraint, not "=".
16499
16500 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
16501
16502         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
16503
16504 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
16505
16506         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
16507         of size of positions_needed * CHAR_BIT.
16508
16509 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
16510
16511         PR middle-end/35897
16512         * dse.c (store_info): Change positions_needed to unsigned
16513         HOST_WIDE_INT.
16514         (lowpart_bitmask): New.
16515         (record_store): Cast to unsigned HOST_WIDE_INT for
16516         positions_needed.  Assert width <= size of positions_needed *
16517         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
16518         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
16519         lowpart_bitmask to set mask.
16520
16521 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
16522
16523         * config/bfin/constraints.md: New file.
16524         * config/bfin/bfin.md: Include it.
16525         (adddi3): Use satisfies_constraint functions instead of the old macros.
16526         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
16527         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
16528         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
16529         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
16530         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
16531         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
16532         EXTRA_CONSTRAINT): Delete.
16533         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
16534         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
16535         of the old macros.
16536         * config/bfin/bfin.c: Include "tm-constrs.h".
16537         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
16538         Use satisfies_constraint functions instead of the old macros.
16539         * doc/md.texi (Blackfin Constraints): Update file name reference.
16540
16541 2008-04-11  Richard Guenther  <rguenther@suse.de>
16542
16543         PR tree-optimization/35869
16544         * tree-vrp.c (execute_vrp): Move switch statement update after
16545         jump threading.  Schedule another cfg cleanup run.
16546
16547 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
16548
16549         PR c/35744
16550         * attribs.c (decl_attributes): Return early on errorneous node.
16551
16552 2008-04-10  Oleg Ryjkov  <olegr@google.com>
16553
16554         * tree.h (struct tree_base): Added a new flag default_def_flag.
16555         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
16556
16557 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
16558
16559         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
16560
16561 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16562
16563         PR target/35768
16564         * pa.md: Define mode iterator P.  Define mode attribute dwc.
16565         (dcacheflush): Update pattern to use iterator P and attribute dwc.
16566         (icacheflush): Likewise.
16567         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
16568         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
16569
16570 2008-04-11  Ben Elliston  <bje@au.ibm.com>
16571
16572         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
16573
16574 2008-04-10  Rafael Espíndola  <espindola@google.com>
16575
16576         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
16577         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
16578         (extract_range_from_expr): The same.
16579
16580 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
16581
16582         * config/mips/mips.md (GPR2): New mode iterator.
16583         (seq): Add comment.
16584         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
16585         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
16586         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
16587         Rewrite these to take two modes, the mode of comparison and the
16588         mode of the destination.
16589         * config/mips/mips.c (mips_expand_scc): Instead of having
16590         paradoxical subreg as destination, expand "narrowing" scc if mode
16591         of comparison is SI and target is requested in DI mode.
16592         (mips_emit_int_order_test): Update comment.  Make mode of
16593         comparison match CMP0 rather than TARGET.  When creating inverse
16594         target use mode of TARGET.
16595
16596 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
16597
16598         * gcov-dump.c (tag_summary): Only print summaries for the first
16599         GCOV_COUNTERS_SUMMABLE counters.
16600
16601 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
16602
16603         * config/i386/i386.md (absneg): New code iterator.
16604         (absnegprefix): New code attribute.
16605         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
16606         patterns using absneg code iterator.
16607         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
16608         using absneg code iterator.
16609         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
16610         *neg<mode>2 patterns using absneg code iterator.
16611         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16612         *negextendsfdf2 patterns using absneg code iterator.
16613         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
16614         *negextendsfxf2 patterns using absneg code iterator.
16615         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16616         *negextendsfdf2 patterns using absneg code iterator.
16617         * config/i386/sse.md (<code><mode>2): Macroize expander from
16618         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
16619
16620 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
16621
16622         * config/s390/s390.h: Remove the remains of the recent search
16623         & replace action of current_function_outgoing_args_size.
16624
16625 2008-04-10  Ira Rosen  <irar@il.ibm.com>
16626
16627         PR tree-optimization/35821
16628         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
16629         NEW_STMT_LIST is not NULL.
16630
16631 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
16632
16633         PR libstdc++/35597
16634         * toplev.c (process_options): Remove -ffunction-sections debugging
16635         warning.
16636
16637 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
16638
16639         PR middle-end/PR28690
16640         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
16641         than gen_rtx_fmt_ee to perform more canonicalizations.
16642
16643 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16644
16645         PR driver/35665
16646         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
16647
16648 2008-04-09  Richard Guenther  <rguenther@suse.de>
16649
16650         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
16651         (dump_function_to_file): Dump function arguments with types.
16652
16653 2008-04-08  Richard Guenther  <rguenther@suse.de>
16654
16655         * fold-const.c (fold_widened_comparison): Do not allow
16656         sign-changes that change the result.
16657
16658 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
16659
16660         PR target/35839
16661         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
16662         kinds of indirect references.
16663
16664 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
16665
16666         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
16667         GNU Fortran language string.
16668
16669 2008-04-08  Rafael Espíndola  <espindola@google.com>
16670
16671         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
16672         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
16673         * tree.h (tree_call_nonnegative_warnv_p): New.
16674
16675 2008-04-08  Jan Hubicka  <jh@suse.cz>
16676
16677         * function.c (free_after_compilation): Clear out regno_reg_rtx
16678         pointer.
16679
16680 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
16681
16682         Revert
16683         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
16684
16685         PR middle-end/PR28690
16686         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
16687         same precedence as REG_POINTER and MEM_POINTER operands.
16688
16689 2008-04-08  Richard Guenther  <rguenther@suse.de>
16690
16691         PR middle-end/35834
16692         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
16693         for adding index to base.
16694
16695 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
16696
16697         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
16698         (MINGW_ENABLE_EXECUTE_STACK): New.
16699         (IN_LIBGCC2): For libgcc include windows.h file for
16700         function declarations.
16701
16702 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
16703
16704         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
16705         and tem2 if tem1 is not a REG or MULT.
16706
16707 2008-04-08  Jan Hubicka  <jh@suse.cz>
16708
16709         * function.h (incomming_args): Break out of struct function.
16710         (function_subsections): Break out of struct function.
16711         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
16712         return_rtx and hard_reg_initial_vals from struct function.
16713         Kill inl_max_label_num.
16714         (current_function_pops_args, current_function_args_info,
16715         current_function_args_size, current_function_args_size,
16716         current_function_pretend_args_size,
16717         current_function_outgoing_args_size,
16718         current_function_internal_arg_pointer, current_function_return_rtx):
16719         Kill compatibility accestor macros.
16720         * builtins.c (expand_builtin_apply_args_1): Update.
16721         (expand_builtin_next_arg): Update.
16722         * df-scan.c (df_get_call_refs): Update.
16723         * dbxout.c (dbxout_function_end): Update.
16724         * dwarf2out.c (dwarf2out_switch_text_section): Update.
16725         (output_line_info): Update.
16726         (secname_for_decl): Update.
16727         (dwarf2out_var_location): Update.
16728         * function.c (free_after_compilation): Update.
16729         (assign_parm_find_stack_rtl): Update.
16730         (assign_parms): Update.
16731         (expand_dummy_function_end): Update.
16732         (expand_function_end): Update.
16733         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
16734         (expand_call): Update.
16735         (emit_library_call_value_1): Update.
16736         (store_one_arg): Update.
16737         * varasm.c (initialize_cold_section_name): Update.
16738         (unlikely_text_section): Update.
16739         (unlikely_text_section_p): Update.
16740         (assemble_start_function): Update.
16741         (assemble_end_function): Update.
16742         (default_section_type_flags): Update.
16743         (switch_to_section): Update.
16744         * integrate.c (set_decl_abstract_flags): Update.
16745         (get_hard_reg_initial_val): Update.
16746         (has_hard_reg_initial_val): Update.
16747         (allocate_initial_values): Update.
16748         * resource.c (init_resource_info): Update.
16749         * config/alpha/alpha.c (NUM_ARGS): Update.
16750         (direct_return): Update.
16751         (alpha_va_start): Update.
16752         (alpha_sa_size): Update.
16753         (alpha_initial_elimination_offset): Update.
16754         (alpha_expand_prologue): Update.
16755         (alpha_start_function): Update.
16756         (alpha_expand_epilogue): Update.
16757         (unicosmk_initial_elimination_offset):
16758         * config/alpha/alpha.md (call expander): Update.
16759         * config/s390/s390.c (s390_register_info): Update.
16760         (s390_register_info): Update.
16761         (s390_frame_info): Update.
16762         (s390_initial_elimination_offset): Update.
16763         (s390_build_builtin_va_list): Update.
16764         (s390_va_start): Update.
16765         * config/spu/spu.c (direct_return): Update.
16766         (spu_expand_prologue): Update.
16767         (spu_initial_elimination_offset): Update.
16768         (spu_build_builtin_va_list): Update.
16769         (spu_va_start): Update.
16770         * config/sparc/sparc.c (sparc_init_modes): Update.
16771         (sparc_compute_frame_size): Update.
16772         (function_value): Update.
16773         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
16774         * config/i386/i386.md (return expander): Update.
16775         * config/i386/i386.c (ix86_va_start): Update.
16776         (ix86_can_use_return_insn_p): Update.
16777         (ix86_compute_frame_layout): Update.
16778         (ix86_expand_epilogue): Update.
16779         * config/sh/sh.c (output_stack_adjust): Update.
16780         (calc_live_regs): Update.
16781         (sh_expand_prologue): Update.
16782         (sh_builtin_saveregs): Update.
16783         (sh_va_start): Update.
16784         (initial_elimination_offset): Update.
16785         (sh_allocate_initial_value): Update.
16786         (sh_function_ok_for_sibcall): Update.
16787         (sh_get_pr_initial_val): Update.
16788         * config/sh/sh.md (return expander): Update.
16789         * config/avr/avr.c (frame_pointer_required_p): UPdate.
16790         * config/crx/crx.c (crx_compute_frame): UPdate.
16791         (crx_initial_elimination_offset): UPdate.
16792         * config/xtensa/xtensa.c (compute_frame_size): Update
16793         (xtensa_builtin_saveregs): Update.
16794         (xtensa_va_start): Update.
16795         (order_regs_for_local_alloc): Update.
16796         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
16797         (xstormy16_expand_builtin_va_start): Update.
16798         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
16799         * config/m68hc11/m68hc11.md (return expanders): Update.
16800         * config/m68hc11/m68hc11.c (expand_prologue): Update.
16801         (expand_epilogue): Update.
16802         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
16803         (cris_simple_epilogue): Update.
16804         (cris_expand_prologue): Update.
16805         (cris_expand_epilogue): Update.
16806         * config/iq2000/iq2000.c (iq2000_va_start): Update.
16807         (compute_frame_size): Update.
16808         * config/mt/mt.c (mt_compute_frame_size): Update.
16809         * config/mn10300/mn10300.c (expand_prologue): Update.
16810         (expand_epilogue): Update.
16811         (initial_offset): Update.
16812         (mn10300_builtin_saveregs):
16813         * config/mn10300/mn10300.md (return expander): Update.
16814         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
16815         (ia64_initial_elimination_offset): Update.
16816         (ia64_initial_elimination_offset): Update.
16817         (ia64_expand_prologue): Update.
16818         * config/m68k/m68k.md (return expander): Update.
16819         * config/rs6000/rs6000.c (rs6000_va_start): Update.
16820         (rs6000_stack_info): Update.
16821         * config/mcore/mcore.c (layout_mcore_frame): Update.
16822         (mcore_expand_prolog): Update.
16823         * config/arc/arc.c (arc_compute_frame_size): Update.
16824         * config/score/score3.c (score3_compute_frame_size): Update.
16825         * config/score/score7.c (score7_compute_frame_size): Update.
16826         * config/arm/arm.c (use_return_insn): Update.
16827         (thumb_find_work_register): Update.
16828         (arm_compute_save_reg_mask): Update.
16829         (arm_output_function_prologue): Update.
16830         (arm_output_epilogue): Update.
16831         (arm_size_return_regs): Update.
16832         (arm_get_frame_offsets): Update.
16833         (arm_expand_prologue): Update.
16834         (thumb_exit): Update.
16835         (thumb_unexpanded_epilogue): Update.
16836         (thumb1_output_function_prologue): Update.
16837         * config/pa/pa.md (return expander): Update.
16838         * config/pa/pa.c (compute_frame_size): Update.
16839         (hppa_builtin_saveregs): Update.
16840         * config/mips/mips.c (mips_va_start): Update.
16841         (mips16_build_function_stub): Update.
16842         (mips_compute_frame_info): Update.
16843         (mips_restore_gp): Update.
16844         (mips_output_function_prologue): Update.
16845         (mips_expand_prologue): Update.
16846         * config/v850/v850.c (compute_frame_size): Update.
16847         (expand_prologue): * config/mmix/mmix.c (along): update.
16848         (mmix_initial_elimination_offset): update.
16849         (mmix_reorg): update.
16850         (mmix_use_simple_return): update.
16851         (mmix_expand_prologue): update.
16852         (mmix_expand_epilogue): Update.
16853         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
16854         (emit_link_insn): Update.
16855
16856 2008-04-08  Anatoly Sokolov <aesok@post.ru>
16857
16858         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
16859         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
16860         instructions.
16861         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
16862         atmega103 device.
16863
16864 2008-04-07  Jan Hubicka  <jh@suse.cz>
16865
16866         * function.h (rtl): Rename to x_rtl.
16867         (crtl): New define.
16868         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
16869         frame_offset, stack_check_probe_note, arg_pointer_save_area,
16870         used_temp_slots avail_temp_slots, temp_slot_level,
16871         nonlocal_goto_handler_labels): Update accesstors.
16872         (rtl): New global variable.
16873         (struct function): Move some fileds to rtl_data.
16874         (get_arg_pointer_save_area): Update prototype.
16875         * builtins.c (expand_builtin_setjmp_receiver): Update call of
16876         get_arg_pointer_save_area.
16877         * expr.c (init_expr): Update
16878         * function.c (get_frame_size): Update
16879         (assign_stack_local): Update
16880         (expand_function_end): Update.
16881         (get_art_pointer_save_area): Update
16882         * function.h
16883         * emit-rtl.c (rtl): Declare.
16884         (regno_reg_rtx): Declare.
16885         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
16886         Update.
16887         (gen_reg_rtx): Update.
16888         * varasm.c (n_deferred_constatns): Update accestor.
16889         (init_varasm_status): Do not allocate varasm_status.
16890         (force_const_mem, get_pool_size, output_constant_pool): Update.
16891         * stmt.c (force_label_rtx): Do not use x_ prefixes.
16892         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
16893         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
16894         * sparc/sparc.h (INIT_EXPANDERS): Update.
16895         * ia64/ia64.h (INIT_EXPANDERS): Update.
16896
16897 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
16898
16899         * reload.c (push_secondary_reload): Add missing break to for loop.
16900
16901 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
16902
16903         PR middle-end/PR28690
16904         * rtlanal.c: Update copyright years.
16905         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
16906         as REG_POINTER and MEM_POINTER operands.
16907         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
16908         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
16909         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
16910         * gcse.c: Update copyright years.
16911         (pre_delete): Call gen_reg_rtx_and_attrs.
16912         (hoist_code): Likewise.
16913         (build_store_vectors): Likewise.
16914         (delete_store): Likewise.
16915         * loop-invariant.c (move_invariant_reg): Likewise.
16916         Update copyright years.
16917
16918 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
16919
16920         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
16921         control string instead of quoted.
16922
16923 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
16924
16925         * doc/rtl.texi: Rewrite of subreg section.
16926
16927 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
16928
16929         PR/35842
16930         * config/i386/i386.c (legitimize_pic_address): Add treating
16931         of dllimport SYM_REF's.
16932         (legitimize_dllimport_symbol): Add prototype.
16933
16934 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
16935
16936         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
16937         reference in constructor with non self-referential type.
16938
16939 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
16940
16941         Removal of Return with Depressed Stack Pointer support
16942         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
16943         (ECF_SP_DEPRESSED): Likewise.
16944         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
16945         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
16946         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16947         (expand_call): Do not test ECF_SP_DEPRESSED.
16948         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16949         * function.c (keep_stack_depressed): Delete.
16950         (handle_epilogue_set): Likewise.
16951         (update_epilogue_consts): Likewise.
16952         (emit_equiv_load): Likewise.
16953         (thread_prologue_and_epilogue_insns): Remove support for Return with
16954         Depressed Stack Pointer.
16955         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16956
16957 2008-04-06  Richard Guenther  <rguenther@suse.de>
16958
16959         PR tree-optimization/35400
16960         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
16961         information from SSA_NAMEs.
16962
16963 2008-04-06  Anatoly Sokolov <aesok@post.ru>
16964
16965         * config/avr/avr.h (avr_mega_p): Remove declaration.
16966         (AVR_MEGA): Remove macro.
16967         * config/avr/avr.c (avr_mega_p): Remove variable.
16968         (avr_override_options): Remove inicializion of avr_mega_p.
16969         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16970         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16971         (avr_jump_mode): (Ditto.).
16972         (avr_output_progmem_section_asm_op): (Ditto.).
16973         (avr_asm_init_sections): (Ditto.).
16974         (avr_asm_init_sections): (Ditto.).
16975         (avr_rtx_costs): (Ditto.).
16976         * config/avr/avr.md: (Ditto.).
16977         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
16978         '__AVR_MEGA__'.
16979
16980 2008-04-06  Richard Guenther  <rguenther@suse.de>
16981
16982         PR tree-optimization/35842
16983         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
16984         is_gimple_invariant_address.
16985
16986 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16987
16988         * gcc.c (default_compilers): Sync Fortran extensions list with
16989         that in fortran/lang-specs.h.
16990         * doc/invoke.texi: Likewise.
16991         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
16992         * dwarf2out.c (gen_compile_unit_die): Likewise.
16993
16994 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
16995
16996         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
16997
16998 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
16999
17000         PR target/12329
17001         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
17002         attribute is used for nested functions.
17003
17004 2008-04-05  Jan Hubicka  <jh@suse.cz>
17005
17006         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
17007
17008         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
17009         letter argument.
17010         (dump_files): Update.
17011         (enable_rtl_dump_file): Do not accept letter argument.
17012         * tree-pass.h (dump_file_info): Remove letter argument.
17013         * toplev.c (decode_d_option): Update -da handling.
17014         * toplev.h (enable_rtl_dump_file): Update prototype.
17015         * passes.c (register_one_dump_file): Do not accept IPA argument; work
17016         it out based on pass type.
17017         (register_dump_files_1): Likewise.
17018         (init_optimization_passes): Update register_one_dump_file calls.
17019         (execute_one_pass): Sanity check that IPA passes are called at IPA
17020         level and RTL passes at RTL level.
17021         (execute_pass_list): IPA pass can not be after or subpass of
17022         GIMPLE/RTL pass.
17023         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
17024         disallov RTL subpasses of IPA subpasses.
17025
17026 2008-04-05  Ben Elliston  <bje@au.ibm.com>
17027
17028         * tree-cfg.c (need_fake_edge_p): Return false for calls to
17029         builtins that return exactly once and do not throw. Cache call to
17030         call_expr_flags.
17031
17032 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
17033
17034         PR rtl-optimization/34916
17035         PR middle-end/35519
17036         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
17037         between instruction pairs.
17038
17039 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
17040
17041         * doc/invoke.texi: Document -mbitops for SH.
17042         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
17043         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
17044         * config/sh/sh.c (print_operand): Add %t operand code.
17045         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
17046         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
17047         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
17048         (extendqihi2): Likewise.
17049         (movqi_i): Likewise.
17050         (insv): Use bset, bclr and bst instructions for SH2A if possible.
17051         (extv): Use bld instruction for SH2A if possible.
17052         (extzv): Likewise.
17053         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
17054         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
17055         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
17056         (bset.b, bclr.b): Define peepholes.
17057         * config/sh/sh.opt (mbitops): New option.
17058
17059 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
17060
17061         PR target/35620
17062         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
17063         and view convert expression.
17064
17065 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
17066
17067         PR target/35364
17068         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
17069
17070 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
17071
17072         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
17073
17074         * config/i386/cpuid.h (bit_AES): New.
17075         (bit_PCLMUL): Likewise.
17076
17077         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
17078         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
17079         SSE2 if AES or PCLMUL is enabled.
17080         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
17081         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
17082         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
17083         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
17084         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
17085         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
17086         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
17087         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
17088         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
17089         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
17090         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
17091         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
17092         __builtin_ia32_aeskeygenassist128 and
17093         __builtin_ia32_pclmulqdq128.
17094         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
17095         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
17096         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
17097
17098         * config/i386/i386.h (TARGET_AES): New.
17099         (TARGET_PCLMUL): Likewise.
17100         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
17101
17102         * config/i386/i386.md (UNSPEC_AESENC): New.
17103         (UNSPEC_AESENCLAST): Likewise.
17104         (UNSPEC_AESDEC): Likewise.
17105         (UNSPEC_AESDECLAST): Likewise.
17106         (UNSPEC_AESIMC): Likewise.
17107         (UNSPEC_AESKEYGENASSIST): Likewise.
17108         (UNSPEC_PCLMUL): Likewise.
17109
17110         * config/i386/i386.opt (maes): New.
17111         (mpclmul): Likewise.
17112
17113         * config/i386/sse.md (aesenc): New pattern.
17114         (aesenclast): Likewise.
17115         (aesdec): Likewise.
17116         (aesdeclast): Likewise.
17117         (aesimc): Likewise.
17118         (aeskeygenassist): Likewise.
17119         (pclmulqdq): Likewise.
17120
17121         * config/i386/wmmintrin.h: New.
17122
17123         * doc/extend.texi: Document AES and PCLMUL built-in function.
17124
17125         * doc/invoke.texi: Document -maes and -mpclmul.
17126
17127 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
17128
17129         * function.c (free_after_parsing): Replace with
17130         cxx_push_function_context from C++ front-end.
17131         (allocate_struct_function): Don't call langhook.
17132         * langhooks.h (struct lang_hooks_for_functions): Delete.
17133         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
17134         member "function".
17135         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
17136         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
17137         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
17138         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
17139         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
17140         remove LANG_HOOKS_FUNCTION_INITIALIZER.
17141         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
17142
17143         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
17144         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
17145
17146 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
17147
17148         PR c/35440
17149         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
17150         for all types.
17151
17152 2008-04-04  Richard Guenther  <rguenther@suse.de>
17153
17154         PR middle-end/35823
17155         * fold-const.c (optimize_minmax_comparison): Use the correct
17156         type for the constant in the simplified comparison.
17157
17158 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
17159
17160         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
17161         Pass L2 size as "--param l2-cache-size" to the compiler.
17162         (decode_l2_cache): New function to decode L2 cache parameters using
17163         0x8000006 extended cpuid function.
17164         (detect_caches_amd): Determine parameters of L2 cache using
17165         decode_l2_caches function.
17166         (decode_caches_intel): Decode L2 cache parameters.
17167         (detect_caches_intel): Determine L2 cache parameters using
17168         decode_caches_intel and decode_l2_caches functions.
17169
17170 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
17171
17172         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
17173         secondary input reload for subword loads from the constant pool.
17174
17175 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
17176
17177         PR target/35713
17178         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
17179           constants of the appropriate size for runtime calculations.
17180
17181         PR c/35712
17182         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
17183           decimal-float literal constant zero.
17184
17185 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
17186
17187         PR c/35738
17188         * c-parser.c (c_parser_omp_atomic): Call
17189         default_function_array_conversion on the RHS.
17190
17191         PR middle-end/35818
17192         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
17193         call is_variable_sized if decl has incomplete type.
17194
17195 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
17196
17197         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
17198
17199 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
17200
17201         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
17202         iterators.
17203         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
17204         (sgt<u>): Merge sgt and sgtu into new expander.
17205         (sgt, sgtu): Remove expanders.
17206         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
17207         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
17208         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
17209         *sgtu_<mode>_mips16 into new pattern.
17210         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
17211         (sge<u>): Merge sge and sgeu into new expander.
17212         (sge, sgeu): Remove expanders.
17213         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
17214         new pattern.
17215         (*sge_<mode>, second *sge_<mode>): Remove patterns.
17216         (slt<u>): Merge slt and sltu into new expander.
17217         (slt, sltu): Remove expanders.
17218         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
17219         (*slt_<mode>, *sltu_<mode>): Remove patterns.
17220         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
17221         *sltu_<mode>_mips16 into new pattern.
17222         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
17223         (sle<u>): Merge sle and sleu into new expander.
17224         (sle, sleu): Remove expanders.
17225         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
17226         (*sle_<mode>, *sleu_<mode>): Remove patterns.
17227         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
17228         *sleu_<mode>_mips16 into new pattern.
17229         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
17230
17231 2008-04-03  Jan Hubicka  <jh@suse.cz>
17232
17233         PR tree-optimization/35795
17234         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
17235         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17236         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17237         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
17238         * score/score3.c (score3_output_mi_thunk): Likewise.
17239         * score/score7.c (score7_output_mi_thunk): Likewise.
17240         * mips/mips.c (mips_output_mi_thunk): Likewise.
17241
17242 2008-04-03  Richard Guenther  <rguenther@suse.de>
17243
17244         * tree-vrp.c (extract_range_from_unary_expr): Handle all
17245         conversions.  Simplify code.
17246
17247 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
17248
17249         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
17250
17251 2008-04-03  Tom Tromey  <tromey@redhat.com>
17252             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17253
17254         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
17255         * config/bfin/t-bfin-linux (generated_files): Add
17256         linux-sysroot-suffix.h.
17257         * doc/install.texi (Prerequisites): Require make 3.80.
17258         * doc/sourcebuild.texi (Front End Directory): Document new
17259         variable.
17260         * Makefile.in (generated_files): New variable.
17261         (ALL_HOST_OBJS): New variable.
17262         ($(ALL_HOST_OBJS)): New target.
17263
17264 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
17265
17266         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
17267         (remap_block): Call id->transform_lang_insert_block instead
17268         of langhook.
17269         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
17270         Set id.transform_lang_insert_block to NULL.
17271         (clone_body): Move to cp/optimize.c
17272         * tree-inline.h (struct copy_body_data): Change
17273         transform_lang_insert_block to function pointer.
17274         (copy_generic_body, copy_decl_no_change): Export.
17275         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
17276         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
17277         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
17278
17279         * c-tree.h (insert_block): Kill.
17280         * c-decl.c (insert_block): Kill.
17281
17282 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
17283
17284         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17285         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
17286         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
17287         argument.
17288         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
17289         argument, call {push,pop}_function_context from here.
17290         * c-parser.c: Use c_{push,pop}_function_context.
17291
17292         * function.c (push_function_context_to): Move meat ...
17293         (push_function_context): ... here.  Simplify.
17294         * function.c (pop_function_context_from): Move meat ...
17295         (pop_function_context): ... here.  Simplify.
17296         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
17297         leave_nested).
17298         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17299         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
17300         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
17301         * tree.h (push_function_context_to, pop_function_context_from): Remove.
17302
17303 2008-04-03  Ben Elliston  <bje@au.ibm.com>
17304
17305         * expmed.c (extract_force_align_mem_bit_field): Remove.
17306
17307 2008-04-03  Richard Guenther  <rguenther@suse.de>
17308
17309         PR middle-end/35800
17310         * expr.h (try_casesi): Adjust prototype.
17311         * expr.c (try_casesi): Take fallback label as extra parameter.
17312         Use that for gen_casesi if default_label is NULL.
17313         * stmt.c (expand_case): Pass fallback label to try_casesi,
17314         make sure to fill gaps with a fallback label if default_label
17315         is not present.
17316
17317 2008-04-03  Dominique d'Humières <dominiq@lps.ens.fr>
17318
17319         PR target/35801
17320         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
17321
17322 2008-04-03  Ben Elliston  <bje@au.ibm.com>
17323
17324         * expmed.c (extract_split_bit_field): Remove if (0) code.
17325         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
17326         (do_ds_constraint): Likewise.
17327
17328 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
17329
17330         * doc/cppopts.texi (-dU): Document.
17331         * c-common.h (flag_dump_macros): Update comment.
17332         * c-opts.c (handle_OPT_d): Handle -dU.
17333         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
17334         dump_queued_macros, cb_used_define, cb_used_undef): New.
17335         (init_pp_output): Handle -dU.
17336         (cb_line_change): Call dump_queued_macros.
17337         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
17338
17339 2008-04-02  Anatoly Sokolov <aesok@post.ru>
17340
17341         * config/avr/predicates.md (io_address_operand): New predicate.
17342         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
17343         * config/avr/avr.c (avr_io_address_p): Remove function.
17344         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
17345         'avr_io_address_p' function.
17346         (out_movhi_r_mr): (Ditto.).
17347         (out_movqi_mr_r): (Ditto.).
17348         (out_movhi_mr_r): (Ditto.).
17349         (avr_address_cost): (Ditto.).
17350
17351 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
17352
17353         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
17354         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
17355         in 32bit mode when XMM registers are available to avoid store
17356         forwarding stalls.
17357         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
17358         corresponding post-reload splitters.
17359
17360 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
17361
17362         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
17363         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
17364         __builtin_ia32_roundss.
17365         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
17366         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
17367         __builtin_ia32_roundss.
17368         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
17369         IX86_BUILTIN_SHUFPD here.
17370
17371 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
17372
17373         * config/i386/i386.md (plogic): New.
17374         (plogicprefix): Likewise.
17375
17376         * config/i386/mmx.md (mmx_<code><mode>3): New.
17377         (mmx_and<mode>3): Removed.
17378         (mmx_ior<mode>3): Likewise.
17379         (mmx_xor<mode>3): Likewise.
17380
17381         * config/i386/sse.md (<code><mode>3): New.
17382         (*<code><mode>3): Likewise.
17383         (*<code><mode>3): Likewise.
17384         (<code><mode>3): Likewise.
17385         (*sse_<code><mode>3): Likewise.
17386         (*sse2_<code><mode>3): Likewise.
17387         (<code>tf3): Likewise.
17388         (*<code>tf3): Likewise.
17389         (and<mode>3): Likewise.
17390         (*and<mode>3): Likewise.
17391         (ior<mode>3): Removed.
17392         (*ior<mode>3): Likewise.
17393         (xor<mode>3): Likewise.
17394         (*xor<mode>3): Likewise.
17395         (*and<mode>3): Likewise.
17396         (*ior<mode>3): Likewise.
17397         (*xor<mode>3): Likewise.
17398         (and<mode>3): Likewise.
17399         (*sse_and<mode>3): Likewise.
17400         (*sse2_and<mode>3): Likewise.
17401         (andtf3): Likewise.
17402         (*andtf3): Likewise.
17403         (ior<mode>3): Likewise.
17404         (*sse_ior<mode>3): Likewise.
17405         (*sse2_ior<mode>3): Likewise.
17406         (iortf3): Likewise.
17407         (*iortf3): Likewise.
17408         (xor<mode>3): Likewise.
17409         (*sse_xor<mode>3): Likewise.
17410         (*sse2_xor<mode>3): Likewise.
17411         (xortf3): Likewise.
17412         (*xortf3): Likewise.
17413
17414 2008-04-02  Richard Guenther  <rguenther@suse.de>
17415
17416         PR tree-optimization/14495
17417         PR tree-optimization/34793
17418         * tree-vrp.c (struct switch_update): New structure.
17419         (to_remove_edges, to_update_switch_stmts): New VECs.
17420         (simplify_switch_using_ranges): New function.  Remove not taken
17421         case labels and edges.
17422         (simplify_stmt_using_ranges): Call it.
17423         (identify_jump_threads): Mark edges we have queued for removal
17424         so we don't thread them.
17425         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
17426         case label vector.
17427         * tree-cfg.c (group_case_labels): Deal with missing default label.
17428         (tree_verify_flow_info): Allow missing default label.
17429         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
17430         (emit_case_nodes): Likewise.
17431         (expand_case): Do not rely on the default label to be present.
17432         * expr.c (try_casesi): Deal with NULL default_label.
17433         (do_tablejump): Likewise.
17434
17435 2008-04-02  Richard Guenther  <rguenther@suse.de>
17436
17437         PR tree-optimization/14495
17438         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
17439         SWITCH_EXPR here ...
17440         (vrp_visit_switch_stmt): ... but here (new function).
17441         (find_case_label_index): New helper function.
17442         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
17443
17444 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17445
17446         * fwprop.c: Fix ISO-C99ism.
17447
17448 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17449
17450         PR bootstrap/35752
17451         * Makefile.in (objdir): Set it here.
17452         * configure.ac: Not here.  Find dynamic linker characteristics.
17453         * exec-tool.in: Use them.
17454         * aclocal.m4: Regenerate.
17455         * configure: Regenerate.
17456
17457 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17458
17459         * expr.c (expand_var): Delete it.
17460         * expr.h (expand_var): Delete prototype.
17461         * function.c (expand_function_start): Use expand_decl instead.
17462         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
17463         langhook.
17464
17465 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
17466
17467         PR rtl-optimization/35542
17468         * fwprop.c (forward_propagate_and_simplify): Replace
17469         loc_reg_mentioned_in_p with reg_mentioned_p.
17470
17471 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17472
17473         PR rtl-optimization/35281
17474         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
17475         (propagate_rtx_1): Handle PR_HANDLE_MEM.
17476         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
17477         (varying_mem_p): Move above propagate_rtx.
17478         (all_uses_available_at): Do not check MEMs.
17479
17480 2008-04-02  Rafael Espíndola  <espindola@google.com>
17481
17482         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
17483         (register_edge_assert_for_2): Split the cond argument.
17484         (register_edge_assert_for_1): Adjust for the change in
17485         register_edge_assert_for_2.
17486         (register_edge_assert_for): Split the cond argument.
17487         (find_switch_asserts): Adjust for the change in
17488         register_edge_assert_for.
17489
17490 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
17491
17492         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
17493         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
17494         offsets for 64-bit mingw.
17495         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
17496         abi for x86_64-pc-mingw.
17497
17498 2008-04-02  Richard Guenther  <rguenther@suse.de>
17499
17500         * tree-vrp.c (extract_range_from_assert): Make sure to not
17501         produce range min/max with TREE_OVERFOW set.
17502         If merging a anti-range and a range keep the anti-range if
17503         the range covers all values of the type.
17504         (register_edge_assert_for_2): Only allow sign-changing
17505         conversions in detecting canonical range checks.  Also
17506         register an assert for the unsigned name if useful.
17507
17508         PR tree-optimization/35787
17509         * tree-vrp.c (vrp_val_max): New function.
17510         (vrp_val_min): Likewise.
17511         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
17512         (vrp_val_is_min): Likewise.
17513         (supports_overflow_infinity): Use vrp_val_{min,max}.
17514         (negative_overflow_infinity): Likewise.
17515         (positive_overflow_infinity): Likewise.
17516         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
17517         (is_positive_overflow_infinity): Likewise.
17518         (is_overflow_infinity): Likewise.
17519         (avoid_overflow_infinity): Use vrp_val_{min,max} and
17520         vrp_val_is_{min,max}.
17521         (set_and_canonicalize_value_range): Canonicalize anti-ranges
17522         to ranges if possible.  Avoid empty ranges.
17523
17524 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17525
17526         PR middle-end/35705
17527         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
17528         the expression is a function address.
17529
17530 2008-04-01  George Helffrich  <george@gcc.gnu.org>
17531
17532         PR fortran/35154, fortran/23057
17533         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
17534         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
17535         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
17536         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
17537         in common.
17538         (dbxout_syms): Check for COMMON-based symbol and wrap in
17539         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
17540         in bracket for efficiency.
17541
17542         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
17543         using DW_TAG_common_block + member offset.
17544         (add_pubname_string): New function.
17545         (dw_expand_expr): New function to find block name and offset for
17546         COMMON var.
17547         (common_check): New function to check whether symbol in Fortran COMMON.
17548         (gen_variable_die): If COMMON, use DW_TAG_common_block.
17549
17550 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
17551
17552         PR c/35436
17553         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
17554
17555 2008-04-02  Ben Elliston  <bje@au.ibm.com>
17556
17557         * config/v850/v850.md (casesi): Remove if (0) code.
17558         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17559         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17560
17561 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
17562
17563         * config/i386/i386.md (rex64suffix): New mode attribute.
17564         (floathi<mode>2): Disable expander for SSE math.
17565         (*floathi<mode>2_1): New insn insn_and_split pattern.
17566         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
17567         corresponding post-reload splitters.
17568         (*floathi<mode>2_i387): New macroized insn pattern.
17569         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
17570         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
17571         insn_and_split pattern.
17572         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
17573         New macroized instruction patterns and corresponding post-reload
17574         splitters.
17575         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
17576         and corresponding post-reload splitters.
17577         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
17578         New macroized instruction patterns.
17579         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
17580         macroized instruction patterns and corresponding post-reload splitters.
17581         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
17582         corresponding post-reload splitters.
17583         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
17584         New macroized instruction patterns.
17585         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
17586         corresponding post-reload splitters.
17587         (*floatsi<mode>2_i387): New macroized instruction patterns.
17588
17589 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
17590
17591         * config/i386/i386.md (smaxmin): New.
17592         (umaxmin): Likewise.
17593         (maxminiprefix): Likewise.
17594         (maxminfprefix): Likewise.
17595         (<code><mode>3): Likewise.
17596         (smin<mode>3): Removed.
17597         (smax<mode>3): Likewise.
17598
17599         * config/i386/mmx.md (mmx_<code>v2sf3): New.
17600         (mmx_<code>v4hi3): Likewise.
17601         (mmx_<code>v8qi3): Likewise.
17602         (mmx_smaxv2sf3): Removed.
17603         (mmx_sminv2sf3): Likewise.
17604         (mmx_umaxv8qi3): Likewise.
17605         (mmx_smaxv4hi3): Likewise.
17606         (mmx_uminv8qi3): Likewise.
17607         (mmx_sminv4hi3): Likewise.
17608
17609         * config/i386/sse.md (<addsub><mode>3): New.
17610         (*<addsub><mode>3): Likewise.
17611         (<sse>_vm<addsub><mode>3): Likewise.
17612         (<maxmin><mode>3): Likewise.
17613         (*<maxmin><mode>3_finite): Likewise.
17614         (*<maxmin><mode>3): Likewise.
17615         (<sse>_vm<maxmin><mode>3): Likewise.
17616         (sse3_h<addsub>v4sf3): Likewise.
17617         (sse3_h<addsub>v2df3): Likewise.
17618         (<maxmin>v16qi3): Likewise.
17619         (*<maxmin>v16qi3): Likewise.
17620         (<maxmin>v8hi3): Likewise.
17621         (*<maxmin>v8hi3): Likewise.
17622         (*sse4_1_<maxmin><mode>3): Likewise.
17623         (*sse4_1_<maxmin><mode>3): Likewise.
17624         (add<mode>3): Removed.
17625         (*add<mode>3): Likewise.
17626         (<sse>_vmadd<mode>3): Likewise.
17627         (sub<mode>3): Likewise.
17628         (*sub<mode>3): Likewise.
17629         (<sse>_vmsub<mode>3): Likewise.
17630         (smin<mode>3): Likewise.
17631         (*smin<mode>3_finite): Likewise.
17632         (*smin<mode>3): Likewise.
17633         (<sse>_vmsmin<mode>3): Likewise.
17634         (smax<mode>3): Likewise.
17635         (*smax<mode>3_finite): Likewise.
17636         (*smax<mode>3): Likewise.
17637         (<sse>_vmsmax<mode>3): Likewise.
17638         (sse3_haddv4sf3): Likewise.
17639         (sse3_haddv2df3): Likewise.
17640         (sse3_hsubv4sf3): Likewise.
17641         (sse3_hsubv2df3): Likewise.
17642         (umaxv16qi3): Likewise.
17643         (*umaxv16qi3): Likewise.
17644         (smaxv8hi3): Likewise.
17645         (*smaxv8hi3): Likewise.
17646         (*sse4_1_smax<mode>3): Likewise.
17647         (*sse4_1_umax<mode>3): Likewise.
17648         (uminv16qi3): Likewise.
17649         (*uminv16qi3): Likewise.
17650         (sminv8hi3): Likewise.
17651         (*sminv8hi3): Likewise.
17652         (*sse4_1_smin<mode>3): Likewise.
17653         (*sse4_1_umin<mode>3): Likewise.
17654
17655 2008-04-01  Rafael Espíndola  <espindola@google.com>
17656
17657         * tree-cfg.c (verify_expr): remove in_phi.
17658         (verify_stmt): Don't call walk_tree with verify_expr. Use
17659         is_gimple_min_invariant instead of is_gimple_val.
17660
17661 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
17662
17663         * doc/include/gpl_v3.texi: Update for manpage generation.
17664         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
17665         gpl.texi.
17666         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
17667         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
17668         gpl_v3.texi instead of gpl.texi.
17669         (gpl.pod): New.
17670
17671 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
17672
17673         PR pch/13675
17674         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
17675
17676 2008-04-01  Rafael Espíndola  <espindola@google.com>
17677
17678         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
17679         (extract_code_and_val_from_cond): Use
17680         extract_code_and_val_from_cond_with_ops.
17681
17682 2008-04-01  Jan Hubicka  <jh@suse.cz>
17683
17684         * function.c (free_after_compilation): Free epilogue_delay_list.
17685         (prepare_function_start): Assert that previous compilation was freed.
17686
17687 2008-04-01  Jan Hubicka  <jh@suse.cz>
17688             Jim Wilson  <wilson@tuliptree.org>
17689             Andreas Tobler <andreast@gcc.gnu.org>
17690
17691         PR middle-end/35781
17692         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
17693         rtl.emit instead cfun->emit.
17694         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
17695         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
17696
17697 2008-04-01  Ben Elliston  <bje@au.ibm.com>
17698
17699         * doc/c-tree.texi (Function Basics): Fix grammatical error.
17700
17701 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
17702
17703         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
17704         New options
17705         (fprofile-use): Add var flag_profile_use
17706         * coverage.c (coverage_begin_output): Do not open a gcno file for
17707         output only if -ftest-coverage is set.
17708         Do not add getpwd() to gcda file path.
17709         (build_gcov_info): Check the new flag
17710         flag_profile_datafile_relative_path.
17711         (coverage_init): Use profile_data_prefix.
17712         Read profile counter only if flag_profile_use is set.
17713         * opts.c (common_handle_option): New option fprofile-use=,
17714         fprofile-dir=, fprofile-generate=.
17715         * toplev.c (profile_data_prefix): New variable definition.
17716         * toplev.h (profile_data_prefix): New declaration.
17717         * doc/invoke.tex (Option Summary, Optimization Options):
17718         Add new options.
17719
17720 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
17721
17722         * varasm.c (output_constant_pool_1): In LABEL_REF check,
17723         use tmp consistently.
17724
17725         PR target/35695
17726         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
17727         * config/ia64/ia64.c (rtx_needs_barrier): Handle
17728         UNSPEC_FR_RECIP_APPROX_RES.
17729         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
17730
17731 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
17732
17733         PR c/35750
17734         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
17735
17736 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17737
17738         PR middle-end/30186
17739         * fold-const.c (fold_indirect_ref_1): Support accessing non first
17740         element of the vector via a pointer.
17741
17742 2008-03-31  Ian Lance Taylor  <iant@google.com>
17743
17744         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
17745
17746 2008-03-31  Jan Hubicka  <jh@suse.cz>
17747
17748         * builtins.c (expand_builtin_setjmp_receiver): Update call of
17749         get_arg_pointer_save_area.
17750         * expr.c (init_expr): Just clear out rtl.expr.
17751         * function.c (free_after_compilation): Clear out whole RTL structure.
17752         (get_func_frame_size): Merge into ...
17753         (get_frame_size): ... this one.
17754         (assign_stack_local_1): Merge into ...
17755         (assign_stack_local): ... this one.
17756         (expand_function_end): Update call of get_arg_pointer_save_area.
17757         (get_art_pointer_save_area): Remove cfun argument.
17758         * function.h (emit_status): regno_pointer_align does not need length
17759         attribute. Move x_regno_reg_rtx to ...
17760         (regno_reg_rtx): ... new global array.
17761         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
17762         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
17763         apply_args_value, forced_labels, stack_pointer_delta):
17764         Update accestors.
17765         (struct varasm_status): Move here from varasm.c
17766         (struct rtl_data): New. Move here some fields from struct function.
17767         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
17768         frame_offset, stack_check_probe_note, arg_pointer_save_area,
17769         used_temp_slots avail_temp_slots, temp_slot_level,
17770         nonlocal_goto_handler_labels): Update accesstors.
17771         (rtl): New global variable.
17772         (struct function): Move some fileds to rtl_data.
17773         (get_arg_pointer_save_area): Update prototype.
17774         * emit-rtl.c (rtl): Declare.
17775         (regno_reg_rtx): Declare.
17776         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
17777         Update.
17778         (gen_reg_rtx): Update.
17779         (init_virtual_regs): Do not tate emit_status argument.
17780         (init_emit): Do not allocate emit.
17781         * varasm.c (varasm_statuc): Move to function.h.
17782         (n_deferred_constatns): Update accestor.
17783         (init_varasm_status): Do not allocate varasm_status.
17784         (force_const_mem, get_pool_size, output_constant_pool): Update.
17785         * stmt.c (force_label_rtx): Do not use x_ prefixes.
17786         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
17787
17788 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
17789
17790         PR rtl-optimization/35729
17791         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
17792         references.
17793
17794 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
17795
17796         PR target/32000
17797         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
17798         load/store if memory is unaligned.
17799         (*movti_rex64): Likewise.
17800
17801         * config/i386/predicates.md (misaligned_operand): New.
17802
17803 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
17804
17805         PR tree-opt/35431
17806         * tree-ssa-phiopt.c (conditional_replacement): Return early for
17807         complex types.
17808
17809 2008-03-31  Jan Beulich  <jbeulich@novell.com>
17810
17811         * config/ia64/constraints.md: Add 'j' constraint.
17812         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
17813         (movdi_internal): Likewise.
17814
17815 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
17816
17817         PR c/35748
17818         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
17819
17820 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
17821
17822         PR target/35757
17823         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
17824         proper error message for the third argument on blendpd and
17825         blendps.
17826
17827         * config/i386/sse.md (blendbits): New.
17828         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
17829
17830 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
17831
17832         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
17833
17834 2008-03-30  Richard Guenther  <rguenther@suse.de>
17835
17836         PR middle-end/31023
17837         * fold-const.c (fold_sign_changed_comparison): Do leave
17838         conversions to base-types alone.
17839
17840 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17841
17842         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
17843         the link register if one altivec register is be saved.
17844
17845 2008-03-30  Ben Elliston  <bje@au.ibm.com>
17846
17847         * final.c (final_scan_insn): Remove if (0) code.
17848
17849 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
17850
17851         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
17852
17853 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
17854
17855         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
17856         of V4SFmode to ix86_binary_operator_ok.
17857
17858 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
17859
17860         * config/i386/i386.c (override_options): Initialize
17861         ix86_veclib_handler to ix86_veclibabi_svml when
17862         -mveclibabi=svml is used.
17863         (ix86_veclibabi_svml): New function for SVML ABI style
17864         vectorization support.
17865         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
17866
17867 2008-03-28  Rafael Espíndola  <espindola@google.com>
17868
17869         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
17870         (tree_binary_nonnegative_warnv_p): Make it public.
17871         (tree_single_nonnegative_warnv_p): Make it public.
17872         (tree_invalid_nonnegative_warnv_p): Make it public.
17873         (tree_unary_nonzero_warnv_p): Make it public.
17874         (tree_binary_nonzero_warnv_p): Make it public
17875         (tree_single_nonzero_warnv_p): Make it public.
17876         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
17877         (extract_range_from_binary_expr): Split the expr argument.
17878         (extract_range_from_unary_expr): Split the expr argument.
17879         (extract_range_from_comparison): Split the expr argument.
17880         (extract_range_from_expr): Use the new aux functions.
17881         (vrp_evaluate_conditional_warnv): Use
17882         vrp_evaluate_conditional_warnv_with_ops.
17883         * tree.h (tree_unary_nonzero_warnv_p): Declare.
17884         (tree_binary_nonzero_warnv_p): Declare.
17885         (tree_single_nonzero_warnv_p): Declare.
17886         (tree_expr_nonzero_warnv_p): Declare.
17887         (tree_unary_nonnegative_warnv_p): Declare.
17888         (tree_binary_nonnegative_warnv_p): Declare.
17889         (tree_single_nonnegative_warnv_p): Declare.
17890         (tree_invalid_nonnegative_warnv_p): Declare.
17891
17892 2008-03-28  Richard Guenther  <rguenther@suse.de>
17893
17894         PR tree-optimization/30317
17895         PR tree-optimization/30911
17896         PR tree-optimization/34793
17897         * tree-vrp.c (set_and_canonicalize_value_range): New function.
17898         (struct assert_locus_d): New member EXPR.
17899         (register_new_assert_for): Add EXPR parameter to support
17900         ASSERT_EXPR <name, expr OP limit>.
17901         (register_edge_assert_for_1): Adjust callers.
17902         (find_assert_locations): Likewise.
17903         (process_assert_insertions_for): Build condition from expression.
17904         (extract_range_from_assert): Handle ASSERT_EXPRs
17905         of the form ASSERT_EXPR <name, expr OP limit>.
17906         (register_edge_assert_for_2): New helper registering
17907         asserts for comparisons.  Recognize range tests of the form
17908         (unsigned)i - CST1 OP CST2.
17909         (register_edge_assert_for_1): Use it.
17910         (register_edge_assert_for): Likewise.
17911         (needs_overflow_infinity): Integer sub-types
17912         do not need overflow infinities.
17913         (vrp_val_is_max): The extreme values of integer sub-types
17914         are those of the base type.
17915         (vrp_val_is_min): Likewise.
17916         * tree.def (ASSERT_EXPR): Document extra allowed conditional
17917         expressions.
17918
17919 2008-03-28  Nick Clifton  <nickc@redhat.com>
17920
17921         PR target/31110
17922         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
17923         Return GENERAL_REGS for stack adjustment reloads.
17924
17925 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17926
17927         PR target/31334
17928         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
17929         const_vector when all the vectors are constant.
17930
17931 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
17932
17933         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
17934         comparisons.
17935         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
17936         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
17937         (scc_sf): New.
17938         (s<code>_sf): Use new scc_sf attribute for opcode names.
17939
17940 2008-03-27  Tom Tromey  <tromey@redhat.com>
17941
17942         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
17943         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
17944         config/spu/t-spu-elf, config/i386/t-interix,
17945         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
17946         config/i386/x-darwin, config/i386/x-mingw32,
17947         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
17948         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
17949         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
17950         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
17951         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
17952         config/rs6000/x-darwin, config/rs6000/t-rs6000,
17953         config/score/t-score-elf, config/arm/t-strongarm-pe,
17954         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
17955         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
17956         Revert automatic dependency patch.
17957
17958 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17959
17960         PR target/35657
17961         * config/i386/i386.c (ix86_function_arg_boundary): Align
17962         decimal floating point to its natural boundary.
17963
17964 2008-03-27  Richard Guenther  <rguenther@suse.de>
17965
17966         PR middle-end/35716
17967         * fold-const.c (fold_comparison): Restrict distinct decl
17968         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
17969         solely rely on operand_equal_p.
17970
17971 2008-03-27  Richard Guenther  <rguenther@suse.de>
17972
17973         PR c/32511
17974         * c-common.c (handle_weak_attribute): Reject combination of
17975         weak and inline.
17976
17977 2008-03-27  Richard Guenther  <rguenther@suse.de>
17978
17979         PR tree-optimization/32810
17980         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
17981         conversions from DECL_INITIAL.
17982         (fold_const_aggregate_ref): Likewise from constructor elements.
17983
17984 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
17985
17986         * tree-affine.h (aff_combination_expand): Declare.
17987         (get_inner_reference_aff): Likewise.
17988         * tree-affine.c (aff_combination_expand): Split out from
17989         tree_to_aff_combination_expand.
17990         (get_inner_reference_aff): New function.
17991         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
17992         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
17993         (struct lim_aux_data): sm_done field removed.
17994         (mem_ref_loc_p, mem_ref_locs_p): New types.
17995         (struct mem_ref): Added id, stored, accesses_in_loop,
17996         indep_loop, dep_loop, indep_ref, dep_ref fields.
17997         Removed is_stored, locs and next fields.
17998         (memory_accesses): New variable.
17999         (movement_possibility): Do not allow moving statements
18000         that store to memory.
18001         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
18002         New functions.
18003         (determine_max_movement): For statements with memory references,
18004         find the outermost loop in that the reference is independent.
18005         (move_computations_stmt): Mark the virtual operands for renaming.
18006         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
18007         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
18008         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
18009         add_vop_ref_mapping, create_vop_ref_mapping_loop,
18010         create_vop_ref_mapping, analyze_memory_references,
18011         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
18012         get_all_locs_in_loop, ref_always_accessed_p,
18013         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
18014         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
18015         store_motion_loop, store_motion): New functions.
18016         (struct vop_to_refs_elt): New type.
18017         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
18018         memref_hash, memref_eq, hoist_memory_references): Rewritten.
18019         (schedule_sm): Replaced by...
18020         (execute_sm): ... this.
18021         (determine_lsm_ref, hoist_memory_references,
18022         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
18023         find_more_ref_vops, free_mem_ref, free_mem_refs,
18024         determine_lsm_loop, determine_lsm): Removed.
18025         (tree_ssa_lim_finalize): Free data structures used by store motion.
18026         (tree_ssa_lim): Call analyze_memory_references.  Use
18027         store_motion instead of determine_lsm.
18028
18029 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
18030
18031         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
18032         rename tmake_file to m68hc11/t-m68hc11.
18033         (mcore): Set inhibit_libc to true.
18034         * config.host (alpha*-dec-*vms*): Set extra_programs.
18035         (interix3*): Don't use host_xmake_file.
18036         * configure.ac: Let config.gcc override inhibit_libc.
18037         * configure: Regenerate.
18038
18039         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
18040         * config/t-openbsd-thread: Remove commented out lines.
18041
18042         * config/x-interix: Remove.
18043
18044         * config/m68hc11/t-m68hc11-gas: Rename to...
18045         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
18046
18047         * config/mcore/t-mcore: Remove T_CFLAGS.
18048         * config/mcore/t-mcore-pe: Likewise.
18049
18050 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
18051
18052         * configure.ac: Replace custom __GNU_SOURCE test with
18053         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
18054         * aclocal.m4: Regenerate.
18055         * configure: Regenerate.
18056         * config.in: Regenerate.
18057
18058 2008-03-27  Richard Guenther  <rguenther@suse.de>
18059
18060         * fold-const.c (target.h): Include.
18061         (fold_comparison): Fold comparison of addresses of decls
18062         that bind locally or of constants.  Consolidate address folding code.
18063         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
18064         results from fold_binary_to_constant.
18065         (compare_values_warnv): Likewise.
18066
18067 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
18068
18069         PR middle-end/35429
18070         * fold-const.c (fold_truthop): Check for integeral types when folding
18071         a == 0 && b == 0 and a != 0 || b != 0 .
18072
18073 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
18074
18075         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
18076
18077 2008-03-26  Andreas Schwab  <schwab@suse.de>
18078
18079         * doc/invoke.texi: Fix use of @item vs. @itemx.
18080
18081 2008-03-26  Tom Tromey  <tromey@redhat.com>
18082
18083         * Makefile.in (build/gensupport.o, build/print-rtl.o,
18084         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
18085         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
18086         build/gencodes.o, build/genconditions.o, build/genconfig.o,
18087         build/genconstants.o, build/genemit.o, build/genextract.o,
18088         build/genflags.o, build/genmddeps.o, build/genopinit.o,
18089         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
18090         options.h.
18091
18092 2008-03-26  Richard Guenther  <rguenther@suse.de>
18093
18094         Revert
18095         2008-03-26  Richard Guenther  <rguenther@suse.de>
18096
18097         * fold-const.c (target.h): Include.
18098         (fold_comparison): Fold comparison of addresses of two decls
18099         that bind locally.  Consolidate address folding code.
18100
18101 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18102
18103         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
18104         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
18105         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
18106         dconstsqrt2, dconstthird, dconste and/or dconst10.
18107         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
18108         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
18109         dconstsqrt2, dconste): Delete.
18110         (init_emit_once): Likewise.  Simplify initializing dconstm1.
18111         Constify variable.
18112         * real.c (get_real_const): New.
18113         * real.h (dconst3, dconst10, dconstm2, dconstthird,
18114         dconstsqrt2, dconste): Delete.
18115         (real_value_const, get_real_const): New.
18116
18117 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18118
18119         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
18120
18121         * config/i386/i386.c (ix86_function_arg_boundary): Check
18122         BIGGEST_ALIGNMENT instead of 128.
18123         (setup_incoming_varargs_64): Likewise.
18124
18125 2008-03-26  Tom Tromey  <tromey@redhat.com>
18126
18127         * Makefile.in (DEPFILES): Add missing '/'.
18128
18129 2008-03-26  Richard Guenther  <rguenther@suse.de>
18130
18131         * fold-const.c (target.h): Include.
18132         (fold_comparison): Fold comparison of addresses of two decls
18133         that bind locally.  Consolidate address folding code.
18134
18135 2008-03-26  Nick Clifton  <nickc@redhat.com>
18136
18137         PR target/31232
18138         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
18139         not allow INT+INT as a legitimate addressing mode.
18140
18141 2008-03-26  Richard Guenther  <rguenther@suse.de>
18142
18143         * tree-flow.h (widen_bitfield): Remove declaration.
18144         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
18145         (widen_bitfield): Remove function.
18146         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
18147         code.
18148
18149 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18150
18151         PR target/31558
18152         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
18153         error_mark_node's.
18154
18155 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
18156
18157         PR rtl-optimization/35232
18158         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
18159         (forget_old_reloads_1, forget_marked_reloads): Don't clear
18160         reg_reloaded_call_part_clobbered here.
18161         (reload_regs_reach_end_p): New function.
18162         (reload_reg_rtx_for_input): New variable.
18163         (reload_reg_rtx_for_output): Likewise.
18164         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
18165         when reassigning a pseudo register.  Load reloadreg from
18166         reload_reg_rtx_for_input, moving the mode and register
18167         calculation to...
18168         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
18169         instead of the original when deciding whether an input reload
18170         would be a no-op or whether an output reload can be deleted.
18171         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
18172         when setting up new_spill_reg_store.  Load it from
18173         reload_reg_rtx_for_output, moving the mode and register
18174         calculation to...
18175         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
18176         instead of the original when deciding whether an output reload
18177         would be a no-op.  Do the same when modifying insn notes.
18178         Use rtx_equal_p instead of == to compare the registers.
18179         (inherit_piecemeal_p): Take a mode and two register numbers
18180         as argument.
18181         (emit_reload_insns): Clear new_spill_reg_store for every hard
18182         register in the reload register.  Remove spill registers
18183         from reg_reloaded_valid before considering whether to record
18184         inheritance information for them.  Use reload_reg_rtx_for_output
18185         instead of reg_rtx when recording output reloads.  Use
18186         reload_reg_rtx_for_input instead of reg_rtx when recording
18187         input reloads.  Set or clear reg_reloaded_call_part_clobbered
18188         at the same time as setting reg_reloaded_valid.
18189         (delete_output_reload): Add a new_reload_reg parameter and use it
18190         instead of rld[j].reg_rtx.
18191         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
18192         calls accordingly.
18193
18194 2008-03-25  Tom Tromey  <tromey@redhat.com>
18195
18196         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
18197         (build/genattr.o): Likewise.
18198         (build/genattrtab.o): Likewise.
18199         (build/gencodes.o): Likewise.
18200         (build/genconfig.o): Likewise.
18201         (build/genconstants.o): Likewise.
18202         (build/genemit.o): Likewise.
18203         (build/genextract.o): Likewise.
18204         (build/genflags.o): Likewise.
18205
18206 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
18207
18208         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
18209         instead of size_int for integer types.
18210         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
18211         to match type of MINUS_EXPR.
18212
18213 2008-03-25  Tom Tromey  <tromey@redhat.com>
18214
18215         * configure: Rebuilt.
18216         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
18217         Makefile.
18218
18219 2008-03-25  Tom Tromey  <tromey@redhat.com>
18220
18221         * config/x-solaris (host-solaris.o): Update.
18222         * config/x-linux (host-linux.o): Update.
18223         * config/x-hpux (host-hpux.o): Update.
18224         * config/x-darwin (host-darwin.o): Update.
18225         * config/v850/t-v850e (v850-c.o): Update.
18226         * config/v850/t-v850 (v850-c.o): Update.
18227         * config/t-vxworks (vxworks.o): Update.
18228         * config/t-sol2 (sol2-c.o, sol2.o): Update.
18229         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
18230         * config/spu/t-spu-elf (spu-c.o): Update.
18231         (spu.o): Remove.
18232         * config/sh/t-symbian (sh-c.o): Update.
18233         (symbian.o): Update.
18234         * config/sh/t-sh (sh-c.o): Update.
18235         * config/score/t-score-elf (score7.o, score3.o): Update.
18236         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
18237         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
18238         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
18239         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
18240         (rs6000.o): Remove.
18241         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
18242         * config/m32c/t-m32c (m32c-pragma.o): Update.
18243         * config/ia64/t-ia64 (ia64-c.o): Update.
18244         * config/i386/x-mingw32 (host-mingw32.o): Update.
18245         * config/i386/x-i386 (driver-i386.o): Update.
18246         * config/i386/x-darwin (host-i386-darwin.o): Update.
18247         * config/i386/x-cygwin (host-cygwin.o): Update.
18248         * config/i386/t-nwld (nwld.o): Update.
18249         * config/i386/t-netware (netware.o): Update.
18250         * config/i386/t-interix (winnt.o): Update.
18251         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
18252         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
18253         msformat-c.o): Update.
18254         * config/bfin/t-bfin-linux (generated_files): Add
18255         linux-sysroot-suffix.h.
18256         * config/arm/t-wince-pe (pe.o): Update.
18257         * config/arm/t-strongarm-pe (pe.o): Update.
18258         * config/arm/t-pe (pe.o): Update.
18259         * config/arm/t-arm (arm-c.o): Update.
18260         * doc/install.texi (Prerequisites): Require make 3.80.
18261         * Makefile.in: Remove .o targets.
18262         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
18263         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
18264         (simple_generated_h, simple_generated_c): Move earlier.
18265         (generated_files): New variable.
18266         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
18267         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
18268         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
18269         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
18270         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
18271         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
18272         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
18273         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
18274         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
18275         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
18276         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
18277         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
18278         (.c.o): Remove.
18279         (COMPILE.base, COMPILE): New variables.
18280         (%.o): New pattern rule.
18281         (ALL_HOST_OBJS): New variable.
18282         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
18283         (dummy-checksum.o, cc1-checksum.o): Remove.
18284         (DRIVER_SHLIB): New variable.
18285         (DRIVER_DEFINES): Use it.
18286         (gencondmd.c): Move out of build/.
18287         (s-conditions): Update.
18288         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
18289         (ALL_BUILD_OBJS): Likewise.
18290         (build/%.o): Use BUILDCOMPILE.
18291         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
18292         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
18293         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
18294         build/gencheck.o, build/gencodes.o, build/genconditions.o,
18295         build/genconfig.o, build/genconstants.o, build/genemit.o,
18296         build/genextract.o, build/genflags.o, build/genmddeps.o,
18297         build/genopinit.o, build/genoutput.o, build/genpeep.o,
18298         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
18299         build/gen-protos.o, build/scan.o, build/fix-header.o,
18300         build/scan-decls.o): Simplify.
18301         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
18302         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
18303         prefix.o, toplev.o): Reduce to variable setting.
18304         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
18305         ($(out_object_file), gcc-options.o): New targets.
18306         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
18307         * configure: Rebuilt.
18308         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
18309         * doc/sourcebuild.texi (Front End Directory): Document new variable.
18310
18311 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
18312
18313         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
18314         complain when we hit an error, return ERROR_MARK_NODE.
18315
18316 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
18317
18318         * config/sh/constraints.md (Pso, Psz): New constraints.
18319         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
18320         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
18321
18322 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
18323
18324         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
18325         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
18326
18327 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
18328
18329         * config/sh/sh.md (prefetch): Add condition for SH2A target.
18330         (prefetch_sh2a): New.
18331
18332 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
18333             Naveen.H.S  <naveen.hs@kpitcummins.com>
18334
18335         * config/sh/constraints.md (I28): New constraint.
18336         * config/sh/sh.c (broken_move): Add support for movi20s.
18337         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
18338
18339 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
18340             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
18341             Naveen.H.S  <naveen.hs@kpitcummins.com>
18342
18343         * config/sh/sh.c (SH_ATTRIBUTES): Define.
18344         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
18345         (print_operand): Handle resbank in %@ operand code.
18346         (sh_encode_section_info): New.
18347         (push_regs): Add conditions for resbank.
18348         (sh_expand_epilogue): Likewise.
18349         (sh_insert_attributes): Likewise.
18350         (sh_attribute_table): Likewise.
18351         (sh_handle_resbank_handler_attribute): New.
18352         (sh2a_handle_function_vector_handler_attribute): New.
18353         (sh2a_is_function_vector_call): New.
18354         (sh2a_get_function_vector_number): New.
18355         (sh2a_function_vector_p): New.
18356         (sh_cfun_resbank_handler_p): New.
18357         * config/sh/sh.md (calli): Emit jsr/n if possible.
18358         (calli_tbr_rel): New.
18359         (calli_pcrel): Emit jsr/n if possible.
18360         (return_i): Emit rts/n if possible.
18361         (call_valuei_tbr_rel): New.
18362         (call_valuei_pcrel): Add condition for SH2A target.
18363         (call_value): Likewise.
18364         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
18365         (sh2a_get_function_vector_number): Likewise.
18366         (sh2a_is_function_vector_call): Likewise.
18367         * doc/extend.texi: Document TBR relative addressing of SH2A.
18368         (resbank): Add description for SH2A.
18369
18370 2008-03-24  Richard Guenther  <rguenther@suse.de>
18371
18372         PR c/22371
18373         * gimplify.c (gimplify_modify_expr): For frontend type-correct
18374         pointer assignments change conversions according to middle-end rules.
18375         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
18376         * configure.ac: Include type checking in yes.
18377         * configure: Regenerate.
18378
18379 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18380
18381         * diagnostic.c (diagnostic_count_diagnostic): Delete.
18382         (diagnostic_report_diagnostic): Update. Handle ICEs here.
18383
18384 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
18385
18386         * gthr-vxworks.h (UNUSED): Define.
18387
18388 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
18389
18390         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
18391
18392 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
18393
18394         * doc/extend.texi (Function Attributes): Add missing comma in the
18395         example of the "alloc_size" attribute.
18396
18397 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
18398
18399         Revert:
18400         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
18401
18402         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
18403         32bit host.
18404
18405         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
18406
18407         PR target/35496
18408         * stor-layout.c (update_alignment_for_field): Set minimum alignment
18409         of the underlying type of a MS bitfield layout to the natural
18410         alignment of the type.
18411
18412         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
18413
18414         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18415         to their natural alignment to avoid store forwarding stalls.
18416
18417 2008-03-22  Richard Guenther  <rguenther@suse.de>
18418
18419         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
18420         For PHI nodes verify the address is invariant.
18421         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
18422         (get_symbol_constant_value): Use is_gimple_min_invariant.
18423         (maybe_fold_stmt_indirect): Likewise.
18424
18425 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
18426
18427         PR rtl-optimization/33927
18428         * Makefile.in (dse.o): Depend on $(TM_P_H).
18429         * expr.h (extract_low_bits): Declare.
18430         * expmed.c (extract_low_bits): New function.
18431         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
18432         * dse.c: Include tm_p.h.
18433         (find_shift_sequence): Remove the read_reg argument and return the
18434         read value.  Emit the instructions instead of returning them.
18435         Iterate on new_mode rather than calculating it each time.
18436         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
18437         source to NEW_MODE and extract_low_bits to convert the shifted
18438         value to READ_MODE.
18439         (replace_read): Allow the load and store to have different mode
18440         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
18441         or extraction instructions before trying the replacement.  Update
18442         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
18443
18444 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
18445
18446         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18447         to their natural alignment to avoid store forwarding stalls.
18448
18449 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18450
18451         PR target/27946
18452         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
18453         encouraging but not allowing gprs for input;
18454         change the input constraint to !f#r.
18455         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
18456         gprs for output;
18457         change the output constraint to !f#r.
18458
18459 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
18460
18461         PR target/13958
18462         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
18463         corresponding post-reload splitters.
18464         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
18465         when x87 FP math is selected.
18466         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
18467         New function prototype.
18468         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
18469         unreachable function to ease macroization of insn patterns.
18470
18471 2008-03-21  Martin Jambor  <mjambor@suse.cz>
18472
18473         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
18474         reference dumps if ddr is NULL or dependence is unknown.
18475
18476 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18477
18478         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
18479         unsigned extension into account.
18480         (ATOMIC_COMPARE_AND_SWAP): Likewise.
18481         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
18482         Do computations on a scratch register.
18483
18484 2008-03-21  Richard Guenther  <rguenther@suse.de>
18485
18486         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
18487         Use is_gimple_min_invariant instead of TREE_INVARIANT.
18488         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
18489         * tree-ssa-dom.c (record_equality): Likewise.
18490         * tree-inline.c (copy_body_r): Likewise.
18491         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
18492         TREE_INVARIANT.
18493
18494 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18495
18496         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
18497         as 'delete_unused' argument.
18498
18499 2008-03-20  Richard Guenther  <rguenther@suse.de>
18500
18501         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
18502         special casing of constant qualifiers.
18503         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
18504         care about them in general.
18505         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
18506         regardless of their type.
18507         (fold_stmt_r): Forcefully fold *& if we end up with that.
18508
18509 2008-03-20  Paul Brook  <paul@codesourcery.com>
18510
18511         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
18512         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
18513         linker flags.
18514         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
18515         definition.
18516         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
18517         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
18518
18519 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
18520
18521         * common.opt (Wmudflap): New option.
18522         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
18523         (mx_register_decls): Likewise.
18524         (mudflap_finish_file): Likewise.
18525         * doc/invoke.texi: Document -Wno-mudflap.
18526
18527 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
18528
18529         * c-format.c (replace_format_name_to_system_name): New.
18530         (cmp_attribs): New.
18531         (convert_format_name_to_system_name): New.
18532         (decode_format_attr): Add use of convert_format_name_to_system_name.
18533         (format_types_orig): Add gnu_ prefix to names.
18534         (check_format_info_main): Special treating of \0 escaped names for
18535         supporting multi-character format specifiers as I32, I64.
18536         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
18537         (gnu_target_overrides_format_attributes): New.
18538         * c-format.h: Add structure target_ovr_attr to hold
18539         system specific formatter names.
18540         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
18541         msformat-c.o file to c_target_objs and cxx_target_objs.
18542         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18543         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
18544         (TARGET_N_FORMAT_TYPES): New.
18545         * config/i386/msformat-c.c: New.
18546         * config/i386/t-cygming: Add build rule for msformat-c.o.
18547         * doc/extend.texi: Add new format names gnu_* and ms_* and
18548         further details.
18549         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18550
18551 2008-03-20  Ira Rosen  <irar@il.ibm.com>
18552
18553         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
18554         optimizations turned on under -O3.
18555         (ftree-vectorize): Add that the flag is turned on with -O3.
18556
18557 2008-03-20  Ben Elliston  <bje@au.ibm.com>
18558
18559         * regmove.c (try_auto_increment): Fix spelling error in comment.
18560         * final.c (final_scan_insn): Likewise.
18561
18562 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
18563
18564         PR target/14552
18565         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
18566         allocator preferences for "y" and "r" class registers.
18567         ("*mov<mode>_internal"): Ditto.
18568         ("*movv2sf_internal_rex64"): Ditto.
18569         ("*movv2sf_internal"): Ditto.
18570
18571 2008-03-19  Michael Matz  <matz@suse.de>
18572
18573         PR middle-end/35616
18574         * calls.c (expand_call): Check overlap of arguments with call
18575         address for sibcalls.
18576
18577 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
18578
18579         PR target/35496
18580         * stor-layout.c (update_alignment_for_field): Set minimum alignment
18581         of the underlying type of a MS bitfield layout to the natural
18582         alignment of the type.
18583
18584 2008-03-19  Jan Hubicka  <jh@suse.cz>
18585
18586         PR other/35094
18587         * toplev.c (decode_d_option): Handle all CPP flags.
18588         * tree-vrp.c: Update tree_pass descriptors.
18589         * regrename.c: Update tree_pass descriptors.
18590         * fwprop.c: Update tree_pass descriptors.
18591         * doc/invoke.texi: Remove documentation of dropped -d? flags.
18592         * tree-into-ssa.c: Update tree_pass descriptors.
18593         * tree-dump.c: Update tree_pass descriptors.
18594         * tree-complex.c: Update tree_pass descriptors.
18595         * tree-dump.h: Update tree_pass descriptors.
18596         * see.c: Update tree_pass descriptors.
18597         * cgraphbuild.c: Update tree_pass descriptors.
18598         * tracer.c: Update tree_pass descriptors.
18599         * tree-loop-distribution.c: Update tree_pass descriptors.
18600         * cgraph.c: Update tree_pass descriptors.
18601         * postreload-gcse.c: Update tree_pass descriptors.
18602         * postreload.c: Update tree_pass descriptors.
18603         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
18604         * tree-tailcall.c: Update tree_pass descriptors.
18605         * tree-pass.h (tree_opt_pass): Rename to ...
18606         (opt_pass) ... this one; add "type" field and remove letter field.
18607         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
18608         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
18609         all_lowering_passes): Update declaration.
18610         * ipa-cp.c: Update tree_pass descriptors.
18611         * final.c: Update tree_pass descriptors.
18612         * omp-low.c: Update tree_pass descriptors.
18613         * tree-ssa-dse.c: Update tree_pass descriptors.
18614         * ipa-reference.c: Update tree_pass descriptors.
18615         * tree-ssa-uncprop.c: Update tree_pass descriptors.
18616         * auto-inc-dec.c: Update tree_pass descriptors.
18617         * reorg.c: Update tree_pass descriptors.
18618         * cgraphunit.c: Update tree_pass descriptors.
18619         * tree-ssa-copyrename.c: Update tree_pass descriptors.
18620         * tree-ssa-ccp.c: Update tree_pass descriptors.
18621         * df-core.c: Update tree_pass descriptors.
18622         * mode-switching.c: Update tree_pass descriptors.
18623         * tree-nomudflap.c: Update tree_pass descriptors.
18624         * modulo-sched.c: Update tree_pass descriptors.
18625         * ipa-pure-const.c: Update tree_pass descriptors.
18626         * cse.c: Update tree_pass descriptors.
18627         * web.c: Update tree_pass descriptors.
18628         * tree-stdarg.c: Update tree_pass descriptors.
18629         * tree-ssa-math-opts.c: Update tree_pass descriptors.
18630         * tree-ssa-dom.c: Update tree_pass descriptors.
18631         * tree-nrv.c: Update tree_pass descriptors.
18632         * tree-ssa-alias.c: Update tree_pass descriptors.
18633         * loop-init.c: Update tree_pass descriptors.
18634         * gimple-low.c: Update tree_pass descriptors.
18635         * ipa-inline.c: Update tree_pass descriptors.
18636         * tree-ssa-sink.c: Update tree_pass descriptors.
18637         * global.c: Update tree_pass descriptors.
18638         * ifcvt.c: Update tree_pass descriptors.
18639         * jump.c: Update tree_pass descriptors.
18640         * predict.c: Update tree_pass descriptors.
18641         * tree-ssa-loop.c: Update tree_pass descriptors.
18642         * recog.c: Update tree_pass descriptors.
18643         * dse.c: Update tree_pass descriptors.
18644         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
18645         * tree-eh.c: Update tree_pass descriptors.
18646         * regmove.c: Update tree_pass descriptors.
18647         * local-alloc.c
18648         * function.c: Update tree_pass descriptors.
18649         * tree-vectorizer.c: Update tree_pass descriptors.
18650         * gcse.c: Update tree_pass descriptors.
18651         * ipa-type-escape.c: Update tree_pass descriptors.
18652         * tree-if-conv.c: Update tree_pass descriptors.
18653         * init-regs.c: Update tree_pass descriptors.
18654         * ipa.c: Update tree_pass descriptors.
18655         * tree-ssa-phiopt.c: Update tree_pass descriptors.
18656         * rtl-factoring.c: Update tree_pass descriptors.
18657         * lower-subreg.c: Update tree_pass descriptors.
18658         * bt-load.c: Update tree_pass descriptors.
18659         * tree-dfa.c: Update tree_pass descriptors.
18660         * except.c: Update tree_pass descriptors.
18661         * emit-rtl.c: Update tree_pass descriptors.
18662         * cfgexpand.c: Update tree_pass descriptors.
18663         * tree-cfgcleanup.c: Update tree_pass descriptors.
18664         * cfgcleanup.c: Update tree_pass descriptors.
18665         * tree-ssa-pre.c: Update tree_pass descriptors.
18666         * tree-sra.c: Update tree_pass descriptors.
18667         * tree-mudflap.c: Update tree_pass descriptors.
18668         * tree-ssa-copy.c: Update tree_pass descriptors.
18669         * cfglayout.c: Update tree_pass descriptors.
18670         * tree-ssa-forwprop.c: Update tree_pass descriptors.
18671         * tree-ssa-dce.c: Update tree_pass descriptors.
18672         * tree-ssa.c: Update tree_pass descriptors.
18673         * regclass.c: Update tree_pass descriptors.
18674         * integrate.c: Update tree_pass descriptors.
18675         * tree-optimize.c: Update tree_pass descriptors.
18676         * tree-ssa-phiprop.c: Update tree_pass descriptors.
18677         * tree-object-size.c: Update tree_pass descriptors.
18678         * combine.c: Update tree_pass descriptors.
18679         * tree-outof-ssa.c: Update tree_pass descriptors.
18680         * bb-reorder.c: Update tree_pass descriptors.
18681         * stack-ptr-mod.c: Update tree_pass descriptors.
18682         * var-tracking.c: Update tree_pass descriptors.
18683         * tree-profile.c: Update tree_pass descriptors.
18684         * tree-vect-generic.c: Update tree_pass descriptors.
18685         * reg-stack.c: Update tree_pass descriptors.
18686         * sched-rgn.c: Update tree_pass descriptors.
18687         * tree-ssa-structalias.c: Update tree_pass descriptors.
18688         * tree-cfg.c: Update tree_pass descriptors.
18689         * passes.c (current_pass): Update declaration.
18690         (finish_optimization_passes): Update.
18691         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
18692         (register_one_dump_file, register_dump_files_1, next_pass_1):
18693         Update arguments.
18694         (init_optimization_passes): Update handling of new types.
18695         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
18696         * ipa-struct-reorg.c: Update tree_pass descriptors.
18697         * tree-ssa-reassoc.c: Update tree_pass descriptors.
18698         * combine-stack-adj.c: Update tree_pass descriptors.
18699         * cfgrtl.c: Update tree_pass descriptors.
18700         * dce.c: Update tree_pass descriptors.
18701         * tree-ssanames.c: Update tree_pass descriptors.
18702
18703 2008-03-19  Richard Guenther  <rguenther@suse.de>
18704
18705         PR middle-end/35609
18706         * tree-ssa.c (walk_data): New structure.
18707         (warn_uninitialized_var): If not always_executed warn with "maybe"
18708         instead of "is".
18709         (execute_early_warn_uninitialized): Compute post-dominators.
18710         Initialize always_executed before processing each basic block.
18711
18712 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
18713
18714         PR target/35504
18715         * config/i386/i386.c (x86_this_parameter): Calculate correct location
18716         of "this" pointer when "regparm = N" or "fastcall" is in effect.
18717
18718 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18719
18720         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
18721
18722 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
18723
18724         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
18725         is true.
18726         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
18727         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
18728         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
18729         target after ignore has been set, and move there also the commputation
18730         of subtarget and original_target.
18731         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
18732         (LANG_HOOKS_INITIALIZER): Remove it.
18733         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
18734
18735 2008-03-18  Richard Guenther  <rguenther@suse.de>
18736
18737         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
18738         found an expression with constants, note that in the VN for the lhs.
18739         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
18740         fold them to constants if possible.  Run cleanup_cfg if done so.
18741         (execute_pre): Return todo.
18742         (do_pre): Likewise.
18743         (execute_fre): Likewise.
18744         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
18745         of constants.
18746         (get_prop_source_stmt): Look through pointer conversions.
18747
18748 2008-03-18  Jan Hubicka  <jh@suse.cz>
18749
18750         * tree-pretty-print.c: Include predict.h.
18751         (dump_generic_node): Dump predictor.
18752         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
18753         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
18754         * gimple-low.c (lower_stmt): Likewise.
18755         * expr.c (expand_expr_real): Likewise.
18756         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
18757         them.
18758         (build_predict_expr, build_predict_expr): New.
18759         * predict.h (predictor_name, build_predict_expr): Update.
18760         * c-typeck.c (c_finish_bc_stmt): Add prediction.
18761         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
18762         * predict.def (PRED_CONTINUE): Update hitrate.
18763         * tree.def (PREDICT_EXPR): Define.
18764         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
18765         do not handle BIND_EXPR.
18766         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
18767         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
18768         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
18769         operands.
18770
18771 2008-03-18  Michael Matz  <matz@suse.de>
18772
18773         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
18774
18775 2008-03-18  Richard Guenther  <rguenther@suse.de>
18776
18777         * tree-gimple.h (is_gimple_invariant_address): Declare.
18778         (is_gimple_constant): Likewise.
18779         * tree-gimple.c (is_gimple_constant): New function.
18780         (is_gimple_invariant_address): Likewise.
18781         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
18782         and is_gimple_invariant_address.
18783         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
18784         previous change.
18785         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
18786         an addressable base.
18787
18788 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
18789
18790         PR middle-end/35611
18791         * gimplify.c (gimplify_expr): Gimplify second operand of
18792         OMP_ATOMIC_LOAD.
18793
18794 2008-03-17  Richard Guenther  <rguenther@suse.de>
18795
18796         PR tree-optimization/19637
18797         * fold-const.c (fold_unary): Remove restrictions of removing
18798         intermediate pointer-conversions (P2)(P1)P0.
18799         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
18800         conversion to void pointer.
18801         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
18802
18803 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
18804
18805         PR debug/31510
18806         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
18807         emulated thread local variables.
18808
18809 2008-03-16  Richard Guenther  <rguenther@suse.de>
18810
18811         PR middle-end/35607
18812         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
18813         expand TREE_INVARIANT operations that are not gimple invariant.
18814
18815 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
18816
18817         * doc/extend.texi (Alignment): Say that the ABI controls
18818         the __alignof__ for non-strict-alignment targets rather
18819         than being a recommendation.
18820
18821 2008-03-15  Paul Brook  <paul@codesourcery.com>
18822
18823         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
18824         annotations.
18825         (arm_output_fn_unwind): Mark functions that can not be unwound.
18826
18827 2008-03-15  Paul Brook  <paul@codesourcery.com>
18828
18829         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
18830         extension instructions.
18831
18832 2008-03-15  Richard Guenther  <rguenther@suse.de>
18833
18834         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
18835         and fold constant aggregate refs.
18836         (fold_const_aggregate_ref): Handle string constants
18837         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
18838         (evaluate_stmt): Simplify now that ccp_fold folds constant
18839         aggregate refs.
18840
18841 2008-03-15  Paul Brook  <paul@codesourcery.com>
18842
18843         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
18844         (extzv): Use gen_extzv_t2.
18845         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
18846
18847 2008-03-15  Richard Guenther  <rguenther@suse.de>
18848
18849         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
18850         (fold_const_aggregate_ref): Likewise.
18851         (get_value): Return NULL if we don't have any values.
18852         (ccp_finalize): Set const_val to NULL after freeing it.
18853         * tree-flow.h (get_symbol_constant_value): Declare.
18854         (fold_const_aggregate_ref): Likewise.
18855         * tree-ssa-sccvn.c (try_to_simplify): Use them.
18856
18857 2008-03-15  Richard Guenther  <rguenther@suse.de>
18858
18859         PR middle-end/35593
18860         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
18861         to not produce negative array indices if not allowed.  Add
18862         parameter to indicate that.
18863         (maybe_fold_offset_to_component_ref): Allow negative array
18864         indices only for the first member of a structure.
18865         (maybe_fold_offset_to_reference): Allow negative array indices.
18866         (maybe_fold_stmt_addition): Likewise.
18867
18868 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
18869             Anatoly Sokolov <aesok@post.ru>
18870
18871         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
18872         (avr_arch): Add ARCH_AVR6.
18873         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
18874         (initial_elimination_offset): Initialize and use 'avr_pc_size'
18875         instead of fixed value 2.
18876         (print_operand_address): Use gs() asm specifier instead of pm().
18877         (avr_assemble_integer): (Ditto.).
18878         (avr_output_addr_vec_elt): (Ditto.).
18879         (print_operand): Handle "!" code.
18880         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
18881         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
18882         (AVR_HAVE_EIJMP_EICALL): Define.
18883         (AVR_3_BYTE_PC): Redefine.
18884         (AVR_2_BYTE_PC): (Ditto.).
18885         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
18886         (LINK_SPEC): Add atmega2560 and atmega2561.
18887         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
18888         (crtm2561.o).
18889         * config/avr/avr.md (call_insn): Use eicall instead of icall
18890         for 3 byte PC devices.
18891         (call_value_insn): (Ditto.).
18892         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
18893         (indirect_jump): Use only for for 2 byte PC devices.
18894         (*tablejump): (Ditto.).
18895         (*indirect_jump_avr6): Add insn.
18896         (*tablejump_rjmp): Don't use for 3 byte PC devices.
18897         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
18898         instead of ijmp for 3 byte PC devices.
18899         (__tablejump2__): (Ditto.).
18900         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
18901         (MULITLIB_DIRNAMES): (Ditto.).
18902         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
18903
18904 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
18905
18906         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
18907         "sse2_umulsidi3".  Use V1DI mode for operand 0.
18908         ("mmx_psadbw"): Use V1DI mode for operand 0.
18909         * config/i386/i386-modes.def (V1SI): New vector mode.
18910         * config/i386/i386.c (struct builtin_description)
18911         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
18912         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
18913         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
18914         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
18915         v1di_ftype_v8qi_v8qi type.
18916         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
18917
18918         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
18919         __builtin_ia32_pmuludq]: Fix the mode of return value.
18920
18921 2008-03-15  Richard Guenther  <rguenther@suse.de>
18922
18923         PR middle-end/35595
18924         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
18925         being a PHI_NODE.
18926
18927 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
18928
18929         * doc/invoke.texi (Option Summary, Xtensa Options): Document
18930         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
18931         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
18932         unless TARGET_SERIALIZE_VOLATILE is enabled.
18933         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
18934         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
18935         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
18936
18937 2008-03-14  Richard Guenther  <rguenther@suse.de>
18938
18939         PR tree-optimization/34172
18940         * tree-flow.h (refs_may_alias_p): Declare.
18941         (get_single_def_stmt): Likewise.
18942         (get_single_def_stmt_from_phi): Likewise.
18943         (get_single_def_stmt_with_phi): Likewise.
18944         * tree-dfa.c (refs_may_alias_p): New function.
18945         (get_single_def_stmt): Likewise.
18946         (get_single_def_stmt_from_phi): Likewise.
18947         (get_single_def_stmt_with_phi): Likewise.
18948         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
18949         (vn_reference_lookup_1): New helper function.
18950         (vn_reference_lookup): Walk the virtual use-def chain to
18951         continue searching for a match if the def does not alias the
18952         reference we are looking for.
18953
18954 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
18955
18956         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
18957         archive and Perzl.  Update The Written Word listing.
18958
18959 2008-03-14  Richard Guenther  <rguenther@suse.de>
18960
18961         PR tree-optimization/34043
18962         PR tree-optimization/33989
18963         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
18964         when doing FRE.
18965         (bitmap_find_leader): Use extra argument to verify dominance
18966         relationship inside a basic-block.
18967         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
18968         (find_leader_in_sets): Adjust.
18969         (create_component_ref_by_pieces): Take extra argument for
18970         dominance check, handle lookup failures.
18971         (find_or_generate_expression): Likewise.
18972         (create_expression_by_pieces): Likewise.
18973         (insert_into_preds_of_block): Adjust.
18974         (create_value_expr_from): If asked for, verify all operands
18975         are in the blocks AVAIL_OUT set.
18976         (make_values_for_stmt): Check for SSA_NAMEs that are life
18977         over an abnormal edge.
18978         (compute_avail): Remove such check.
18979         (do_SCCVN_insertion): New function.
18980         (eliminate): If we do not find a leader suitable for replacement
18981         insert a replacement expression from SCCVN if available.
18982         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
18983         (struct vn_ssa_aux): Add needs_insertion flag.
18984         * tree-ssa-sccvn.c (may_insert): New global flag.
18985         (copy_reference_ops_from_ref): Value-number union member access
18986         based on its size, not type and member if insertion is allowed.
18987         (visit_reference_op_load): For a weak match from union type
18988         punning lookup a view-converted value and insert a SSA_NAME
18989         for that value if that is not found.
18990         (visit_use): Make dumps shorter.  Do not disallow value numbering
18991         SSA_NAMEs that are life over an abnormal edge to constants.
18992         (free_scc_vn): Release inserted SSA_NAMEs.
18993         (run_scc_vn): New flag to specify whether insertion is allowed.
18994         Process SSA_NAMEs in forward order.
18995         * tree-ssa-loop-im.c (for_each_index): Handle invariant
18996         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
18997         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
18998         pointer type to/from integral types that do not change the
18999         precision to regular conversions.
19000
19001 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
19002
19003         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
19004         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
19005         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
19006         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
19007         input arguments and the mode of return value.  Built-in functions
19008         that operate on whole 64-bit MMX register now use V1DI mode.
19009
19010 2008-03-13  Alon Dayan  <alond@il.ibm.com>
19011             Olga Golovanevsky  <olga@il.ibm.com>
19012
19013         PR tree-optimization/35041
19014         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
19015         to locate the right position in a statement.
19016
19017 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
19018
19019         PR target/34000
19020         PR target/35553
19021         * config/i386/xmmintrin.h:  Change all static inline functions to
19022         extern inline and add __gnu_inline__ attribute.
19023         * config/i386/bmintrin.h: Ditto.
19024         * config/i386/smmintrin.h: Ditto.
19025         * config/i386/tmmintrin.h: Ditto.
19026         * config/i386/mmintrin-common.h: Ditto.
19027         * config/i386/ammintrin.h: Ditto.
19028         * config/i386/emmintrin.h: Ditto.
19029         * config/i386/pmmintrin.h: Ditto.
19030         * config/i386/mmintrin.h: Ditto.
19031         * config/i386/mm3dnow.h: Ditto.
19032
19033 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
19034
19035         PR middle-end/35185
19036         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
19037         (lower_omp_2): New function.
19038         (lower_omp_1, lower_omp): Rewritten.
19039
19040 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
19041
19042         PR 35054
19043         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
19044         with the phrase "Microsoft Windows compilers".
19045         (Push/Pop Macro Pragmas): New subsection. Document
19046         #pragma push_macro and pragma pop_macro.
19047
19048 2008-03-12  Paul Brook  <paul@codesourcery.com>
19049
19050         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
19051
19052 2008-03-12  Paul Brook  <paul@codesourcery.com>
19053
19054         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
19055         (thumb2_alusi3_short): Exclude PLUS and MINUS.
19056         (thumb2_addsi_shortim): Rename ...
19057         (thumb2_addsi_short): ... to this.  Allow register operands.
19058         (thumb2_subsi_short): New pattern.
19059         (thumb2_one_cmplsi2_short,
19060         thumb2_negsi2_short): New patterns and peepholes.
19061
19062 2008-03-12  Paul Brook  <paul@codesourcery.com>
19063
19064         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
19065
19066 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
19067
19068         * config/i386/i386.md (int_cond): New code iterator.
19069         (fp_cond): Ditto.
19070         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
19071         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
19072         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
19073         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
19074         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
19075         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
19076         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
19077         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
19078
19079 2008-03-12  Paul Brook  <paul@codesourcery.com>
19080
19081         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
19082         instead of {arm,thumb}_compute_save_reg_mask.
19083         (output_return_instruction): Ditto.
19084         (thumb_unexpanded_epilogue): Ditto.
19085         (thumb1_expand_prologue): Ditto.
19086         (thumb1_output_function_prologue): Ditto.
19087         (arm_set_return_address): Ditto.
19088         (thumb_set_return_address): Ditto.
19089         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
19090         regs to achieve stack alignment.
19091         (thumb1_compute_save_reg_mask): Fix compiler warning.
19092         (arm_output_epilogue): Use offsets->saved_regs_mask.
19093         Adjust stack pointer by poping call clobered registers.
19094         (arm_expand_prologue): Use offsets->saved_regs_mask.
19095         Adjust stack pointer by pushing extra registers.
19096         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
19097
19098 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
19099
19100         PR tree-opt/35422
19101         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
19102         conversion to the operands of a multiplication.
19103
19104 2008-03-12  Richard Guenther  <rguenther@suse.de>
19105
19106         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
19107         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
19108         * timevar.def (TV_TREE_PHIPROP): Add.
19109         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
19110         pass description.  Use TV_TREE_PHIPROP.
19111         * tree-ssa-forwprop.c: Remove phiprop code.
19112
19113 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
19114
19115         PR middle-end/35549
19116         * omp-low.c (maybe_lookup_decl): Constify first argument.
19117         (use_pointer_for_field): Change last argument from bool to
19118         omp_context *.  Disallow shared copy-in/out in nested
19119         parallel if decl is shared in outer parallel too.
19120         (build_outer_var_ref, scan_sharing_clauses,
19121         lower_rec_input_clauses, lower_copyprivate_clauses,
19122         lower_send_clauses, lower_send_shared_vars): Adjust callers.
19123
19124 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
19125             Ira Rosen  <irar@il.ibm.com>
19126
19127         * tree-vectorizer.c (free_stmt_vec_info): New function.
19128         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
19129         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
19130         * tree-vectorizer.h (free_stmt_vec_info): Declare.
19131         * tree-vect-transform.c (vectorizable_conversion): Free
19132         vec_oprnds0 if it was allocated.
19133         (vect_permute_store_chain): Remove unused VECs.
19134         (vectorizable_store): Free VECs that are allocated in the..
19135         function.
19136         (vect_transform_strided_load, vectorizable_load): Likewise.
19137         (vect_remove_stores): Simplify the code.
19138         (vect_transform_loop): Move code to vect_remove_stores().
19139         Call vect_remove_stores() and free_stmt_vec_info().
19140
19141 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19142
19143         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
19144         TARGET_HPUX.  Revise comment.
19145         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
19146         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
19147         Use sr4 variant of `be' instruction when not generating PIC code.
19148         (attr_length_call): Adjust for above change.
19149
19150 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19151
19152         * ipa-reference.c (static_execute): Remove module_statics_const and
19153         associated setting code.
19154
19155 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
19156
19157         PR target/35540
19158         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
19159         predicate for operand 1.
19160         (paritysi2_cmp): Use register_operand predicate for operand 2.
19161         Use earlyclobber modifier for operand 1.  Remove support for
19162         memory operands.
19163         (paritydi2_cmp): Use register_operand predicate for operand 3.
19164         Use earlyclobber modifier for operand 1.  Remove support for
19165         memory operands.
19166
19167 2008-03-11  Paul Brook  <paul@codesourcery.com>
19168             Vladimir Prus  <vladimir@codesourcery.com>
19169
19170         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
19171         (arm_compute_save_reg0_reg12_mask): Always
19172         check if register 11 must be saved.  Always safe hard frame pointer
19173         when frame_pointer_needeed.
19174         (arm_compute_save_reg_mask): Save IP and PC
19175         only with apcs frames.
19176         (arm_output_epilogue): Adjust Thumb2 codepath to
19177         be also invoked and work for ARM non-apcs frames.
19178         (arm_expand_prologue): Don't bother saving IP
19179         for non-apcs frame, since it's not clobbered by
19180         prologue code.  Implement non-apcs frame
19181         layout.
19182
19183 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
19184
19185         PR rtl-optimization/35281
19186         * expr.c (convert_move): Use a new pseudo for the intermediate
19187         from_mode->word_mode result.
19188
19189 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
19190
19191         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
19192         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
19193         * toplev.c (compile_file): Don't call it.
19194
19195 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
19196
19197         PR middle-end/35526
19198         * expr.c (store_expr): Call emit_block_move if the mode
19199         of "temp" RTX is BLKmode.
19200
19201 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19202             Richard Guenther  <rguenther@suse.de>
19203
19204         PR tree-optimization/31358
19205         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
19206         the step with a NULL_TREE.
19207         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
19208         to sizetype if type is a pointer type.
19209         (add_candidate_1): Don't convert the base and step to
19210         the generic type if the orginal type is a pointer type.
19211         (add_iv_value_candidates): Use sizetype for the step
19212         if type is a pointer type.
19213         (cand_value_at): Likewise.
19214         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
19215         for pointer types.
19216         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
19217         Don't convert the tem affine to the type.
19218         (add_elt_to_tree): Use sizetype for the step if a pointer.
19219         Use POINTER_PLUS_EXPR for pointers.
19220         (aff_combination_to_tree): Use sizetype for the step if a
19221         pointer.
19222
19223 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
19224
19225         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
19226         Remove commutativity hint.
19227
19228 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
19229
19230         PR c/35438
19231         PR c/35439
19232         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
19233         errorneous type.  Check that v is a VAR_DECL.
19234
19235         PR middle-end/35099
19236         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
19237
19238 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
19239
19240         PR tree-optimization/35494
19241         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
19242         may be overriden at link and run time.
19243
19244 2008-03-10  Richard Guenther  <rguenther@suse.de>
19245
19246         PR tree-optimization/34677
19247         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
19248         (poolify_tree): Likewise.
19249         (modify_expr_template): Likewise.
19250         (poolify_modify_stmt): Likewise.
19251         (insert_fake_stores): Handle all component-ref style stores
19252         in addition to INDIRECT_REF.  Also handle complex types.
19253         Do not poolify the inserted load.
19254         (realify_fake_stores): Do not rebuild the tree but only
19255         make it a SSA_NAME copy.
19256         (init_pre): Remove initialzation of modify_expr_template.
19257         Do not allocate modify_expr_node_pool.
19258         (fini_pre): Do not free modify_expr_node_pool.
19259
19260 2008-03-10  Paul Brook  <paul@codesourcery.com>
19261
19262         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
19263         to avoid conflicts.
19264
19265 2008-03-10  Paul Brook  <paul@codesourcery.com>
19266             Mark Shinwell  <shinwell@codesourcery.com>
19267
19268         * config/arm/cortex-r4.md: New.
19269         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
19270         insn attributes.
19271         * config/arm/arm.md: Include cortex-r4.md.
19272         (insn): Add smmls, sdiv and udiv values.
19273         (generic_sched): Don't use generic scheduling for Cortex-R4.
19274         (arm_issue_rate): New function.
19275         (TARGET_SCHED_ISSUE_RATE): Define.
19276
19277 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
19278
19279         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
19280
19281 2008-03-10  Richard Guenther  <rguenther@suse.de>
19282
19283         * tree-ssa-pre.c (get_sccvn_value): Simplify.
19284         (compute_avail): Do not add stmt uses to AVAIL_OUT.
19285
19286 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
19287
19288         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
19289         Set default to true.
19290
19291 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19292
19293         * c.opt (Wsynth): Deprecate.
19294         * doc/invoke.texi (Option Summary, Warning Options): Document
19295         -Wno-format-contains-nul.
19296
19297 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
19298
19299         PR target/35496
19300         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
19301         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
19302
19303 2008-03-09  Ira Rosen  <irar@il.ibm.com>
19304
19305         * config/rs6000/rs6000.c (builtin_description): Rename vector
19306         left shift operations.
19307         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
19308         (altivec_vsl<VI_char>): Rename to ...
19309         (ashl<mode>3): ... new name.
19310         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
19311         gen_ashlv4si3.
19312         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
19313
19314 2008-03-08  Richard Guenther  <rguenther@suse.de>
19315
19316         * coverage.h (tree_coverage_counter_addr): Declare.
19317         * coverage.c (tree_coverage_counter_addr): New function.
19318         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
19319         before using again.
19320         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
19321         (tree_gen_one_value_profiler): Likewise.
19322         (tree_gen_ic_profiler): Likewise.
19323         (tree_gen_average_profiler): Likewise.
19324         (tree_gen_ior_profiler): Likewise.
19325
19326 2008-03-08  Richard Guenther  <rguenther@suse.de>
19327
19328         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
19329         (vn_binary_op_insert): Likewise.
19330         (vn_unary_op_lookup): Likewise.
19331         (vn_unary_op_insert): Likewise.
19332         (vn_nary_op_lookup): Declare.
19333         (vn_nary_op_insert): Likewise.
19334         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
19335         and binary hashes, use a single obstack for unary_op_pool
19336         and binary_op_pool.
19337         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
19338         a single struct vn_nary_op_s.  Store tree code length and
19339         a variable number of operands.
19340         (struct vn_reference_op_struct): Remove unused op2.
19341         (vn_reference_op_eq): Do not compare op2.
19342         (vn_reference_op_compute_hash): Do not compute hash of op2.
19343         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
19344         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
19345         with vn_nary_op_compute_hash.
19346         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
19347         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
19348         vn_nary_op_lookup.
19349         (vn_unary_op_insert, vn_binary_op_insert): Replace with
19350         vn_nary_op_insert.
19351         (visit_unary_op): Call nary functions.
19352         (visit_binary_op): Likewise.
19353         (process_scc): Adjust for struct vn_tables_s changes.
19354         (allocate_vn_table): Likewise.
19355         (free_vn_table): Likewise.
19356         * tree-vn.c (vn_add): Call nary functions.
19357         (vn_lookup): Likewise.
19358
19359 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
19360
19361         PR target/35498
19362         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
19363         wdst back after sync_compare_and_swapqhi_internal.
19364
19365 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
19366
19367         PR target/22152
19368         * config/i386/i386-modes.def (V1DI): New vector mode.
19369         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
19370         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
19371         (MMXMODE248): Ditto.
19372         (MMXMODE): Add V1DI mode.
19373         (mmxvecsize): Change DI mode to V1DI mode.
19374         ("mov<mode>): Use MMXMODEI8 mode iterator.
19375         ("*mov<mode>_internal_rex64"): Ditto.
19376         ("*mov<mode>_internal"): Ditto.
19377         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
19378         ("mmx_sub<mode>3"): Ditto.
19379         ("mmx_adddi3"): Remove insn pattern.
19380         ("mmx_subdi3"): Ditto.
19381         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
19382         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
19383         ("mmx_ashl<mode>3"): Ditto.
19384         ("mmx_lshrdi3"): Remove insn pattern.
19385         ("mmx_ashldi3"): Ditto.
19386         * config/i386/i386.c (classify_argument): Handle V1DImode.
19387         (function_arg_advance_32): Ditto.
19388         (function_arg_32): Ditto.
19389         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
19390         mmx_addv1di3 insn pattern.
19391         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
19392         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
19393         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
19394         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
19395         Remove definitions of built-in functions.
19396         (V1DI_type_node): New node.
19397         (v1di_ftype_v1di_int): Ditto.
19398         (v1di_ftype_v1di_v1di): Ditto.
19399         (v2si_ftype_v2si_si): Ditto.
19400         (v4hi_ftype_v4hi_di): Remove node.
19401         (v2si_ftype_v2si_di): Ditto.
19402         (ix86_init_mmx_sse_builtins): Handle V1DImode.
19403         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
19404         Redefine builtins using def_builtin_const with *_ftype_*_int node.
19405         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
19406         Add new builtins using def_builtin_const.
19407         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
19408         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
19409         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
19410         * config/i386/mmintrin.h (__v1di): New typedef.
19411         (_mm_add_si64): Cast arguments to __v1di type.
19412         (_mm_sub_si64): Ditto.
19413         (_mm_sll_pi16): Cast __count to __v4hi type.
19414         (_mm_sll_pi32): Cast __count to __v2si type.
19415         (_mm_sll_si64): Cast arguments to __v1di type.
19416         (_mm_srl_pi16): Cast __count to __v4hi type.
19417         (_mm_srl_pi32): Cast __count to __v2si type.
19418         (_mm_srl_si64): Cast arguments to __v1di type.
19419         (_mm_sra_pi16): Cast __count to __v4hi type.
19420         (_mm_sra_pi32): Cast __count to __v2si type.
19421         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
19422         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
19423         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
19424         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
19425         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
19426         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
19427         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
19428         (_mm_srai_pi32): Use __builtin_ia32_psradi.
19429         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
19430         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
19431         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
19432         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
19433
19434 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
19435
19436         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
19437
19438 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
19439
19440         PR target/35373
19441         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
19442         reg+const addressing for Altivec modes.  Don't generate reg+reg
19443         addressing for TFmode or TDmode quantities.
19444
19445 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
19446
19447         * c-common.c (vector_types_convertible_p): Call langhook
19448         instead of comptypes.
19449
19450 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19451
19452         PR tree-opt/35402
19453         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
19454         integral and scalar float variables which have a
19455         NULL DECL_INITIAL.
19456
19457 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
19458
19459         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
19460         dwarf_register_span hook when emitting unwind information for
19461         register-to-memory saves.
19462         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
19463         (rs6000_frame_related): Remove call to spe_synthesize_frame.
19464
19465 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
19466
19467         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
19468         for the same VAR_DECL.
19469
19470 2008-03-06  Tom Tromey  <tromey@redhat.com>
19471
19472         * treelang: Delete.
19473         * doc/standards.texi (Standards): Don't mention treelang.
19474         * doc/invoke.texi (Overall Options): Don't mention treelang.
19475         * doc/install.texi (Prerequisites): Don't mention bison or
19476         treelang.
19477         (Configuration): Don't mention treelang.
19478         (Building): Likewise.
19479         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
19480
19481 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
19482
19483         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
19484         word-extractions out of a multi-word object.
19485
19486 2008-03-06  Richard Guenther  <rguenther@suse.de>
19487
19488         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
19489         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
19490         result type and precision.
19491         * expr.c (get_inner_reference): Set unsignedp based on the result
19492         type of BIT_FIELD_REF.
19493         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
19494         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
19495         (try_instantiate_multiple_fields): Likewise.  Use the correct type
19496         for BIT_FIELD_REF.
19497         (sra_build_assignment): Likewise.
19498         (sra_build_elt_assignment): Likewise.
19499         (sra_explode_bitfield_assignment): Likewise.
19500         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
19501         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
19502         set BIT_FIELD_REF_UNSIGNED.
19503         (vectorizable_load): Likewise.
19504
19505 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
19506
19507         * cse.c (cse_extended_basic_block): Invalidate artificial defs
19508         at bb start.
19509
19510 2008-03-06  Richard Guenther  <rguenther@suse.de>
19511
19512         * alias.c (struct alias_set_entry): Move has_zero_child field
19513         to pack with alias_set.
19514
19515 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19516
19517         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
19518         32bit host.
19519
19520 2008-03-05  Ian Lance Taylor  <iant@google.com>
19521
19522         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
19523
19524 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
19525
19526         * fwprop.c (update_df): Support width and offset parameters of
19527         df_ref_create.
19528         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
19529         global_conflicts): Change DF_REF_EXTRACT to either
19530         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19531         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19532         * df-scan.c (df_ref_record, df_defs_record,
19533         df_ref_create_structure, df_def_record_1, df_uses_record,
19534         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
19535         df_bb_refs_collect, df_entry_block_defs_collect,
19536         df_exit_block_uses_collect): Support new width and offset fields.
19537         (ref_extract_pool): New storage pool.
19538         (df_free_ref): New function.
19539         (df_reg_chain_unlink, df_free_collection_rec,
19540         df_sort_and_compress_refs): Call df_free_ref.
19541         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
19542         of df_ref_extract.
19543         (df_ref_create_structure): Allocate df_ref_extract if offset and
19544         width fields are used.
19545         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
19546         (df_uses_record): Get offset and width from ZERO_EXTRACT
19547         and SIGN_EXTRACT.
19548         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
19549         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19550         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19551         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
19552         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19553         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19554         (df_ref_extract): New structure.
19555         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
19556         (df_ref_create): Add width and offset parameters.
19557
19558 2008-03-05  Richard Guenther  <rguenther@suse.de>
19559
19560         * tree-ssa-structalias.c (get_constraint_for_component_ref):
19561         Use ranges_overlap_p.
19562         (offset_overlaps_with_access): Rename
19563         to ranges_overlap_p and move ...
19564         * tree-flow-inline.h (ranges_overlap_p): ... here.
19565
19566         * tree.h (get_inner_reference, handled_component_p): Update
19567         comments.
19568
19569         * tree.h (record_component_aliases, get_alias_set,
19570         alias_sets_conflict_p, alias_sets_must_conflict_p,
19571         objects_must_conflict_p): Move declarations ...
19572         * alias.h (record_component_aliases, get_alias_set,
19573         alias_sets_conflict_p, alias_sets_must_conflict_p,
19574         objects_must_conflict_p): ... here.
19575         Include coretypes.h.
19576         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
19577
19578 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
19579
19580         * cfg.c: Include tree-flow.h.
19581         (remove_edge_raw): Call redirect_edge_var_map_clear.
19582         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
19583         * tree-flow-inline.h (redirect_edge_var_map_def): New.
19584         (redirect_edge_var_map_result): New.
19585         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
19586         PENDING_STMT use with redirect_edge_var_map_*.
19587         * tree-ssa.c (edge_var_maps): New definition.
19588         (redirect_edge_var_map_add): New.
19589         (redirect_edge_var_map_clear): New.
19590         (redirect_edge_var_map_dup): New.
19591         (redirect_edge_var_map_vector): New.
19592         (redirect_edge_var_map_destroy): New.
19593         (ssa_redirect_edge): Replace PENDING_STMT use with
19594         redirect_edge_var_map_*.
19595         (flush_pending_stmts): Same.
19596         (delete_tree_ssa): Destroy edge var map.
19597         * tree-flow.h (struct _edge_var_map): New.
19598         Define edge_var_map vector type.
19599         Declare redirect_edge_var_map_* prototypes.
19600         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
19601         * tree-cfg.c (reinstall_phi_args): Replace
19602         PENDING_STMT use with redirect_edge_var_map_*.
19603
19604 2008-03-05  Richard Guenther  <rguenther@suse.de>
19605
19606         PR tree-optimization/35472
19607         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
19608         whose single use_stmt has a overlapping set of loaded and
19609         stored symbols as that use_stmt might be a noop assignment then.
19610
19611 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
19612
19613         * gthr-rtems.h: Implement __gthread_mutex_destroy.
19614
19615 2008-03-05  Richard Guenther  <rguenther@suse.de>
19616
19617         PR c++/35336
19618         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
19619         should be constants.
19620         * tree-cfg.c (verify_expr): Verify it.
19621         * fold-const.c (fold_truthop): Remove code generating
19622         BIT_FIELD_REFs of structure bases.
19623         (fold_binary): Likewise.
19624         (fold_ternary): Position and size of BIT_FIELD_REFs are
19625         always host integers.
19626         (make_bit_field_ref): Remove.
19627         (optimize_bit_field_compare): Remove.
19628         (all_ones_mask_p): Remove.
19629
19630 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
19631
19632         PR gcc/33009
19633         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
19634         (split_block_and_df_analyze): New. Split basic block and rebuild
19635         dataflow.
19636         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
19637         SPLIT_BLOCK.
19638         (split_pattern_seq): Likewise.
19639         (erase_matching_seqs): Likewise.
19640         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
19641
19642 2008-03-04  Geoff Keating  <geoffk@apple.com>
19643
19644         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
19645         declaration and code.
19646         (tree_invalid_nonnegative_warnv_p): Likewise.
19647
19648 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
19649
19650         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
19651         examples.  Truncate option-names then causing overfull hbox.
19652
19653 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19654
19655         PR target/35222
19656         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
19657         on hpux10.
19658         * configure: Rebuilt.
19659
19660 2008-03-04  Rafael Espíndola  <espindola@google.com>
19661
19662         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
19663         (tree_unary_nonnegative_warnv_p): New.
19664         (tree_binary_nonnegative_warnv_p): New.
19665         (tree_single_nonnegative_warnv_p): New.
19666         (tree_invalid_nonnegative_warnv_p): New.
19667         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
19668
19669 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19670
19671         PR 28322
19672         * opts.c (handle_option): Postpone 'unknown option' errors only for
19673         warning options.
19674
19675 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
19676
19677         PR target/35453
19678         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
19679         (_SIDD_XXX): This.
19680
19681 2008-03-04  Rafael Espíndola  <espindola@google.com>
19682
19683         * fold-const.c (tree_unary_nonzero_warnv_p): New.
19684         (tree_binary_nonzero_warnv_p): New.
19685         (tree_single_nonzero_warnv_p): New.
19686         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
19687
19688 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
19689
19690         PR middle-end/35456
19691         * fold-const.c (fold_cond_expr_with_comparison): Prevent
19692         transformations for modes that have signed zeros.
19693         * ifcvt.c (noce_try_abs): Ditto.
19694
19695 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
19696
19697         * config/i386/i386.c (override_options): Force
19698         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
19699
19700 2008-03-04  Jan Hubicka  <jh@suse.cz>
19701
19702         PR c++/35262
19703         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
19704         in last commit.
19705
19706 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
19707
19708         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
19709         label to probe the stack.
19710
19711 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
19712
19713         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
19714         (__gthr_win32_mutex_destroy): Declare.
19715         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
19716         __gthr_win32_mutex_destroy.
19717         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
19718
19719 2008-03-03  Jan Hubicka  <jh@suse.cz>
19720
19721         PR c++/35262
19722         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
19723         aggressive on inlining cold calls.
19724
19725 2008-03-03  Richard Guenther  <rguenther@suse.de>
19726
19727         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
19728         struct copies into the expression table.
19729         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
19730         (try_to_simplify): Likewise.
19731         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
19732         integral and pointer arguments which do not change the
19733         precision to NOP_EXPRs.
19734         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
19735         VIEW_CONVERT_EXPR case.
19736
19737 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
19738
19739         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
19740         defined in a loop at depth 0 is invariant.
19741         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
19742         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
19743         be called at loop depth 0.
19744
19745 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
19746
19747         PR driver/35420
19748         * gcc.c (process_command): Update copyright notice dates.
19749         * gcov.c (print_version): Likewise.
19750         * gcov-dump.c (print_version): Likewise.
19751         * mips-tfile.c (main): Likewise.
19752         * mips-tdump.c (main): Likewise.
19753
19754 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19755
19756         PR 24924
19757         * c-common.c (flag_permissive): Delete.
19758         (constant_expression_warnings): Check flags first.
19759         (constant_expression_error): New.
19760         * c-common.h (flag_permissive): Delete.
19761         (constant_expression_error): Declare.
19762         * flags.h (flag_permissive): Declare. Update description.
19763         * diagnostic.c (pedwarn): Update.
19764         (permerror): New.
19765         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
19766         (permissive_error_kind): New.
19767         * toplev.c (flag_permissive): Define. Update description.
19768         * toplev.h (permissive_error_kind): Declare.
19769         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
19770         (pedwarn_c90): Use pedantic_warning_kind.
19771         * c-opts.c (c_common_post_options): flag_permissive does not affect
19772         flag_pedantic_errors.
19773
19774 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
19775
19776         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
19777         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
19778         __absvsi2, __absvDI2): Use unsigned arithmetic.
19779
19780 2008-03-02  Andi Kleen  <ak@suse.de>
19781             Richard Guenther  <rguenther@suse.de>
19782
19783         * struct-equiv.c: Remove file.
19784         * cfg_cleanup.c (condjump_equiv_p): Remove.
19785         * Makefile.in (OBJS-common): Remove struct-equiv.o.
19786         (struct-equiv.o): Remove rule.
19787         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
19788         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
19789         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
19790
19791 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19792
19793         * ifcvt.c (noce_process_if_block): Try to handle only the then
19794         block if the else block exists but isn't suitable.
19795
19796 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
19797
19798         PR gcc/35063
19799         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
19800         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
19801         regression from previous patch.
19802
19803 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
19804
19805         PR gcc/35063
19806         * gthr.h: Add __gthread_mutex_destroy as a function that must be
19807         implemented.
19808         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
19809         * gthr-single.h (__gthread_mutex_destroy): Likewise.
19810         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
19811         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
19812         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
19813         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
19814         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
19815         (__gthread_mutex_destroy_function): Rename to
19816         __gthread_mutex_destroy.
19817         * gthr-dce.h (__gthread_mutex_destroy): Call
19818         pthread_mutex_destroy.
19819         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
19820         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
19821         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
19822
19823 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19824
19825         * df-scan.c (df_ref_chain_change_bb): Simplify.
19826         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
19827         set_block_for_insn if there's any change.
19828         * df.h ((df_insn_change_bb): Fix prototype.
19829         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
19830         df_insn_change_bb, don't call set_block_for_insn.
19831         * emit-rtl.c (reorder_insns): Likewise.
19832         * haifa-sched.c (move_insn): Likewise.
19833
19834 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19835
19836         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
19837
19838 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19839
19840         * tree-flow-inline.h (next_readonly_imm_use): Return
19841         NULL_USE_OPERAND_P after the end.
19842
19843 2008-03-01  Richard Guenther  <rguenther@suse.de>
19844
19845         PR tree-optimization/35411
19846         * tree-sra.c (sra_build_assignment): Split conversion to
19847         final type to a separate statement if we are not assigning
19848         to a register.
19849
19850 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19851
19852         * fold-const.c (fold_convertible_p): Correct the logic to follow
19853         that in fold_convert().
19854
19855 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
19856
19857         PR c++/35315
19858         * tree-inline.c (build_duplicate_type): When we make a
19859         duplicate type, make it unique in the canonical types system.
19860
19861 2008-02-29  Tom Tromey  <tromey@redhat.com>
19862
19863         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
19864         input_file_stack_history, input_file_stack_restored): Remove.
19865         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19866         * input.h (struct file_stack): Remove.
19867         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19868         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
19869         Likewise.
19870         * diagnostic.h (struct diagnostic_context) <last_module>: Change
19871         type.
19872         (diagnostic_last_module_changed): Add 'map' argument.
19873         (diagnostic_set_last_function): Likewise.
19874         * diagnostic.c (undiagnostic_report_current_module): Iterate using
19875         line map, not input_file_stack.
19876         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
19877
19878 2008-02-29  Paul Brook  <paul@codesourcery.com>
19879
19880         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
19881
19882 2008-02-29  Paul Brook  <paul@codesourcery.com>
19883
19884         * config/arm/ieee754-df.S (muldf3): Use RET macros.
19885
19886 2008-02-29  Richard Guenther  <rguenther@suse.de>
19887
19888         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
19889         vn_lookup_or_add.
19890         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
19891         value for comparing for a store match.
19892         (simplify_unary_expression): Do nothing for SSA_NAMEs.
19893         (try_to_simplify): Do not do a full-blown reference lookup.
19894
19895 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
19896
19897         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
19898         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
19899
19900         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
19901
19902 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
19903
19904         * tree-loop-linear.c (try_interchange_loops): Compare memory access
19905         strides against cache sizes.
19906
19907 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
19908
19909         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
19910         constant to fpul.
19911
19912 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
19913
19914         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
19915         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
19916         is smaller than the original promoted value.
19917         (simplify_subreg): If OP is a SUBREG, try to preserve its
19918         SUBREG_PROMOTED_VAR_P information.
19919
19920 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
19921
19922         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
19923         (VN_INFO_GET): Allocate new objects on the obstack.
19924         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
19925         for rpo_numbers_temp, for consistency.
19926         (free_scc_vn): Free the obstack.
19927
19928 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
19929
19930         * doc/invoke.texi: Document -ftree-loop-distribution.
19931         * tree-loop-distribution.c: New.
19932         * tree-pass.h (pass_loop_distribution): New.
19933         * graphds.h (struct graph): Add htab_t indices.
19934         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
19935         * tree-vectorizer.c (rename_variables_in_loop): Extern.
19936         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
19937         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
19938         * tree-data-ref.c (debug_data_dependence_relations): New.
19939         (dump_data_dependence_relation): Also print data references.
19940         (free_data_ref): Extern.
19941         (same_access_functions): Moved...
19942         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
19943         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19944         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
19945         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
19946         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
19947         (stmts_from_loop): Skip LABEL_EXPR.
19948         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
19949         New.
19950         (build_rdg): Initialize rdg->indices htab.
19951         (free_rdg, stores_from_loop, ref_base_address,
19952         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
19953         have_similar_memory_accesses_1, ref_base_address_1,
19954         remove_similar_memory_refs): New.
19955         * tree-data-ref.h: Depend on tree-chrec.h.
19956         (debug_data_dependence_relations, free_data_ref): Declared.
19957         (same_access_functions): ... here.
19958         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
19959         New.
19960         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
19961         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
19962         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
19963         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19964         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
19965         rdg_vertex_for_stmt): Declared.
19966         (struct rdg_edge): Add level.
19967         (RDGE_LEVEL): New.
19968         (free_rdg, stores_from_loop, remove_similar_memory_refs,
19969         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
19970         Declared.
19971         (rdg_has_similar_memory_accesses): New.
19972         * tree-vect-analyze.c: Remove unused static decls.
19973         * lambda.h (dependence_level): New.
19974         * common.opt (ftree-loop-distribution): New.
19975         * tree-flow.h (mark_virtual_ops_in_bb,
19976         slpeel_tree_duplicate_loop_to_edge_cfg,
19977         rename_variables_in_loop): Declared.
19978         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
19979         (OBJS-common): Add tree-loop-distribution.o.
19980         (tree-loop-distribution.o): New rule.
19981         * tree-cfg.c (mark_virtual_ops_in_bb): New.
19982         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
19983         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
19984
19985 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
19986
19987         PR target/33963
19988         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
19989         other than structures and unions.
19990
19991 2008-02-28  Richard Guenther  <rguenther@suse.de>
19992
19993         Revert:
19994         2008-02-26  Richard Guenther  <rguenther@suse.de>
19995
19996         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19997         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19998         (lookup_decl_from_uid): Declare.
19999         (remove_decl_from_map): Likewise.
20000         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20001         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20002         (decl_for_uid_map): New global hashtable mapping DECL_UID
20003         to the decl tree.
20004         (init_ttree): Allocate it.
20005         (insert_decl_to_uid_decl_map): New helper function.
20006         (make_node_stat): Insert new decls into the map.
20007         (copy_node_stat): Likewise.
20008         (lookup_decl_from_uid): New function.
20009         (remove_decl_from_map): Likewise.
20010         (print_decl_for_uid_map_statistics): New helper.
20011         (dump_tree_statistics): Call it.
20012
20013         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20014         (referenced_var_iterator): Adjust.
20015         (FOR_EACH_REFERENCED_VAR): Adjust.
20016         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20017         (num_referenced_vars): Adjust.
20018         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20019         (first_referenced_var): Remove.
20020         (end_referenced_vars_p): Likewise.
20021         (next_referenced_var): Likewise.
20022         (referenced_var_iterator_set): New helper function.
20023         * tree-dfa.c (referenced_var_lookup): Adjust.
20024         (referenced_var_check_and_insert): Likewise.
20025         (remove_referenced_var): Likewise.
20026         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20027         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20028         (verify_call_clobbering): Likewise.
20029         (verify_memory_partitions): Likewise.
20030         (init_tree_ssa): Allocate bitmap instead of hashtable for
20031         referenced_vars.
20032         (delete_tree_ssa): Adjust.
20033         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20034         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20035         (compute_tag_properties): Likewise.
20036         (set_initial_properties): Likewise.
20037         (find_partition_for): Likewise.
20038         (update_reference_counts): Likewise.
20039         (dump_may_aliases_for): Likewise.
20040         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20041         (add_call_clobber_ops): Likewise.
20042         (add_call_read_ops): Likewise.
20043         (get_asm_expr_operands): Likewise.
20044         * tree-into-ssa.c (dump_decl_set): Likewise.
20045         (update_ssa): Likewise.
20046         * tree-sra.c (scan_function): Likewise.
20047         (decide_instantiations): Likewise.
20048         (scalarize_parms): Likewise.
20049         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20050         (dsa_named_for): Likewise.
20051         * tree-ssa-structalias.c (update_alias_info): Likewise.
20052         (merge_smts_into): Likewise.
20053
20054 2008-02-27  David Daney  <ddaney@avtrex.com>
20055
20056         PR target/34409
20057         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
20058         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
20059         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
20060         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
20061         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
20062
20063 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
20064
20065         PR target/25477
20066         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
20067         (BUILT_IN_NEXTTOWARD): Remove.
20068         (BUILT_IN_NEXTTOWARDF): Ditto.
20069         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
20070         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
20071
20072 2008-02-27  Tom Tromey  <tromey@redhat.com>
20073
20074         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
20075         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
20076
20077 2008-02-27  Jan Beulich  <jbeulich@novell.com>
20078
20079         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
20080         update the respective field on newdecl.
20081
20082 2008-02-27  Revital Eres  <eres@il.ibm.com>
20083
20084         PR rtl-optimization/34999
20085         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
20086         crossing edges that ends with a call insn.
20087         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
20088         call insn and clear the EDGE_CROSSING flag of the crossing edge
20089         when fixing fallthru edges.
20090
20091 2008-02-27  Richard Guenther  <rguenther@suse.de>
20092
20093         PR middle-end/35390
20094         * fold-const.c (fold_unary): Return the correct argument,
20095         converted to the result type.
20096
20097 2008-02-27  Richard Guenther  <rguenther@suse.de>
20098
20099         PR middle-end/34971
20100         * expr.c (expand_expr_real_1): Assert on rotates that operate
20101         on partial modes.
20102         * fold-const.c (fold_binary): Use the types precision, not the
20103         bitsize of the mode if folding rotate expressions.  Build rotates
20104         only for full modes.
20105
20106 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
20107
20108         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
20109         and CPP_PRAGMA_EOL.
20110         * c-pragma.c (pragma_ns_name): New typedef.
20111         (registered_pp_pragmas): New variable.
20112         (c_pp_lookup_pragma): New function.
20113         (c_register_pragma_1): If flag_preprocess_only, do nothing
20114         for non-expanded pragmas, for expanded ones push pragma's
20115         namespace and name into registered_pp_pragmas vector.
20116         (c_invoke_pragma_handler): Register OpenMP pragmas even when
20117         flag_preprocess_only, don't register GCC pch_preprocess
20118         pragma if flag_preprocess_only.
20119         * c-opts.c (c_common_init): Call init_pragma even if
20120         flag_preprocess_only.
20121         * c-pragma.c (c_pp_lookup_pragma): New prototype.
20122         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
20123         cpp_register_pragma if flag_preprocess_only.
20124
20125 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20126
20127         PR c/28800
20128         * c-parser.c (c_parser_translation_unit): Warn for empty
20129         translation unit, not empty source file.
20130
20131 2008-02-26  Paul Brook  <paul@codesourcery.com>
20132
20133         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
20134         operand for Thumb-2.
20135         * config/arm/arm.h (reg_class): Add CORE_REGS.
20136         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
20137         (BASE_REG_CLASS): Use CORE_REGS.
20138         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
20139         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
20140         (REGNO_OK_FOR_INDEX_P): Exclude SP.
20141         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
20142         ARM_REGNO_OK_FOR_INDEX_P.
20143         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
20144         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
20145         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
20146         (ldm/stm peepholes): Ditto.
20147         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
20148         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
20149         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
20150         * config/arm/constraints.md: Enable "k" constraint on ARM.
20151
20152 2008-02-27  Ben Elliston  <bje@au.ibm.com>
20153
20154         * config/rs6000/rs6000.c: Annotate cache line size field in all
20155         instances of struct processor_costs.
20156
20157 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
20158
20159         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
20160         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
20161         jump_bypass): New counters.
20162         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
20163         * dce.c (gate_ud_dce): Same.
20164         (gate_fast_dce): Same.
20165         * dse.c (gate_dse1): New function.
20166         (gate_dse2): New function.
20167         (gate_dse): Merge results of new gate functions.
20168         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
20169         (gate_handle_jump_bypass): Add dbg_cnt.
20170         (gate_handle_gcse): Add dbg_cnt.
20171         * ifcvt.c (gate_handle_if_conversion): Same.
20172         (gate_handle_if_after_combine): Same.
20173         (gate_handle_if_after_reload): Same.
20174         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
20175
20176 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
20177
20178         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
20179         line sizes.
20180         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
20181
20182 2008-02-26  Jason Merrill  <jason@redhat.com>
20183
20184         PR c++/35315
20185         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
20186         alone if it's the naming decl for the type's main variant.
20187
20188 2008-02-26  Tom Tromey  <tromey@redhat.com>
20189
20190         * system.h (USE_MAPPED_LOCATION): Poison.
20191         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
20192         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
20193         (make_goto_expr_edges): Likewise.
20194         (remove_bb): Likewise.
20195         (execute_warn_function_return): Likewise.
20196         * basic-block.h (struct edge_def) <goto_locus>: Change type to
20197         location_t.
20198         * c-common.c (fname_decl): Remove old location code.
20199         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
20200         location code.
20201         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
20202         variant.
20203         (ASM_INPUT_SOURCE_LOCATION): Likewise.
20204         (gen_rtx_ASM_INPUT): Likewise.
20205         (gen_rtx_ASM_INPUT_loc): Likewise.
20206         (get_rtx_asm_OPERANDS): Remove.
20207         * cfglayout.c (insn_locators_alloc): Remove old location code.
20208         (set_curr_insn_source_location): Likewise.
20209         (curr_insn_locator): Likewise.
20210         * print-tree.c (print_node): Remove old location code.
20211         * tree-mudflap.c (mf_varname_tree): Remove old location code.
20212         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
20213         * cfgexpand.c (expand_gimple_cond_expr): Don't use
20214         location_from_locus.
20215         (construct_exit_block): Remove old location code.
20216         * emit-rtl.c (force_next_line_note): Remove old location code.
20217         * profile.c (branch_prob): Remove old location code.
20218         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
20219         LOC_LINE): Remove old-location variants.
20220         * langhooks.c (lhd_print_error_function): Remove old location
20221         code.
20222         * configure, config.in: Rebuilt.
20223         * configure.ac (--enable-mapped-location): Remove.
20224         * c-decl.c (c_init_decl_processing): Remove old location code.
20225         (finish_function): Likewise.
20226         * recog.c (decode_asm_operands): Remove old location code.
20227         * c-pch.c (c_common_read_pch): Remove old location code.
20228         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
20229         variants.
20230         * gimple-low.c (lower_function_body): Remove old location code.
20231         * toplev.c (unknown_location): Remove.
20232         (push_srcloc): Remove old-location variant.
20233         (process_options): Remove old location code.
20234         (lang_dependent_init): Likewise.
20235         * input.h (UNKNOWN_LOCATION): Move definition.
20236         (location_t): Undeprecate.
20237         (source_locus): Remove.
20238         (location_from_locus): Remove.
20239         (struct location_s): Remove.
20240         Remove all old-location code.
20241         (input_line, input_filename): Remove.
20242         * final.c (final_scan_insn): Remove old location code.
20243         * diagnostic.c (diagnostic_build_prefix): Remove
20244         USE_MAPPED_LOCATION test.
20245         * tree.h (gimple_stmt) <locus>: Now a location_t.
20246         (tree_exp) <locus>: Likewise.
20247         (DECL_IS_BUILTIN): Remove old-location variant.
20248         (annotate_with_file_line, annotate_with_locus): Likewise.
20249         (expr_locus, set_expr_locus): Update.
20250         * tree.c (build1_stat): Remove old location code.
20251         (last_annotated_node): Remove.
20252         (annotate_with_file_line): Remove old-location variant.
20253         (annotate_with_locus): Likewise.
20254         (expr_location): Remove old location code.
20255         (set_expr_location): Likewise.
20256         (expr_has_location): Likewise.
20257         (expr_locus): Likewise.
20258         (set_expr_locus): Likewise.
20259         (expr_filename): Don't use location_from_locus.
20260         (expr_lineno): Likewise.
20261         * rtl-error.c (location_for_asm): Remove old location code.
20262         * c-lex.c (cb_line_change): Remove old location code.
20263         (fe_file_change): Likewise.
20264         (cb_def_pragma): Likewise.
20265         (c_lex_with_flags): Likewise.
20266         * gengtype.c (do_typedef): Don't special-case location types.
20267         (define_location_structures): Remove.
20268         (main): Don't call define_location_structures.
20269         * tree-pretty-print.c (dump_implicit_edges): Remove old location
20270         code.
20271
20272 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20273
20274         PR 26264
20275         * builtins.def (BUILT_IN_STDARG_START): Remove.
20276         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
20277         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
20278         * tree-inline.c (inline_forbidden_p_1): Likewise.
20279
20280 2008-02-26  Richard Guenther  <rguenther@suse.de>
20281
20282         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20283         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20284         (lookup_decl_from_uid): Declare.
20285         (remove_decl_from_map): Likewise.
20286         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20287         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20288         (decl_for_uid_map): New global hashtable mapping DECL_UID
20289         to the decl tree.
20290         (init_ttree): Allocate it.
20291         (insert_decl_to_uid_decl_map): New helper function.
20292         (make_node_stat): Insert new decls into the map.
20293         (copy_node_stat): Likewise.
20294         (lookup_decl_from_uid): New function.
20295         (remove_decl_from_map): Likewise.
20296         (print_decl_for_uid_map_statistics): New helper.
20297         (dump_tree_statistics): Call it.
20298
20299         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20300         (referenced_var_iterator): Adjust.
20301         (FOR_EACH_REFERENCED_VAR): Adjust.
20302         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20303         (num_referenced_vars): Adjust.
20304         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20305         (first_referenced_var): Remove.
20306         (end_referenced_vars_p): Likewise.
20307         (next_referenced_var): Likewise.
20308         (referenced_var_iterator_set): New helper function.
20309         * tree-dfa.c (referenced_var_lookup): Adjust.
20310         (referenced_var_check_and_insert): Likewise.
20311         (remove_referenced_var): Likewise.
20312         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20313         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20314         (verify_call_clobbering): Likewise.
20315         (verify_memory_partitions): Likewise.
20316         (init_tree_ssa): Allocate bitmap instead of hashtable for
20317         referenced_vars.
20318         (delete_tree_ssa): Adjust.
20319         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20320         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20321         (compute_tag_properties): Likewise.
20322         (set_initial_properties): Likewise.
20323         (find_partition_for): Likewise.
20324         (update_reference_counts): Likewise.
20325         (dump_may_aliases_for): Likewise.
20326         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20327         (add_call_clobber_ops): Likewise.
20328         (add_call_read_ops): Likewise.
20329         (get_asm_expr_operands): Likewise.
20330         * tree-into-ssa.c (dump_decl_set): Likewise.
20331         (update_ssa): Likewise.
20332         * tree-sra.c (scan_function): Likewise.
20333         (decide_instantiations): Likewise.
20334         (scalarize_parms): Likewise.
20335         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20336         (dsa_named_for): Likewise.
20337         * tree-ssa-structalias.c (update_alias_info): Likewise.
20338         (merge_smts_into): Likewise.
20339
20340 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20341
20342         PR 34351
20343         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
20344         * c-opts.c (c_common_handle_option): Wall enables
20345         Wvolatile-register-var.
20346         * common.opt: Move Wvolatile-register-var to...
20347         * c.opt: ...here.
20348
20349 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20350
20351         * common.opt (Wlarger-than=): New.
20352         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
20353         -Wlarger-than=.
20354         * opts.c (common_handle_option): Handle -Wlarger-than=.
20355         * optc-gen.awk: Likewise.
20356         * opth-gen.awk: Likewise.
20357         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
20358         * tree-optimize.c (tree_rest_of_compilation): Likewise.
20359
20360 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20361
20362         * c-common.c (match_case_to_enum_1): Add appropriate
20363         OPT_W* parameter to warning.
20364         (c_do_switch_warnings): Likewise.
20365         * c-typeck.c (warning_init): Add one more parameter following
20366         'warning' function.
20367         (push_init_level): Update call to warning_init.
20368         (pop_init_level): Likewise.
20369         (add_pending_init): Likewise.
20370         (output_init_element: Likewise.
20371
20372 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20373
20374         PR 28322
20375         * toplev.c (toplev_main): If there are warnings or error, print
20376         errors for ignored options.
20377         * opts.c (ignored_options): New static variable.
20378         (postpone_unknown_option_error): New.
20379         (print_ignored_options): New.
20380         (handle_option): Postpone errors for unknown -Wno-* options.
20381         * opts.h (print_ignored_options): Declare.
20382
20383 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
20384
20385         * config/mips/mips.md (loadgp_blockage, blockage): Change type
20386         to "ghost".
20387
20388 2008-02-25  Richard Guenther  <rguenther@suse.de>
20389
20390         Revert:
20391         2008-02-25  Richard Guenther  <rguenther@suse.de>
20392
20393         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20394         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20395         (lookup_decl_from_uid): Declare.
20396         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20397         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20398         (decl_for_uid_map): New global hashtable mapping DECL_UID
20399         to the decl tree.
20400         (init_ttree): Allocate it.
20401         (insert_decl_to_uid_decl_map): New helper function.
20402         (make_node_stat): Insert new decls into the map.
20403         (copy_node_stat): Likewise.
20404         (lookup_decl_from_uid): New function.
20405         (print_decl_for_uid_map_statistics): New helper.
20406         (dump_tree_statistics): Call it.
20407
20408         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20409         (referenced_var_iterator): Adjust.
20410         (FOR_EACH_REFERENCED_VAR): Adjust.
20411         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20412         (num_referenced_vars): Adjust.
20413         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20414         (first_referenced_var): Remove.
20415         (end_referenced_vars_p): Likewise.
20416         (next_referenced_var): Likewise.
20417         (referenced_var_iterator_set): New helper function.
20418         * tree-dfa.c (referenced_var_lookup): Adjust.
20419         (referenced_var_check_and_insert): Likewise.
20420         (remove_referenced_var): Likewise.
20421         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20422         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20423         (verify_call_clobbering): Likewise.
20424         (verify_memory_partitions): Likewise.
20425         (init_tree_ssa): Allocate bitmap instead of hashtable for
20426         referenced_vars.
20427         (delete_tree_ssa): Adjust.
20428         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20429         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20430         (compute_tag_properties): Likewise.
20431         (set_initial_properties): Likewise.
20432         (find_partition_for): Likewise.
20433         (update_reference_counts): Likewise.
20434         (dump_may_aliases_for): Likewise.
20435         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20436         (add_call_clobber_ops): Likewise.
20437         (add_call_read_ops): Likewise.
20438         (get_asm_expr_operands): Likewise.
20439         * tree-into-ssa.c (dump_decl_set): Likewise.
20440         (update_ssa): Likewise.
20441         * tree-sra.c (scan_function): Likewise.
20442         (decide_instantiations): Likewise.
20443         (scalarize_parms): Likewise.
20444         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20445         (dsa_named_for): Likewise.
20446         * tree-ssa-structalias.c (update_alias_info): Likewise.
20447         (merge_smts_into): Likewise.
20448
20449 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
20450
20451         PR fortran/29549
20452         * doc/invoke.texi (-fcx-limited-range): Document new option.
20453         * toplev.c (process_options): Handle -fcx-fortran-rules.
20454         * common.opt: Add documentation for -fcx-fortran-rules.
20455
20456 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
20457
20458         PR c/35162
20459         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
20460         actual behaviour and C99.
20461
20462 2008-02-26  Ben Elliston  <bje@au.ibm.com>
20463
20464         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
20465         (ASM_CPU_POWER6_SPEC): Likewise.
20466         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
20467         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
20468         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
20469
20470 2008-02-25  Richard Guenther  <rguenther@suse.de>
20471
20472         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20473         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20474         (lookup_decl_from_uid): Declare.
20475         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20476         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20477         (decl_for_uid_map): New global hashtable mapping DECL_UID
20478         to the decl tree.
20479         (init_ttree): Allocate it.
20480         (insert_decl_to_uid_decl_map): New helper function.
20481         (make_node_stat): Insert new decls into the map.
20482         (copy_node_stat): Likewise.
20483         (lookup_decl_from_uid): New function.
20484         (print_decl_for_uid_map_statistics): New helper.
20485         (dump_tree_statistics): Call it.
20486
20487         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20488         (referenced_var_iterator): Adjust.
20489         (FOR_EACH_REFERENCED_VAR): Adjust.
20490         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20491         (num_referenced_vars): Adjust.
20492         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20493         (first_referenced_var): Remove.
20494         (end_referenced_vars_p): Likewise.
20495         (next_referenced_var): Likewise.
20496         (referenced_var_iterator_set): New helper function.
20497         * tree-dfa.c (referenced_var_lookup): Adjust.
20498         (referenced_var_check_and_insert): Likewise.
20499         (remove_referenced_var): Likewise.
20500         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20501         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20502         (verify_call_clobbering): Likewise.
20503         (verify_memory_partitions): Likewise.
20504         (init_tree_ssa): Allocate bitmap instead of hashtable for
20505         referenced_vars.
20506         (delete_tree_ssa): Adjust.
20507         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20508         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20509         (compute_tag_properties): Likewise.
20510         (set_initial_properties): Likewise.
20511         (find_partition_for): Likewise.
20512         (update_reference_counts): Likewise.
20513         (dump_may_aliases_for): Likewise.
20514         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20515         (add_call_clobber_ops): Likewise.
20516         (add_call_read_ops): Likewise.
20517         (get_asm_expr_operands): Likewise.
20518         * tree-into-ssa.c (dump_decl_set): Likewise.
20519         (update_ssa): Likewise.
20520         * tree-sra.c (scan_function): Likewise.
20521         (decide_instantiations): Likewise.
20522         (scalarize_parms): Likewise.
20523         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20524         (dsa_named_for): Likewise.
20525         * tree-ssa-structalias.c (update_alias_info): Likewise.
20526         (merge_smts_into): Likewise.
20527
20528 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
20529
20530         PR target/35258
20531         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
20532         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
20533         * alias.h (nonoverlapping_memrefs_p): Likewise.
20534
20535 2008-02-25  Jan Beulich  <jbeulich@novell.com>
20536
20537         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
20538         * config/i386/netware-libgcc.exp: Add __bswap?i2,
20539         __emultls_get_address, __emultls_register_common,
20540         __floatundi?f, and _Unwind_GetIPInfo.
20541         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
20542         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
20543         (gen_regparm_prefix): Likewise.
20544         (i386_nlm_encode_section_info): Sync with
20545         config/i386/winnt.c:i386_pe_encode_section_info().
20546         (i386_nlm_maybe_mangle_decl_assembler_name): New.
20547         i386_nlm_mangle_decl_assembler_name): New.
20548         (netware_override_options): New.
20549         * config/i386/netware.h (netware_override_options): Declare.
20550         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
20551         (i386_nlm_mangle_decl_assembler_name): Declare.
20552         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
20553
20554 2008-02-25  Ben Elliston  <bje@au.ibm.com>
20555
20556         PR other/32948
20557         * c-decl.c (grokdeclarator): Remove unused local variables
20558         `typedef_type' and `type_as_written'.
20559         * bb-reorder.c
20560         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
20561         unused local variable `has_hot_blocks'.
20562         (fix_crossing_conditional_branches): Remove unused local variable
20563         `prev_bb'.
20564
20565 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
20566
20567         PR middle-end/19984
20568         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
20569         using DEF_C99_BUILTIN.
20570         (BUILT_IN_NANF): Ditto.
20571         (BUILT_IN_NANL): Ditto.
20572
20573 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
20574             Revital Eres  <eres@il.ibm.com>
20575
20576         * modulo-sched.c (calculate_must_precede_follow): Address TODO
20577         regarding the order of two dependent insns in the same row.
20578
20579 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
20580
20581         * stor-layout.c (layout_decl): Do not bump the alignment of a
20582         bit-field to more than byte alignment if it is packed.
20583
20584 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
20585
20586         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
20587         e300c2 and e300c3.
20588
20589 2008-02-24  Diego Novillo  <dnovillo@google.com>
20590
20591         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
20592
20593         PR 33738
20594         * tree-vrp.c (vrp_evaluate_conditional): With
20595         -Wtype-limits, emit a warning when comparing against a
20596         constant outside the natural range of OP0's type.
20597         * c.opt (Wtype-limits): Move ...
20598         * common.opt (Wtype-limits): ... here.
20599
20600 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
20601
20602         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
20603         * config/rs6000/e300c2c3.md: New file.
20604         * config/rs6000/rs6000.c (processor_costs): Add new costs for
20605         e300c2 and e300c3.
20606         (rs6000_override_options): Add e300c2 and e300c3 cases to
20607         processor_target_table. Do not allow usage of Altivec or Spe
20608         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
20609         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
20610         * config/rs6000/rs6000.h (processor_type): Add
20611         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
20612         (ASM_CPU_SPEC): Add e300c2 and e300c3.
20613         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
20614         and ppce300c3. Include e300c2c3.md.
20615
20616 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
20617
20618         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
20619         instead of TARGET_STRICT_ALIGN.
20620
20621 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
20622
20623         * explow.c (memory_address): Assert that the generated address is
20624         valid.
20625
20626 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
20627
20628         PR target/25477
20629         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
20630         * config/darwin-ppc-ldouble-patch.def: New file.
20631         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
20632         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
20633         SUBTARGET_INIT_BUILTINS if defined.
20634         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
20635         New functions.
20636
20637 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20638
20639         PR rtl-opt/33512
20640         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
20641         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
20642
20643 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20644
20645         PR pch/35027
20646         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
20647         file" warning condtional on -Winvalid-PCH.
20648
20649 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
20650
20651         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
20652
20653 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
20654
20655         PR target/22076
20656         PR target/34256
20657         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
20658         prevent reload from using MMX registers.
20659         (*mov<mode>_internal): Ditto.
20660         (*movv2sf_internal_rex64): Ditto.
20661         (*movv2sf_internal): Ditto.
20662
20663 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20664
20665         PR documentation/31569
20666         * doc/install.texi2html: Use makeinfo --no-number-sections.
20667
20668 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20669
20670         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
20671         ensure that we can address an entire entity > 8 bytes.  Don't
20672         generate reg+reg addressing for such data.
20673
20674 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20675
20676         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
20677         strings when optimizing for size, unless the target cares about
20678         alignment.
20679
20680 2008-02-22  Tom Tromey  <tromey@redhat.com>
20681
20682         * regclass.c (current_pass): Remove declaration.
20683
20684 2008-02-22  Anatoly Sokolov <aesok@post.ru>
20685
20686         * config/avr/libgcc.S (__RAMPZ__): Define.
20687         (__do_copy_data): Add for devices with 128KB code memory.
20688
20689 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20690
20691         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
20692         Use spe_abi.
20693         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
20694
20695 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
20696
20697         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
20698         GENNONACR_REGS.
20699
20700 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20701
20702         PR c/19999
20703         * c-typeck.c (build_binary_op): Warn about floating point
20704         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
20705
20706 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
20707
20708         PR target/34526
20709         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
20710         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
20711         add vrsave.
20712         (rs6000_override_options): Set altivec_abi as default, not override,
20713         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
20714         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
20715         is used; use new member spe_abi.
20716         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
20717         spe_abi and altivec_abi.
20718
20719 2008-02-22  Tomas Bily  <tbily@suse.cz>
20720
20721         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
20722
20723 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20724
20725         PR bootstrap/35273
20726         * config.build (build_file_translate): Set to `CMD //c' only if
20727         it works.
20728         * Makefile.in (build_file_translate): Improve comment.
20729
20730 2008-02-21  Jan Hubicka  <jh@suse.cz>
20731
20732         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
20733         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
20734         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
20735
20736 2008-02-21  Michael Matz  <matz@suse.de>
20737
20738         PR target/35264
20739         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
20740
20741 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
20742
20743         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
20744         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
20745         as insn constraint.
20746         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
20747         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
20748         SSE_VEC_FLOAT_MODE_P as insn constraint.
20749         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
20750         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
20751         sse4a_movntdf using MODEF mode iterator.
20752         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
20753         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
20754         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
20755         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
20756         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
20757         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
20758         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
20759
20760 2008-02-21  Richard Guenther  <rguenther@suse.de>
20761
20762         * tree.def (PAREN_EXPR): New tree code.
20763         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
20764         and PAREN_EXPR.
20765         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
20766         * expr.c (expand_expr_real_1): Likewise.
20767         * tree-inline.c (estimate_num_insns_1): Likewise.
20768         * tree-complex.c (expand_complex_move): Likewise.
20769         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
20770         as plain x.
20771
20772 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20773
20774         PR target/35225
20775         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
20776
20777 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20778
20779         PR target/35190
20780         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
20781
20782         * config/sh/sh.c (find_barrier): Don't go past
20783         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
20784
20785 2008-02-20  DJ Delorie  <dj@redhat.com>
20786
20787         * config/h8300/h8300.md (insv): Force source operand to be a register.
20788
20789         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
20790         as a jump, not as a plain insn.
20791
20792 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
20793
20794         * doc/invoke.texi (Warning Options): Add new option
20795         -Wframe-larger-than=.
20796         (-Wframe-larger-than): Document.
20797
20798         * flags.h (warn_frame_larger_than, frame_larger_than_size):
20799         Add declarations for new option variables.
20800
20801         * final.c (final_start_function): Check the frame size
20802         before emission and issue a Wframe-larger-than warning.
20803
20804         * opts.c (warn_frame_larger_than, frame_larger_than_size):
20805         Add definitions for new option variables.
20806         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
20807
20808         * common.opt (Wframe-larger-than=): New option.
20809
20810 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
20811
20812         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
20813         (<sse>_div<mode>3): Ditto.
20814         (<sse>_vmdiv<mode>3): Ditto.
20815         (<sse>_vmsqrt<mode>2): Ditto.
20816         (*smax<mode>3): Ditto.
20817         (sse5_frcz<mode>2): Ditto.
20818         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
20819         as insn constraint.
20820
20821 2008-02-20  Richard Guenther  <rguenther@suse.de>
20822
20823         PR middle-end/35265
20824         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
20825         be happy with INTEGRAL_TYPE_P.
20826
20827 2008-02-20  Richard Guenther  <rguenther@suse.de>
20828
20829         * fold-const.c (split_tree): Associate floatig-point expressions
20830         if flag_associative_math is set.
20831
20832 2008-02-20  Richard Guenther  <rguenther@suse.de>
20833
20834         * tree.h (fold_real_zero_addition_p): Declare.
20835         * fold-const.c (fold_real_zero_addition_p): Export.
20836         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
20837         floating-point operations with zero and one.
20838
20839 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
20840
20841         * doc/install.texi: Correct references to CFLAGS, replacing them
20842         with BOOT_CFLAGS.  Document flags used during bootstrap for
20843         target libraries.
20844
20845 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
20846
20847         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
20848         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
20849         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
20850         insn constraint.
20851         (smin<mode>3): Ditto from similar patterns.
20852         (smax<mode>3): Ditto.
20853         (*ieee_smin<mode>3): Ditto.
20854         (*ieee_smax<mode>3): Ditto.
20855         * config/i386/sse.md (sse): New mode attribute.
20856         (mov<mode>): Macroize expander from movv4sf and movv2df using
20857         SSEMODEF2P mode iterator.
20858         (<sse>_movnt<mode>): Ditto from similar patterns. Use
20859         SSE_VEC_FLOAT_MODE_P as insn constraint.
20860         (storent<mode>): Ditto.
20861         (storent<mode>): Macroize expander from storentsf and storentdf using
20862         MODEF mode iterator.
20863         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
20864         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
20865         (abs<mode>2): Ditto from similar patterns.
20866         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
20867         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
20868         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
20869         (<sse>_vmsqrt<mode>2): Ditto.
20870         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
20871         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
20872         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
20873         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
20874         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
20875         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
20876         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
20877         insn constraint.
20878         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
20879         iterator and SSE_FLOAT_MODE_P as insn constraint.
20880         (<sse>_ucomi): Ditto from similar patterns.
20881         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
20882         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
20883         SSE_VEC_FLOAT_MODE_P as insn constraint.
20884         (vcond<mode>): Ditto from similar patterns.
20885         (and<mode>3, *and<mode>3): Ditto.
20886         (<sse>_nand<mode>3): Ditto.
20887         (ior<mode>3, *ior<mode>3): Ditto.
20888         (xor<mode>3, *xor<mode>3): Ditto.
20889         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
20890         iterator and SSE_FLOAT_MODE_P as insn constraint.
20891         (*nand<mode>3): Ditto from similar patterns.
20892         (*ior<mode>3): Ditto.
20893         (*xor<mode>3): Ditto.
20894
20895 2008-02-20  Ira Rosen  <irar@il.ibm.com>
20896
20897         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
20898         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
20899         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
20900
20901 2008-02-19  Jan Hubicka  <jh@suse.cz>
20902
20903         * predict.c (tree_bb_level_predictions): Remove variable next
20904         mistakely introduced by previous commit.
20905
20906 2008-02-19  Jan Hubicka  <jh@suse.cz>
20907
20908         * predict.c (predict_paths_leading_to): Rewrite.
20909         (predict_paths_for_bb): New.
20910         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
20911
20912 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20913
20914         PR bootstrap/35218
20915         * Makefile.in (build_file_translate): New.
20916         (gcc-vers.texi): Use it for translating $(abs_srcdir).
20917         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
20918         * configure.ac (build_file_translate): Substitute it.
20919         * configure: Regenerate.
20920
20921 2008-02-19  Jan Hubicka  <jh@suse.cz>
20922
20923         PR rtl-optimization/34408
20924         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
20925         invalid sharing.
20926
20927 2008-02-19  Jan Hubicka  <jh@suse.cz>
20928
20929         PR middle-end/28779
20930         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
20931         call_expr.
20932
20933 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
20934
20935         PR Ada/35186
20936         * config/i386/i386-modes.def: Revert the last DI alignment
20937         change until Ada people can look into it.
20938
20939 2008-02-19  Nick Clifton  <nickc@redhat.com>
20940
20941         * opts.c (print_specific_help): Fix typo in --help text.
20942
20943 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
20944
20945         PR target/35239
20946         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
20947         32-bit inline asm without asm alternatives for host GCC < 3.0.
20948
20949 2008-02-19  Richard Guenther  <rguenther@suse.de>
20950
20951         PR tree-optimization/34989
20952         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
20953         Allow propagation to INDIRECT_REF if we can simplify only.
20954
20955 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20956
20957         * c-common.c (warn_for_collisions_1): Use appropriate option when
20958         warning.
20959
20960 2008-02-19  Nick Clifton  <nickc@redhat.com>
20961
20962         PR other/31349
20963         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
20964         (handle_options): Fix indentation.
20965         (print_filtered_help): If no language-specific options were
20966         displayed tell the user how to list all the options supported by
20967         the language's front-end.
20968         (print_specific_help): Fix indentation and remove duplicate line.
20969         (common_handle_option): Handle the -v option.
20970         For --help enable the display of undocumented options if the -v
20971         switch has been included on the command line.
20972         For --help= check for overlaps in the arguments between the option
20973         classes and the language names and issue a warning when they
20974         cannot be disambiguated.
20975         * c.opt (v): Pass on to the common option handler.
20976
20977 2008-02-19  Revital Eres  <eres@il.ibm.com>
20978
20979         * modulo-sched.c (sms_schedule): Change dump message when
20980         create_ddg function fails.
20981         (try_scheduling_node_in_cycle): Rename row to cycle.
20982         (print_partial_schedule): Rename CYCLE to ROW.
20983
20984 2008-02-19  Christian Bruel  <christian.bruel@st.com>
20985             Zdenek Dvorak  <ook@ucw.cz>
20986
20987         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
20988
20989 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
20990
20991         PR target/33555
20992         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
20993         (*x86_movdicc_0_m1_se): Ditto.
20994
20995 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
20996
20997         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
20998         (CMPtype): Define as __gcc_CMPtype.
20999         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
21000         (CMPtype): Define as __gcc_CMPtype.
21001
21002 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
21003
21004         Support valgrind 3.3 for --enable-checking=valgrind.
21005         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
21006         here.
21007         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
21008         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
21009         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
21010         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
21011         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
21012         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
21013         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
21014         respectively.
21015         * ggc-zone.c: Similar.
21016         * ggc-page.c: Similar.
21017
21018 2008-02-19  Paul Brook  <paul@codesourcery.com>
21019
21020         PR target/35071
21021         * config/arm/ieee754-df.S: Fix do_it typo.
21022         * config/arm/ieee754-sf.S: Fix do_it typo.
21023
21024 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
21025
21026         PR target/35189
21027         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
21028         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
21029         (OPTION_MASK_ISA_SSE_SET): Likewise.
21030         (OPTION_MASK_ISA_SSE2_SET): Likewise.
21031         (OPTION_MASK_ISA_SSE3_SET): Likewise.
21032         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
21033         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
21034         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
21035         (OPTION_MASK_ISA_SSE4_SET): Likewise.
21036         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
21037         (OPTION_MASK_ISA_SSE5_SET): Likewise.
21038         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
21039         (OPTION_MASK_ISA_MMX_UNSET): Updated.
21040         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
21041         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
21042         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
21043         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
21044         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
21045         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
21046         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
21047         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
21048         (OPTION_MASK_ISA_SSE4): Removed.
21049         (ix86_handle_option): Turn on bits in ix86_isa_flags and
21050         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
21051         (override_options): Don't turn on implied SSE/MMX bits in
21052         ix86_isa_flags.
21053
21054 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
21055
21056         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
21057         32bit host.
21058
21059 2008-02-18  Joey Ye  <joey.ye@intel.com>
21060
21061         PR middle-end/34921
21062         * tree-nested.c (insert_field_into_struct): Set type alignment
21063         to field alignment if the former is less than the latter.
21064
21065 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
21066
21067         * BASE-VER: Set to 4.4.0.
21068
21069 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21070
21071         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
21072         * doc/cfg.texi: Likewise.
21073         * doc/extend.texi: Likewise.
21074         * doc/gty.texi: Likewise.
21075         * doc/invoke.texi: Likewise.
21076         * doc/loop.texi: Likewise.
21077         * doc/md.texi: Likewise.
21078         * doc/passes.texi: Likewise.
21079         * doc/rtl.texi: Likewise.
21080         * doc/sourcebuild.texi: Likewise.
21081         * doc/tm.texi: Likewise.
21082         * doc/tree-ssa.texi: Likewise.
21083
21084 2008-02-17  Richard Guenther  <rguenther@suse.de>
21085
21086         PR middle-end/35227
21087         * tree-complex.c (init_parameter_lattice_values): Handle parameters
21088         without default definition.
21089
21090 2008-02-17  Richard Guenther  <rguenther@suse.de>
21091
21092         PR tree-optimization/35231
21093         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
21094         if A | B != 1.
21095
21096 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
21097
21098         Revert:
21099         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
21100         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
21101         libgcc_cmp_return mode.
21102
21103 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21104
21105         PR c/28368
21106         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
21107
21108 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
21109
21110         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
21111         multilibs.
21112
21113 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21114
21115         * doc/c-tree.texi: Use `@.' where appropriate.
21116         * doc/extend.texi: Likewise.
21117         * doc/install.texi: Likewise.
21118         * doc/invoke.texi: Likewise.
21119         * doc/loop.texi: Likewise.
21120         * doc/makefile.texi: Likewise.
21121         * doc/md.texi: Likewise.
21122         * doc/passes.texi: Likewise.
21123         * doc/standards.texi: Likewise.
21124         * doc/tm.texi: Likewise.
21125
21126 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
21127
21128         PR middle-end/35196
21129         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
21130         in entry_bb.
21131         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
21132         rather than in entry_bb.
21133
21134 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
21135
21136         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
21137         libgcc_cmp_return mode.
21138
21139 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
21140
21141         PR middle-end/35130
21142         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
21143         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
21144
21145 2008-02-15  Richard Guenther  <rguenther@suse.de>
21146             Zdenek Dvorak  <ook@ucw.cz>
21147
21148         PR tree-optimization/35164
21149         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
21150         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
21151         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
21152         Only propagate addresses which do not have abnormal SSA_NAMEs
21153         in their operands.
21154
21155 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
21156
21157         PR target/35088
21158         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
21159
21160 2008-02-15  Jan Hubicka  <jh@suse.cz>
21161
21162         PR middle-end/35149
21163         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
21164
21165 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
21166
21167         PR middle-end/34621
21168         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
21169         when calculating alignment_pad.
21170
21171 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
21172
21173         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
21174         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
21175         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
21176         and STACK_BOUNDARY define.
21177
21178 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
21179
21180         PR preprocessor/35061
21181         * c-pragma.c (handle_pragma_pop_macro): Check that
21182         pushed_macro_table has been allocated.
21183
21184 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
21185
21186         PR middle-end/35136
21187         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
21188         (force_gimple_operand): Likewise.
21189         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
21190         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
21191         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
21192         (find_interesting_uses_address): Check addressability and alignment
21193         of the base expression only after substituting bases of IVs into it.
21194
21195 2008-02-14  Michael Matz  <matz@suse.de>
21196
21197         PR target/34930
21198         * function.c (instantiate_virtual_regs_in_insn): Reload address
21199         before falling back to reloading the whole operand.
21200
21201 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
21202
21203         * config/s390/s390.c (s390_mainpool_start): Emit the pool
21204         before the first section switch note.
21205
21206 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21207
21208         * doc/bugreport.texi: Update copyright years.
21209         * doc/c-tree.texi: Likewise.
21210         * doc/cfg.texi: Likewise.
21211         * doc/cpp.texi: Likewise.
21212         * doc/cppinternals.texi: Likewise.
21213         * doc/fragments.texi: Likewise.
21214         * doc/frontends.texi: Likewise.
21215         * doc/gcc.texi: Likewise.
21216         * doc/gty.texi: Likewise.
21217         * doc/hostconfig.texi: Likewise.
21218         * doc/implement-c.texi: Likewise.
21219         * doc/libgcc.texi: Likewise.
21220         * doc/loop.texi: Likewise.
21221         * doc/makefile.texi: Likewise.
21222         * doc/options.texi: Likewise.
21223         * doc/passes.texi: Likewise.
21224         * doc/rtl.texi: Likewise.
21225         * doc/sourcebuild.texi: Likewise.
21226         * doc/standards.texi: Likewise.
21227         * doc/tree-ssa.texi: Likewise.
21228         * doc/trouble.texi: Likewise.
21229
21230         * doc/extend.texi: Use @: or add comma where appropriate.
21231         * doc/invoke.texi: Likewise.
21232         * doc/tm.texi: Likewise.
21233
21234 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
21235
21236         PR target/34393
21237         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
21238         to a reg.
21239
21240 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
21241
21242         * doc/md.texi (clz, ctz): Add reference.
21243         * doc/rtl.texi (clz, ctz): Likewise.
21244
21245 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21246
21247         PR other/35148
21248         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
21249         srcdir.
21250
21251 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
21252
21253         * config/s390/s390.c (struct constant_pool): New field
21254         emit_pool_after added.
21255         (s390_mainpool_start): Set the emit_pool_after flag according
21256         to the section switch notes.
21257         (s390_mainpool_finish): Consider emit_pool_after when emitting
21258         the literal pool at the end of the function.
21259         (s390_chunkify_start): Force literal pool splits at section
21260         switch notes.
21261
21262 2008-02-13  Michael Matz  <matz@suse.de>
21263
21264         PR debug/35065
21265         * var-tracking.c (clobber_variable_part): Correctly traverse the
21266         list.
21267
21268 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21269
21270         PR 29673
21271         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
21272         Add -fdump-ipa-inline.
21273         * tree-dump.c (dump_files): Remove tree-inlined dump.
21274         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
21275
21276 2008-02-12  Richard Guenther  <rguenther@suse.de>
21277
21278         PR tree-optimization/35171
21279         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
21280         default defs.
21281
21282 2008-02-12  Richard Guenther  <rguenther@suse.de>
21283
21284         PR middle-end/35163
21285         * fold-const.c (fold_widened_comparison): Use get_unwidened in
21286         value-preserving mode.  Disallow final truncation.
21287
21288 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
21289
21290         PR middle-end/35136
21291         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
21292         code from here to...
21293         (force_gimple_operand): ...here.
21294
21295 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
21296
21297         PR c++/35144
21298         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
21299         non-compatible pointers.
21300         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
21301         different FIELD_DECLs, try harder by comparing field offsets, sizes
21302         and types.
21303
21304         PR inline-asm/35160
21305         * function.c (match_asm_constraints_1): Don't replace the same input
21306         multiple times.
21307
21308 2008-02-12  Anatoly Sokolov <aesok@post.ru>
21309
21310         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
21311         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
21312         (expand_epilogue): Restore RAMPZ register.
21313         * config/avr/avr.md (RAMPZ_ADDR): New constant.
21314
21315 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
21316
21317         * config/i386/cygwin.asm: (__alloca): Correct calling
21318         convention and alignment.
21319         (__chkstk): Force 8 byte stack alignment.
21320
21321 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
21322             Richard Guenther  <rguenther@suse.de>
21323
21324         PR tree-optimization/33992
21325         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
21326         the zero we compare against.
21327
21328 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
21329
21330         PR libfortran/35063
21331         * gthr-win32.h (__gthread_mutex_destroy_function): New function
21332         to CloseHandle after unlocking to prevent accumulation of handle
21333         count.
21334
21335 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21336
21337         PR middle_end/34150
21338         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
21339         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
21340         and update LABEL_NUSES during and after reload.
21341
21342 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
21343
21344         PR middle-end/34627
21345         * combine.c (simplify_if_then_else): Make sure the comparison is
21346         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
21347
21348 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
21349
21350         PR bootstrap/35051
21351         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
21352         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
21353         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
21354         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
21355         * tree.h (get_type_static_bounds): Likewise.
21356
21357 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21358
21359         * doc/invoke.texi (Option Summary, C++ Dialect Options)
21360         (Objective-C and Objective-C++ Dialect Options, Warning Options):
21361         Make -Wfoo language annotations match what the compiler outputs.
21362
21363 2008-02-08  Sa Liu  <saliu@de.ibm.com>
21364
21365         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
21366         intrinsics spu_convts, spu_convtu, spu_convtf.
21367
21368 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
21369
21370         * doc/extend.texi (Function Attributes) <noinline>: Mention
21371         asm ("") as method to keep calls.
21372
21373 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21374
21375         PR other/32754
21376         * doc/options.texi (Options): Replace references to opts.sh with
21377         optc-gen.awk.
21378         * opts-common.c: Likewise.
21379         * optc-gen.awk: Likewise.
21380
21381 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
21382
21383         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
21384
21385 2008-02-07  Richard Henderson  <rth@redhat.com>
21386
21387         PR rtl-opt/33410
21388         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
21389         EXPR_LIST for the REG_EQUAL instead of a comparison with a
21390         funny mode.
21391
21392 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
21393
21394         PR tree-optimization/35085
21395         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
21396         for operand entry oe2 in addition to operand entry oe3 in order to
21397         expose more opportunities for vectorizer sum reduction.
21398
21399 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21400
21401         PR other/35107
21402         * Makefile.in (LIBS): Remove $(GMPLIBS).
21403         (cc1-dummy, cc1): Add $(GMPLIBS).
21404
21405 2008-02-06  Jan Hubicka  <jh@suse.cz>
21406
21407         PR target/23322
21408         * i386.md (moddf_integer): Do not produce partial memory stalls for
21409         targets where it hurts.
21410
21411 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
21412
21413         PR target/35083
21414         * optabs.c (expand_float): Do not check for decimal modes when
21415         expanding unsigned integer through signed conversion.
21416
21417 2008-02-06  Nick Clifton  <nickc@redhat.com>
21418
21419         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
21420         inside the clobber with a match_operand and duplicated operand
21421         number in the constraint.
21422         (ineqbranchsi): Delete redundant comment.
21423
21424 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
21425
21426         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
21427         builtin_define ("__USE_INIT_FINI__").
21428         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
21429         -msx multilibs.
21430         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
21431
21432 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21433
21434         PR documentation/30330
21435         * doc/invoke.texi (C++ Dialect Options)
21436         (Objective-C and Objective-C++ Dialect Options, Warning Options):
21437         For each warning option -Wfoo that allows -Wno-foo, ensure both
21438         -Wfoo and -Wno-foo are listed in the option index.  Fix index
21439         entry of -Wswitch-default, index -Wnormalized= including the
21440         `=', and -Wlarger-than-@var{len} including @var{len}.
21441
21442 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
21443
21444         * config/i386/i386.md (floatunssisf2): Use
21445         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
21446         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
21447         Macroize expander using MODEF mode iterator.
21448
21449 2008-02-05  Diego Novillo  <dnovillo@google.com>
21450
21451         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
21452
21453         PR 33738
21454         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
21455
21456 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21457
21458         PR other/35070
21459         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
21460
21461 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
21462
21463         PR target/35084
21464         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
21465         to indicate if a message should be generated.
21466         (init_cumulative_args): Updated.
21467         (function_value_32): Likewise.
21468
21469 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
21470
21471         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
21472
21473 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
21474
21475         PR target/35083
21476         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
21477         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
21478
21479 2008-02-04  Diego Novillo  <dnovillo@google.com>
21480
21481         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
21482
21483         PR 33738
21484         * tree-vrp.c (vrp_evaluate_conditional): With
21485         -Wtype-limits, emit a warning when comparing against a
21486         constant outside the natural range of OP0's type.
21487
21488 2008-02-04  Richard Guenther  <rguenther@suse.de>
21489
21490         PR middle-end/33631
21491         * expr.c (count_type_elements): Give for unions instead of
21492         guessing.
21493
21494 2008-02-04  Richard Guenther  <rguenther@suse.de>
21495
21496         PR middle-end/35043
21497         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
21498         to TYPE_DOMAINs base type instead of using bitsizetype here.
21499
21500 2008-02-03  Jason Merrill  <jason@redhat.com>
21501
21502         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
21503
21504 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21505
21506         PR other/29972
21507         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
21508         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
21509         (RS/6000 and PowerPC Options): Fix typos and markup.
21510         * doc/passes.texi (Tree-SSA passes): Likewise.
21511
21512 2008-02-02  Michael Matz  <matz@suse.de>
21513
21514         PR target/35045
21515         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
21516         from record_last_reg_set_info.
21517         (record_last_reg_set_info): Take an RTX argument, iterate over all
21518         constituent hardregs.
21519         (record_last_set_info, record_opr_changes): Change calls to
21520         new signature or to record_last_reg_set_info_regno.
21521
21522 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
21523
21524         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
21525
21526 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
21527
21528         PR rtl-optimization/34773
21529         * reg-notes.def (EQUAL): Mention significance of combination of
21530         REG_EQUAL and REG_RETVAL.
21531         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
21532         insn that has a REG_RETVAL.
21533
21534 2008-02-01  Roger Sayle  <roger@eyesopen.com>
21535
21536         PR bootstrap/33781
21537         * configure.ac (--enable-fixed-point): Disable unless explicitly
21538         requested on IRIX.
21539         * configure: Regenerate.
21540
21541 2008-02-01  Richard Guenther  <rguenther@suse.de>
21542
21543         PR other/35042
21544         * invoke.texi (-finline-limit): Remove no longer true parts
21545         of the documentation.  Note that there is no default value.
21546
21547 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
21548             Mark Mitchell  <mark@codesourcery.com>
21549             Ben Elliston  <bje@au.ibm.com>
21550
21551         PR c/29326
21552         * doc/extend.texi (Other Builtins): Document.
21553
21554 2008-01-31  Tom Browder <tom.browder@gmail.com>
21555
21556         * doc/c-tree.texi (Types): Fix grammar.
21557         (Expression trees): Ditto.
21558         * doc/passes.texi (Tree-SSA passes): Ditto.
21559
21560         * doc/configterms.texi (Configure Terms): Fix typo.
21561         * doc/cpp.texi (Common Predefined Macros): Ditto.
21562         * doc/md.texi (Machine Constraints): Ditto.
21563
21564         * doc/makefile.texi (Makefile): Add comma.
21565
21566 2008-01-31  Tom Browder  <tom.browder@gmail.com>
21567             Gerald Pfeifer  <gerald@pfeifer.com>
21568
21569         * doc/sourcebuild.texi (Front End): Remove references to CVS
21570         and CVSROOT/modules.
21571         (Texinfo Manuals): Replace reference to CVS by one to SVN.
21572         (Back End): Remove reference to CVS.
21573
21574 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
21575
21576         PR target/34900
21577         * config/mips/mips.c (gen_load_const_gp): New function, taking a
21578         comment from...
21579         (mips16_gp_pseudo_reg): ...here.
21580         * config/mips/mips.md (load_const_gp): Replace with...
21581         (load_const_gp_<mode>): ...this :P-based insn.
21582
21583 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21584
21585         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
21586         options. Minor fixes.
21587         (-std): Move reference to standards closer to where language
21588         standards are first mentioned.
21589
21590 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
21591
21592         PR rtl-optimization/34995
21593         * reload.c (alternative_allows_const_pool_ref): Take an rtx
21594         parameter and return a bool.  If the rtx parameter is nonnull,
21595         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
21596         (find_reloads): Update call accordingly.  Pass the new operand
21597         if it needed no address reloads, otherwise pass null.
21598
21599 2008-01-30  Richard Henderson  <rth@redhat.com>
21600
21601         PR c/34993
21602         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
21603         for unbounded arrays.
21604
21605 2008-01-30  Silvius Rus  <rus@google.com>
21606
21607         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
21608
21609 2008-01-30  Jan Hubicka  <jh@suse.cz>
21610
21611         PR target/34982
21612         * i386.c (init_cumulative_args): Use real function declaration when
21613         calling locally.
21614
21615 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
21616
21617         PR rtl-optimization/34998
21618         * global.c (build_insn_chain): Treat non-subreg_lowpart
21619         SUBREGs of pseudos as clobbering all the words covered by the
21620         SUBREG, not just all the bytes.
21621         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
21622         original df_ref rather than an extract parameter.
21623         (global_conflicts): Update call accordingly.
21624
21625 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
21626
21627         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
21628         the overflow check to make it easier to read.
21629         (__fixtfdi): Change the type of the ll member in union
21630         long_double to UDItype_x.
21631
21632 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
21633
21634         PR middle-end/34969
21635         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
21636         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
21637         * tree-inline.c (fold_marked_statements): Call
21638         cgraph_update_edges_for_call_stmt if folding a call statement.
21639         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
21640         debug_generic_stmt calls, reset it back afterwards.
21641
21642         PR c/35017
21643         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
21644         static decls.
21645         * c-typeck.c (build_external_ref): Don't pedwarn about
21646         static vars in current function's scope.
21647
21648 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
21649
21650         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
21651
21652 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
21653
21654         PR c/35002
21655         * ipa-struct-reorg.c: Fix spelling.
21656         * params.def: Ditto.
21657
21658 2008-01-29  Richard Guenther  <rguenther@suse.de>
21659
21660         PR middle-end/35006
21661         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
21662         field.
21663         * tree-inline.c (remap_type): Increment remapping_type_depth
21664         around remapping types.
21665         (copy_body_r): Only add referenced variables if they are referenced
21666         from code, not types.
21667
21668 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
21669
21670         PR c++/34055
21671         PR c++/34103
21672         PR c++/34219
21673         PR c++/34606
21674         PR c++/34753
21675         PR c++/34754
21676         PR c++/34755
21677         PR c++/34919
21678         PR c++/34961
21679         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
21680         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
21681
21682 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
21683
21684         PR target/34412
21685         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
21686         pointer for tiny stack.
21687
21688 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
21689
21690         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
21691
21692 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
21693
21694         * config/vx-common.h: Fix typo in comment.
21695
21696 2008-01-28  Ian Lance Taylor  <iant@google.com>
21697
21698         PR c++/34862
21699         PR c++/33407
21700         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
21701         coalesce pointers if they have different DECL_NO_TBAA_P values.
21702         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
21703         between variables with different DECL_NO_TBAA_P values.
21704
21705 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
21706
21707         PR 31535
21708         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
21709         are not legitimate small data references on SPE targets.
21710
21711 2008-01-28  David Daney  <ddaney@avtrex.com>
21712
21713         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
21714
21715 2008-01-28  David Daney  <ddaney@avtrex.com>
21716
21717         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
21718
21719 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
21720
21721         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
21722         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
21723         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
21724         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
21725         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
21726         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
21727         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
21728         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
21729
21730 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21731
21732         * basic-block.h (condjump_equiv_p): Fix comment.
21733
21734 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21735
21736         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
21737         print_generic_stmt_indented): Fix comment.
21738
21739 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21740
21741         * configure.ac (__stack_chk_fail): Add detecion for availability
21742         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
21743         * configure: Regenerate.
21744
21745 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
21746
21747         PR middle-end/34688
21748         * final.c (output_addr_const): Handle TRUNCATE.
21749
21750 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
21751
21752         PR target/34711
21753         * tree-ssa-loop-ivopts.c (comp_cost): New type.
21754         (zero_cost, infinite_cost): New constants.
21755         (struct cost_pair): Change type of cost to comp_cost.
21756         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
21757         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
21758         New functions.
21759         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
21760         split_address_cost, ptr_difference_cost, difference_cost,
21761         get_computation_cost_at, get_computation_cost,
21762         determine_use_iv_cost_generic, determine_use_iv_cost_address,
21763         determine_use_iv_cost_condition, determine_use_iv_costs,
21764         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
21765         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
21766         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
21767         Change type of cost to comp_cost.
21768         (determine_iv_cost): Increase cost of non-original ivs, instead
21769         of decreasing the cost of original ones.
21770         (get_address_cost): Indicate the complexity of the addressing mode
21771         in comp_cost.
21772         (try_add_cand_for): Prefer using ivs not specific to some object.
21773         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
21774
21775 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
21776             Janis Johnson  <janis187@us.ibm.com>
21777
21778         PR target/34814
21779         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
21780         (TARGET_INSTANTIATE_DECLS): Likewise.
21781         * target.h (expand_to_rtl_hook): New target hook.
21782         (instantiate_decls): Likewise.
21783         * function.c (instantiate_decl): Make non-static.  Rename to...
21784         (instantiate_decl_rtl): ... this.
21785         (instantiate_expr): Use instantiate_decl_rtl.
21786         (instantiate_decls_1): Likewise.
21787         (instantiate_decls): Likewise.
21788         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
21789         * function.h (instantiate_decl_rtl): Add prototype.
21790         * cfgexpand.c (target.h): New include.
21791         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
21792         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
21793         (TARGET_INSTANTIATE_DECLS): Likewise.
21794         (TARGET_INITIALIZER): New target hooks added.
21795         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
21796         New prototype.
21797         * config/rs6000/rs6000.c (tree-flow.h): New include.
21798         (machine_function): Add sdmode_stack_slot field.
21799         (rs6000_alloc_sdmode_stack_slot): New function.
21800         (rs6000_instantiate_decls): Likewise.
21801         (rs6000_secondary_memory_needed_rtx): Likewise.
21802         (rs6000_check_sdmode): Likewise.
21803         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
21804         (TARGET_INSTANTIATE_DECLS): Likewise.
21805         (rs6000_hard_regno_mode_ok): Allow SDmode.
21806         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
21807         (rs6000_emit_move): Handle SDmode.
21808         (function_arg_advance): Likewise.
21809         (function_arg): Likewise.
21810         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
21811         SDmode var args for 32-bit compiles.
21812         (rs6000_secondary_reload_class): Handle SDmode.
21813         (rs6000_output_function_epilogue): Likewise.
21814         (rs6000_function_value): Simplify if statement.
21815         (rs6000_libcall_value): Likewise.
21816         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
21817         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
21818         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
21819         (movsd_hardfloat): New define_insn.
21820         (movsd_softfloat): Likewise.
21821         (movsd_store): Likewise.
21822         (movsd_load): Likewise.
21823         (extendsddd2): Likewise.
21824         (extendsdtd2): Likewise.
21825         (truncddsd2): Likewise.
21826         (movdd_hardfloat64): Fixup comment.
21827         (UNSPEC_MOVSD_LOAD): New constant.
21828         (UNSPEC_MOVSD_STORE): Likewise.
21829
21830 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
21831
21832         PR c++/34965
21833         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
21834         TRUTH_XOR_EXPR.
21835         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
21836         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
21837         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
21838         and TRUTH_XOR_EXPR.
21839
21840 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
21841
21842         PR target/34794
21843         * config.gcc: Separate AIX 5.3 from AIX 6.1.
21844         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21845         __LONGDOUBLE128 too.
21846         * config/rs6000/aix61.h: New file.
21847
21848 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
21849
21850         PR rtl-optimization/34959
21851         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
21852         popcount and parity rtxes the same mode as their operand.
21853         Truncate or extend the result to the return value's mode
21854         if necessary.
21855
21856 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
21857
21858         PR target/34981
21859         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
21860         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
21861         to GOT_VERSION_REGNUM.
21862         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
21863         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
21864         * config/mips/mips.c (mips_emit_call_insn): New function.
21865         (mips_call_tls_get_addr): Call mips_expand_call directly.
21866         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
21867         emit_call_insn.
21868         (mips16_build_call_stub): Likewise.  Return the call insn or null.
21869         (mips_expand_call): Update the call to mips16_build_call_stub
21870         accordingly and a remove redundant condition.  Assert that MIPS16
21871         stubs do not use lazy binding.  Use mips_emit_call_insn and return
21872         the call insn.
21873         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
21874         TARGET_USE_GOT.
21875         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
21876         (mips_avoid_hazard): Remove hazard_set handling.
21877         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
21878         (UNSPEC_RESTORE_GP): ...this.
21879         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
21880         (FAKE_CALL_REGNO): Rename to...
21881         (GOT_VERSION_REGNUM): ...this.
21882         (type): Add "ghost" value.  Add an associated insn reservation.
21883         (hazard_set): Remove.
21884         (exception_receiver): Rename to...
21885         (restore_gp): ...this and update the unspec identifier accordingly.
21886         (exception_receiver, nonlocal_got_receiver): New expanders.
21887         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
21888         FAKE_CALL_REGNO.  Remove hazard_set attribute.
21889         (set_got_version, update_got_version): New patterns.
21890
21891 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
21892
21893         PR target/34970
21894         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
21895
21896 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
21897
21898         PR other/31955
21899         * doc/install.texi2html: Generate gcc-vers.texi.
21900
21901 2008-01-25  DJ Delorie  <dj@redhat.com>
21902
21903         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
21904
21905 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
21906
21907         * config/c4x: Remove directory.
21908         * config.gcc (crx-*, mt-*): Mark obsolete.
21909         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
21910         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
21911         sh-*-rtemscoff*): Remove cases.
21912         * defaults.h (C4X_FLOAT_FORMAT): Remove.
21913         * real.c (encode_c4x_single, decode_c4x_single,
21914         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
21915         c4x_extended_format): Remove.
21916         * real.h (c4x_single_format, c4x_extended_format): Remove.
21917         * doc/extend.texi (interrupt, naked): Remove mention of attributes
21918         on C4x.
21919         (Pragmas): Remove comment about c4x pragmas.
21920         * doc/install.texi (c4x): Remove target-specific instructions.
21921         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
21922         * doc/md.texi (Machine Constraints): Remove C4x documentation.
21923         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
21924         refer to C4x source files as examples.
21925         (C4X_FLOAT_FORMAT): Remove documentation.
21926
21927 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
21928
21929         * config/bfin/bfin.c (override_options): Reorder tests so that
21930         flag_pic gets enabled for -msep-data.
21931
21932 2008-01-25  Richard Guenther  <rguenther@suse.de>
21933
21934         PR middle-end/32244
21935         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
21936         to its bitfield precision if required.
21937
21938 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
21939
21940         PR middle-end/33880
21941         * tree-nested.c (walk_omp_for): New function.
21942         (convert_nonlocal_reference, convert_local_reference): Call
21943         walk_omp_for on OMP_FOR.
21944         (convert_call_expr): Call walk_body on OMP_FOR's
21945         OMP_FOR_PRE_INIT_BODY.
21946
21947 2008-01-25  Richard Guenther  <rguenther@suse.de>
21948
21949         PR tree-optimization/34966
21950         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
21951         default defs and PHI_NODEs we have to insert after the
21952         defining statement.
21953
21954 2008-01-24  Nick Clifton  <nickc@redhat.com>
21955
21956         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
21957         Provide a default definition.
21958         (LIBGCC2_UNITS_PER_WORD): Likewise.
21959
21960         * config/stormy16/stormy16.c: Include df.h for the prototype
21961         for df_regs_ever_live_p.
21962         (xstormy16_expand_builtin_va_start): Convert the stack offset
21963         into a component_ref and then use POINTER_PLUS_EXPR to add it
21964         to the incoming_virtual_args_rtx.
21965         (xstormy16_gimplify_va_arg_expr): Rename to
21966         xstormy16_gimplify_va_arg_expr.
21967         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
21968         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
21969         xstormy16_gimplify_va_arg_expr.
21970         Fix up some formatting issues.
21971
21972         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
21973         Move to predicates.md.
21974         (xs_hi_general_operand): Likewise.
21975         (xs_hi_nonmemory_operand): Likewise.
21976         * config/stormy16/predicates.md:
21977         (xstormy16_carry_plus_operand): New predicate.
21978         (xs_hi_general_operand): New predicate.
21979         (xs_hi_nonmemory_operand): New predicate.
21980         * config/stormy16/stormy16-protos.h:
21981         (xstormy16_carry_plus_operand): Delete prototype.
21982         (xs_hi_general_operand): Likewise.
21983         (xs_hi_nonmemory_operand): Likewise.
21984
21985         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
21986         modifiers as they are no longer needed and they can trigger
21987         reload spill failures.
21988
21989         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
21990         with a match_operand in order to help reload.
21991
21992         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
21993         constraint with 'e' for the 8th alternative as this version of
21994         the mov.w instruction only accepts the lower 8 registers.
21995
21996 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
21997
21998         PR target/34856
21999         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
22000         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
22001         vector elements.
22002
22003 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
22004
22005         PR middle-end/33333
22006         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
22007
22008 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
22009
22010         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
22011         New functions.
22012         (remove_structure): Update allocations list before removing structure.
22013
22014 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
22015
22016         * ipa-struct-reorg.c (is_safe_cond_expr,
22017         create_new_stmts_for_cond_expr): Use integer_zerop function,
22018         that recognize not only zero-pointer, but zero-integer too.
22019
22020 2008-01-25  Ben Elliston  <bje@au.ibm.com>
22021
22022         PR other/22232
22023         * fixproto: Escape "." in sed expression that strips leading "./".
22024
22025 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
22026
22027         PR driver/34904
22028         * gcc.c (SWITCH_OK): Removed.
22029         (SWITCH_LIVE): Changed to bit.
22030         (SWITCH_FALSE): Likewise.
22031         (SWITCH_IGNORE): Likewise.
22032         (switchstr): Change live_cond to unsigned int.
22033         (process_command): Replace SWITCH_OK with 0.
22034         (do_self_spec): Likewise.
22035         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
22036         (give_switch): Likewise.
22037         (used_arg): Likewise.
22038         (do_spec_1): Set the SWITCH_IGNORE bit.
22039         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
22040         bits.  Set the SWITCH_LIVE bit.
22041
22042 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
22043
22044         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
22045
22046 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
22047
22048         PR tree-optimization/34472
22049         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
22050         parameter to a "bool *" and set *DATA to false if there is
22051         an unsafe access.  Do not delete the structure here.
22052         (check_cond_exprs): Delete it here instead.
22053         (check_cond_exprs, exclude_cold_structs): Do not increase
22054         I when removing a structure.
22055
22056 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
22057
22058         PR target/34856
22059         * config/i386/i386.c (ix86_expand_vector_init): Consider only
22060         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
22061
22062 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
22063
22064         PR middle-end/34934
22065         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
22066         a fixed vector for stack.
22067
22068 2008-01-24  Ben Elliston  <bje@au.ibm.com>
22069
22070         PR c++/25701
22071         * doc/gcc.texi (Software development): Add a direntry for g++.
22072
22073 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
22074
22075         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
22076         stale and straggling -fforce-addr comments above.
22077
22078         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
22079         define.
22080         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
22081         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
22082
22083 2008-01-23  Michael Matz  <matz@suse.de>
22084
22085         PR debug/34895
22086         * dwarf2out.c (force_type_die): Use modified_type_die instead of
22087         gen_type_die.
22088
22089 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
22090
22091         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
22092         malloc result type.
22093
22094 2008-01-23 Anatoly Sokolov <aesok@post.ru>
22095
22096         * config/avr/avr.c (avr_current_arch): New variable.
22097         (avr_arch_types): Add 'avr31' and 'avr51' entries.
22098         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
22099         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
22100         (avr_override_options): Init 'avr_current_arch'.
22101         (base_arch_s): Move from here...
22102         * config/avr/avr.h (base_arch_s): ... here. Add new members
22103         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
22104         'mega' to 'have_jmp_call'.
22105         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
22106         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
22107         macros.
22108         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
22109         architectures.
22110         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
22111         MULTILIB_MATCHES): Ditto.
22112
22113 2008-01-23  Richard Guenther  <rguenther@suse.de>
22114
22115         PR middle-end/31529
22116         * cgraphunit.c (cgraph_reset_node): Always mark the node
22117         not reachable if it is not queued already.
22118
22119 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
22120
22121         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
22122         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
22123         (cputype_selected): New static variable.
22124         (bfin_handle_option): Set it if -mcpu is used.
22125         (override_option): Select default set of workarounds if no cpu type
22126         selected on the command line.
22127         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
22128
22129         From  Michael Frysinger  <michael.frysinger@analog.com>
22130         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
22131         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
22132
22133         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
22134         for bf547, bf523, bf524, and bf526.
22135         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
22136         bf526.
22137         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
22138         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
22139         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
22140         __ADSPBF547__ and __ADSPBF54x__ for bf547.
22141         * doc/invoke.texi (Blackfin Options): Document that
22142         -mcpu now accept bf547, bf523, bf524, and bf526.
22143
22144 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22145
22146         PR rtl-optimization/34628
22147         * combine.c (try_combine): Stop and undo after the first combination
22148         if an autoincrement side-effect on the first insn has effectively
22149         been lost.
22150
22151 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
22152
22153         PR target/34529
22154         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
22155         Offset addresses are not valid for Altivec or paired float modes.
22156
22157 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
22158
22159         PR c++/34607
22160         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
22161         if DECL_INITIAL (decl) is error_mark_node.
22162
22163         PR c++/34914
22164         * c-common.c (handle_vector_size_attribute): Only allow
22165         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
22166         the same way as pointer, array etc. types.
22167         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
22168
22169         PR c++/34917
22170         * tree.c (build_type_attribute_qual_variant): Call
22171         build_qualified_type if attributes are equal, but quals are not.
22172
22173 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22174
22175         PR 32102
22176         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
22177         * flags.h (warn_strict_aliasing): Remove.
22178         (warn_strict_overflow): Remove.
22179         * opts.c (warn_strict_aliasing): Remove.
22180         (warn_strict_overflow): Remove.
22181         * c-opts.c (c_common_handle_option): -Wall only sets
22182         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
22183         (c_common_post_options): Give default values to -Wstrict-aliasing
22184         and -Wstrict-overflow if they are uninitialized.
22185         * common.opt (Wstrict-aliasing): Specify Var and Init.
22186         (Wstrict-overflow): Likewise.
22187
22188 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
22189
22190         PR rtl-optimization/26854
22191         PR rtl-optimization/34400
22192         PR rtl-optimization/34884
22193         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
22194         DF_RD->gen.
22195         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
22196         (df_rd_bb_info.expanded_lr_out): Deleted
22197         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
22198         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
22199         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
22200         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
22201         Removed code to allocate, initialize or free expanded_lr_out.
22202         (df_rd_bb_local_compute_process_def): Restructured to make more
22203         understandable.
22204         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
22205         sets if the sets are being trimmed.
22206
22207 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
22208
22209         PR bootstrap/32287
22210         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
22211         (as_vers): Likewise.
22212         * configure: Regenerated.
22213
22214 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22215
22216         PR middle-end/33092
22217         * tree-pass.h (pass_build_alias): New pass.
22218         * tree-ssa-alias.c (gate_build_alias): New.
22219         (pass_build_alias): New.
22220         * passes.c (init_optimization_passes): Add pass_build_alias after
22221         pass_create_structure_vars.
22222
22223 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
22224
22225         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
22226         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
22227         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
22228         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
22229         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
22230         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
22231         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
22232         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
22233         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
22234         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
22235         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
22236         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
22237         * config/s390/s390.md (FP_ALL): New mode iterator.
22238         (_d): New mode attribute.
22239         ("*signbit<mode>2>"): Changed mode of first operand.
22240         ("isinf<mode>2"): Changed mode of first operand.
22241         ("*TDC_insn"): Adaptation for DFP modes.
22242
22243 2008-01-22  Ben Elliston  <bje@au.ibm.com>
22244
22245         * tree.c (check_qualified_type): Improve function description.
22246
22247 2008-01-21  Jason Merrill  <jason@redhat.com>
22248
22249         PR c++/34196
22250         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
22251         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
22252         if it is set.
22253
22254 2008-01-21  DJ Delorie  <dj@redhat.com>
22255
22256         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
22257         return zero.
22258
22259 2008-01-21  Richard Guenther  <rguenther@suse.de>
22260
22261         PR middle-end/34856
22262         * tree-cfg.c (verify_expr): Allow all invariant expressions
22263         instead of just constant class ones as reference argument.
22264         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
22265         like any other constant.
22266         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22267
22268 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
22269
22270         * regmove.c (fixup_match_1): Update call crossed frequencies.
22271
22272 2008-01-21  Richard Guenther  <rguenther@suse.de>
22273
22274         PR c/34885
22275         * tree-inline.c (setup_one_parameter): Deal with mismatched
22276         types using a VIEW_CONVERT_EXPR.
22277
22278 2008-01-21  Alon Dayan  <alond@il.ibm.com>
22279             Olga Golovanevsky  <olga@il.ibm.com>
22280
22281         PR tree-optimization/34701
22282         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
22283         when the structure size is not a power of 2.
22284
22285 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
22286
22287         * doc/install.texi: Add doc for --enable-checking=df.
22288
22289 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
22290
22291         PR rtl-optimization/34808
22292         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
22293
22294 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
22295
22296         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
22297         input.
22298
22299 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
22300
22301         PR rtl-optimization/26854
22302         PR rtl-optimization/34400
22303         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
22304         DF_RD->gen.
22305         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
22306         (df_rd_bb_info.expanded_lr_out): New.
22307         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
22308         * loop_iv.c (iv_analysis_loop_init): Ditto.
22309         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
22310         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
22311         Added code to allocate, initialize or free expanded_lr_out.
22312         (df_rd_bb_local_compute_process_def): Restructured to make
22313         more understandable.
22314         (df_rd_confluence_n): Add code to do nothing with fake edges and
22315         code to no apply invalidate_by_call sets if the sets are being trimmed.
22316         (df_lr_local_finalize): Renamed to df_lr_finalize.
22317         (df_live_local_finalize): Renamed to df_live_finalize.
22318
22319 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
22320
22321         PR target/34831
22322         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
22323         deciding whether to use reciprocal instructions.
22324
22325 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
22326
22327         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
22328         dwarf2out_note_section_used if cold_text_section is NULL.
22329
22330 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
22331
22332         PR gcov-profile/34610
22333         * tree-cfg.c (make_edges): Mark both outgoing edges from
22334         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
22335         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
22336         from OMP_FOR and OMP_CONTINUE outgoing edges.
22337
22338         * tree-profile.c (tree_profiling): Return early if
22339         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
22340         at the end.
22341         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
22342         from cfun to child_cfun.
22343         * function.h (struct function): Add after_tree_profile bit.
22344
22345 2008-01-19 Anatoly Sokolov <aesok@post.ru>
22346
22347         * config/avr/avr.S (_exit): Disable interrupt.
22348
22349 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
22350             Steven Bosscher  <stevenb.gcc@gmail.com>
22351
22352         PR rtl-optimization/26854
22353         PR rtl-optimization/34400
22354         * df-problems.c (df_live_scratch): New scratch bitmap.
22355         (df_live_alloc): Allocate df_live_scratch when doing df_live.
22356         (df_live_reset): Clear the proper bitmaps.
22357         (df_live_bb_local_compute): Only process the artificial defs once
22358         since the order is not important.
22359         (df_live_init): Init the df_live sets only with the variables
22360         found live by df_lr.
22361         (df_live_transfer_function): Use the df_lr sets to prune the
22362         df_live sets as they are being computed.
22363         (df_live_free): Free df_live_scratch.
22364
22365 2008-01-18  Ian Lance Taylor  <iant@google.com>
22366
22367         * common.opt: Add fmerge-debug-strings.
22368         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
22369         flag_merge_debug_strings rather than flag_merge_constants.
22370         * doc/invoke.texi (Option Summary): Mention
22371         -fmerge-debug-strings.
22372         (Debugging Options): Document -fmerge-debug-strings.
22373
22374 2008-01-18  Ian Lance Taylor  <iant@google.com>
22375
22376         PR c++/33407
22377         * tree.h (DECL_IS_OPERATOR_NEW): Define.
22378         (struct tree_function_decl): Add new field operator_new_flag.
22379         * tree-inline.c (expand_call_inline): When inlining a call to
22380         operator new, force the return value to go into a variable, and
22381         set DECL_NO_TBAA_P on that variable.
22382         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
22383
22384 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
22385
22386         PR debug/34484
22387         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
22388         DWARF2_DEBUGGING_INFO.
22389         (dwarf2out_note_section_used): Ditto.  Add prototype.
22390         (have_multiple_function_sections, text_section_used,
22391         cold_text_section_used, *cold_text_sections): Move declarations
22392         before their uses.
22393
22394 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
22395
22396         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
22397         field and add signal_ra.
22398         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
22399         assignments to frame state pc.  Move end of stack check after
22400         MD_FALLBACK_FRAME_STATE_FOR.
22401         (uw_update_context_1): Use frame state signal_regs if set, instead
22402         of checking signal_frame flag.
22403         (uw_update_context): Use frame state signal_ra if set.
22404         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
22405         * config/xtensa/linux-unwind.h: New file.
22406
22407 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
22408
22409         * modulo-sched.c (get_sched_window): Fix comment typo.
22410
22411 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
22412
22413         PR tree-optimization/34648
22414         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
22415
22416 2008-01-17  Anatoly Sokolov <aesok@post.ru>
22417
22418         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
22419         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
22420
22421 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
22422
22423         PR rtl-optimization/34400
22424         * df-core.c (df_worklist_dataflow_overeager,
22425         df_worklist_dataflow_doublequeue): New functions.
22426         (df_worklist_dataflow): Two different worklist solvers.
22427         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
22428         New param.
22429
22430 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22431
22432         PR testsuite/34821
22433         * doc/invoke.texi: Document the dependence on pthread for fopenmp
22434         and ftree-parallelize-loops.
22435
22436 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
22437
22438         PR rtl-optimization/34826
22439         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
22440
22441 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
22442
22443         * global.c (find_reg): Mark the eh regs as used if necessary.
22444         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
22445         * ra.h (struct allocno): no_eh_reg field added.  Changed
22446         no_stack_reg type to bitfield.
22447
22448 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
22449
22450         * tree.c (substitute_in_expr): Add missing 'break'.
22451
22452 2008-01-17  Richard Guenther  <rguenther@suse.de>
22453
22454         PR tree-optimization/34825
22455         * tree-ssa-math-opts.c (is_division_by): Do not recognize
22456         x / x as division to handle.
22457
22458 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22459
22460         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
22461         "-pthread" is specified.
22462         * pa-hpux11.h (LIB_SPEC): Likewise.
22463
22464 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
22465             Peter Bergner  <bergner@vnet.ibm.com>
22466
22467         PR rtl-optimization/33796
22468         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
22469
22470 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22471
22472         PR libgfortran/34699
22473         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
22474         static links.
22475         * pa-hpux10.h (LINK_SPEC): Likewise.
22476         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
22477
22478 2008-01-16  Richard Guenther  <rguenther@suse.de>
22479
22480         PR middle-end/32628
22481         * fold-const.c (fold_convert_const_int_from_int): Do not
22482         set overflow if that occured only because of a sign extension
22483         change when converting from/to a sizetype with the same
22484         precision and signedness.
22485
22486 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
22487
22488         PR debug/34249
22489         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
22490         location address to the correct place.  Update copyright year.
22491
22492 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22493
22494         * lambda-code.c (lambda_transform_legal_p): Handle the case of
22495         no dependences in the dependence_relations vector.
22496
22497 2008-01-16  Jan Hubicka  <jh@suse.cz>
22498
22499         PR rtl-optimization/31396
22500         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
22501         * cfg.c (dump_reg_info): Print it.
22502         * regs.h (struct reg_info_t): add freq_calls_crossed.
22503         (REG_FREQ_CALLS_CROSSED): New macro.
22504         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
22505         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
22506         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
22507         regmove_optimize): Update call crossed frequencies.
22508         * local-alloc.c (struct qty): Add freq_calls_crossed.
22509         (alloc_qty): Copute freq_calls_crossed.
22510         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
22511         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
22512         * ra.h (struct allocno): Add freq_calls_crossed.
22513
22514 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22515
22516         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
22517         libgomp when compiling with ftree-parallelize-loops.
22518         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
22519
22520 2008-01-16  Richard Guenther  <rguenther@suse.de>
22521
22522         PR tree-optimization/34769
22523         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
22524         * tree.c (int_cst_value): Instead make this function more
22525         permissive in what it accepts as valid input.  Document this
22526         function always sign-extends the value.
22527
22528 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
22529             Richard Guenther  <rguenther@suse.de>
22530
22531         PR c/34668
22532         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
22533         (gimple_fold_indirect_ref_rhs): ... this.
22534         (gimple_fold_indirect_ref): New function with foldings
22535         that preserve lvalueness.
22536         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
22537         * tree-flow.h (gimple_fold_indirect_ref): Declare.
22538         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
22539         to fold an INDIRECT_REF, fall back to the old use of
22540         fold_indirect_ref_1.
22541
22542 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22543
22544         * tree-data-ref.c (subscript_dependence_tester_1): Call
22545         free_conflict_function.
22546         (compute_self_dependence): Same.
22547
22548 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
22549
22550         PR debug/34249
22551         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
22552         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
22553         function global.
22554         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
22555         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
22556         for DWARF2_UNWIND_INFO targets.
22557
22558 2008-01-16  Richard Guenther  <rguenther@suse.de>
22559
22560         PR c/34768
22561         * c-typeck.c (common_pointer_type): Do not merge inconsistent
22562         type qualifiers for function types.
22563
22564 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
22565
22566         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
22567         loop_iterator li from previous commit.
22568
22569 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
22570
22571         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
22572
22573 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
22574
22575         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
22576         (parallelize_loops): Don't parallelize irreducible components.
22577
22578 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22579
22580         PR c++/24924
22581         * c-opts (c_common_post_options): Do not enable CPP
22582         flag_pedantic_errors by default.
22583
22584 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
22585
22586         PR rtl-optimization/31944
22587         * cse.c (remove_pseudo_from_table): New function.
22588         (merge_equiv_classes): Use above function to remove pseudo-registers.
22589         (invalidate): Likewise.
22590
22591 2008-01-13  Richard Guenther  <rguenther@suse.de>
22592
22593         PR middle-end/34601
22594         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
22595         instead of TYPE_MODE to deal with calls from expand_one_error_var.
22596
22597 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
22598
22599         * gcse.c (cprop_jump): Call validate_unshare_change instead of
22600         validate_change to unshare the source of the PC set.
22601
22602 2008-01-12  Jan Hubicka  <jh@suse.cz>
22603
22604         PR middle-end/32135
22605         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
22606         references above array bounds.  This might trigger bounds checks for
22607         pointers to arrays.
22608
22609 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
22610
22611         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
22612         new_replaceable_dependencies.
22613
22614 2008-01-12  Doug Kwan  <dougkwan@google.com>
22615
22616         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
22617         instead of OPT_Wreturn_type in warning due to ignored return type
22618         qualifiers.
22619         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
22620         options included in -Wextra.
22621         * c.opt: New option -Wignored_qualifiers.
22622         * doc/invoke.texi (Warning Options, -Wextra): Add new option
22623         -Wignore_qualifiers.
22624         (-Wignored-qualifiers): Document.
22625         (-Wreturn-type): Remove description of functionality now handled
22626         by -Wignored-qualifiers.
22627
22628 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
22629
22630         PR ada/33788
22631         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
22632         NOP_EXPR if it is between integral types with the same precision.
22633
22634 2008-01-12  Jan Hubicka  <jh@suse.cz>
22635
22636         PR other/28023
22637         * invoke.texi (max-inline-recursive-depth): Fix default value.
22638
22639 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
22640
22641         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
22642         correct type.
22643
22644 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
22645
22646         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
22647
22648 2008-01-11  James E. Wilson  <wilson@specifix.com>
22649
22650         PR target/26015
22651         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
22652
22653 2008-01-11  Anatoly Sokolov <aesok@post.ru>
22654
22655         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
22656         save/restore frame pointer register and don't use 'call-prologues'
22657         optimization in function with "OS_task" attribute.
22658
22659 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
22660
22661         PR middle-end/31309
22662         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
22663         when copying to memory.
22664
22665 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
22666
22667         PR rtl-optimization/30905
22668         * cfgcleanup.c: Include dce.h
22669         (crossjumps_occured): New global variable.
22670         (try_crossjump_bb): Exit loop after finding a fallthru edge.
22671         If something changed, set crossjumps_occured to true.
22672         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
22673         Don't add/remove fake edges to exit here...
22674         (cleanup_cfg): ...but do it here, when crossjumping.
22675         Run a fast DCE when successful crossjumps occured in the latest
22676         iteration of try_optimize_cfg.
22677
22678 2008-01-11  Richard Guenther  <rguenther@suse.de>
22679
22680         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
22681         (struct vn_unary_op_s): Likewise.
22682         (vn_reference_insert): Free old reference on hash collision.
22683
22684 2008-01-10  Raksit Ashok  <raksit@google.com>
22685
22686         PR rtl-optimization/27971
22687         * combine.c (find_split_point): Split PLUS expressions which are
22688         inside a MEM rtx, and whose first operand is complex.
22689
22690 2008-01-10  DJ Delorie  <dj@redhat.com>
22691
22692         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
22693         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
22694         (m32c_hard_regno_ok): Call the underlying function.
22695
22696 2008-01-10  Richard Guenther  <rguenther@suse.de>
22697
22698         PR middle-end/34683
22699         * tree-cfg.c (tree_merge_blocks): Do not go through the
22700         full-blown folding and stmt updating path if we just deal
22701         with virtual operands.
22702         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
22703         test for abnormal SSA_NAMEs.
22704
22705 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
22706
22707         PR middle-end/34641
22708         * reload.c (push_reload): Add assertions.  All constants from
22709         reg_equiv_constant should have been used for replacing the respective
22710         pseudo earlier.
22711         (find_reloads_address): Invoke find_reloads_address_part for
22712         constant taken from the reg_equiv_constant array.
22713
22714 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
22715
22716         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
22717         field (valnum) the first in the struct.  Replace bools with
22718         unit bit fields.
22719
22720 2008-01-10  Richard Guenther  <rguenther@suse.de>
22721
22722         PR tree-optimization/34651
22723         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
22724         types and ordering for masking and converting.
22725
22726 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
22727
22728         PR tree-optimization/34017
22729         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
22730         also for PHI_NODE expressions.
22731
22732 2008-01-09  Jan Hubicka  <jh@suse.cz>
22733
22734         PR tree-optimization/34708
22735         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
22736         based on number of case labels.
22737         (init_inline_once): Remove switch_cost.
22738         * tree-inline.h (eni_weights_d): Remove switch_cost.
22739
22740 2008-01-09  Richard Guenther  <rguenther@suse.de>
22741         Andrew Pinski  <andrew_pinski@playstation.sony.com>
22742
22743         PR middle-end/30132
22744         * gimplify.c (gimplify_cond_expr): Do not create an addressable
22745         temporary if an rvalue is ok or an lvalue is not required.
22746
22747 2008-01-09  Richard Guenther  <rguenther@suse.de>
22748
22749         PR middle-end/34458
22750         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
22751         adjust return type.
22752
22753 2008-01-09  Richard Guenther  <rguenther@suse.de>
22754
22755         PR middle-end/34679
22756         * tree.c (host_integerp): Check for sizetype only if the
22757         type is an integer type.
22758
22759 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
22760
22761         PR debug/26364
22762         * opts.c (decode_options): Disable inlining of functions called
22763         once if not in unit-at-a-time mode.
22764
22765 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
22766
22767         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
22768
22769 2008-01-08  Richard Guenther  <rguenther@suse.de>
22770
22771         PR middle-end/31863
22772         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
22773         out early if the result will be unused.
22774
22775 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
22776
22777         PR target/34709
22778         Revert:
22779
22780         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22781         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22782         for TARGET_RECIP.
22783
22784 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
22785
22786         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
22787         for vectorization tuned.
22788
22789 2008-01-08  Richard Guenther  <rguenther@suse.de>
22790
22791         PR tree-optimization/34683
22792         * tree-ssa-operands.c (operand_build_cmp): Export.
22793         * tree-ssa-operands.h (operand_build_cmp): Declare.
22794         * tree-vn.c (vuses_compare): Remove.
22795         (sort_vuses): Use operand_build_cmp.
22796         (sort_vuses_heap): Likewise.
22797         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
22798         to re-use old VEC if available.  Do not sort already sorted VUSEs.
22799         (vdefs_to_vec): Do not sort already sorted VDEFs.
22800
22801 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
22802
22803         PR middle-end/34694
22804         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
22805
22806 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
22807
22808         PR target/34702
22809         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
22810         limitations of reciprocal sequences on x86 targets.
22811
22812 2008-01-08  Richard Guenther  <rguenther@suse.de>
22813
22814         PR tree-optimization/34683
22815         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
22816
22817 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
22818
22819         PR target/34622
22820         * config/darwin.c (darwin_mergeable_string_section): Don't use
22821         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
22822
22823 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
22824
22825         PR target/34682
22826         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
22827         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
22828         predicates of op0 and op1 to register_operand.
22829         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
22830         expander using X87MODEF mode iterator.  Change predicates of
22831         op0 and op1 to register_operand.
22832         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
22833         corresponding patterns and macroize using MODEF macro.  Change
22834         predicates of op0 and op1 to register_operand and remove
22835         "m" constraint. Disparage "r" alternative with "!".
22836         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
22837         macroize using X87MODEF macro.  Change predicates of op0 and op1
22838         to register_operand and remove "m" constraint.  Disparage "r"
22839         alternative with "!".
22840         (absneg splitter with memory operands): Remove.
22841         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
22842         patterns and macroize using X87MODEF mode iterator.
22843         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
22844         Change predicate of op1 to register_operand.
22845         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
22846         for memory operands.
22847
22848 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
22849
22850         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
22851
22852 2008-01-07  Richard Guenther  <rguenther@suse.de>
22853
22854         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
22855         fields.
22856
22857 2008-01-07  Richard Guenther  <rguenther@suse.de>
22858
22859         PR tree-optimization/34683
22860         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
22861         VOPs of the needed size to save memory.  Use VEC_quick_push
22862         to save compile-time.
22863         (vdefs_to_vec): Likewise.
22864
22865 2008-01-07  Sa Liu  <saliu@de.ibm.com>
22866
22867         * config/spu/spu.md (divdf3): Genetate inline code for double
22868         division.  The implementation doesn't handle INF or NAN, therefore it
22869         only applies when -ffinite-math-only is given.
22870
22871 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
22872
22873         PR libstdc++/34680
22874         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
22875         * doc/cpp.texi ([Common Predefined Macros]): Document.
22876
22877 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
22878
22879         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
22880         order to use commutative addition instead of subtraction.
22881
22882 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22883             Mircea Namolaru  <namolaru@il.ibm.com>
22884             Vladimir Yanovsky  <yanov@il.ibm.com>
22885             Revital Eres  <eres@il.ibm.com>
22886
22887         PR tree-optimization/34263
22888         * tree-outof-ssa.c (process_single_block_loop_latch,
22889         contains_tree_r): New functions.
22890         (analyze_edges_for_bb): Call process_single_block_loop_latch
22891         function to empty single-basic-block latch block if possible.
22892
22893 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22894
22895         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22896         for TARGET_RECIP.
22897         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
22898
22899 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
22900
22901         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
22902
22903 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
22904
22905         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
22906
22907 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
22908
22909         PR tree-optimization/34618
22910         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
22911         flag from T.
22912
22913 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22914
22915         PR target/34673
22916         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
22917         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
22918         Update copyright year.
22919
22920         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
22921         Update copyright year.
22922         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
22923         using NR fixup.
22924
22925 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
22926
22927         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
22928         edge does not point to current bb before changing need_assert.
22929
22930 2008-01-04  Richard Guenther  <rguenther@suse.de>
22931
22932         PR middle-end/34029
22933         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
22934         for verifying purposes if they are is_gimple_min_invariant.
22935
22936 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
22937
22938         PR tree-optimization/34448
22939         PR tree-optimization/34465
22940         * gimplify.c (gimplify_init_constructor): Add new parameter
22941         notify_temp_creation.  Use it.
22942         (gimplify_modify_expr_rhs): Take volatiles into account when
22943         optimizing constructors.
22944         Do not optimize constructors if gimplify_init_constructor will dump to
22945         memory.
22946         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
22947         * gcc.c-torture/compile/pr34448.c: New.
22948
22949 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
22950
22951         PR gcov-profile/34609
22952         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
22953         return_slot if result is TREE_ADDRESSABLE.
22954
22955 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
22956
22957         * config/mips/mips.md (sqrt_condition): Tweak comment.
22958         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
22959
22960 2008-01-03  Tom Tromey  <tromey@redhat.com>
22961
22962         PR c/34457
22963         * c-common.c (c_type_hash): Handle VLAs.
22964
22965 2008-01-03  Jan Hubicka  <jh@suse.cz>
22966
22967         PR tree-optimization/31081
22968         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
22969         0 when inlining and not inlining to first basic block.
22970         (remap_decl): When var is initialized to 0, don't set default_def.
22971         (expand_call_inline): Set entry_bb.
22972         * tree-inline.h (copy_body_data): Add entry_bb.
22973
22974 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
22975
22976         PR c++/34619
22977         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
22978         before returning.
22979
22980         PR tree-optimization/29484
22981         * tree-inline.c (inline_forbidden_p_2): New function.
22982         (inline_forbidden_p): Disallow inlining if some static var
22983         has an address of a local LABEL_DECL in its initializer.
22984         * doc/extend.texi (Labels as Values): Document &&foo behaviour
22985         vs. inlining.
22986
22987 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
22988
22989         PR tree-optimization/34635
22990         * tree-data-ref.c (add_other_self_distances): Make sure that the
22991         evolution step is constant.
22992
22993 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
22994
22995         PR middle-end/34608
22996         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
22997
22998 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
22999
23000         * tree-sra.c (scalarize_init): Insert the generate_element_init
23001         statements after the generate_element_zero statements.
23002
23003 2008-01-02  Richard Guenther  <rguenther@suse.de>
23004
23005         PR middle-end/34093
23006         PR middle-end/31976
23007         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
23008         for very large number of operands instead of ICEing.
23009
23010 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
23011
23012         PR target/34013
23013         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
23014         while stack probing.
23015
23016 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
23017
23018         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
23019         in C++0x mode.
23020
23021 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
23022
23023         PR libmudflap/26442
23024         * tree-mudflap.c (mx_register_decls): Guard warning by
23025         !DECL_ARTIFICIAL check.
23026
23027 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
23028
23029         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
23030         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
23031         sse5_perm<mode>): Fix constraints.