OSDN Git Service

PR c++/38253
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-12-11  Jakub Jelinek  <jakub@redhat.com>
2
3         PR c++/38253
4         * gimplify.c (gimplify_init_constructor): Don't force constructor
5         into memory if there is just one nonzero element.
6
7 2008-12-11  Sebastian Pop  <sebastian.pop@amd.com>
8
9         Fix testsuite/gfortran.dg/graphite/id-4.f90.
10         * graphite.c (scan_tree_for_params): Do not compute the multiplicand
11         when not needed.
12
13 2008-12-11  Sebastian Pop  <sebastian.pop@amd.com>
14
15         * graphite.c (build_scops_1): Initialize open_scop.exit
16         and sinfo.last.
17
18 2008-12-11  Sebastian Pop  <sebastian.pop@amd.com>
19             Jan Sjodin  <jan.sjodin@amd.com>
20             Harsha Jagasia  <harsha.jagasia@amd.com>
21
22         PR middle-end/37852
23         PR middle-end/37883
24         PR middle-end/37928
25         PR middle-end/37980
26         PR middle-end/38038
27         PR middle-end/38039
28         PR middle-end/38073
29         PR middle-end/38083
30         PR middle-end/38125
31
32         * tree-phinodes.c (remove_phi_nodes): New, extracted from...
33         * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block): ...here.
34         * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
35         * Makefile.in (graphite.o): Depend on value-prof.h.
36         (graphite.o-warn): Removed -Wno-error.
37         * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list 
38         to be a NULL pointer.  Call update_stmt.  Return the newly created 
39         cannonical induction variable.
40
41         * graphite.h (debug_rename_map): Declared.  Fix some comments.
42
43         * graphite.c: Reimplement the code generation from graphite to gimple.
44         Include value-prof.h.
45         (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
46         (get_old_iv_from_ssa_name): Removed.
47         (graphite_stmt_p): New.
48         (new_graphite_bb): Test for useful statements before building a
49         graphite statement for the basic block.
50         (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
51         in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without 
52         reason.
53         (recompute_all_dominators, graphite_verify,
54         nb_reductions_in_loop, graphite_loop_normal_form): New.
55         (scop_record_loop): Call graphite_loop_normal_form.
56         (build_scop_loop_nests): Iterate over all the blocks of the
57         function instead of relying on the incomplete information from
58         SCOP_BBS.  Return the success of the operation.
59         (find_params_in_bb): Use the data from GBB_DATA_REFS.
60         (add_bb_domains): Removed.
61         (build_loop_iteration_domains): Don't call add_bb_domains.
62         Add the iteration domain only to the basic blocks that have been
63         translated to graphite.
64         (build_scop_conditions_1): Add constraints only if the basic
65         block have been translated to graphite.
66         (build_scop_data_accesses): Completely disabled until data
67         dependence is correctly implemented.
68         (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
69         (remove_all_edges_1, remove_all_edges): Removed.
70         (get_new_name_from_old_name): New.
71         (graphite_rename_variables_in_stmt): Renamed 
72         rename_variables_in_stmt.  Call get_new_name_from_old_name.
73         Use replace_exp and update_stmt.
74         (is_old_iv): Renamed is_iv.
75         (expand_scalar_variables_stmt): Extra parameter for renaming map.
76         Use replace_exp and update_stmt.
77         (expand_scalar_variables_expr): Same.  Use the map to get the
78         new names for the renaming of induction variables and for the
79         renaming of variables after a basic block has been copied.
80         (expand_scalar_variables): Same.
81         (graphite_rename_variables): Renamed rename_variables.
82         (move_phi_nodes): Removed.
83         (get_false_edge_from_guard_bb): New.
84         (build_iv_mapping): Do not insert the induction variable of a
85         loop in the renaming iv map if the basic block does not belong
86         to that loop.
87         (register_old_new_names, graphite_copy_stmts_from_block,
88         copy_bb_and_scalar_dependences): New.
89         (translate_clast): Heavily reimplemented: copy basic blocks,
90         do not move them.  Finally, in call cleanup_tree_cfg in gloog.
91         At each translation step call graphite_verify ensuring the 
92         consistency of the SSA, loops and dominators information.
93         (collect_virtual_phis, find_vdef_for_var_in_bb,
94         find_vdef_for_var_1, find_vdef_for_var,
95         patch_phis_for_virtual_defs): Removed huge hack.
96         (mark_old_loops, remove_dead_loops, skip_phi_defs,
97         collect_scop_exit_phi_args, patch_scop_exit_phi_args,
98         gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
99         (remove_sese_region, ifsese, if_region_entry, if_region_exit,
100         if_region_get_condition_block, if_region_set_false_region,
101         create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
102         sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb, 
103         sese_add_exit_phis_edge, sese_add_exit_phis_var,
104         rewrite_into_sese_closed_ssa): New.
105         (gloog): Remove dead code.  Early return if code cannot be
106         generated.  Call cleanup_tree_cfg once the scop has been code
107         generated.
108         (graphite_trans_scop_block, graphite_trans_loop_block): Do not 
109         block loops with less than two loops.
110         (graphite_apply_transformations): Remove the call to
111         scop_remove_ignoreable_gbbs.
112         (limit_scops): When build_scop_loop_nests fails, continue on next scop.
113         Fix open_scop.entry.
114         (graphite_transform_loops): Call recompute_all_dominators: force the
115         recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
116         Call initialize_original_copy_tables and free_original_copy_tables
117         to be able to copy basic blocks during code generation.
118         When build_scop_loop_nests fails, continue on next scop.
119         (value_clast): New union.
120         (clast_to_gcc_expression): Fix type cast warning.
121
122 2008-12-10  Richard Guenther  <rguenther@suse.de>
123
124         PR tree-optimization/36792
125         * tree-ssa-pre.c (compute_avail): Handle tcc_comparison like
126         tcc_binary.
127
128 2008-12-10  Daniel Berlin  <dberlin@dberlin.org>
129
130         PR tree-optimization/36792
131         * tree-ssa-pre.c (compute_avail): Don't insert defs into maximal
132         set.
133
134 2008-12-10  Alexandre Oliva  <aoliva@redhat.com>
135
136         PR target/37033
137         * dwarf2out.c (saved_do_cfi_asm): New.
138         (dwarf2out_do_frame): Take it into account.
139         (dwarf2out_d_cfi_asm): Likewise.  Set it when appropriate.
140
141 2008-12-10  Alexandre Oliva  <aoliva@redhat.com>
142
143         PR middle-end/38271
144         * tree-sra.c (sra_build_bf_assignment): Avoid warnings for
145         variables initialized from SRAed bit fields.
146
147 2008-12-10  Martin Guy <martinwguy@yahoo.it>
148
149         PR target/37668
150         * arm.c (arm_size_rtx_costs, case NEG): Don't fall through if the
151         result will be in an FPU register.
152
153 2008-12-10  Eric Botcazou  <ebotcazou@adacore.com>
154
155         PR target/37170
156         PR target/38448
157         * final.c (output_addr_const) <SYMBOL_REF>: Call assemble_external
158         on the associated SYMBOL_REF_DECL node, if any.
159
160 2008-12-09 David Daney <ddaney@caviumnetworks.com>
161
162         * config/mips/sync.md (sync_<optab>_12): Replace
163         MIPS_SYNC_OP_12_NOT_NOP with MIPS_SYNC_OP_12_AND.
164         (sync_old_<optab>_12): Remove third paramater to
165         MIPS_SYNC_OLD_OP_12 macro, replace MIPS_SYNC_OLD_OP_12_NOT_NOP
166         with MIPS_SYNC_OLD_OP_12_AND.
167         (sync_new_<optab>_12): Replace MIPS_SYNC_NEW_OP_12_NOT_NOP
168         with MIPS_SYNC_NEW_OP_12_AND.
169         (sync_nand_12): Replace MIPS_SYNC_OP_12_NOT_NOT with
170         MIPS_SYNC_OP_12_XOR, reduce length attribute to 40.
171         (sync_old_nand_12): Remove third paramater to MIPS_SYNC_OLD_OP_12
172         macro, replace MIPS_SYNC_OLD_OP_12_NOT_NOT with
173         MIPS_SYNC_OLD_OP_12_XOR and reduce length attribute to 40.
174         (sync_new_nand_12): Replace MIPS_SYNC_NEW_OP_12_NOT_NOT with
175         MIPS_SYNC_NEW_OP_12_XOR.
176         * config/mips/mips.h (MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
177         MIPS_SYNC_OP_12_NOT_NOT,MIPS_SYNC_OLD_OP_12_NOT_NOP,
178         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_NEW_OP_12,
179         MIPS_SYNC_NEW_OP_12_NOT_NOP, MIPS_SYNC_NEW_OP_12_NOT_NOT,
180         MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Rewritten
181         to implement new __sync_nand semantics.
182         (MIPS_SYNC_OLD_OP_12): Implement new __sync_nand semantics, and
183         remove third parameter.
184         (MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
185         MIPS_SYNC_OLD_OP_12_NOT_NOT_REG): Removed.
186         (MIPS_SYNC_OP_12_NOT_NOP): Renamed to MIPS_SYNC_OP_12_AND.
187         (MIPS_SYNC_OP_12_NOT_NOT): Renamed to MIPS_SYNC_OP_12_XOR.
188         (MIPS_SYNC_OLD_OP_12_NOT_NOP): Renamed to MIPS_SYNC_OLD_OP_12_AND.
189         (MIPS_SYNC_OLD_OP_12_NOT_NOT): Renamed to MIPS_SYNC_OLD_OP_12_XOR.
190         (MIPS_SYNC_NEW_OP_12_NOT_NOP): Renamed to MIPS_SYNC_NEW_OP_12_AND.
191         (MIPS_SYNC_NEW_OP_12_NOT_NOT): Renamed to MIPS_SYNC_NEW_OP_12_XOR
192
193 2008-12-09  Tobias Grosser  <grosser@fim.uni-passau.de>
194
195         * graphite.c (graphite_transform_loops): Always call find_transform ()
196         in ENABLE_CHECKING.  So we test these code paths, even if we do not
197         generate code.
198
199 2008-12-09  Tobias Grosser  <grosser@fim.uni-passau.de>
200
201         * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
202
203 2008-12-09  Jakub Jelinek  <jakub@redhat.com>
204
205         PR middle-end/38454
206         * function.h (struct function): Add always_inline_functions_inlined.
207         * ipa-inline.c (cgraph_early_inlining): Set it to true.
208         * tree-optimize.c (execute_fixup_cfg): Likewise.
209         * builtins.c (avoid_folding_inline_builtin): New function.
210         (fold_call_expr): Don't optimize always_inline builtins before
211         inlining.
212         (fold_call_stmt): Likewise.
213         (fold_builtin_call_array): Likewise.  Don't call
214         fold_builtin_varargs for BUILT_IN_MD builtins.
215
216         PR tree-optimization/37416
217         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle NOP_EXPR.
218
219 2008-12-09  Janis Johnson  <janis187@us.ibm.com>
220
221         * doc/sourcebuild.texi (Test Directives): Fix formatting.
222
223 2008-12-09  Vladimir Makarov  <vmakarov@redhat.com>
224
225         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
226
227         * doc/invoke.texi (-fira-region): Describe new option.
228         (-fira-algorithm): Change the values.
229
230         * ira-conflicts.c (build_conflict_bit_table,
231         build_allocno_conflicts): Use ira_reg_classes_intersect_p.
232         (ira_build_conflicts): Use flag flag_ira_region instead of
233         flag_ira_algorithm.  Prohibit usage of callee-saved likely spilled
234         base registers for allocnos crossing calls.
235
236         * flags.h (enum ira_algorithm): Redefine.
237         (enum ira_region): New.
238         (flag_ira_region): New.
239
240         * cfgloopanal.c (estimate_reg_pressure_cost): Use flag_ira_region
241         instead of flag_ira_algorithm.
242
243         * toplev.c (flag_ira_algorithm): Change the initial value.
244         (flag_ira_region): New.
245
246         * ira-int.h (ira_reg_classes_intersect_p,
247         ira_reg_class_super_classes): New.
248
249         * ira-color.c (update_copy_costs): Use
250         ira_reg_classes_intersect_p.  Use right class to find hard reg
251         index.
252         (update_conflict_hard_regno_costs): Ditto.  Add a new parameter.
253         (assign_hard_reg): Ditto.  Pass additional argument to
254         update_conflict_hard_regno_costs.  Do not uncoalesce for priority
255         coloring.
256         (allocno_priorities, setup_allocno_priorities,
257         allocno_priority_compare_func): Move before color_allocnos.
258         (color_allocnos): Add priority coloring.  Use flag flag_ira_region
259         instead of flag_ira_algorithm.
260         (move_spill_restore): Check classes of the same reg allocno from
261         different regions.
262         (update_curr_costs): Use ira_reg_classes_intersect_p.
263         (ira_reassign_conflict_allocnos): Ditto.
264
265         * opts.c (decode_options): Always set up flag_ira.  Set up
266         flag_ira_algorithm.  Warn CB can not be used for architecture.
267         (common_handle_option): Modify code for -fira-algorithm.  Add code
268         to process -fira-region.
269
270         * ira-lives.c (update_allocno_pressure_excess_length): Process
271         superclasses too.
272         (set_allocno_live, clear_allocno_live, mark_reg_live,
273         mark_reg_dead, process_bb_node_lives): Ditto.
274
275         * ira-emit.c (ira_emit): Fix insn codes.
276         
277         * ira-build.c (propagate_allocno_info): Use flag flag_ira_region
278         instead of flag_ira_algorithm.
279         (allocno_range_compare_func): Ignore classes for priority
280         coloring.
281         (setup_min_max_conflict_allocno_ids): Ditto.
282         (ira_flattening): Use ira_reg_classes_intersect_p.
283
284         * genpreds.c (write_enum_constraint_num): Output
285         CONSTRAINT__LIMIT.
286         
287         * common.opt (fira-algorithm): Modify.
288         (fira-region): New.
289
290         * ira.c (setup_class_hard_regs): Initialize.
291         (setup_cover_and_important_classes): Modify code setting class
292         related info for priority coloring.
293         (setup_class_translate): Ditto.
294         (ira_reg_classes_intersect_p, ira_reg_class_super_classes): New.
295         (setup_reg_class_intersect_union): Rename to
296         setup_reg_class_relations.  Add code for setting up new variables.
297         (find_reg_class_closure): Do not check targetm.ira_cover_classes.
298         (ira): Use flag flag_ira_region instead of flag_ira_algorithm.
299
300         * ira-costs.c (common_classes): New.
301         (print_costs): Use flag flag_ira_region instead of
302         flag_ira_algorithm.
303         (find_allocno_class_costs): Ditto.  Use common_classes.  Translate
304         alt_class.
305         (ira_costs): Allocate/deallocate common_classes.
306         
307         * config/m32c/m32.h (REG_ALLOC_ORDER): Add reg 19.
308         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): New entries for
309         R02A_REGS.
310
311         * reload1.c (choose_reload_regs): Use MODE_INT for partial ints in
312         smallest_mode_for_size.
313         
314 2008-12-10  Ben Elliston  <bje@au.ibm.com>
315
316         * config/rs6000/linux-unwind.h (get_regs): Constify casts.
317
318 2008-12-09  Jan Hubicka  <jh@suse.cz>
319
320         * predict.c (estimate_bb_frequencies): Fix test if profile is present.
321
322 2008-12-09  Jakub Jelinek  <jakub@redhat.com>
323
324         PR tree-optimization/35468
325         * tree-ssa-ccp.c (fold_stmt_r): Don't fold reads from constant
326         string on LHS.
327
328 2008-12-09  Richard Guenther  <rguenther@suse.de>
329
330         PR tree-optimization/38445
331         * tree-ssa-structalias.c (emit_pointer_definition): Only visit
332         names once.
333         (emit_alias_warning): Adjust.
334
335 2008-12-09  Andrew Haley  <aph@redhat.com>
336
337         * fixed-value.c (do_fixed_add): Add comment.
338         * tree-ssa-loop-ivopts.c (iv_ca_cost): Likewise.
339         * builtins.c (fold_builtin_sqrt): Likewise.
340
341 2008-12-09  Kai Tietz  <kai.tietz@onevision.com>
342
343         PR/38366
344         * function.c (aggregate_value_p): Get fntype from CALL_EXPR in any
345         case.
346         * calls.c (nitialize_argument_information): Add fntype argument 
347         and use it for calls.promote_function_args.
348         (expand_call): Pass fntype to aggregate_value_p if no fndecl
349         available and pass additional fntype to
350         initialize_argument_information.
351         * config/i386/i386.c (ix86_reg_parm_stack_space): Remove cfun part
352         to get function abi type.
353         (init_cumulative_args): Use for abi kind detection fntype, when no
354         fndecl is available.
355
356 2008-12-09  Andreas Krebbel  <krebbel1@de.ibm.com>
357
358         * config/s390/s390.md (movti, movdi_64, movdi_31,
359           *movsi_zarch, *movhi, *movqi, *mov<mode>_64, *mov<mode>_31,
360           *mov<mode>_64dfp, *mov<mode>_64, *mov<mode>_31, mov<mode>): Remove
361           Q->Q alternative.
362           (Integer->BLKmode splitter): Removed.
363
364 2008-12-08  Uros Bizjak  <ubizjak@gmail.com>
365
366         * config/alpha/alpha.c (alpha_set_memflags): Process memory
367         references in full insn sequence.
368
369 2008-12-09  Jason Merrill  <jason@redhat.com>
370
371         * gimplify.c (gimplify_init_constructor): Revert to using < rather
372         than <= for sparseness test.
373
374         PR c++/38410
375         * gimplify.c (gimplify_init_constructor): Don't write out a static
376         copy of the CONSTRUCTOR for TREE_ADDRESSABLE types or small sparse
377         initializers.
378
379 2008-12-09 Tobias Grosser  <grosser@fim.uni-passau.de>
380
381         PR middle-end/38084
382         Fix testsuite/gfortran.dg/graphite/id-3.f90.
383         * graphite.c (scopdet_basic_block_info): Fix bug that found some
384         regions more than once.
385
386 2008-12-09  Ben Elliston  <bje@au.ibm.com>
387
388         * emutls.c (__emutls_get_address): Prototype.
389         (__emutls_register_common): Likewise.
390
391         * config/dfp-bit.c (DFP_TO_INT): Remove unnecessary cast.
392
393 2008-12-09  Ben Elliston  <bje@au.ibm.com>
394
395         * config/rs6000/darwin-ldouble.c (fmsub): Remove unused variable, v.
396
397 2008-12-08  Steve Ellcey  <sje@cup.hp.com>
398
399         * config/ia64/ia64.md (UNSPECV_GOTO_RECEIVER): New constant.
400         (nonlocal_goto_receiver): New instruction.
401
402 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
403
404         PR c/35443
405         * c-pretty-print.c (pp_c_expression): Handle BIND_EXPR.
406
407         PR c/35442
408         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Handle
409         VIEW_CONVERT_EXPR the same as CASE_CONVERT.
410
411 2008-12-08  Richard Henderson  <rth@redhat.com>
412
413         PR 38240
414         * tree.h (TYPE_MODE): Invoke vector_type_mode when needed.
415         (SET_TYPE_MODE): New.
416         * c-decl.c (parser_xref_tag): Use it.
417         (finish_enum): Likewise.
418         * tree.c (build_pointer_type_for_mode): Likewise.
419         (build_reference_type_for_mode, build_index_type): Likewise.
420         (build_range_type, make_vector_type): Likewise.
421         (build_common_tree_nodes_2): Likewise.
422         * stor-layout.c (compute_record_mode): Likewise.
423         (finalize_type_size, layout_type, make_fract_type): Likewise.
424         (make_accum_type, initialize_sizetypes): Likewise.
425         (vector_type_mode): New.
426         * function.c (allocate_struct_function): Call
427         invoke_set_current_function_hook before querying anything else.
428
429         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Add avx.
430
431 2008-12-08  Luis Machado  <luisgpm@br.ibm.com>
432
433         * alias.c (find_base_term): Synch LO_SUM handling with what
434         find_base_value does.
435
436 2008-12-08  Andrew Haley  <aph@redhat.com>
437             Kamaraju Kusumanchi <raju.mailinglists@gmail.com>
438
439         * gimple.h (gimple_build_try): Fix declaration.
440
441         * builtins.c (fold_builtin_sqrt): Don't use a conditional operator.
442         * fixed-value.c (do_fixed_add): Likewise.
443         * tree-ssa-loop-ivopts.c (iv_ca_cost): Likewise.
444
445 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
446
447         PR middle-end/36802
448         * omp-low.c (use_pointer_for_field): Only call maybe_lookup_decl
449         on parallel and task contexts.
450
451 2008-12-07  Eric Botcazou  <ebotcazou@adacore.com>
452
453         * gimple.c (recalculate_side_effects) <tcc_constant>: New case.
454
455 2008-12-07  Richard Guenther  <rguenther@suse.de>
456
457         PR tree-optimization/38405
458         * tree-vrp.c (simplify_truth_ops_using_ranges): Make sure to
459         not sign-extend truth values.
460
461 2008-12-07  Eric Botcazou  <ebotcazou@adacore.com>
462
463         * tree-sra.c (scalarize_use): Create another temporary with the proper
464         type for signed types in the use_all && !is_output bitfield case.
465
466 2008-12-06  Steven Bosscher  <steven@gcc.gnu.org>
467
468         PR rtl-optimization/36365
469         * df-core.c (df_worklist_dataflow_overeager): Remove.
470         (df_worklist_dataflow): Don't call it, use double-queue only.
471         * params.def (PARAM_DF_DOUBLE_QUQUQ_THRESHOLD_FACTOR): Remove.
472
473 2008-12-06  Jakub Jelinek  <jakub@redhat.com>
474
475         PR middle-end/38428
476         * tree-ssa-operands.c (get_expr_operands) <case BIT_FIELD_REF>: Set
477         gimple_set_has_volatile_ops if the BIT_FIELD_REF is volatile.
478
479 2008-12-07  Ben Elliston  <bje@au.ibm.com>
480
481         * gthr-single.h (__gthread_once): Adjust prototype to match all
482         other gthreads models.
483
484 2008-12-06  Jakub Jelinek  <jakub@redhat.com>
485
486         * config/i386/i386.c (override_options): Use CPU_AMDFAM10
487         instead of PROCESSOR_AMDFAM10 for barcelona's schedule.
488
489         PR middle-end/38422
490         * fold-const.c (fold_unary) <CASE_CONVERT>: Don't convert MULT_EXPR
491         operands to mult_type if it isn't narrower than op0's type.
492
493 2008-12-06  Jan Hubicka  <jh@suse.cz>
494             Jakub Jelinek <jakub@redhat.com>
495
496         PR tree-optimization/38074
497         * cgraphbuild.c (compute_call_stmt_bb_frequency): Fix handling of 0
498         entry frequency.
499         * predict.c (combine_predictions_for_bb): Ignore predictor predicting
500         in both dirrection for first match heuristics.
501         (tree_bb_level_predictions): Disable noreturn heuristic when there
502         is no returning path.
503
504 2008-12-05  Bernd Schmidt  <bernd.schmidt@analog.com>
505
506         PR rtl-optimization/38272
507         * reload1.c (choose_reload_regs): Keep reload_spill_index correct
508         in all cases.
509
510 2008-12-05  Jakub Jelinek  <jakub@redhat.com>
511
512         PR c++/35336
513         * c-pretty-print.c (pp_c_postfix_expression): Handle BIT_FIELD_REF.
514         (pp_c_expression): Likewise.
515
516 2008-12-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
517
518         PR c/38416
519         * c-parser.c (struct c_token): Make pragma_kind 8 bits.
520
521 2008-12-05  Jakub Jelinek  <jakub@redhat.com>
522
523         PR middle-end/37248
524         * fold-const.c (make_bit_field_ref): Change bitpos and bitsize
525         arguments to HOST_WIDE_INT.  If type has different signedness
526         than unsignedp or different precision from bitsize, create
527         the right type for BIT_FIELD_REF and cast to type.
528         (fold_truthop): Change first_bit and end_bit to HOST_WIDE_INT.
529
530         Revert:
531         2008-03-05  Richard Guenther  <rguenther@suse.de>
532         PR c++/35336
533         * fold-const.c (fold_truthop): Remove code generating
534         BIT_FIELD_REFs of structure bases.
535         (fold_binary): Likewise.
536         (make_bit_field_ref): Remove.
537         (optimize_bit_field_compare): Remove.
538         (all_ones_mask_p): Remove.
539
540 2008-12-05  Jakub Jelinek  <jakub@redhat.com>
541
542         * tree-sra.c (sra_explode_bitfield_assignment): Always
543         call unsigned_type_for, if the precision is higher than
544         needed, call build_nonstandard_integer_type.
545
546         PR debug/38367
547         * function.c (assign_parm_find_stack_rtl): If promoted_mode
548         is wider than DECL_MODE, adjust MEM_OFFSET (stack_parm) for
549         big endian.
550
551         PR middle-end/38338
552         * builtins.c (expand_builtin_apply_args): Put before parm_birth_insn
553         only if internal_arg_pointer is a non-virtual pseudo.
554
555 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
556
557         * config/rs6000/rs6000.md (move_from_CR_gt_bit): Enable for
558         TARGET_HARD_FLOAT && !TARGET_FPRS, not TARGET_E500.
559         * config/rs6000/spe.md (e500_cr_ior_compare): Likewise.
560
561 2008-12-05  Jakub Jelinek  <jakub@redhat.com>
562
563         PR tree-optimization/37716
564         * gimplify.c (gimplify_expr): Allow COND_EXPR if
565         gimplify_ctxp->allow_rhs_cond_expr.
566
567 2008-12-05  Uros Bizjak  <ubizjak@gmail.com>
568
569         * config/alpha/alpha.c (alpha_fold_vector_minmax): Create
570         VIEW_CONVERT_EXPR to convert output to long_integer_type_node.
571
572         (alpha_emit_conditional_branch): Do not generate direct branch
573         for UNORDERED comparisons.
574
575 2008-12-05  Andreas Schwab  <schwab@suse.de>
576
577         * config/rs6000/linux-unwind.h (frob_update_context): Check for
578         NULL lr.
579
580 2008-12-05  Jakub Jelinek  <jakub@redhat.com>
581
582         PR c/38408
583         * fold-const.c (fold_checksum_tree): Change buf type to union
584         tree_node.
585
586 2008-12-05  Sebastian Pop  <sebastian.pop@amd.com>
587
588         PR bootstrap/38262
589         * Makefile.in (LIBS): Remove GMPLIBS, CLOOGLIBS and PPLLIBS.
590         (BACKENDLIBS): New.
591         (cc1-dummy, cc1): Add BACKENDLIBS, remove GMPLIBS.
592
593 2008-12-05  Ben Elliston  <bje@au.ibm.com>
594
595         * c-parser.c (c_parser_enum_specifier): Initialise ident_loc and
596         comma_loc.
597         (c_parser_initelt): Initialise des_loc and ellipsis_loc.
598
599 2008-12-04  Eric Botcazou  <ebotcazou@adacore.com>
600             Gary Funck  <gary@intrepid.com>
601
602         * cse.c (lookup_as_function): Delete mode frobbing code.
603         (equiv_constant): Re-implement it there for SUBREGs.
604
605 2008-12-04  Richard Guenther  <rguenther@suse.de>
606
607         PR middle-end/36509
608         * Makefile.in (tree-ssa-alias-warnings.o): Remove.
609         (tree-ssa-structalias.o): Remove errors.h dependency.
610         (tree-ssa-reassoc.o): Likewise.
611         * tree-ssa-reassoc.c: Do not include errors.h.
612         * tree-ssa-alias-warnings.c: Remove.
613         * tree-ssa-alias.c (compute_may_aliases): Remove call to
614         strict_aliasing_warning_backend.
615         * tree-ssa-structalias.c (emit_pointer_definition): New function.
616         (emit_alias_warning): Likewise.
617         (set_uids_in_ptset): Warn for clear cases of type-punning.
618         * tree-inline.c (remap_gimple_op_r): Preserve TREE_NO_WARNING
619         on INDIRECT_REFs.
620
621 2008-12-04  Eric Botcazou  <ebotcazou@adacore.com>
622
623         * cse.c (equiv_constant): Fix pasto.
624
625 2008-12-04  Nick Clifton  <nickc@redhat.com>
626
627         * config/stormy16/stormy16.md: Remove extraneous spaces and quotes.
628         * config/stormy16/stormy16.c: Remove extraneous spaces and fix up
629         formatting of quotes.
630
631 2008-12-04  Jakub Jelinek  <jakub@redhat.com>
632
633         PR middle-end/38371
634         * fold-const.c (fold_checksum_tree): Allow modification of
635         TYPE_NEXT_VARIANT.
636
637 2008-12-03  Jakub Jelinek  <jakub@redhat.com>
638
639         PR middle-end/38360
640         * tree-ssa-ccp.c (ccp_fold_builtin): Bail out if the builtin doesn't
641         have the right number of arguments.
642
643 2008-12-03  Richard Guenther  <rguenther@suse.de>
644
645         PR middle-end/36326
646         * gimplify.c (is_gimple_mem_or_call_rhs): Remove work-around for
647         non-BLKmode types.
648
649 2008-12-03  Tomas Bily  <tbily@suse.cz>
650
651         PR middle-end/38250
652         * tree-loop-distribution.c (build_size_arg): New function.
653         (generate_memset_zero): Checks if dr_analyze_innermost succeed.
654         Reorganized generating of stmts.
655         * testsuite/gcc.dg/tree-ssa/pr38250.c: New file.
656         * tree-data-ref.c (dr_analyze_innermost): Returns bool.
657         Indicate if analysis succeed.
658         * tree-data-ref.h (dr_analyze_innermost): Returns bool.
659         * tree-predcom.c (valid_initializer_p, find_looparound_phi):
660         Uses new definition of dr_analyze_innermost.
661
662 2008-12-03  Ben Elliston  <bje@au.ibm.com>
663
664         * tree-ssa-pre.c (do_regular_insertion): Initialise edoubleprime.
665
666 2008-12-03  Jakub Jelinek  <jakub@redhat.com>
667
668         PR tree-optimization/37716
669         * tree-sra.c (sra_build_assignment): For scalar bitfield SRC construct
670         all the needed operations as trees and gimplify_assign it to dst.
671
672         PR target/37610
673         * configure.ac (gcc_cv_readelf): Look for readelf.
674         (gcc_cv_as_cfi_advance_working): Check for working
675         cfi advances with code alignment factor > 1.
676         (HAVE_GAS_CFI_DIRECTIVE): Don't define if cfi advances
677         don't work properly.
678         * configure: Regenerated.
679
680 2008-12-03  Eric Botcazou  <ebotcazou@adacore.com>
681             Jakub Jelinek  <jakub@redhat.com>
682             Andrew Pinski  <andrew_pinski@playstation.sony.com>
683
684         PR rtl-optimization/38281
685         * combine.c (distribute_notes): When invoking SET_INSN_DELETED on i2,
686         set it to NULL_RTX afterwards.
687
688         * emit-rtl.c (set_insn_deleted): Fix formatting.
689
690 2008-12-02  Richard Sandiford  <rdsandiford@googlemail.com>
691
692         * config/mips/mips.c (mips_expand_builtin): Fix the mode of the
693         error return value.
694         * config/mips/mips.md (IMOVE32): New mode iterator.
695         (movsi): Generalize with IMOVE32.
696         (*movsi_internal): Likewise.
697         (*mov<mode>_mips16): Likewise.
698         (*lwxs): Likewise.
699
700 2008-12-02  Nathan Sidwell  <nathan@codesourcery.com>
701             Maxim Kuvyrkov  <maxim@codesourcery.com>
702
703         * config/m68k/lb1sf68.asm (PICCALL, PICJUMP): Use GOT instead of
704         PC-relative addressing when compiling for uclinux PIC.
705         (__cmpdf_internal, __cmpsf_internal): Hide.
706         (__cmpdf, __cmpsf): Use PIC call sequence.
707
708 2008-12-02  Andreas Tobler  <a.tobler@schweiz.org>
709             Jack Howarth <howarth@bromo.med.uc.edu>
710
711         * config/i386/t-darwin64: Add m32 multilib support.
712
713 2008-12-02  Jack Howarth  <howarth@bromo.med.uc.edu>
714
715         * testsuite/gcc.dg/darwin-comm.c: Expand to darwin10 and later.
716
717 2008-12-02  Jakub Jelinek  <jakub@redhat.com>
718
719         PR middle-end/38343
720         * builtins.c (fold_builtin_memory_op): Convert len to sizetype
721         before using it in POINTER_PLUS_EXPR.
722
723 2008-12-02  Richard Guenther  <rguenther@suse.de>
724
725         PR tree-optimization/38359
726         * fold-const.c (fold_binary): Fold -1 >> x to -1 only for
727         non-negative x.
728
729 2008-12-02  Martin Jambor  <mjambor@suse.cz>
730
731         PR middle-end/37861
732         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not check
733         for INDIRECT_REFs.
734         (forward_propagate_addr_into_variable_array_index): Check that the
735         offset is not computed from a MULT_EXPR, use is_gimple_assign rather
736         than the gimple code directly.
737
738 2008-12-02  Ben Elliston  <bje@au.ibm.com>
739
740         * config/spu/float_disf.c (__floatdisf): Prototype.
741         * config/spu/float_unsdisf.c (__float_undisf): Likewise.
742         * config/spu/float_unssidf.c (__float_unssidf): Constify cast.
743         * config/spu/float_unsdidf.c (__float_unsdidf): Likewise.
744
745 2008-12-02  DJ Delorie  <dj@redhat.com>
746
747         * config/stormy16/stormy16.h (INCOMING_FRAME_SP_OFFSET): Negate.
748         (DWARF_CIE_DATA_ALIGNMENT): Define.
749
750         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout):
751         Invert add/sub for INCOMING_FRAME_SP_OFFSET.
752         (xstormy16_expand_prologue): Likewise.
753         (xstormy16_expand_builtin_va_start): Likewise.
754         (xstormy16_gimplify_va_arg_expr): Likewise.
755
756 2008-12-02  Jakub Jelinek  <jakub@redhat.com>
757
758         PR middle-end/38343
759         * builtins.c (expand_builtin_mempcpy_args): Handle COMPOUND_EXPRs
760         potentially returned from folding memcpy.
761         (expand_builtin_stpcpy_args): Similarly for folding strcpy.
762         (fold_builtin_2): Handle BUILT_IN_STPCPY if result is ignored.
763
764 2008-12-02  Danny Smith  <dannysmith@users.sourceforge.net>
765
766         PR target/38054
767         * config/i386/winnt.c (i386_pe_encode_section_info): Condition stdcall
768         decoration of function RTL names here on Ada language.
769
770 2008-12-01  Vladimir Makarov  <vmakarov@redhat.com>
771
772         PR rtl-optimization/38280
773         * ira-build.c (loop_is_inside_p, regno_allocno_order_compare_func,
774         ira_rebuild_regno_allocno_list): New functions.
775         (regno_allocnos): New static variable.
776         (remove_unnecessary_allocnos): Allocate/deallocate regno_allocnos.
777         Call ira_rebuild_regno_allocno_list.
778
779 2008-12-01  David Daney  <ddaney@caviumnetworks.com>
780             Adam Nemet  <anemet@caviumnetworks.com>
781
782         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add
783         LINUX_DRIVER_SELF_SPECS.
784
785 2008-12-01  Vladimir Makarov  <vmakarov@redhat.com>
786
787         PR rtl-optimization/37514
788         * reload1.c (reload_as_needed): Invalidate reg_last_reload
789         from previous insns.
790
791 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
792
793         PR c++/38348
794         * c-omp.c (c_finish_omp_for): Only transform pointer
795         ++ or -- into MODIFY_EXPR if second argument is non-NULL.
796
797         PR rtl-optimization/38245
798         * tree-vrp.c (abs_extent_range): New function.
799         (extract_range_from_binary_expr): Compute range
800         for *_DIV_EXPR even if vr1 is VR_VARYING, VR_ANTI_RANGE
801         or includes zero or if vr1 is VR_RANGE and op0 has some
802         other range.
803
804 2008-12-01  Uros Bizjak  <ubizjak@gmail.com>
805
806         PR middle-end/37908
807         * config/alpha/alpha.c (alpha_split_atomic_op): Properly handle NAND
808         case by calculating ~(new_reg & val) instead of (~new_reg & val).
809         * config/alpha/sync.md (sync_nand<mode>): Change insn RTX
810         to (not:I48MODE (and:I48MODE (...))).
811         (sync_old_nand<mode>): Ditto.
812         (sync_new_nand<mode>): Ditto.
813
814 2008-12-01  Nick Clifton  <nickc@redhat.com>
815
816         * config/stormy16/stormy16.md (CARRY_REG): New constant.
817         Replace uses of the "y" register class with direct references to
818         the CARRY_REG register.
819         * config/stormy16/stormy16.c: Replace clobbers of a BImode scratch
820         register with clobbers of the carry register.
821         (xstormy16_secondary_reload_class): Do not return CARRY_REGS.
822         (xstormy16_split_cbranch): Remove redundant carry parameter.
823         (xstormy16_expand_arith): Likewise.
824         * config/stormy16/stormy16.h (enum reg_class): Remove CARRY_REGS.
825         (IRA_COVER_CLASSES, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
826         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Likewise.
827         (CARRY_REGNUM): Define.
828         * config/stormy16/stormy16-protos.h (xstormy16_split_cbranch):
829         Update prototype.
830         (xstormy16_expand_arith): Likewise.
831
832 2008-12-01  Chen Liqin  <liqin.chen@sunplusct.com>
833
834         * config/score/score.h (IRA_COVER_CLASSES): Define.
835
836 2008-11-30  Eric Botcazou  <ebotcazou@adacore.com>
837
838         PR target/38287
839         * config/sparc/sparc.md (divsi3 expander): Remove constraints.
840         (divsi3_sp32): Add new alternative with 'K' for operand #2.
841         (cmp_sdiv_cc_set): Factor common string.
842         (udivsi3_sp32): Add new alternative with 'K' for operand #2.
843         Add TARGET_V9 case.
844         (cmp_udiv_cc_set): Factor common string.
845
846 2008-11-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
847
848         PR middle-end/38283
849         * varasm.c (emutls_finish): Fix common registration.
850
851 2008-11-29  Jakub Jelinek  <jakub@redhat.com>
852
853         PR target/29987
854         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
855
856 2008-11-29  David Edelsohn  <edelsohn@gnu.org>
857
858         * config/rs6000/rs6000.c (rs6000_emit_sync): Remove support for
859         operand wrapped in NOT.  Emit NAND as (ior (not X) (not Y)).
860         (rs6000_split_atomic_op): Emit NAND as (ior (not X) (not Y)).
861         * config/rs6000/sync.md (sync_nand<mode>): Represent NAND in RTL.
862         Call rs6000_emit_sync with CODE=NOT and unmodified operands.
863         Ignore sub-word case for now.
864         (sync_nand<mode>_internal): Represent NAND in RTL.
865         (sync_old_nand<mode): Same.
866         (sync_old_name<mode>_internal): Same.
867         (sync_new_nand<mode>): Same.
868         (sync_new_nand<mode>_internal): Same.
869         (sync_boolcshort_internal): Expect NAND.
870
871 2008-11-28  Richard Guenther  <rguenther@suse.de>
872
873         PR tree-optimization/37955
874         PR tree-optimization/37742
875         * tree-vect-transform.c (vectorizable_store): Remove assert for
876         compatible aliases.
877         (vectorizable_load): Likewise.
878
879 2008-11-27  Richard Guenther  <rguenther@suse.de>
880
881         * tree-ssa-structalias.c (intra_create_variable_infos): Make
882         a constraint for the static chain parameter.
883
884 2008-11-27  Bernd Schmidt  <bernd.schmidt@analog.com>
885
886         * config/bfin/bfin.opt (micplb): New option.
887         * config/bfin/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Set it.
888         * config/bfin/bfin-protos.h (WA_INDIRECT_CALLS,
889         ENABLE_WA_INDIRECT_CALLS): New macros.
890         * config/bfin/bfin.c (bfin_cpus): Add WA_INDIRECT_CALLS to
891         all 54x CPUs.
892         (indirect_call_p): New function.
893         (workaround_speculation): Handle anomaly 05-00-0426 when
894         ENABLE_WA_INDIRECT_CALLS is true.
895         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
896         __WORKAROUND_INDIRECT_CALLS if ENABLE_WA_INDIRECT_CALLS.
897         * doc/invoke.texi (Blackfin Options): Document -micplb.
898
899 2008-11-26  DJ Delorie  <dj@redhat.com>
900
901         * config/m32c/mov.md ("extendhipsi2"): New.
902
903         * config/m32c/bitops.md (bset_qi): Add memsym_operand predicate.
904
905         * config/m32c/bitops.md (andhi3_24, iorhi3_24): Don't prefer HL class.
906         * config/m32c/mov.md (zero_extendqihi2): Likewise.
907
908 2008-11-26  Adam Nemet  <anemet@caviumnetworks.com>
909
910         * config/mips/mips.md (clear_hazard): Rename to
911         clear_hazard_<mode>.  Use mode-specific addition.
912         (clear_cache): Rename gen_clear_hazard to gen_clear_hazard_si
913         or gen_clear_hazard_di depending on the size of Pmode.
914
915 2008-11-26  DJ Delorie  <dj@redhat.com>
916
917         * configure.ac: Test m32c-elf-gas for .loc.
918         * configure: Likewise.
919
920 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
921
922         PR testsuite/28870
923         * doc/sourcebuild.texi (Test Directives): Add dg-timeout and
924         dg-timeout-factor.
925
926 2008-11-26  Uros Bizjak  <ubizjak@gmail.com>
927
928         * config/i386/sync.md (memory_barrier_nosse): Disable also for
929         TARGET_64BIT.  Remove special asm template for TARGET_64BIT case.
930         (memory_barrier): Do not generate memory_barrier_nosse instruction
931         for TARGET_64BIT.
932         * config/i386/sse.md (*sse2_mfence): Also enable for TARGET_64BIT.
933
934 2008-11-26  Fredrik Unger  <fred@tree.se>
935
936         * config/soft-fp/floatuntisf.c (__floatuntisf): Correct
937         function name from __floatundisf.
938         * config/soft-fp/fixdfti.c (__fixdfti): Correct argument type to
939         DFtype.
940
941 2008-11-25  Daniel Berlin  <dberlin@dberlin.org>
942             Richard Guenther  <rguenther@suse.de>
943
944         PR tree-optimization/37869
945         * tree-ssa-structalias.c (struct constraint_graph): Remove
946         pt_used and number_incoming members.
947         (build_pred_graph): Do not allocate them.
948         (condense_visit): Do not use them.
949         (label_visit): Likewise.
950         (free_var_substitution_info): Do not free them.
951
952 2008-11-25  Vladimir Makarov  <vmakarov@redhat.com>
953
954         * doc/invoke.texi (ira-max-loops-num): Change semantics.
955
956         * ira-int.h (struct ira_loop_tree_node): New member to_remove_p.
957
958         * ira-color.c (allocno_spill_priority): New function.
959         (remove_allocno_from_bucket_and_push, push_allocno_to_spill):
960         Print more info about the spilled allocno.
961         (push_allocnos_to_stack): Use allocno_spill_priority.  Add more
962         checks on bad spill.
963
964         * ira-build.c (loop_node_to_be_removed_p): Remove.
965         (loop_compare_func, mark_loops_for_removal): New functions.
966         (remove_uneccesary_loop_nodes_from_loop_t): Use member
967         to_remove_p.
968         (remove_unnecessary_allocnos): Call mark_loops_for_removal.
969
970         * ira.c (ira): Don't change flag_ira_algorithm.
971
972         * params.def (ira-max-loops-num): Change the value.
973
974 2008-11-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
975
976         * config/m68k/m68k.md (extendsidi2, extendsidi2_mem): Merge, clean up.
977         Disable unsupported alternative for ColdFire,
978         add new alternative that ColdFire can handle.
979
980 2008-11-25  Eric Botcazou  <ebotcazou@adacore.com>
981
982         * regrename.c (merge_overlapping_regs): Add registers artificially
983         defined at the top of the basic block to the set of live ones just
984         before the first insn.
985
986 2008-11-25  H.J. Lu  <hongjiu.lu@intel.com>
987             Joey Ye  <joey.ye@intel.com>
988
989         PR middle-end/37843
990         * config/i386/i386.c (ix86_function_ok_for_sibcall): Return
991         false if we need to align the outgoing stack.
992         (ix86_update_stack_boundary): Check parm_stack_boundary.
993
994 2008-11-25  Richard Guenther  <rguenther@suse.de>
995
996         PR middle-end/38151
997         PR middle-end/38236
998         * tree-ssa-alias.c (struct alias_info): Remove written_vars.
999         Remove dereferenced_ptrs_store and dereferenced_ptrs_load
1000         in favor of dereferenced_ptrs.
1001         (init_alias_info): Adjust.
1002         (delete_alias_info): Likewise.
1003         (compute_flow_insensitive_aliasing): Properly
1004         include all aliased variables.
1005         (update_alias_info_1): Use dereferenced_ptrs.
1006         (setup_pointers_and_addressables): Likewise.
1007         (get_smt_for): Honor ref-all pointers and pointers with known alias
1008         set properly.
1009         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers.
1010
1011 2008-11-25  Uros Bizjak  <ubizjak@gmail.com>
1012
1013         PR target/38254
1014         * config/i386/sync.md (memory_barrier_nosse): New insn pattern.
1015         (memory_barrier): Generate memory_barrier_nosse insn for !TARGET_SSE2.
1016
1017 2008-11-24  Maxim Kuvyrkov  <maxim@codesourcery.com>
1018
1019         * config/m68k/m68k.md (cmpdi): Use (scratch) instead of pseudo.
1020
1021 2008-11-24  Richard Sandiford  <rdsandiford@googlemail.com>
1022
1023         * config/mips/mips.h (ASM_OUTPUT_DEBUG_LABEL): Define.
1024
1025 2008-11-24  Maxim Kuvyrkov  <maxim@codesourcery.com>
1026
1027         PR target/35018
1028         * config/m68k/m68k.md (ok_for_coldfire, enabled): New attributes.
1029         (addsi_lshrsi_31): Add ColdFire-friendly alternatives.
1030
1031 2008-11-24  Uros Bizjak  <ubizjak@gmail.com>
1032
1033         * config/i386/i386.md (UNSPECV_CMPXCHG): Rename from
1034         UNSPECV_CMPXCHG_[12].
1035         * config/i386/sync.md: Use UNSPECV_CMPXCHG instead of
1036         UNSPECV_CMPXCHG_[12].
1037
1038         PR target/36793
1039         * config/i386/sync.md (memory_barrier): New expander.
1040
1041 2008-11-24  Jakub Jelinek  <jakub@redhat.com>
1042
1043         PR middle-end/37135
1044         * dse.c (find_shift_sequence): Optimize extraction from a constant.
1045
1046 2008-11-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1047
1048         * pa.c (function_arg): Revert 2008-10-26 change.
1049
1050 2008-11-23  Helge Deller  <deller@gmx.de>
1051
1052         * pa/linux-atomic.c (EBUSY): Define if not _LP64.
1053         (__kernel_cmpxchg): Return -EBUSY if the kernel LWS call
1054         succeeded and lws_ret is not equal to oldval.
1055
1056 2008-11-23  Kaz Kojima  <kkojima@gcc.gnu.org>
1057
1058         * config/sh/sh.md (consttable_4): Call mark_symbol_refs_as_used.
1059
1060 2008-11-22  Andreas Schwab  <schwab@suse.de>
1061
1062         * varasm.c (default_file_start): Suppress ASM_APP_OFF also with
1063         -dA and -dP.
1064
1065 2008-11-22  Adam Nemet  <anemet@caviumnetworks.com>
1066
1067         * config/mips/mips.md (rdhwr): Rename to rdhwr_synci_step_<mode>.
1068         Use constant 1 as the operand.
1069         * config/mips/mips.c (mips_expand_synci_loop): Make INC Pmode.
1070         Rename gen_rdhwr to gen_rdhwr_synci_step_si or
1071         gen_rdhwr_synci_step_di depending on the size of Pmode.
1072
1073 2008-11-22  Uros Bizjak  <ubizjak@gmail.com>
1074
1075         PR target/38222
1076         * config/i386/i386.md (SWI248): New mode iterator.
1077         (SWI32): Remove mode iterator.
1078         (popcount<mode>2): Rename from popcounthi2, popcountsi2 and
1079         popcounthi2 insn patterns. Macroize pattern using SWI248 mode
1080         iterator.  Generate popcnt mnemonic without mode extensions
1081         for Darwin x86 targets.
1082         (*popcount<mode>2_cmp): Ditto.
1083         (*popcountsi2_cmp_zext): Generate popcnt mnemonic without mode
1084         extensions for Darwin x86 targets.
1085
1086 2008-11-22  Eric Botcazou  <ebotcazou@adacore.com>
1087
1088         * config/sparc/sparc.c (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define
1089         only if HAVE_AS_SPARC_UA_PCREL is defined.
1090
1091 2008-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
1092
1093         * ira-costs.c (find_allocno_class_costs): Work out the maximum
1094         allocno_costs value of the classees with the lowest total_costs
1095         value.  Use this to set ALLOCNO_COVER_CLASS_COST here...
1096         (setup_allocno_cover_class_and_costs): ...rather than here.
1097         Use the ALLOCNO_COVER_CLASS_COST for all registers in the
1098         preferred class.
1099
1100 2008-11-22  Jakub Jelinek  <jakub@redhat.com>
1101
1102         PR middle-end/37323
1103         * builtins.c (expand_builtin_apply_args): Emit sequence before
1104         parm_birth_insn instead of after entry_of_function's first insn.
1105
1106         PR middle-end/37316
1107         * function.c (assign_parm_remove_parallels): Pass
1108         data->passed_type as third argument to emit_group_store.
1109
1110         PR target/37170
1111         * final.c (mark_symbol_refs_as_used): New function.
1112         * output.h (mark_symbol_refs_as_used): New prototype.
1113         * config/s390/s390.c (s390_mark_symbol_ref_as_used): Removed.
1114         (s390_output_pool_entry): Use mark_symbol_refs_as_used.
1115         * config/arm/arm.md (consttable_4): Likewise.
1116
1117         PR target/37880
1118         * doc/invoke.texi: Adjust wording of -mcmodel=medium description.
1119
1120 2008-11-21  Jakub Jelinek  <jakub@redhat.com>
1121
1122         PR middle-end/38200
1123         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
1124         propagate x = &a into *x = b if conversion from b to a's type is
1125         useless.
1126
1127 2008-11-21  Eric Botcazou  <ebotcazou@adacore.com>
1128
1129         * caller-save.c (insert_one_insn): Take into account REG_INC notes
1130         for the liveness computation of the new insn.
1131
1132 2008-11-21  DJ Delorie  <dj@redhat.com>
1133
1134         * config/stormy16/stormy16.md (movqi_internal, movhi_internal):
1135         Moves to/from below100 space (W) can only use r0-r7.
1136
1137 2008-11-21  Paolo Carlini  <paolo.carlini@oracle.com>
1138
1139         PR other/38214
1140         * doc/invoke.texi (Optimization Options): Fix typo.
1141
1142 2008-11-21  H.J. Lu  <hongjiu.lu@intel.com>
1143             Xuepeng Guo  <xuepeng.guo@intel.com>
1144
1145         * config.gcc (extra_headers): For x86 and x86-64, remove
1146         gmmintrin.h, add immintrin.h and avxintrin.h.
1147
1148         * config/i386/gmmintrin.h: Renamed to ...
1149         * config/i386/avxintrin.h: This.  Issue an error if
1150         _IMMINTRIN_H_INCLUDED is undedined.
1151
1152         * config/i386/immintrin.h: New.
1153
1154 2008-11-21  Jakub Jelinek  <jakub@redhat.com>
1155
1156         PR target/38208
1157         * reload1.c (eliminate_regs_in_insn): For trunc_int_for_mode use
1158         mode of PLUS, not mode of the eliminated register.
1159
1160 2008-11-21  Uros Bizjak  <ubizjak@gmail.com>
1161
1162         * config/i386/mmx.md (mmx_nand<mode>3): Rename to mmx_andnot<mode>3.
1163         * config/i386/sse.md (avx_nand<mode>3): Rename to avx_andnot<mode>3.
1164         (<sse>_nand<mode>3): Rename to <sse>_andnot<mode>3.
1165         (sse2_nand<mode>3): Rename to sse2_andnot<mode>3.
1166         (*sse_nand<mode>3): Rename to *sse_andnot<mode>3.
1167         (*avx_nand<mode>3): Rename to *avx_andnot<mode>3.
1168         (*nand<mode>3): Rename to *andnot<mode>3.
1169         (*nandtf3): rename to *andnottf3.
1170         * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_PANDN]:
1171         Use CODE_FOR_mmx_andnotv2si3.
1172         [IX86_BUILTIN_ANDNPS]: Use CODE_FOR_sse_andnotv4sf3.
1173         [IX86_BUILTIN_ANDNPD]: Use CODE_FOR_sse2_andnotv2df3.
1174         [IX86_BUILTIN_PANDN128]: Use CODE_FOR_sse2_andnotv2di3.
1175         [IX86_BUILTIN_ANDNPS256]: Use CODE_FOR_avx_andnotv8sf3.
1176         [IX86_BUILTIN_ANDNPD256]: Use CODE_FOR_avx_andnotv4df3.
1177
1178 2008-11-21  Uros Bizjak  <ubizjak@gmail.com>
1179
1180         PR middle-end/37908
1181         * config/ia64/ia64.c (ia64_expand_atomic_op): Properly handle NAND
1182         case by calculating ~(new_reg & val) instead of (~new_reg & val).
1183         * config/ia64/sync.md (sync_nand<mode>): Change insn RTX
1184         to (not:IMODE (and:IMODE (...))).
1185         (sync_old_nand<mode>): Ditto.
1186         (sync_new_nand<mode>): Ditto.
1187
1188 2008-11-20  Joseph Myers  <joseph@codesourcery.com>
1189
1190         * config/arm/thumb2.md (thumb2_casesi_internal,
1191         thumb2_casesi_internal_pic): Use earlyclobber for scratch operand 4.
1192
1193 2008-11-20  Andreas Krebbel  <krebbel1@de.ibm.com>
1194
1195         * gcc/config/s390/s390.c (s390_expand_atomic): Adjust QI/HI atomic
1196         nand to the changed 4.4 semantic.
1197
1198 2008-11-20  Jakub Jelinek  <jakub@redhat.com>
1199
1200         PR middle-end/29215
1201         * builtins.c (SLOW_UNALIGNED_ACCESS): Define if not defined.
1202         (fold_builtin_memory_op): Handle even the case where just one
1203         of src and dest is an address of a var decl component, using
1204         TYPE_REF_CAN_ALIAS_ALL pointers.  Remove is_gimple_min_invariant
1205         and readonly_data_expr src check.
1206         * tree-ssa-sccvn.c (DFS): Use clear_and_done_ssa_iter to shut
1207         up warnings.
1208
1209         PR rtl-optimization/36998
1210         * dwarf2out.c (stack_adjust_offset): Add cur_args_size and cur_offset
1211         arguments.  Handle sp = reg and (set (foo) (mem (pre_inc (reg sp)))).
1212         (compute_barrier_args_size_1, dwarf2out_frame_debug_expr): Adjust
1213         stack_adjust_offset callers.
1214         (dwarf2out_stack_adjust): Likewise.  Handle insns in annulled
1215         branches properly.
1216         (compute_barrier_args_size): Handle insns in annulled branches
1217         properly.
1218
1219 2008-11-20  Uros Bizjak  <ubizjak@gmail.com>
1220
1221         PR target/38151
1222         * config/i386/i386.c (classify_argument) [integer mode size <= 64bit]:
1223         Handle cases when integer argument crosses argument register boundary.
1224
1225 2008-11-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1226
1227         PR bootstrap/33100
1228         * config.gcc (i[34567]86-*-solaris2*): Don't include
1229         i386/t-crtstuff here.
1230         Move extra_parts, i386/t-sol2 in tmake_file to libgcc/config.host.
1231         * config/i386/t-sol2: Move to libgcc/config/i386.
1232
1233 2008-11-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1234
1235         PR driver/21706
1236         * tlink.c: Include "libiberty.h".
1237         (initial_cwd): Change type into char *.
1238         (tlink_init): Call getpwd instead of getcwd.
1239
1240 2008-11-19  Zdenek Dvorak  <ook@ucw.cz>
1241
1242         PR rtl-optimization/32283
1243         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Use type of the base
1244         of the induction variable to decide whether it may wrap.
1245         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Emit the
1246         initialization of the bound before the loop.
1247         * simplify-rtx.c (simplify_binary_operation_1): Add two
1248         simplifications regarding AND.
1249         (simplify_plus_minus): Only fail if no simplification is possible.
1250         * loop-iv.c (simple_rhs_p): Consider reg + reg and reg << cst simple.
1251
1252 2008-11-20  Jakub Jelinek  <jakub@redhat.com>
1253
1254         PR c++/36631
1255         * gimplify.c (gimplify_call_expr): Defer most of the cannot inline
1256         checking until GIMPLE lowering.
1257         * gimple-low.c (check_call_args): New function.
1258         (lower_stmt) <case GIMPLE_CALL>: Call it.
1259
1260 2008-11-19  Adam Nemet  <anemet@caviumnetworks.com>
1261
1262         * config/mips/mips.c (mips_gimplify_va_arg_expr): Use -rsize
1263         with the same type as the first operand of the AND expression.
1264
1265 2008-11-19  Vladimir Makarov  <vmakarov@redhat.com>
1266
1267         PR bootstrap/37859
1268         * ira-int.h (struct ira_loop_tree_node): New member
1269         entered_from_non_parent_p.
1270
1271         * ira-color.c (print_loop_title): Print loop bbs.
1272
1273         * ira-emit.c (entered_from_non_parent_p,
1274         setup_entered_from_non_parent_p): New functions.
1275         (not_modified_p): Rename to store_can_be_removed_p.  Check there
1276         is no side entries.
1277         (generate_edge_moves): Use store_can_be_removed_p instead of
1278         not_modified_p.
1279         (ira_emit): Call setup_entered_from_non_parent_p.
1280
1281         * ira-build.c (copy_info_to_removed_store_destinations):
1282         Accumulate CALL_FREQ, CALL_CROSSED_NUM, and
1283         ALLOCNO_EXCESS_PRESSURE_POINTS_NUM.
1284         (ira_flattening): Don't CHECK MEM_OPTIMIZED_DEST[_P], always
1285         update all accumulated attributes.
1286
1287 2008-11-19  Vladimir Makarov  <vmakarov@redhat.com>
1288
1289         PR bootstrap/37790
1290         * ira-int.h (ira_copy_allocno_live_range_list,
1291         ira_merge_allocno_live_ranges, ira_allocno_live_ranges_intersect_p,
1292         ira_finish_allocno_live_range_list): New prototypes.
1293         (ira_allocno_live_ranges_intersect_p,
1294         ira_pseudo_live_ranges_intersect_p): Remove.
1295
1296         * ira-conflicts.c (ira_allocno_live_ranges_intersect_p,
1297         ira_pseudo_live_ranges_intersect_p): Rename to
1298         allocnos_have_intersected_live_ranges_p and
1299         pseudos_have_intersected_live_ranges_p.  Move them from here to ...
1300
1301         * ira-color.c: ... here
1302         (coalesced_allocno_conflict_p): Use
1303         allocnos_have_intersected_live_ranges_p.
1304         (coalesced_allocnos_living_at_program_points,
1305         coalesced_allocnos_live_at_points_p,
1306         set_coalesced_allocnos_live_points): Remove.
1307         (slot_coalesced_allocnos_live_ranges,
1308         slot_coalesced_allocno_live_ranges_intersect_p,
1309         setup_slot_coalesced_allocno_live_ranges): New.
1310         (coalesce_spill_slots): Use ranges of coalesced allocnos.
1311         (ira_sort_regnos_for_alter_reg): Use
1312         allocnos_have_intersected_live_ranges_p.
1313         (ira_reuse_stack_slot): Use
1314         pseudos_have_intersected_live_ranges_p.
1315
1316         * global.c (pseudo_for_reload_consideration_p): Check
1317         flag_ira_share_spill_slots too.
1318
1319         * ira-build.c (copy_allocno_live_range_list): Rename to
1320         ira_copy_allocno_live_range_list.  Make it external.
1321         (merge_ranges): Rename to ira_merge_allocno_live_ranges.  Make it
1322         external.
1323         (ira_allocno_live_ranges_intersect_p): New.
1324         (ira_finish_allocno_live_range_list): New.
1325         (finish_allocno): Use it.
1326         (remove_unnecessary_allocnos): Use ira_merge_allocno_live_ranges.
1327         (copy_info_to_removed_store_destinations): Ditto.  Use
1328         ira_copy_allocno_live_range_list.
1329         (ira_flattening): Use ira_merge_allocno_live_ranges.
1330
1331         * ira.c (too_high_register_pressure_p): New function.
1332         (ira): Switch off sharing spill slots if the pressure is too high.
1333
1334 2008-11-19  Richard Guenther  <rguenther@suse.de>
1335
1336         * tree.c (build2_stat): Allow non-POINTER_PLUS_EXPRs with
1337         non-sizetype offsets if their precision matches that of the pointer.
1338         * expr.c (expand_expr_real_1): Always sign-extend the offset
1339         operand of a POINTER_PLUS_EXPR.
1340
1341 2008-11-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1342
1343         * config.gcc: Unobsolete mips-sgi-irix[56]*.
1344         (mips-sgi-irix[56]*): No need to use fixproto.
1345
1346 2008-11-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
1347             Paul Brook  <paul@codesourcery.com>
1348
1349         * config/m68k/lb1sf68.asm: Add GNU-stack annotation to avoid
1350         executable stack.
1351
1352 2008-11-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
1353
1354         * config/m68k/m68k.c (sched_attr_op_type): Handle all CONSTs.
1355
1356 2008-11-19  Razya Ladelsky  <razya@il.ibm.com>
1357
1358         PR target/38156
1359         * tree-parloops.c (loop_parallel_p): NULL vect_dump.
1360         (separate_decls_in_region): Create shared struct even when there
1361         are only reductions.
1362
1363 2008-11-19  Hariharan Sandanagobalane <hariharan@picochip.com>
1364
1365         * config/picochip/picochip.c (headers): Remove an unnecessary
1366         header file.
1367
1368 2008-11-19  Andrew Stubbs  <ams@codesourcery.com>
1369
1370         PR target/36133
1371         * config/m68k/m68k.h (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY): New defines.
1372         * config/m68k/m68k.c (notice_update_cc): Set cc_status properly for
1373         shift instructions.
1374         * config/m68k/m68k.md: Adjust all conditional branches that use the
1375         carry and overflow flags so they understand CC_OVERFLOW_UNUSABLE.
1376
1377 2008-11-18  Uros Bizjak  <ubizjak@gmail.com>
1378
1379         PR target/37362
1380         * config/mips/mips.md (move_doubleword_fpr<mode>): Check that "high"
1381         is a register or zero operand in the correct mode before generating
1382         mtch1 insn or a register operand in the correct mode before generating
1383         mfch1 insn.
1384         (mtch1<mode>): Correct operand 1 predicate to reg_or_0_operand.
1385
1386 2008-11-18  Adam Nemet  <anemet@caviumnetworks.com>
1387
1388         * config.gcc (mips*-sde-elf*): Handle mipsisa64r2*.
1389         (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Add new cases to
1390         mipsisa*-*-elf*.  Handle mipsisa64r2*.
1391         * config/mips/sde.h (LINK_SPEC): Handle -mips64r2.
1392         * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add
1393         mips64r2.
1394         (MULTILIB_EXCLUSIONS): Add mips64r2/mfp64.
1395         * config/mips/t-sde (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add
1396         mips64r2.
1397         (MULTILIB_EXCLUSIONS): Add mips64r2/mfp64.  Add mips64r2/mips16.
1398         Fix mips16 if mips64 or mips64r2 are multilib defaults.
1399         * config/mips/t-sdemtk (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add
1400         mips64r2.
1401
1402 2008-11-18  Jakub Jelinek  <jakub@redhat.com>
1403
1404         PR target/38130
1405         * config/i386/i386.md (allocate_stack_worker_32,
1406         allocate_stack_worker_64): Don't use match_dup between input and
1407         output operand.
1408         (allocate_stack): Adjust gen_stack_worker_{32,64} caller.
1409         * config/i386/i386.c (ix86_expand_prologue): Likewise.
1410
1411 2008-11-18  Kai Tietz  <kai.tietz@onevision.com>
1412
1413         * config/i386/t-cygming (SHLIB_LINK): Make sure that $(SHLIB_MAP).def
1414         is forced when trying to do a symbol link for it.
1415
1416 2008-11-17  Adam Nemet  <anemet@caviumnetworks.com>
1417
1418         * expmed.c (extract_bit_field_1): Also use a temporary and
1419         convert_extracted_bit_field when the conversion from ext_mode to
1420         the target mode requires explicit truncation.
1421
1422 2008-11-17  Richard Sandiford  <rdsandiford@googlemail.com>
1423
1424         * config/mips/mips.h (REG_ALLOC_ORDER): Put accumulators first.
1425         Tweak formatting.
1426         * config/mips/mips.c (mips_ira_cover_classes): Don't use accumulator
1427         registers when not optimizing.
1428
1429 2008-11-17  Richard Sandiford  <rdsandiford@googlemail.com>
1430
1431         * config/mips/mips.md (*mul_acc_si): Remove middle alternative
1432         and its associated define_split.  Expose the all-d alternative
1433         to the register allocator, but mark it with "?".  Mark the first
1434         alternative with "*?*?".
1435         (*mul_sub_si): Likewise.
1436         (*mul_acc_si_r3900): New pattern.
1437
1438 2008-11-17  Jakub Jelinek  <jakub@redhat.com>
1439
1440         PR middle-end/38140
1441         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If
1442         propagating x = &a into *x = b, add a cast if not useless
1443         type conversion or don't optimize if another stmt would be
1444         needed.
1445
1446 2008-11-17  Uros Bizjak  <ubizjak@gmail.com>
1447
1448         PR middle-end/37908
1449         * optabs.c (expand_sync_operation): Properly handle NAND case
1450         by calculating ~(t1 & val) instead of (~t1 & val).
1451         * builtins.c (expand_builtin_sync_operation): Warn for changed
1452         semantics in NAND builtins.
1453         * c.opt (Wsync-nand): New warning option.  Describe -Wsync-nand.
1454
1455         * doc/invoke.texi (Warning options): Add Wsync-nand.
1456         * doc/extend.texi (Atomic Builtins) [__sync_fetch_and_nand]: Correct
1457         __sync_fetch_and_nand builtin operation in the example.  Add a note
1458         about changed semantics in GCC 4.4.
1459         [__sync_nand_and_fetch]: Correct __sync_nand_and_fetch builtin
1460         operation in the example.  Add a note about changed semantics in
1461         GCC 4.4.
1462
1463 2008-11-16  Jan Hubicka  <jh@suse.cz>
1464
1465         * cgraph.c (cgraph_function_body_availability): Fix test of externally
1466         visible.
1467
1468 2008-11-16  Joshua Kinard  <kumba@gentoo.org>
1469
1470         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=r1[0246]000
1471         to -mips4.
1472
1473 2008-11-16  Richard Sandiford  <rdsandiford@googlemail.com>
1474
1475         PR target/38052
1476         * config/mips/mips.c (mips_cfun_call_saved_reg_p)
1477         (mips_cfun_might_clobber_call_saved_reg_p): New functions,
1478         split out from...
1479         (mips_save_reg_p): ...here.  Always consult TARGET_CALL_SAVED_GP
1480         rather than call_really_used_regs when handling $gp.
1481
1482 2008-11-16  Richard Sandiford  <rdsandiford@googlemail.com>
1483
1484         PR target/38052
1485         * config/mips/mips.c (machine_function): Update the comment
1486         above global_pointer.
1487         (mips_global_pointer): Use INVALID_REGNUM rather than 0 to indicate
1488         that a function doesn't need a global pointer.
1489         (mips_current_loadgp_style): Update accordingly.
1490         (mips_restore_gp): Likewise.
1491         (mips_output_cplocal): Likewise.
1492         (mips_expand_prologue): Likewise.
1493
1494 2008-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1495
1496         * config/sparc/sparc.c (function_arg_vector_value): Remove 'base_mode'
1497         parameter.  Use DImode for computing the number of registers.
1498         (function_arg): Adjust for above change.
1499         (function_value): Likewise.
1500
1501 2008-11-15  Zdenek Dvorak  <ook@ucw.cz>
1502
1503         PR tree-optimization/37950
1504         * tree-flow-inline.h (memory_partition): Return NULL when aliases were
1505         not computed for the current function.
1506
1507 2008-11-15  Jakub Jelinek  <jakub@redhat.com>
1508
1509         PR target/38123
1510         * config/i386/i386.c (ix86_gimplify_va_arg): Don't share valist between
1511         gpr and other COMPONENT_REFs.
1512
1513 2008-11-15  Richard Guenther  <rguenther@suse.de>
1514
1515         PR tree-optimization/38051
1516         * tree-ssa-alias.c (update_alias_info_1): Manually find
1517         written variables.
1518
1519 2008-11-15  Joshua Kinard  <kumba@gentoo.org>
1520
1521         * doc/invoke.texi (-mfix-r10000): Document.
1522         * config/mips/mips.opt (mfix-r10000): New option.
1523         * config/mips/mips-protos.h (mips_output_sync_loop): Declare.
1524         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Use %?.
1525         (MIPS_COMPARE_AND_SWAP_12): Likewise.
1526         (MIPS_SYNC_OP): Likewise.
1527         (MIPS_SYNC_OP_12): Likewise.
1528         (MIPS_SYNC_OLD_OP_12): Likewise.
1529         (MIPS_SYNC_NEW_OP_12): Likewise.
1530         (MIPS_SYNC_OLD_OP): Likewise.
1531         (MIPS_SYNC_NAND): Likewise.
1532         (MIPS_SYNC_OLD_NAND): Likewise.
1533         (MIPS_SYNC_EXCHANGE): Likewise.
1534         (MIPS_SYNC_EXCHANGE_12): Likewise.
1535         (MIPS_SYNC_NEW_OP): Likewise, using %~ to fill branch-likely
1536         delay slots.
1537         (MIPS_SYNC_NEW_NAND): Likewise.
1538         * config/mips/mips.c (mips_print_operand_punctuation): Handle '~'.
1539         (mips_init_print_operand_punct): Treat '~' as a punctuation character.
1540         (mips_output_sync_loop): New function.
1541         (mips_override_options): Make -march=r10000 imply -mfix-r10000.
1542         Make -mfix-r10000 require branch-likely instructions.
1543         * config/mips/sync.md (sync_compare_and_swap<mode>): Use
1544         mips_output_sync_loop.
1545         (compare_and_swap_12): Likewise.
1546         (sync_add<mode>): Likewise.
1547         (sync_<optab>_12): Likewise.
1548         (sync_old_<optab>_12): Likewise.
1549         (sync_new_<optab>_12): Likewise.
1550         (sync_nand_12): Likewise.
1551         (sync_old_nand_12): Likewise.
1552         (sync_new_nand_12): Likewise.
1553         (sync_sub<mode>): Likewise.
1554         (sync_old_add<mode>): Likewise.
1555         (sync_old_sub<mode>): Likewise.
1556         (sync_new_add<mode>): Likewise.
1557         (sync_new_sub<mode>): Likewise.
1558         (sync_<optab><mode>): Likewise.
1559         (sync_old_<optab><mode>): Likewise.
1560         (sync_new_<optab><mode>): Likewise.
1561         (sync_nand<mode>): Likewise.
1562         (sync_old_nand<mode>): Likewise.
1563         (sync_new_nand<mode>): Likewise.
1564         (sync_lock_test_and_set<mode>): Likewise.
1565         (test_and_set_12): Likewise.
1566
1567 2008-11-15  Eric Botcazou  <ebotcazou@adacore.com>
1568
1569         * gcc.c (cc1_options): Fix comment.
1570
1571 2008-11-15  Jakub Jelinek  <jakub@redhat.com>
1572
1573         PR c++/37561
1574         * c-typeck.c (build_unary_op): Don't call get_unwidened.  Use
1575         argtype instead of result_type.
1576
1577 2008-11-14  Adam Nemet  <anemet@caviumnetworks.com>
1578
1579         * ira-int.h (struct ira_loop_tree_node): Improve comments for
1580         subloop_next/next and subloops/childen fields.
1581
1582 2008-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1583
1584         * config/spu/spu-elf.h (STANDARD_STARTFILE_PREFIX_2): Disable default.
1585         (STANDARD_INCLUDE_DIR): Redefine to "/include".
1586         (LOCAL_INCLUDE_DIR): Undefine.
1587         * config/spu/t-spu-elf (NATIVE_SYSTEM_HEADER_DIR): Define.
1588
1589 2008-11-14  Vladimir Makarov  <vmakarov@redhat.com>
1590
1591         PR rtl-optimization/37397
1592         * ira-int.h (struct ira_allocno): New member bad_spill_p.
1593         (ALLOCNO_BAD_SPILL_P): New macro.
1594
1595         * ira-color.c (push_allocnos_to_stack): Check ALLOCNO_BAD_SPILL_P.
1596
1597         * ira-build.c (ira_create_allocno): Initialize ALLOCNO_BAD_SPILL_P.
1598         (create_cap_allocno, propagate_allocno_info,
1599         remove_unnecessary_allocnos): Set up or update ALLOCNO_BAD_SPILL_P.
1600         (update_bad_spill_attribute): New function.
1601         (ira_build): Call it.
1602
1603         * ira-costs.c (record_reg_classes): Set up ALLOCNO_BAD_SPILL_P.
1604
1605 2008-11-14  Jakub Jelinek  <jakub@redhat.com>
1606
1607         PR tree-optimization/38104
1608         * gimplify.c (gimple_regimplify_operands): Add referenced vars
1609         before calling mark_symbols_for_renaming, not after it.
1610
1611 2008-11-14  Kaz Kojima  <kkojima@gcc.gnu.org>
1612
1613         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Revert last change.
1614         (OVERRIDE_OPTIONS): Likewise.
1615
1616 2008-11-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
1617             Andrew Stubbs  <ams@codesourcery.com>
1618             Gunnar Von Boehn  <gunnar@genesi-usa.com>
1619
1620         PR target/36134
1621         * config/m68k/m68k.md (addsi3_5200): Add a new alternative preferring
1622         the shorter LEA insn over ADD.L where possible.
1623
1624 2008-11-14  Thomas Schwinge  <tschwinge@gnu.org>
1625
1626         * configure.ac (gcc_cv_libc_provides_ssp): Also consider GNU/Hurd
1627         systems, which are assumend to always provide SSP-support in glibc.
1628         Also consider GNU/kFreeBSD, GNU/kNetBSD systems in the `*-*-linux*'
1629         case.
1630         * configure: Regenerate.
1631
1632 2008-11-14  Jakub Jelinek  <jakub@redhat.com>
1633
1634         PR middle-end/36125
1635         * function.c (gimplify_parameters): For callee copies parameters,
1636         move TREE_ADDRESSABLE flag from the PARM_DECL to the local copy.
1637
1638 2008-11-13  Thomas Schwinge  <tschwinge@gnu.org>
1639
1640         PR target/28102
1641         * config.gcc (*-*-gnu*): Move Alpha parts into the `alpha*-*-gnu*',
1642         x86 parts into the `i[34567]86-*-linux*' and parts that are
1643         independent of the processor architecture into the `*-*-linux*' cases.
1644         (*-*-linux*): Consider `linux.opt' only for Linux-based configurations.
1645         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Redefine.
1646         (TARGET_OS_CPP_BUILTINS, LINK_SPEC): Don't redefine.
1647         [TARGET_LIBC_PROVIDES_SSP] (TARGET_THREAD_SSP_OFFSET): Undefine.
1648         * config/gnu.h (NO_IMPLICIT_EXTERN_C): Don't redefine.
1649         (HURD_TARGET_OS_CPP_BUILTINS): Don't define, but instead...
1650         (LINUX_TARGET_OS_CPP_BUILTINS): Redefine.
1651
1652 2008-11-13  Ruan Beihong  <ruanbeihong@gmail.com>
1653
1654         * config/mips/loongson.md (<u>div<mode>3, <u>mod<mode>3): New patterns.
1655         * config/mips/loongson2ef.md (ls2_imult): Handle imul3nc.
1656         (ls2_idiv): Likewise idiv3.
1657         (ls2_prefetch): New reservation.
1658         * config/mips/mips.h (ISA_HAS_PREFETCH): Add TARGET_LOONGSON_2EF.
1659         * config/mips/mips.md (type): Add imul3nc and idiv3.
1660         (length): Handle idiv3.
1661         (any_mod): New code_iterator.
1662         (u): Handle MOD and UMOD.
1663         (mul<mode>3): Generate mul<mode>3_mul3_ls2ef on Loongson targets.
1664         (prefetch): Handle TARGET_LOONGSON_2EF.
1665
1666 2008-11-13  Jakub Jelinek  <jakub@redhat.com>
1667
1668         PR c++/27017
1669         * dwarf2out.c (prune_unused_types_walk_local_classes): New function.
1670         (prune_unused_types_walk): Call it for non-perennial local classes.
1671         Set die_mark to 2 if recursing on children.  If die_mark is 1 on
1672         entry, just set it to 2 and recurse on children, don't walk attributes
1673         again.
1674
1675 2008-11-13  Martin Michlmayr  <tbm@cyrius.com>
1676
1677         * c-common.c (warn_about_parentheses): Add missing whitespace
1678         in warning.
1679
1680 2008-11-13  Paul Brook  <paul@codesourcery.com>
1681
1682         * doc/invoke.texi: Document --fix-cortex-m3.
1683         * config/arm/arm.c (arm_override_options): Set fix_cm3_ldrd if
1684         Cortex-M3 cpu is selected.
1685         (output_move_double): Avoid overlapping base register and first
1686         destination register when fix_cm3_ldrd.
1687         * config/arm/arm.opt: Add mfix-cortex-m3-ldrd.
1688
1689 2008-11-13  Jakub Jelinek  <jakub@redhat.com>
1690
1691         PR bootstrap/38100
1692         * gimple.h (gimple_range_check_failed): Remove prototype.
1693         * gimple.c (gimple_check_failed): Don't check GCC_VERSION
1694         in guarding #if.
1695         (gimple_range_check_failed): Removed.
1696
1697 2008-11-13  Andrew Haley  <aph@redhat.com>
1698
1699         PR bootstrap/38088
1700         * mcf.c (CAP_INFINITY): Use HOST_WIDEST_INT maximum, not GCC specific
1701         __LONG_LONG_MAX__.
1702
1703 2008-11-12  Jakub Jelinek  <jakub@redhat.com>
1704
1705         PR c++/36478
1706         Revert:
1707         2007-05-07  Mike Stump  <mrs@apple.com>
1708         * doc/invoke.texi (Warning Options): Document that -Wempty-body
1709         also checks for and while statements in C++.
1710
1711 2008-11-12  Dodji Seketeli  <dodji@redhat.com>
1712
1713         PR debug/27574
1714         * cgraph.h: New abstract_and_needed member to struct cgraph_node.
1715         * cgraphunit.c (cgraph_analyze_functions): Flag abstract functions
1716         - which clones are reachable - as "abstract and needed".
1717         * cgraph.c (cgraph_release_function_body):  If a node is
1718         "abstract and needed", do not release its DECL_INITIAL() content
1719         that will be needed to emit debug info.
1720
1721 2008-11-12  Steve Ellcey  <sje@cup.hp.com>
1722
1723         PR target/27880
1724         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Use this macro
1725         to set HAVE_GETIPINFO.
1726         * aclocal.m4: Include ../config/unwind_ipinfo.m4.
1727         * configure: Regenerate.
1728         * config.in: Regenerate.
1729
1730 2008-11-12  Jack Howarth  <howarth@bromo.med.uc.edu>
1731
1732         PR bootstrap/38010
1733         * gcc/config.gcc: Use darwin9.h on darwin10 as well.
1734
1735 2008-11-12  Jakub Jelinek  <jakub@redhat.com>
1736
1737         Revert:
1738         2008-10-21  Jakub Jelinek  <jakub@redhat.com>
1739         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs.
1740
1741 2008-11-12  Jason Merrill  <jason@redhat.com>
1742
1743         PR c++/38007
1744         * c-common.c (c_common_signed_or_unsigned_type): Remove C++
1745         special casing.
1746
1747 2008-11-12  Anatoly Sokolov  <aesok@post.ru>
1748
1749         * config/avr/avr.c (avr_mcu_t): Add atmega16hvb, atmega32hvb,
1750         atmega4hvd, atmega8hvd, atmega64c1, atmega64m1, atmega16u4 and
1751         atmega32u6 devices.
1752         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1753         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1754
1755 2008-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1756
1757         * gcc/config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Remove
1758         packed-stack special handling.
1759         (FRAME_ADDR_RTX): Add definition.
1760
1761 2008-11-12  Jakub Jelinek  <jakub@redhat.com>
1762
1763         PR target/35366
1764         * fold-const.c (native_encode_string): New function.
1765         (native_encode_expr): Use it for STRING_CST.
1766
1767 2008-11-12  DJ Delorie  <dj@redhat.com>
1768
1769         * config/m32c/cond.md (cond_to_int peephole2): Don't eliminate the
1770         insns if the intermediate value will be used later.
1771
1772 2008-11-12  Andreas Schwab  <schwab@suse.de>
1773
1774         * config/m68k/m68k.c (print_operand): Mask off extra extension
1775         bits when writing out the representation of real values.
1776
1777 2008-11-12  Ira Rosen  <irar@il.ibm.com>
1778
1779         PR tree-optimization/38079
1780         * tree-vect-analyze.c (vect_analyze_data_refs): Replace dump_file
1781         with vect_dump.
1782
1783 2008-11-12  Jakub Jelinek  <jakub@redhat.com>
1784
1785         PR c++/35334
1786         * c-pretty-print.c (pp_c_complex_expr): New function.
1787         (pp_c_postfix_expression) <case COMPLEX_EXPR>: Call it.
1788
1789         PR target/35366
1790         * expr.c (expand_expr_addr_expr_1): If EXP needs bigger alignment
1791         than INNER and INNER is a constant, forcibly align INNER as much
1792         as needed.
1793
1794 2008-11-11  Richard Sandiford  <rdsandiford@googlemail.com>
1795
1796         * cse.c (fold_rtx): Remove redundant gen_rtx_CONST.
1797
1798 2008-11-11  Richard Sandiford  <rdsandiford@googlemail.com>
1799
1800         PR rtl-optimization/37363
1801         * simplify-rtx.c (simplify_plus_minus): Don't create
1802         (const (minus ...)) expresisons.
1803
1804 2008-11-11  Eric Botcazou  <ebotcazou@adacore.com>
1805
1806         * ira-lives.c (process_bb_node_lives): Restore EH_RETURN_DATA_REGNO
1807         handling.
1808
1809 2008-11-10  Catherine Moore  <clm@codesourcery.com>
1810
1811         * config.gcc (mips64vrel-*-elf*): Include the tm_file
1812         prior to vr.h.
1813         * config/mips/linux.h (LINUX_DRIVER_SELF_SPECS): New.
1814         (BASE_DRIVER_SELF_SPECS): Remove.
1815         (DRIVER_SELF_SPECS): New definition.
1816         * config/mips/elfoabi.h: (DRIVER_SELF_SPECS): Include
1817         BASE_DRIVER_SELF_SPECS.
1818         * config/mips/sde.h: Likewise.
1819         * config/mips/iris6.h: Likewise.
1820         * config/mips/vr.h: Likewise.
1821         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): New.
1822
1823 2008-11-10  Vladimir Makarov  <vmakarov@redhat.com>
1824
1825         PR rtl-optimizations/37948
1826         * ira-int.h (struct ira_allocno_copy): New member constraint_p.
1827         (ira_create_copy, ira_add_allocno_copy): New parameter.
1828
1829         * ira-conflicts.c (process_regs_for_copy): New parameter.  Pass it
1830         to ira_add_allocno_copy.
1831         (process_reg_shuffles, add_insn_allocno_copies): Pass a new
1832         parameter to process_regs_for_copy.
1833         (propagate_copies): Pass a new parameter to ira_add_allocno_copy.
1834         Fix typo in passing second allocno to ira_add_allocno_copy.
1835
1836         * ira-color.c (update_conflict_hard_regno_costs): Use head of
1837         coalesced allocnos list.
1838         (assign_hard_reg): Ditto.  Check that assigned allocnos are not in
1839         the graph.
1840         (add_ira_allocno_to_bucket): Rename to add_allocno_to_bucket.
1841         (add_ira_allocno_to_ordered_bucket): Rename to
1842         add_allocno_to_ordered_bucket.
1843         (push_ira_allocno_to_stack): Rename to push_allocno_to_stack.  Use
1844         head of coalesced allocnos list.
1845         (push_allocnos_to_stack): Remove calculation of ALLOCNO_TEMP.
1846         Check that it is aready calculated.
1847         (push_ira_allocno_to_spill): Rename to push_ira_allocno_to_spill.
1848         (setup_allocno_left_conflicts_num): Use head of coalesced allocnos
1849         list.
1850         (coalesce_allocnos): Do extended coalescing too.
1851
1852         * ira-emit.c (add_range_and_copies_from_move_list): Pass a new
1853         parameter to ira_add_allocno_copy.
1854
1855         * ira-build.c (ira_create_copy, ira_add_allocno_copy): Add a new
1856         parameter.
1857         (print_copy): Print copy origination too.
1858
1859         * ira-costs.c (scan_one_insn): Use alloc_pref for load from
1860         equivalent memory.
1861
1862 2008-11-10  Kaz Kojima  <kkojima@gcc.gnu.org>
1863
1864         PR rtl-optimization/37514
1865         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set
1866         flag_ira_share_spill_slots to 2 if it's already non-zero.
1867         (OVERRIDE_OPTIONS): Clear flag_ira_share_spill_slots if
1868         flag_ira_share_spill_slots is 2.
1869
1870 2008-11-10  Kevin Buettner  <kevinb@redhat.com>
1871
1872         * config/m32c/prologue.md (prologue_enter_16): Set FB to SP - 2.
1873         (prologue_enter_32): Set FB to SP - 4.
1874
1875 2008-11-10  DJ Delorie  <dj@redhat.com>
1876
1877         * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add ImB
1878         constraint for single-bit-clear in lower byte of HI constant, vs
1879         Imb which just ignores the upper byte.
1880         * config/m32c/predicates.md (m32c_1mask8_operand): Use it.
1881         * config/m32c/bitops.md (andhi3_16, andhi3_24): Use it.
1882         (iorhi3_16): Check for single bit set, not single bit clear.
1883
1884 2008-11-10  Janis Johnson  <janis187@us.ibm.com>
1885
1886         * doc/sourcebuild.texi (Torture Tests): Fix formatting for bullets.
1887
1888         * doc/sourcebuild.texi (Torture Tests): Fix formatting in example.
1889
1890 2008-11-10  Eric Botcazou  <ebotcazou@adacore.com>
1891
1892         * calls.c (store_unaligned_arguments_into_pseudos): Deal only with
1893         values living in memory and use more precise alignment information.
1894
1895 2008-11-10  Jakub Jelinek  <jakub@redhat.com>
1896
1897         PR middle-end/35314
1898         * tree-mudflap.c (mf_build_check_statement_for): Split then_block
1899         after __mf_check call if the call must end a bb.
1900
1901 2008-11-10  Ralph Loader  <suckfish@ihug.co.nz>
1902
1903         PR middle-end/37807
1904         PR middle-end/37809
1905         * combine.c (force_to_mode): Do not process vector types.
1906
1907         * rtlanal.c (nonzero_bits1): Do not process vector types.
1908         (num_sign_bit_copies1): Likewise.
1909
1910 2008-11-09  Thomas Schwinge  <tschwinge@gnu.org>
1911
1912         * config/i386/gnu.h: Add copyright and licensing header.
1913         * config/gnu.h: Likewise.
1914
1915 2008-11-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1916
1917         * fwprop.c (fwprop_done): Call df_remove_problem.
1918
1919 2008-11-07  Sebastian Pop  <sebastian.pop@amd.com>
1920
1921         PR middle-end/37379
1922         * tree-scalar-evolution.c (instantiate_scev_1): Return
1923         chrec_dont_know for VL_EXP_CLASS_P.
1924
1925 2008-11-06  Uros Bizjak  <ubizjak@gmail.com>
1926
1927         * reg-stack.c (reg_to_stack): Add missing braces in memset
1928         size calculation.
1929
1930 2008-11-06  Andrew Stubbs  <ams@codesourcery.com>
1931
1932         * config/arm/bpabi.h (PROFILE_HOOK): New undef.
1933         (NO_PROFILE_COUNTERS): New define.
1934
1935 2008-11-06  David Edelsohn  <edelsohn@gnu.org>
1936
1937         PR target/26397
1938         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Define.
1939
1940 2008-11-06  Kazu Hirata  <kazu@codesourcery.com>
1941
1942         PR target/35574
1943         * config/sparc/constraints.md (D): New.
1944         * config/sparc/predicates.md (const_double_or_vector_operand): New.
1945         * config/sparc/sparc.c (sparc_extra_constraint_check): Handle the
1946         'D' constraint.
1947         * config/sparc/sparc.md (*movdf_insn_sp32_v9, *movdf_insn_sp64):
1948         Use the 'D' constraint in addition to 'F' in some alternatives.
1949         (DF splitter): Generalize for V64mode.
1950         * doc/md.texi (SPARC): Document the 'D' constraint.
1951
1952 2008-11-06  Uros Bizjak  <ubizjak@gmail.com>
1953
1954         * reg-stack.c (reg_to_stack): Generate +QNaN using real_nan.
1955
1956 2008-11-06  Ben Elliston  <bje@au.ibm.com>
1957
1958         * gcc.c: Remove ancient comment about a bug in Sun cc.
1959
1960 2008-11-05  Janis Johnson  <janis187@us.ibm.com>
1961
1962         * doc/sourcebuild.texi (Torture Tests): Add ADDITIONAL_TORTURE_OPTIONS.
1963
1964 2008-11-06  Ben Elliston  <bje@au.ibm.com>
1965
1966         * config/rs6000/rs6000.c (rs6000_override_options): Comment fix.
1967
1968 2008-11-06  Ben Elliston  <bje@au.ibm.com>
1969
1970         * config/rs6000/rs6000.opt (mwarn-cell-microcode): Improve option
1971         description.
1972
1973 2008-11-05  Hans-Peter Nilsson  <hp@axis.com>
1974
1975         PR target/38016
1976         * config/cris/cris.c (cris_order_for_addsi3): Test for !REG_P, not
1977         just MEM_P.
1978
1979 2008-11-05  Martin Jambor  <mjambor@suse.cz>
1980
1981         PR middle-end/37861
1982         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't turn
1983         pointer arithmetics into array_ref if the array is accessed
1984         through an indirect_ref.
1985
1986 2008-11-05  Richard Guenther  <rguenther@suse.de>
1987
1988         PR middle-end/37742
1989         * tree-ssa.c (useless_type_conversion_p_1): Check different restrict
1990         qualified pointer conversion before stripping qualifiers.
1991         * gimplify.c (create_tmp_from_val): Use correctly qualified type.
1992         * tree-flow.h (may_propagate_address_into_dereference): Declare.
1993         * tree-ssa-ccp.c (may_propagate_address_into_dereference): New
1994         function.
1995         (ccp_fold): Use it.
1996         * tree-ssa-forwprop.c (rhs_to_tree): Remove useless conversions,
1997         properly canonicalize binary ops.
1998         (forward_propagate_addr_expr_1): Use
1999         may_propagate_address_into_dereference.
2000
2001 2008-11-05  Uros Bizjak  <ubizjak@gmail.com>
2002
2003         PR middle-end/37286
2004         * reg-stack.c (subst_stack_regs_pat) [MINUS, DIV, MULT, PLUS]:
2005         Initialize uninitialized input registers with a NaN.
2006
2007 2008-11-05  Tobias Grosser  <grosser@fim.uni-passau.de>
2008
2009         PR middle-end/37833
2010
2011         * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
2012
2013 2008-11-05  Tobias Grosser  <grosser@fim.uni-passau.de>
2014
2015         PR middle-end/37943
2016
2017         * graphite.c (scopdet_basic_block_info): Fix loops with multiple
2018         exits and conditions.
2019         * testsuite/gcc.dg/graphite/pr37943.c: New.
2020
2021 2008-11-04  Jakub Jelinek  <jakub@redhat.com>
2022             Andrew Pinski  <andrew_pinski@playstation.sony.com>
2023
2024         PR c/35430
2025         * c-common.c (warn_for_sign_compare): For complex result_type
2026         use component's type.
2027
2028 2008-11-04  Jakub Jelinek  <jakuB@redhat.com>
2029
2030         * print-tree.c (print_node): Use code instead of TREE_CODE (node).
2031
2032         * print-tree.c (print_node): Don't print DECL_INITIAL
2033         for PARM_DECL.
2034
2035         PR c/37106
2036         * c-common.c (parse_optimize_options): Save and restore
2037         flag_strict_aliasing around decode_options call.
2038
2039 2008-11-04  Uros Bizjak  <ubizjak@gmail.com>
2040
2041         * config/i386/driver-i386.c (enum vendor_signatures): New enum.
2042         (host_detect_local_cpu): Use it instead of casted strings to
2043         compare vendor signatures.
2044
2045 2008-11-03  Mikael Pettersson  <mikpe@it.uu.se>
2046
2047         PR target/37989
2048         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Only add libgcc_s.a
2049         or libgcc_eh.a to spec if ENABLE_SHARED_LIBGCC.
2050
2051 2008-11-03  Catherine Moore  <clm@codesourcery.com>
2052
2053         * config/mips.c (mips_conditional_register_usage):  Handle the
2054         DSP control register.
2055         * doc/extend.texi: Document the DSP control register.
2056
2057 2008-11-03  Steve Ellcey <sje@cup.hp.com>
2058             Jakub Jelinek  <jakub@redhat.com>
2059
2060         * omp-low.c (expand_omp_for_generic): If iter_type has different
2061         precision than type and type is a pointer type, cast n1 and n2
2062         first to an integer type with the same precision as pointers
2063         and only afterwards to iter_type.
2064
2065 2008-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
2066
2067         * config/arm/arm.md (UNSPEC_PIC_BASE): Update documentation.
2068         (UNSPEC_GOTSYM_OFF): New unspec.
2069         (pic_add_dot_plus_four): Simplify the UNSPEC_PIC_BASE operands.
2070         (pic_add_dot_plus_eight): Likewise.
2071         (tls_load_dot_plus_eight): Likewise.  Update peephole2.
2072         * config/arm/thumb2.md (pic_load_dot_plus_four): Simplify the
2073         UNSPEC_PIC_BASE operands.
2074         * config/arm/arm.c (arm_load_pic_register): Use UNSPEC_GOTSYM_OFF.
2075         (arm_output_addr_const_extra): Handle it.
2076
2077 2008-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2078
2079         * config/i386/i386.c (classify_argument) <ARRAY_TYPE>: Promote partial
2080         integer class to full integer class if the offset is not word-aligned.
2081
2082 2008-11-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2083
2084         PR rtl-opt/37782
2085         * loop-doloop.c (doloop_modify): Add from_mode argument that says what
2086         mode count is in.
2087         (doloop_optimize): Update call to doloop_modify.
2088
2089 2008-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2090
2091         * tree-sra.c (bitfield_overlaps_p): Fix oversight.
2092
2093 2008-11-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2094
2095         PR other/37463
2096         * configure.ac (gcc_cv_ld_ro_rw_mix): Move before
2097         gcc_cv_as_cfi_directive.
2098         (gcc_cv_as_cfi_directive) [*-*-solaris*]: Check if linker supports
2099         merging read-only and read-write sections or assembler emits
2100         read-write .eh_frame sections.
2101         * configure: Regenerate.
2102
2103 2008-11-03  Nathan Froyd  <froydnj@codesourcery.com>
2104
2105         Revert:
2106         2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
2107
2108         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
2109         problem.
2110         (rs6000_emit_prologue): Invert logic.
2111         * config/rs6000/rs6000.md (*save_gpregs_<mode>): Use explicit
2112         (reg:P 11) instead of match_operand.
2113         (*save_fpregs_<mode>): Likewise.
2114         (*restore_gpregs_<mode>): Likewise.
2115         (*return_and_restore_gpregs_<mode>): Likewise.
2116         (*return_and_restore_fpregs_<mode>): Likewise.
2117         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit
2118         (reg:P 11) insted of match_operand.
2119         (*restore_gpregs_spe): Likewise.
2120         (*return_and_restore_gpregs_spe): Likewise.
2121
2122 2008-11-03  Harsha Jagasia  <harsha.jagasia@amd.com>
2123
2124         PR tree-optimization/37684
2125         * gcc.dg/graphite/pr37684.c: New.
2126         * graphite.c (exclude_component_ref): New.
2127         (is_simple_operand): Call exclude_component_ref.
2128
2129 2008-11-03  Sebastian Pop  <sebastian.pop@amd.com>
2130
2131         PR tree-optimization/36908
2132         * testsuite/gcc.dg/tree-ssa/pr36908.c: New.
2133         * tree-loop-distribution.c (number_of_rw_in_rdg): New.
2134         (number_of_rw_in_partition): New.
2135         (partition_contains_all_rw): New.
2136         (ldist_gen): Do not distribute when one of the partitions
2137         contains all the memory operations.
2138
2139 2008-11-03  Sebastian Pop  <sebastian.pop@amd.com>
2140
2141         * cfghooks.c (split_block): Set BB_IRREDUCIBLE_LOOP and
2142         EDGE_IRREDUCIBLE_LOOP.
2143
2144 2008-11-03  Bernd Schmidt  <bernd.schmidt@analog.com>
2145
2146         * config/bfin/bfin.c (bfin_optimize_loop): Properly handle case
2147         where we have one entry point in the loop which isn't the head.
2148
2149 2008-11-03  Richard Guenther  <rguenther@suse.de>
2150
2151         PR middle-end/37573
2152         * tree-data-ref.c (split_constant_offset_1): Fix tuplification.
2153
2154 2008-11-03  Jakub Jelinek  <jakub@redhat.com>
2155
2156         PR middle-end/37858
2157         * passes.c (execute_one_pass): Don't look at cfun->curr_properties
2158         for ipa and simple ipa passes.
2159
2160 2008-11-02  Richard Guenther  <rguenther@suse.de>
2161
2162         PR tree-optimization/37542
2163         * tree-ssa-pre.c (fully_constant_expression): Handle more cases.
2164         * tree-ssa-sccvn.c (vn_get_expr_for): Fix typo.
2165         (vn_nary_op_lookup_stmt): Adjust for unary reference trees.
2166         (vn_nary_op_insert_stmt): Likewise.
2167         (visit_use): Likewise.
2168
2169 2008-11-02  Anatoly Sokolov  <aesok@post.ru>
2170
2171         * config/avr/avr.md (UNSPEC_SWAP): Remove constants.
2172         (*swap): Remove.
2173         (rotlqi3, *rotlqi3_4, rotlhi3, *rotlhi3_8,
2174         rotlsi3, *rotlsi3_8, *rotlsi3_16, *rotlsi3_24): New patterns.
2175         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, ashlqi3_l_const4,
2176         ashlqi3_l_const5, ashlqi3_l_const6, lshrqi3_const4, lshrqi3_const5,
2177         lshrqi3_const6, lshrqi3_l_const4, lshrqi3_l_const4, lshrqi3_l_const6
2178         peephole2's): Replace unspec with rotate.
2179         * config/avr/avr.c (avr_rtx_costs): Add ROTATE.
2180
2181 2008-11-02  Richard Guenther  <rguenther@suse.de>
2182
2183         PR tree-optimization/37991
2184         * tree-ssa-sccvn.h (copy_vuses_from_stmt): Remove.
2185         * tree-ssa-sccvn.c (copy_vuses_from_stmt): Make static.
2186         (set_ssa_val_to): Print if the value changed.
2187         (simplify_binary_expression): Strip useless conversions.
2188
2189 2008-11-01  Hans-Peter Nilsson  <hp@axis.com>
2190
2191         PR target/37939
2192         * config/cris/cris.c (cris_rtx_costs) <MULT>: Return 0 for an ADDI
2193         operand.
2194
2195 2008-11-01  Richard Guenther  <rguenther@suse.de>
2196
2197         PR middle-end/37976
2198         * builtins.c (fold_builtin_strspn): Return a size_t.
2199         (fold_builtin_strcspn): Likewise.
2200
2201 2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
2202
2203         * config/rs6000/rs6000.c (rs6000_file_start): Output gnu
2204         attribute for struct return convention.
2205
2206 2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
2207
2208         * config/rs6000/crtsavres.asm: Really, really delete.
2209
2210 2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
2211
2212         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
2213         problem.
2214         (rs6000_emit_prologue): Invert logic.
2215         * config/rs6000/rs6000.md (*save_gpregs_<mode>): Use explicit
2216         (reg:P 11) instead of match_operand.
2217         (*save_fpregs_<mode>): Likewise.
2218         (*restore_gpregs_<mode>): Likewise.
2219         (*return_and_restore_gpregs_<mode>): Likewise.
2220         (*return_and_restore_fpregs_<mode>): Likewise.
2221         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit
2222         (reg:P 11) insted of match_operand.
2223         (*restore_gpregs_spe): Likewise.
2224         (*return_and_restore_gpregs_spe): Likewise.
2225
2226 2008-10-28  Luis Machado  <luisgpm@br.ibm.com>
2227
2228         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add "dumpbase" to the
2229         list of word switches that take args.
2230
2231 2008-10-30  Jakub Jelinek  <jakub@redhat.com>
2232
2233         * config/s390/s390.c (s390_mark_symbol_ref_as_used): New function.
2234         (s390_output_pool_entry): Call it through for_each_rtx.
2235
2236         PR middle-end/37730
2237         * expr.c (store_constructor): For vectors, if target is a MEM, use
2238         target's MEM_ALIAS_SET instead of elttype alias set.
2239
2240 2008-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2241
2242         PR target/37909
2243         * config/sh/sh.c (untangle_mova): Return -1 when NEW_MOVA has
2244         no address.
2245
2246 2008-10-29  David Edelsohn  <edelsohn@gnu.org>
2247
2248         PR target/37878
2249         * config/rs6000/predicates.md (word_offset_memref_operand):
2250         Restructure code and look inside auto-inc/dec addresses.
2251
2252 2008-10-29  Steve Ellcey  <sje@cup.hp.com>
2253
2254         PR target/32277
2255         * libgcov.c ( __gcov_indirect_call_profiler): Check
2256         TARGET_VTABLE_USES_DESCRIPTORS.
2257
2258 2008-10-29  Stefan Schulze Frielinghaus  <xxschulz@de.ibm.com>
2259
2260         * config/spu/spu.h (FRAME_GROWS_DOWNWARD): Define.
2261         (INITIAL_FRAME_POINTER_OFFSET): Remove.
2262         * config/spu/spu.c (spu_initial_elimination_offset): Calculate new
2263         offset if eliminating soft frame pointer.
2264         * config/spu/spu.md (stack_protect_set, stack_protect_test)
2265         (stack_protect_test_si): Add initial machine description
2266         for Stack Smashing Protector
2267
2268 2008-10-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2269
2270         PR 11492
2271         * c-common.c (min_precision): Move to...
2272         * tree.c (tree_int_cst_min_precision): ... to here. Renamed.
2273         * tree.h (tree_int_cst_min_precision): Declare.
2274         * c-common.h (min_precision): Delete declaration.
2275         * fold-const.c (tree_binary_nonnegative_warnv_p): Handle
2276         multiplication of non-negative integer constants.
2277         * c-decl.c (check_bitfield_type_and_width): Rename min_precision to
2278         tree_int_cst_min_precision.
2279         (finish_enum): Likewise.
2280
2281 2008-10-29  Joseph Myers  <joseph@codesourcery.com>
2282
2283         PR middle-end/36578
2284         * convert.c (convert_to_real): Do not optimize conversions of
2285         binary arithmetic operations between binary and decimal
2286         floating-point types.  Consider mode of target type in determining
2287         decimal type for arithmetic.  Unless
2288         flag_unsafe_math_optimizations, do not optimize binary conversions
2289         where this may change rounding behavior.
2290         * real.c (real_can_shorten_arithmetic): New.
2291         * real.h (real_can_shorten_arithmetic): Declare.
2292
2293 2008-10-29  Bernd Schmidt  <bernd.schmidt@analog.com>
2294
2295         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315,
2296         ENABLE_WA_05000257, ENABLE_WA_05000283, ENABLE_WA_05000315): New.
2297         * config/bfin/bfin.c (bfin_cpus): Add these workaround bits as
2298         appropriate.
2299         (must_save_p): For some workarounds, interrupts need to clobber a
2300         P register.
2301         (expand_prologue_reg_save, expand_epilogue_reg_restore): Save LC0
2302         and LC1 for WA_05000257.
2303         (expand_interrupt_handler_prologue): Add dummy read of CHIPID for
2304         WA_05000283 and WA_05000315.
2305         * config/bfin/bfin.md (UNSPEC_VOLATILE_DUMMY): New constant.
2306         (movbi): Add alternative to set CC to 1; improve code for setting
2307         CC to 0.
2308         (dummy_load): New pattern.
2309
2310 2008-10-29  Jakub Jelinek  <jakub@redhat.com>
2311
2312         PR middle-end/37870
2313         * expmed.c (extract_bit_field_1): If int_mode_for_mode returns
2314         BLKmode for non-memory, convert using a wider MODE_INT mode
2315         or through memory.
2316
2317         PR middle-end/37913
2318         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Only split bbs
2319         that haven't been removed yet.
2320
2321 2008-10-29  Bernd Schmidt  <bernd.schmidt@analog.com>
2322
2323         * config/bfin/bfin.c (struct machine_function): New member
2324         has_loopreg_clobber.
2325         (bfin_expand_movmem): Set it when generating memcpy insns.
2326         (n_regs_saved_by_prologue, expand_prologue_reg_save,
2327         expand_epilogue_reg_restore): If we have hardware loops,
2328         memcpy insns (indicated by has_loopreg_clobber) or function
2329         calls, we need to save the loop registers.
2330
2331 2008-10-28  H.J. Lu  <hongjiu.lu@intel.com>
2332
2333         * config/i386/i386.c (core2_cost): Fix typos in comments.
2334
2335 2008-10-28  Jakub Jelinek  <jakub@redhat.com>
2336
2337         PR c/37924
2338         * combine.c (make_compound_operation): Don't call make_extraction with
2339         non-positive length.
2340         (simplify_shift_const_1): Canonicalize count even if complement_p.
2341
2342 2008-10-28  Joseph Myers  <joseph@codesourcery.com>
2343
2344         * convert.c (strip_float_extensions): Do not remove or introduce
2345         conversions between binary and decimal floating-point types.
2346
2347 2008-10-28  Jakub Jelinek  <jakub@redhat.com>
2348
2349         PR middle-end/37931
2350         * fold-const.c (distribute_bit_expr): Convert common, left and
2351         right arguments to type.
2352
2353 2008-10-28  Nick Clifton  <nickc@redhat.com>
2354
2355         * config/mn10300/mn10300.h (CALL_REALLY_USED_REGISTERS): Define.
2356         * config/mn10300/mn10300.c (fp_regs_to_save): Test the
2357         call_really_used_regs array rather than the call_used_regs array.
2358         (mn10300_get_live_callee_saved_regs, expand_prologue,
2359         expand_epilogue, output_tst): Likewise.
2360
2361 2008-10-27  Jakub Jelinek  <jakub@redhat.com>
2362
2363         PR target/37378
2364         * df-scan.c (df_bb_refs_collect): Don't handle EH_USES here.
2365         (df_get_entry_block_def_set): Neither here.
2366         (df_get_regular_block_artificial_uses): Add EH_USES registers.
2367
2368         PR tree-optimization/37879
2369         * predict.c (tree_estimate_probability): Check if last_stmt is
2370         non-NULL before dereferencing it.
2371
2372 2008-10-27  Vladimir Makarov  <vmakarov@redhat.com>
2373
2374         * ira-int.h (ira_allocno): Add member updated_cover_class_cost.
2375         (ALLOCNO_UPDATED_COVER_CLASS_COST): New.
2376         (ira_fast_allocation): Remove the prototype.
2377
2378         * ira-color.c (update_copy_costs, allocno_cost_compare_func,
2379         assign_hard_reg, calculate_allocno_spill_cost): Use updated costs.
2380         (color_pass): Modify the updated costs.
2381         (ira_color): Rename to color.  Make it static.
2382         (ira_fast_allocation): Rename to fast_allocation.  Make it static.
2383         (ira_color): New function.
2384
2385         * ira-conflicts.c (process_regs_for_copy): Propagate hard reg cost
2386         change.
2387
2388         * ira-lives.c (last_call_num, allocno_saved_at_call): New
2389         variables.
2390         (set_allocno_live, clear_allocno_live, mark_ref_live,
2391         mark_ref_dead): Invalidate corresponding element of
2392         allocno_saved_at_call.
2393         (process_bb_node_lives): Increment last_call_num.  Setup
2394         allocno_saved_at_call.  Don't increase ALLOCNO_CALL_FREQ if the
2395         allocno was already saved.
2396         (ira_create_allocno_live_ranges): Initiate last_call_num and
2397         allocno_saved_at_call.
2398
2399         * ira-build.c (ira_create_allocno): Initiate
2400         ALLOCNO_UPDATED_COVER_CLASS_COST.
2401         (create_cap_allocno, propagate_allocno_info,
2402         remove_unnecessary_allocnos): Remove setting updated costs.
2403         (ira_flattening): Set up ALLOCNO_UPDATED_COVER_CLASS_COST.
2404
2405         * ira.c (ira):  Don't call ira_fast_allocation.
2406
2407         * ira-costs.c (setup_allocno_cover_class_and_costs): Don't set up
2408         updated costs.
2409
2410 2008-10-27  Vladimir Makarov  <vmakarov@redhat.com>
2411
2412         PR middle-end/37813
2413         * ira-conflicts.c (process_regs_for_copy): Remove class subset check.
2414
2415         * ira-int.h (ira_hard_regno_cover_class): New.
2416
2417         * ira-lives.c (mark_reg_live, mark_reg_dead,
2418         process_bb_node_lives): Use ira_hard_regno_cover_class.
2419
2420         * ira.c (reg_class ira_hard_regno_cover_class): New global variable.
2421         (setup_hard_regno_cover_class): New function.
2422         (ira_init): Call setup_hard_regno_cover_class.
2423
2424         * ira-costs.c (cost_class_nums): Add comment.
2425         (find_allocno_class_costs): Initiate cost_class_nums.
2426         (setup_allocno_cover_class_and_costs): Check cost_class_nums.
2427
2428 2008-10-27  Vladimir Makarov  <vmakarov@redhat.com>
2429
2430         PR middle-end/37884
2431         * ira-build.c (copy_live_ranges_to_removed_store_destinations):
2432         Rename to copy_info_to_removed_store_destinations.  Propagate
2433         conflict hard regs and register stack attribute.
2434
2435 2008-10-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2436
2437         PR middle-end/37316
2438         * pa.c (function_arg_padding):  Pad complex and vector types
2439         upward in 64-bit runtime.
2440         (function_arg): Use BLKmode for PARALLEL in 64-bit runtime.
2441
2442 2008-10-26  Matthias Klose  <doko@ubuntu.com>
2443
2444         * doc/install.texi: Document requirements on antlr.
2445
2446 2008-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
2447
2448         * config/mips/mips.h (REG_ALLOC_ORDER): Put call-clobbered registers
2449         first.
2450
2451 2008-10-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2452
2453         PR target/37841
2454         * function.c (locate_and_pad_parm): If FUNCTION_ARG_ADJUST_OFFSET
2455         is defined, use it to modify the constant offset.
2456
2457         * doc/tm.texi (FUNCTION_ARG_OFFSET): Document new macro.
2458
2459         * config/spu/spu.h (FUNCTION_ARG_OFFSET): New macro to move char
2460         and short arguments to the correct location as mandated by the ABI.
2461
2462 2008-10-24  Kaz Kojima  <kkojima@gcc.gnu.org>
2463
2464         PR rtl-optimization/37769
2465         * regmove.c (optimize_reg_copy_2): Update REG_INC note if needed.
2466
2467 2008-10-24  Kaz Kojima  <kkojima@gcc.gnu.org>
2468
2469         * config/sh/t-sh: Use $(MULTILIB_CFLAGS) when compiling to
2470         unwind-dw2-Os-4-200.o.
2471
2472 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
2473
2474         * c-typeck.c (enum impl_conv): Remove ic_argpass_nonproto.
2475         (convert_for_assignment): Remove ic_argpass_nonproto cases.
2476
2477 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
2478
2479         PR tree-optimization/36038
2480         * tree-ssa-loop-ivopts.c (add_old_iv_candidates): For pointer bases
2481         add sizetype IV with initial value zero instead of pointer type.
2482
2483 2008-10-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2484
2485         PR c/7543
2486         * value-prof.c (gimple_stringop_fixed_value): Use parentheses
2487         around bit operation.
2488         * profile.c (is_edge_inconsistent): Likewise.
2489         * fold-const.c (truth_value_p): Move from here...
2490         * tree.h (truth_value_p): ... to here.
2491         * c-tree.h (c_expr): Update description of original_code.
2492         * c-typeck.c (parser_build_unary_op): Set original_code.
2493         (parser_build_binary_op): Update call to warn_about_parentheses.
2494         * c-common.c (warn_about_parentheses): Take two additional
2495         arguments of the operands. Use a switch. Quote operators
2496         appropriately. Define macro APPEARS_TO_BE_BOOLEAN_EXPR_P.
2497         Add warning about !x | y and !x & y.
2498         * c-common.h (warn_about_parentheses): Update declaration.
2499
2500 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
2501
2502         * Makefile.in (lang_checks_parallelized, check_gcc_parallelize,
2503         check_p_tool, check_p_vars, check_p_subno, check_p_comma,
2504         check_p_subwork, check_p_numbers, check_p_subdir, check_p_subdirs):
2505         New variables.
2506         (check-subtargets, check-%-subtargets, check-parallel-%): New targets.
2507         (check-%): For test targets listed in lang_checks_parallelized
2508         if -j is used and RUNTESTFLAGS doesn't specify tests to execute,
2509         run the testing in multiple make goals, possibly parallel, and
2510         afterwards run dg-extract-results.sh to merge the sum and log files.
2511
2512 2008-10-24  Richard Sandiford  <rdsandiford@googlemail.com>
2513
2514         * config/mips/mips.c (mips_canonicalize_move_class): New function.
2515         (mips_move_to_gpr_cost): Likewise.
2516         (mips_move_from_gpr_cost): Likewise.
2517         (mips_register_move_cost): Make more fine-grained.
2518
2519 2008-10-23  Tobias Grosser  <grosser@fim.uni-passau.de>
2520
2521         * graphite.c (graphite_apply_transformations): Check for
2522         -fgraphite-identity.
2523         * toplev.c (process_options): Add graphite_identity.
2524         * tree-ssa-loop.c (gate_graphite_transforms): Add graphite_identity.
2525
2526 2008-10-23  Bernd Schmidt  <bernd.schmidt@analog.com>
2527
2528         * config/bfin/bfin.c (bdesc_2arg): Add mulhisill, mulhisilh,
2529         mulhisihl and mulhisihh builtins.
2530
2531         From Jie Zhang  <jie.zhang@analog.com>
2532         * config/bfin/bfin.md (composev2hi): Put operands into vector
2533         with correct order.
2534
2535 2008-10-22  Chao-ying Fu  <fu@mips.com>
2536
2537         * config/mips/mips.opt (msmartmips): Accept -mno-smartmips.
2538
2539 2008-10-22  Bernd Schmidt  <bernd.schmidt@analog.com>
2540
2541         From Mike Frysinger  <michael.frysinger@analog.com>
2542         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF512,
2543         BFIN_CPU_BF514, BFIN_CPU_BF516, and BFIN_CPU_BF518.
2544         * config/bfin/bfin.c (bfin_cpus[]): Add 0.0 for bf512, bf514, bf516,
2545         and bf518.  Add 0.2 for bf522, bf523, bf524, bf526, and bf527.
2546         Add 0.6 for bf533, bf532, and bf531.  Add 0.5 for bf538 and bf539.
2547         Add 0.2 for bf542, bf544, bf547, bf548, and bf549.
2548         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF512__
2549         for BFIN_CPU_BF512, __ADSPBF514__ for BFIN_CPU_BF514, __ADSPBF516__
2550         for BFIN_CPU_BF516, and __ADSPBF518__ for BFIN_CPU_BF518.  Define
2551         __ADSPBF51x__ for all of them.
2552         * config/bfin/elf.h (LIB_SPEC): Select proper linker scripts for
2553         -mcpu bf512, bf514, bf516, and bf518.
2554         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2555         bf512-none, bf514-none, bf516-none, and bf518-none.
2556         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2557         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2558         * doc/invoke.texi (Blackfin Options): Document that
2559         -mcpu now accepts bf512, bf514, bf516, and bf518.
2560
2561 2008-10-22  Jakub Jelinek  <jakub@redhat.com>
2562
2563         PR middle-end/37882
2564         * fold-const.c (build_range_type): For 1 .. signed_max
2565         range call build_nonstandard_inter_type if signed_type_for
2566         returned a type with bigger precision.
2567
2568 2008-10-22  Richard Guenther  <rguenther@suse.de>
2569
2570         * tree.def (COMPLEX_TYPE): Constrain element type.
2571         * tree.c (build_complex_type): Assert that.
2572         * tree-ssa-structalias.c (could_have_pointers): Complex types
2573         cannot have pointers.
2574
2575 2008-10-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2576
2577         PR c/30949
2578         * c-typeck.c (convert_for_assignment): Do not give declaration's
2579         location for builtins. Spell out which type was expected and which
2580         was given.
2581
2582 2008-10-22  Nick Clifton  <nickc@redhat.com>
2583
2584         * config/frv/frv.h (HARD_REGNO_RENAME_OK): Define.  Do not allow
2585         the fdpic register to be a target when running in fdpic mode.
2586
2587 2008-10-22 Rafael Espindola  <espindola@google.com>
2588
2589         * ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the
2590         newly created statements.
2591
2592 2008-10-22  Kaz Kojima  <kkojima@gcc.gnu.org>
2593
2594         PR target/37633
2595         * config/sh/sh.c (sh_hard_regno_mode_ok): New function.
2596         * config/sh/sh.h (HARD_REGNO_MODE_OK): Use it.
2597         * config/sh/sh-protos.h (sh_hard_regno_mode_ok): Declare.
2598
2599 2008-10-22  Jakub Jelinek  <jakub@redhat.com>
2600
2601         PR target/37880
2602         * doc/invoke.texi: Fix spelling of -mlarge-data-threshold option.
2603         Adjust -mcmodel=medium description for 2005-07-31 changes.
2604
2605 2008-10-22  Jan Hubicka  <jh@suse.cz>
2606             Jakub Jelinek  <jakub@redhat.com>
2607
2608         PR middle-end/35853
2609         * doc/invoke.texi: Remove references to obsoleted -d dumps.
2610
2611 2008-10-21  Richard Henderson  <rth@redhat.com>
2612
2613         PR 37815
2614         * emit-rtl.c (get_spill_slot_decl): Export.
2615         * emit-rtl.h (get_spill_slot_decl): Declare.
2616         * var-tracking.c (vt_add_function_parameters): Relax assertion
2617         on the contents of MEM_EXPR in a PARM_DECL to include a spill slot.
2618
2619 2008-10-21  Bob Wilson  <bob.wilson@acm.org>
2620
2621         * var-tracking.c (insn_stack_adjust_offset_pre_post): If insn has a
2622         REG_FRAME_RELATED_EXPR note, examine the pattern from the note instead
2623         of from insn.
2624
2625 2008-10-21  Adam Nemet  <anemet@caviumnetworks.com>
2626
2627         PR middle-end/37669
2628         * tree-ssa-ccp.c (ccp_fold_builtin): Only allow one argument to be
2629         processed by get_maxval_strlen.
2630
2631 2008-10-21  David Edelsohn  <edelsohn@gnu.org>
2632
2633         PR target/35485
2634         * tree.c (get_file_function_name): Copy first_global_object_name.
2635         Centralize call to clean_symbol_name.
2636
2637 2008-10-21  Sandra Loosemore  <sandra@codesourcery.com>
2638
2639         * config.gcc (powerpc-*): Make t-ppcgas imply usegas.h.
2640         * config/svr4.h (SVR4_ASM_SPEC): New.
2641         (ASM_SPEC): Inherit from SVR4_ASM_SPEC.
2642         * config/rs6000/sysv4.h (ASM_SPEC): Inherit from SVR4_ASM_SPEC.
2643
2644         * doc/invoke.texi (Option Summary): Add -T to linker options.
2645         (Link Options): Document -T.
2646
2647 2008-10-21  Jakub Jelinek  <jakub@redhat.com>
2648
2649         * tree-inline.c (tree_inlinable_function_p): Remove tuples
2650         debugging hack.
2651
2652         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs.
2653
2654         PR debug/37020
2655         * c-decl.c (merge_decls): Don't call outlining_inline_function hook.
2656
2657 2008-10-20  Daniel Berlin  <dberlin@dberlin.org>
2658
2659         * tree-ssa-pre.c (insert_into_preds_of_block): Don't rewrite constant
2660         part of expression.
2661
2662 2008-10-20  Tobias Schlüter  <tobi@gcc.gnu.org>
2663
2664         * doc/install.texi: Fix typos in previous patch.
2665
2666 2008-10-19  Tobias Schlüter  <tobi@gcc.gnu.org>
2667
2668         * doc/install.texi: Document in-tree building of gcc and mpfr.
2669
2670 2008-10-19  Richard Guenther  <rguenther@suse.de>
2671
2672         * tree-ssa-alias.c (may_alias_p): Remove bogus shortcut.
2673
2674 2008-10-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2675
2676         PR c/30260
2677         * c-decl.c (finish_enum): Convert non-integer enumerators to enum type.
2678         (build_enumerator): Convert enumerators that fit in integer to
2679         integer type.
2680
2681 2008-10-18  Uros Bizjak  <ubizjak@gmail.com>
2682
2683         * config/i386/i386.md (unnamed peephole2): Do not force memory
2684         operands of arith or logical instructions into registers for
2685         non-TARGET_READ_MODIFY targets.
2686
2687         (ffs_cmove): Change operand 0 predicate to register_operand.
2688         Change operand 1 predicate to nonimmediate_operand.
2689         (ffsdi2): Ditto.
2690         (*ffs_no_cmove): Change operand 0 predicate to register_operand.
2691
2692 2008-10-18  Richard Guenther  <rguenther@suse.de>
2693
2694         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Guard
2695         VIEW_CONVERT_EXPR case against invalid gimple.
2696
2697 2008-10-17  Andreas Krebbel  <krebbel1@de.ibm.com>
2698
2699         * c-parser.c (c_parser_binary_expression): Silence the
2700         uninitialized variable warning emitted for binary_loc.
2701
2702 2008-10-16  Daniel Berlin  <dberlin@dberlin.org>
2703
2704         * tree-ssa-pre.c (phi_translate_set): Add constants to phi
2705         translation cache.
2706
2707 2008-10-16  Joseph Myers  <joseph@codesourcery.com>
2708
2709         PR c/33192
2710         * c-typeck.c (build_unary_op): Use omit_one_operand for
2711         IMAGPART_EXPR of real argument.
2712
2713 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
2714
2715         PR tree-optimization/37664
2716         * fold-const.c (fold_binary): When optimizing comparison with
2717         highest or lowest type's value, don't consider TREE_OVERFLOW.
2718
2719 2008-10-16  David Edelsohn  <edelsohn@gnu.org>
2720
2721         PR target/35483
2722         * Makefile.in (coverage.o): Depend on $(TM_P_H).
2723         * coverage.c: Include tm_p.h.
2724         * config/rs6000/x-aix (jc1): Override LDFLAGS.
2725         * config/rs6000/xcoff.h (ASM_GENERATE_INTERNAL_LABEL): Strip
2726         dollar signs from PREFIX.
2727         * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
2728         instead of manual strip_name_encoding.
2729
2730 2008-10-16  Richard Guenther  <rguenther@suse.de>
2731
2732         PR middle-end/37418
2733         * tree-ssa.c (useless_type_conversion_p_1): Do not treat
2734         volatile qualified functions or methods as relevant.
2735
2736 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
2737
2738         PR tree-optimization/37525
2739         * tree.c (int_fits_type_p): Rewrite using double_int.  Zero extend
2740         sizetype unsigned constants, both in the case of C and bounds.
2741
2742 2008-10-15  Jan Hubicka  <jh@suse.cz>
2743
2744         * ira-emit.c (change_regs): Return false when replacing reg by itself.
2745
2746 2008-10-14  Vladimir Makarov  <vmakarov@redhat.com>
2747
2748         PR target/37633
2749         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Check
2750         HARD_REGNO_CALL_PART_CLOBBERED.
2751
2752 2008-10-15  Vladimir Makarov  <vmakarov@redhat.com>
2753
2754         PR middle-end/37535
2755         * ira-lives.c (mark_early_clobbers): Remove.
2756         (make_pseudo_conflict, check_and_make_def_use_conflicts,
2757         check_and_make_def_conflicts,
2758         make_early_clobber_and_input_conflicts,
2759         mark_hard_reg_early_clobbers): New functions.
2760         (process_bb_node_lives): Call
2761         make_early_clobber_and_input_conflicts and
2762         mark_hard_reg_early_clobbers.  Make hard register inputs live again.
2763
2764         * doc/rtl.texi (clobber): Change descriotion of RA behaviour for
2765         early clobbers of pseudo-registers.
2766
2767 2008-10-15  Vladimir Makarov  <vmakarov@redhat.com>
2768
2769         PR middle-end/37674
2770         * ira-build.c (ira_flattening): Recalculate
2771         ALLOCNO_TOTAL_NO_STACK_REG_P and ALLOCNO_TOTAL_CONFLICT_HARD_REGS
2772         from the scratch instead of the propagation.
2773
2774 2008-10-15  Richard Sandiford  <rdsandiford@googlemail.com>
2775
2776         * doc/rtl.texi (const_double): Remove the "addr" operand.
2777         Describe CONST_DOUBLE_* macros under const_double rather
2778         than const_vector.
2779         (const_fixed): Fix the operand description.
2780         (const): Add an @findex directive.
2781         (CONST0_RTX, CONST1_RTX, CONST2_RTX): Move description
2782         after the constant rtl table.
2783         (fix): Combine floating-point and fixed-point descriptions.
2784         Fix hyphenation.
2785         * sched-deps.c (sched_analyze_2): Remove reference to
2786         CONST_DOUBLE_CHAIN.
2787
2788 2008-10-15  Richard Sandiford  <rdsandiford@googlemail.com>
2789
2790         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Handle
2791         UNSPEC_GOTSYM_OFFs.
2792         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Return true
2793         for UNSPEC_GOTSYM_OFFs.
2794         * config/mn10300/mn10300.md (UNSPEC_GOTSYM_OFF): New unspec.
2795         (add_GOT_to_pic_reg): Use it.
2796         * config/mn10300/constraints.md (S): Allow UNSPEC_GOTSYM_OFF.
2797
2798 2008-10-15  Jan Sjodin  <jan.sjodin@amd.com>
2799             Harsha Jagasia  <harsha.jagasia@amd.com>
2800
2801         PR tree-optimization/37485
2802         * graphite.c (gmp_cst_to_tree): Moved.
2803         (iv_stack_entry_is_constant): New.
2804         (iv_stack_entry_is_iv): New.
2805         (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
2806         (loop_iv_stack_insert_constant): New.
2807         (loop_iv_stack_pop): Use new datatpype.
2808         (loop_iv_stack_get_iv): Same.
2809         (loop_iv_stack_get_iv_from_name): Same.
2810         (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
2811         (loop_iv_stack_patch_for_consts): New.
2812         (loop_iv_stack_remove_constants): New.
2813         (graphite_create_new_loop): Use loop_iv_stack_push_iv.
2814         (translate_clast): Call loop_iv_stack_patch_for_consts and
2815         loop_iv_stack_remove_constants.
2816         (gloog): Use new datatype.  Redirect construction edge to end
2817         block to avoid accidental deletion.
2818         * graphite.h (enum iv_stack_entry_kind): New.  Tag for data in
2819         iv stack entry.
2820         (union iv_stack_entry_data): New.  Data in iv stack entry.
2821         (struct iv_stack_entry): New.  Datatype for iv stack entries.
2822
2823 2008-10-15  Sebastian Pop  <sebastian.pop@amd.com>
2824
2825         * tree-data-ref.c (stmt_simple_memref_p): Fix memleak.
2826         * graphite.c (free_scop): Same.
2827         (build_scops): Same.
2828         (free_scattering): New.
2829         (build_cloog_prog): Call free_scattering.
2830         (patch_phis_for_virtual_defs): Fix memleak.
2831         (graphite_trans_bb_strip_mine): Same.
2832         (limit_scops): Same.
2833
2834 2008-10-15  Sebastian Pop  <sebastian.pop@amd.com>
2835             Harsha Jagasia  <harsha.jagasia@amd.com>
2836
2837         PR tree-optimization/37828
2838         * graphite.c (graphite_trans_loop_block): Do not loop block
2839         single nested loops.
2840
2841 2008-10-15  Sebastian Pop  <sebastian.pop@amd.com>
2842
2843         PR tree-optimization/37686
2844         * tree-loop-linear.c (linear_transform_loops): Build a
2845         loop nest vector.  Pass it to lambda_compute_access_matrices.
2846         * tree-data-ref.h (struct access_matrix): Store the loop nest
2847         relative to which it encodes the information.
2848         (AM_LOOP_NEST_NUM): Renamed AM_LOOP_NEST.
2849         (am_vector_index_for_loop): Reimplemented: iterate over the
2850         loop nest for finding the loop index in the access matrix.
2851         (lambda_compute_access_matrices): Update declaration.
2852         * lambda-code.c (build_access_matrix): Pass the loop nest and
2853         record it.
2854         (lambda_compute_access_matrices): Same.
2855
2856 2008-10-15  Andreas Krebbel  <krebbel1@de.ibm.com>
2857
2858         * config/s390/s390.h: (TARGET_DFP): This requires TARGET_HARD_FLOAT.
2859         * config/s390/s390.md: Replace "TARGET_HARD_FLOAT &&
2860         TARGET_(HARD_)DFP" with only TARGET_(HARD_)DFP since this
2861         already implies hard float.  Also fix several insn condition
2862         with TARGET_DFP which shall require TARGET_HARD_DFP instead.
2863
2864 2008-10-15  David Edelsohn  <edelsohn@gnu.org>
2865
2866         PR target/35483
2867         Based on patches by Laurent Vivier.
2868         * xcoffout.h (DBX_FINISH_STABS): Translate dollar sign to underscore.
2869         * config/rs6000/rs6000-protos.h (rs6000_xcoff_strip_dollar): Declare.
2870         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Translate
2871         dollar sign to underscore.
2872         (ASM_OUTPUT_EXTERNAL): Same.
2873         (ASM_OUTPUT_LABELREF): New.
2874         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): New.
2875
2876         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Define.
2877         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Define.
2878         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Define.
2879         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Define.
2880
2881 2008-10-15  Jakub Jelinek  <jakub@redhat.com>
2882
2883         PR tree-optimization/36881
2884         * tree-switch-conversion.c (check_final_bb): For flag_pic, check
2885         that each value doesn't need runtime relocations, for !flag_pic
2886         check that each value is just a valid initializer constant.
2887
2888 2008-10-14  Richard Sandiford  <rdsandiford@googlemail.com>
2889
2890         * config/mips/mips.h (reg_class): Remove HI_AND_GR_REGS,
2891         LO_AND_GR_REGS, HI_AND_FP_REGS, COP0_AND_GR_REGS, COP2_AND_GR_REGS,
2892         COP3_AND_GR_REGS, ALL_COP_REGS and ALL_COP_AND_GR_REGS.
2893         Add GR_AND_MD0_REGS, GR_AND_MD1_REGS, GR_AND_MD_REGS and
2894         GR_AND_ACC_REGS.
2895         (REG_CLASS_NAMES): Update accordingly.
2896         (REG_CLASS_CONTENTS): Likewise.  Use the class name in the comments,
2897         rather than an unpredictable descriptive string.
2898         * config/mips/mips.c (mips_register_move_cost): Remove comment.
2899         (mips_register_move_cost): Check for specific COP*_REGS classes,
2900         instead of ALL_COP_AND_GR_REGS.
2901         (mips_ira_cover_classes): New function.
2902         (mips_secondary_reload_class): Remove MTLO and MTHI workarounds.
2903         (TARGET_IRA_COVER_CLASSES): Define.
2904
2905 2008-10-14  Douglas Gregor  <doug.gregor@gmail.com>
2906
2907         PR c++/37553
2908         * tree.c (build_type_attribute_qual_variant): Hash on the
2909         unqualified type, and don't overwrite an existing
2910         (type_hash_eq): Make the TYPE_NAME of the types significant, to
2911         allow distinguishing between wchar_t and its underlying type. This
2912         also means that we'll retain a little more typedef information.
2913
2914 2008-10-14  Andrey Belevantsev  <abel@ispras.ru>
2915             Dmitry Melnik  <dm@ispras.ru>
2916             Dmitry Zhurikhin  <zhur@ispras.ru>
2917             Alexander Monakov  <amonakov@ispras.ru>
2918             Maxim Kuvyrkov  <maxim@codesourcery.com>
2919
2920         * target.h (struct gcc_target): Update prototypes of needs_block_p
2921         and gen_spec_check.
2922         * haifa-sched.c (create_check_block_twin): Update calls to the above.
2923         * sel-sched.c (create_speculation_check): Likewise.
2924         * doc/tm.texi: Provide documentation for new target hooks.
2925
2926         * config/ia64/ia64.c: Include sel-sched.h.  Rewrite speculation hooks.
2927         (ia64_gen_spec_insn): Removed.
2928         (get_spec_check_gen_function, insn_can_be_in_speculative_p,
2929         ia64_gen_spec_check): New static functions.
2930         (ia64_alloc_sched_context, ia64_init_sched_context,
2931         ia64_set_sched_context, ia64_clear_sched_context,
2932         ia64_free_sched_context, ia64_get_insn_spec_ds,
2933         ia64_get_insn_checked_ds, ia64_skip_rtx_p): Declare functions.
2934         (ia64_needs_block_p): Change prototype.
2935         (ia64_gen_check): Rename to ia64_gen_spec_check.
2936         (ia64_adjust_cost): Rename to ia64_adjust_cost_2.  Add new parameter
2937         into declaration, add special memory dependencies handling.
2938         (TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
2939         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2940         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_SPEC_DS,
2941         TARGET_SCHED_GET_INSN_CHECKED_DS, TARGET_SCHED_SKIP_RTX_P):
2942         Define new target hooks.
2943         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
2944         (ia64_optimization_options): Turn on selective scheduling with -O3,
2945         disable -fauto-inc-dec. Set mflag_sched_control_spec to true by
2946         default with selective scheduling.
2947         (ia64_override_options): Initialize align_loops and align_functions
2948         to 32 and 64, respectively.  Set global selective scheduling flags
2949         according to target-dependent flags.
2950         (rtx_needs_barrier): Support UNSPEC_LDS_A.
2951         (group_barrier_needed): Use new mstop-bit-before-check flag.
2952         Add heuristic.
2953         (dfa_state_size): Make global.
2954         (spec_check_no, max_uid): Remove.
2955         (mem_ops_in_group, current_cycle): New variables.
2956         (ia64_sched_init): Disable checks for !SCHED_GROUP_P after reload.
2957         Initialize new variables.
2958         (is_load_p, record_memory_reference): New functions.
2959         (ia64_dfa_sched_reorder): Lower priority of loads when limit is
2960         reached.
2961         (ia64_variable_issue): Change use of current_sched_info to
2962         sched_deps_info.  Update comment.  Note if a load or a store is issued.
2963         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Require a cycle
2964         advance if maximal number of loads or stores was issued on current
2965         cycle.
2966         (scheduled_good_insn): New static helper function.
2967         (ia64_dfa_new_cycle): Assert that last_scheduled_insn is set when
2968         a group barrier is needed.  Fix vertical spacing.  Guard the code
2969         doing state transition with last_scheduled_insn check.
2970         Mark that a stop bit should be before current insn if there was a
2971         cycle advance.  Update current_cycle and mem_ops_in_group.
2972         (ia64_h_i_d_extended): Change use of current_sched_info to
2973         sched_deps_info. Reallocate stops_p by larger chunks.
2974         (struct _ia64_sched_context): New structure.
2975         (ia64_sched_context_t): New typedef.
2976         (ia64_alloc_sched_context, ia64_init_sched_context,
2977         ia64_set_sched_context, ia64_clear_sched_context,
2978         ia64_free_sched_context): New static functions.
2979         (gen_func_t): New typedef.
2980         (get_spec_load_gen_function): New function.
2981         (SPEC_GEN_EXTEND_OFFSET): Declare.
2982         (ia64_set_sched_flags): Check common_sched_info instead of *flags.
2983         (get_mode_no_for_insn): Change the condition that prevents use of
2984         special hardware registers so it can now handle pseudos.
2985         (get_spec_unspec_code): New function.
2986         (ia64_skip_rtx_p, get_insn_spec_code, ia64_get_insn_spec_ds,
2987         ia64_get_insn_checked_ds, ia64_gen_spec_load): New static functions.
2988         (ia64_speculate_insn, ia64_needs_block_p): Support branchy checks
2989         during selective scheduling.
2990         (ia64_speculate_insn): Use ds_get_speculation_types when
2991         determining whether we need to change the pattern.
2992         (SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET): Declare.
2993         (ia64_spec_check_src_p): Support new speculation/check codes.
2994         (struct bundle_state): New field.
2995         (issue_nops_and_insn): Initialize it.
2996         (insert_bundle_state): Minimize mid-bundle stop bits.
2997         (important_for_bundling_p): New function.
2998         (get_next_important_insn): Use important_for_bundling_p.
2999         (bundling): When shifting TImode from unimportant insns, ignore
3000         also group barriers.  Assert that best state is found before
3001         the backward bundling pass.  Print number of mid-bundle stop bits.
3002         Minimize mid-bundle stop bits.  Check correct calculation of
3003         mid-bundle stop bits.
3004         (ia64_sched_finish, final_emit_insn_group_barriers): Fix formatting.
3005         (final_emit_insn_group_barriers): Emit stop bits before insns starting
3006         a new cycle.
3007         (sel2_run): New variable.
3008         (ia64_reorg): When flag_selective_scheduling2 is set, run the
3009         selective scheduling pass instead of schedule_ebbs.
3010
3011         * config/ia64/ia64.md (speculable1, speculable2): New attributes.
3012         (UNSPEC_LDS_A): New UNSPEC.
3013         (movqi_internal, movhi_internal, movsi_internal, movdi_internal,
3014         movti_internal, movsf_internal, movdf_internal,
3015         movxf_internal): Make visible.  Add speculable* attributes.
3016         (output_c_nc): New mode attribute.
3017         (mov<mode>_speculative_a, zero_extend<mode>di2_speculative_a,
3018         mov<mode>_nc, zero_extend<mode>di2_nc,
3019         advanced_load_check_nc_<mode>): New insns.
3020         (zero_extend*): Add speculable* attributes.
3021
3022         * config/ia64/ia64.opt (msched_fp_mem_deps_zero_cost): New option.
3023         (msched-stop-bits-after-every-cycle): Likewise.
3024         (msched-max-memory-insns, msched-max-memory-insns-hard-limit):
3025         Likewise.
3026         (msched-spec-verbose): Remove.
3027         (msched-prefer-non-data-spec-insns,
3028         msched-prefer-non-control-spec-insns,
3029         msched-count-spec-in-critical-path,
3030         msel-sched-dont-check-control-spec): Use Target  Report Var
3031         instead of Common Report Var.
3032
3033         * config/ia64/itanium2.md: Remove incorrect bypass.
3034
3035         * config/ia64/t-ia64 (ia64.o): Add dependency on sel-sched.h.
3036
3037 2008-10-14  Jakub Jelinek  <jakub@redhat.com>
3038
3039         PR middle-end/37805
3040         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
3041         and -fhelp=separate.
3042
3043 2008-10-14  Ben Elliston  <bje@au.ibm.com>
3044
3045         * config/rs6000/rs6000.md (cell_micro): Fix formatting.
3046
3047 2008-10-13  Joseph Myers  <joseph@codesourcery.com>
3048
3049         * combine.c (simplify_set): Avoid calling LOAD_EXTEND_OP on
3050         non-integer modes.
3051
3052 2008-10-13  Matthias Klose  <doko@ubuntu.com>
3053
3054         * config/pa/linux-atomic.c: Work around missing header file
3055         for hppa64-linux-gnu targets.
3056
3057 2008-10-13  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3058             Kaushal Kantawala <Kaushal_Kantawala@playstation.sony.com>
3059             Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
3060             Grace Cao  <grace_cao@playstation.sony.com>
3061
3062         * doc/invoke.texi (-mgen-cell-microcode): Document.
3063         (-mwarn-cell-microcode): Document.
3064         * cfglayout.c (locator_location): Export.
3065         * rtl.h (locator_location): Define prototype.
3066         * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand):
3067         New predicate.
3068         * rs6000/rs6000-protos.h (rs6000_final_prescan_insn): Define prototype.
3069         * config/rs6000/rs6000.opt (mgen-cell-microcode): New option.
3070         (mwarn-cell-microcode): New option.
3071         * rs6000/rs6000.c (rs6000_cell_dont_microcode): Delete unused variable.
3072         (rs6000_override_options): Set rs6000_gen_cell_microcode if tuning for
3073         cell and not already set.
3074         Turn off string instructions if not generating cell microcode.
3075         (rs6000_final_prescan_insn): New function that warns about microcoded
3076         instructions.
3077         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Define.
3078         * config/rs6000/rs6000.md
3079         Replace cc_reg_not_cr0_operand with cc_reg_not_micro_cr0_operand if
3080         the instruction would have been microcoded on the Cell.  Set
3081         cell_micro to always on unnamed patterns for the string instructions.
3082         (cell_micro): Update definition, remove load/store conditional
3083         microcoded.
3084         (sign_extend:DI): Define new pattern for non microcoded version.
3085         (sign_extend:SI): Likewise.
3086         (compare (div:P)): Set cell_micro to not.
3087         (andsi3): Define as an expand.
3088         (andsi3_mc): New pattern.
3089         (andsi3_nomc): New pattern.
3090         (andsi3_internal0_nomc): New pattern.
3091         (andsi3_internal2): Rename to ...
3092         (andsi3_internal2_mc): this and enable iff generating microcode.
3093         (andsi3_internal3): Rename to ...
3094         (andsi3_internal3_mc): this and enable iff generating microcode.
3095         (andsi3_internal4): Enable iif generating microcode.
3096         (andsi3_internal5): Rename to ..
3097         (andsi3_internal5_mc): this and enable iff generating microcode.
3098         (andsi3_internal5_nomc): New pattern.
3099         (extzvdi_internal1): Enable iff generating microcode.
3100         (extzvdi_internal2): Likewise.
3101         (rotlsi3_internal7): Set cell_micro to always if non immediate form.
3102         (anddi3): Change to expand.
3103         (anddi3_mc): Rename from anddi3.
3104         (anddi3_no_mc): New pattern.
3105         (anddi3_internal2): Rename to ..
3106         (anddi3_internal2_mc): this and enable iff generating microcode.
3107         (anddi3_internal2_nomc): New pattern.
3108         (anddi3_internal3): Rename to ..
3109         (anddi3_internal3_mc): this and enable iff generating microcode.
3110         (anddi3_internal3_nomc): New pattern.
3111         (movti_string): Set cell_micro to always if TARGET_STRING.
3112         (stmsi8): Set cell_micro to always.
3113         (stmsi7): Likewise.
3114         (stmsi6): Likewise.
3115         (stmsi5): Likewise.
3116         (stmsi4): Likewise.
3117         (stmsi3): Likewise.
3118         (stmsi8_power): Likewise.
3119         (stmsi7_power): Likewise.
3120         (stmsi6_power): Likewise.
3121         (stmsi5_power): Likewise.
3122         (stmsi4_power): Likewise.
3123         (stmsi3_power): Likewise.
3124         (movsi_update2): Enable iff generating microcode.
3125         (movhi_update3): Likewise.
3126         (lmw): Set cell_micro to always.
3127
3128 2008-10-13  Richard Sandiford  <rdsandiford@googlemail.com>
3129
3130         * config/s390/s390.md (UNSPEC_POOL_OFFSET): New constant.
3131         * config/s390/s390.c (machine_function): Remove
3132         decomposed_literal_pool_addresses_ok_p.
3133         (s390_decompose_address): Check for UNSPEC_POOL_OFFSET instead of
3134         the difference of two labels.
3135         (s390_output_addr_const_extra): Handle UNSPEC_POOL_OFFSET.
3136         (s390_pool_offset): New function.
3137         (s390_find_constant, s390_find_execute, s390_dump_pool): Use it.
3138         (s390_reorg): Don't set decomposed_literal_pool_addresses_ok_p.
3139
3140 2008-10-13  Nathan Froyd  <froydnj@codesourcery.com>
3141
3142         * doc/install.texi (powerpc-*-*): Require binutils 2.15.
3143         (powerpc*-*-linux-gnu*): Describe.
3144         * config/rs6000/ppc-asm.h (HIDDEN_FUNC): New macro.
3145         * config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
3146         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
3147         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
3148         config/rs6000/e500crtres32gpr.asm,
3149         config/rs6000/e500crtres64gpr.asm,
3150         config/rs6000/e500crtres64gprctr.asm,
3151         config/rs6000/e500crtrest32gpr.asm,
3152         config/rs6000/e500crtrest64gpr.asm,
3153         config/rs6000/e500crtresx32gpr.asm,
3154         config/rs6000/e500crtresx64gpr.asm,
3155         config/rs6000/e500crtsav32gpr.asm,
3156         config/rs6000/e500crtsav64gpr.asm,
3157         config/rs6000/e500crtsav64gprctr.asm,
3158         config/rs6000/e500crtsavg32gpr.asm,
3159         config/rs6000/e500crtsavg64gpr.asm,
3160         config/rs6000/e500crtsavg64gprctr.asm: Use it.
3161         * config/rs6000/crtsavres.asm: Really remove.
3162
3163 2008-10-13  Kai Tietz  <kai.tietz@onevision.com>
3164
3165         Fix PR/25502
3166         * c-format.c (convert_format_name_to_system_name): Use
3167         TARGET_OVERRIDES_FORMAT_INIT.
3168         * config.gcc (extra_options): Add for mingw targets mingw.opt.
3169         * config/i386/mingw.opt: New.
3170         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_INIT): New.
3171         * config/i386/msformat-c.c (TARGET_OVERRIDES_FORMAT_INIT): New.
3172         (ms_printf_length_specs): Removed const specifier.
3173         * doc/tm.texi (TARGET_OVERRIDES_FORMAT_INIT): New.
3174         * doc/invoke.texi (Wno-pedantic-ms-format): New.
3175
3176 2008-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3177
3178         * builtins.c: Remove MPFR_VERSION_NUM(2,3,0) conditionals.
3179         * doc/install.texi: Bump recommended MPFR to 2.3.2.
3180
3181 2008-10-12  Kenneth Zadeck <zadeck@naturalbridge.com>
3182
3183         PR middle-end/37808
3184         * df-scan.c (df_ref_change_reg_with_loc_1): Added test to make
3185         sure that ref has valid bb.
3186
3187 2008-10-12  Richard Henderson  <rth@redhat.com>
3188
3189         PR middle-end/37447
3190         * Makefile.in (reload1.o): Depend on EMIT_RTL_H.
3191         * alias.c (value_addr_p, stack_addr_p): Remove.
3192         (nonoverlapping_memrefs_p): Remove IRA special case.
3193         * emit-rtl.c (get_spill_slot_decl, set_mem_attrs_for_spill): New.
3194         * emit-rtl.h (set_mem_attrs_for_spill): Declare.
3195         * reload1.c (alter_reg): Use it.
3196
3197 2008-10-12  Uros Bizjak  <ubizjak@gmail.com>
3198
3199         * config/i386/driver-i386.c (detect_caches_cpuid2): Use array
3200         of registers instead of eax, ebx, ecx and edx.  Use for loop
3201         and check register for non-zero value before the call
3202         to decode_caches_intel.
3203
3204 2008-10-11  Kenneth Zadeck <zadeck@naturalbridge.com>
3205
3206         PR rtl-optimization/37448
3207         * df.h: (df_ref_class): New enum.
3208         (DF_REF_TYPE_NAMES, df_ref_extract): Removed.
3209         (struct df_ref): Replaced with union df_ref_d.
3210         (df_base_ref, df_artificial_ref, df_regular_ref, df_extract_ref):
3211         New members of df_ref_d union.
3212         (DF_REF_REAL_REG, DF_REF_REGNO, DF_REF_REAL_LOC, DF_REF_REG,
3213         DF_REF_LOC, DF_REF_BB, DF_REF_INSN_INFO, DF_REF_INSN,
3214         DF_REF_CLASS, DF_REF_TYPE, DF_REF_CHAIN, DF_REF_ID, DF_REF_FLAGS,
3215         DF_REF_ORDER, DF_REF_IS_ARTIFICIAL, DF_REF_NEXT_REG,
3216         DF_REF_PREV_REG, DF_REF_EXTRACT_WIDTH, DF_REF_EXTRACT_OFFSET,
3217         DF_REF_EXTRACT_MODE): Replaced definition to access union df_ref_d.
3218         (DF_MWS_REG_DEF_P, DF_MWS_REG_USE_P, DF_MWS_TYPE): New macros.
3219         (df_scan_bb_info, df_bb_regno_first_def_find,
3220         df_bb_regno_last_def_find, df_find_def, df_find_use,
3221         df_refs_chain_dump, df_regs_chain_dump, df_ref_debug,
3222         debug_df_ref, df_chain_create, df_chain_unlink, df_chain_copy,
3223         df_ref_create, df_ref_remove, df_compute_accessed_bytes,
3224         df_get_artificial_defs, df_get_artificial_uses, union_defs)
3225         Replaced struct df_ref * with df_ref.
3226         * df-scan.c (df_collection_rec, df_null_ref_rec,
3227         df_ref_chain_delete_du_chain, df_ref_chain_delete, df_install_ref,
3228         df_grow_ref_info, df_ref_create, df_reg_chain_unlink,
3229         df_ref_compress_rec, df_ref_remove, df_ref_chain_delete_du_chain,
3230         df_ref_chain_delete, df_free_collection_rec, df_insn_rescan,
3231         df_reorganize_refs_by_reg_by_reg,
3232         df_reorganize_refs_by_reg_by_insn, df_reorganize_refs_by_reg,
3233         df_ref_change_reg_with_loc_1, df_notes_rescan, df_swap_refs,
3234         df_sort_and_compress_refs, df_install_ref, df_install_refs,
3235         df_ref_record, df_get_conditional_uses, df_get_call_refs,
3236         df_bb_refs_record, df_exit_block_uses_collect,
3237         df_record_exit_block_uses, df_reg_chain_mark,
3238         df_reg_chain_verify_unmarked, df_refs_verify): Replaced struct
3239         df_ref * with df_ref.
3240         (df_ref_record, df_uses_record, df_ref_create_structure): Added
3241         df_ref_class parameter.
3242         (df_scan_problem_data): Added new pools for different types of refs.
3243         (df_scan_free_internal, df_scan_alloc, df_free_ref,
3244         df_ref_create_structure): Processed new ref pools.
3245         (df_scan_start_dump): Added counts of refs and insns.
3246         (df_ref_create, df_notes_rescan, df_def_record_1, df_uses_record,
3247         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
3248         df_entry_block_defs_collect, df_exit_block_uses_collect): Added
3249         code to pass df_ref_class down to ref creation functions.
3250         (df_reg_chain_unlink, df_ref_remove, df_ref_change_reg_with_loc_1,
3251         df_reg_chain_mark): Use macros to hide references to df_refs.
3252         (df_ref_chain_change_bb): Removed.
3253         (df_insn_change_bb): Remove calls to df_ref_insn_change_bb.
3254         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
3255         Enhanced to understand df_ref union structure.
3256         * fwprop.c (local_ref_killed_between_p, use_killed_between,
3257         all_uses_available_at, update_df, try_fwprop_subst,
3258         forward_propagate_subreg, forward_propagate_and_simplify,
3259         forward_propagate_into, fwprop, fwprop_addr): Replaced struct
3260         df_ref * with df_ref.
3261         (use_killed_between, all_uses_available_at): Use macros to hide
3262         references to df_refs.
3263         * regstat.c (regstat_bb_compute_ri,
3264         regstat_bb_compute_calls_crossed): Replaced struct df_ref * with
3265         df_ref.
3266         * see.c (see_handle_relevant_defs, see_handle_relevant_uses,
3267         see_handle_relevant_refs, see_analyze_one_def,
3268         see_update_relevancy, see_propagate_extensions_to_uses): Replaced
3269         struct df_ref * with df_ref.
3270         * ra-conflict.c (record_one_conflict, clear_reg_in_live,
3271         global_conflicts): Replaced struct df_ref * with df_ref.
3272         * ddg.c (create_ddg_dep_from_intra_loop_link,
3273         add_cross_iteration_register_deps, build_inter_loop_deps):
3274         Replaced struct df_ref * with df_ref.
3275         (create_ddg_dep_from_intra_loop_link,
3276         add_cross_iteration_register_deps): Use macros to hide references
3277         to df_refs.
3278         * auto-inc-dec.c (find_inc, merge_in_block): Replaced struct
3279         df_ref * with df_ref.
3280         * df-core.c (df_bb_regno_first_def_find,
3281         df_bb_regno_last_def_find, df_find_def, df_find_use,
3282         df_refs_chain_dump, df_regs_chain_dump, df_ref_debug,
3283         debug_df_ref): Replaced struct df_ref * with df_ref.
3284         (df_mws_dump, df_ref_debug): Use macros to hide references to df_refs.
3285         * cse.c (cse_extended_basic_block): Replaced struct df_ref * with
3286         df_ref.
3287         * web.c (union_defs, entry_register, replace_ref, web_main):
3288         Replaced struct df_ref * with df_ref.
3289         (union_defs, replace_ref): Use macros to hide references to df_refs.
3290         * global.c (compute_regs_asm_clobbered, build_insn_chain):
3291         Replaced struct df_ref * with df_ref.
3292         * ifcvt.c (dead_or_predicable): Replaced struct df_ref * with df_ref.
3293         * sel-sched-ir.c (maybe_downgrade_id_to_use, setup_id_reg_sets, ):
3294         Replaced struct df_ref * with df_ref.
3295         * ira-lives.c (mark_ref_live, def_conflicts_with_inputs_p,
3296         mark_ref_dead, process_bb_node_lives): Replaced struct df_ref *
3297         with df_ref.
3298         * local-alloc.c (block_alloc): Replaced struct df_ref * with df_ref.
3299         * df-byte-scan.c (df_compute_accessed_bytes_extract,
3300         df_compute_accessed_bytes_strict_low_part,
3301         df_compute_accessed_bytes_subreg, df_compute_accessed_bytes):
3302         Replaced struct df_ref * with df_ref.
3303         (df_compute_accessed_bytes): Use macros to hide references to df_refs.
3304         * init-regs.c (initialize_uninitialized_regs): Replaced struct
3305         df_ref * with df_ref.
3306         * loop-invariant.c (invariant_for_use, hash_invariant_expr_1,
3307         check_dependency, check_dependencies, record_uses): Replaced
3308         struct df_ref * with df_ref.
3309         (invariant_for_use, check_dependency): Use macros to hide
3310         references to df_refs.
3311         * loop-iv.c (iv_analysis_loop_init, iv_get_reaching_def,
3312         get_biv_step_1, get_biv_step, record_iv, iv_analyze_def,
3313         iv_analyze, biv_p): Replaced struct df_ref * with df_ref.
3314         (iv_analysis_loop_init, iv_get_reaching_def): Use macros to hide
3315         references to df_refs.
3316         * ira.c (compute_regs_asm_clobbered): Replaced struct df_ref *
3317         with df_ref.
3318         * combine.c (create_log_links): Replaced struct df_ref * with df_ref.
3319         * df-problems.c (df_rd_bb_local_compute_process_def,
3320         df_lr_bb_local_compute, df_live_bb_local_compute, df_chain_create,
3321         df_chain_unlink_1, df_chain_unlink, df_chain_copy,
3322         df_chain_remove_problem, df_chain_create_bb_process_use,
3323         df_chain_create_bb, df_chain_top_dump, df_chain_bottom_dump,
3324         df_byte_lr_check_regs, df_byte_lr_bb_local_compute,
3325         df_byte_lr_simulate_defs, df_byte_lr_simulate_uses,
3326         df_byte_lr_simulate_artificial_refs_at_top,
3327         df_byte_lr_simulate_artificial_refs_at_end, df_create_unused_note,
3328         df_note_bb_compute, df_note_add_problem, df_simulate_defs,
3329         df_simulate_uses, df_simulate_artificial_refs_at_end,
3330         df_simulate_artificial_refs_at_top): Replaced struct df_ref * with
3331         df_ref.
3332         (df_chain_dump): Use macros to hide references to df_refs.
3333         * config/mips/mips.c (r10k_simplify_address): Replaced struct
3334         df_ref * with df_ref.
3335         * dce.c (mark_nonreg_stores, delete_corresponding_reg_eq_notes,
3336         mark_artificial_uses, mark_reg_dependencies,
3337         byte_dce_process_block): Replaced struct df_ref * with df_ref.
3338
3339 2008-10-11  Eric Botcazou  <ebotcazou@adacore.com>
3340
3341         * tree.h (contains_packed_reference): Mention ARRAY_RANGE_REF in
3342         head comment.
3343         (array_ref_element_size): Likewise.
3344         (array_ref_low_bound): Likewise.
3345         (array_ref_up_bound): Likewise.
3346         * expr.c (contains_packed_reference): Likewise.
3347         (array_ref_element_size): Likewise.
3348         (array_ref_low_bound): Likewise.
3349         (array_ref_up_bound): Likewise.
3350         * tree-ssa-loop-ivopts.c (idx_contains_abnormal_ssa_name_p): Deal
3351         with ARRAY_RANGE_REF.
3352         (idx_find_step): Likewise.
3353         (idx_record_use): Likewise.
3354         (strip_offset_1): Likewise.
3355         (idx_remove_ssa_names): Likewise.
3356
3357 2008-10-11  Uros Bizjak  <ubizjak@gmail.com>
3358             Andi Kleen  <ak@linux.intel.com>
3359
3360         * config/i386/cpuid.h (__cpuid_count): New defines.
3361         * config/i386/driver-i386.c (struct cache_desc): New structure.
3362         (describe_cache): Use struct cache_desc to pass cache descriptions.
3363         (detect_l2_cache): Ditto. Rename from decode_l2_cache.
3364         (detect_caches_amd): Use struct cache_desc to describe caches.
3365         (decode_caches_intel): Use struct cache_desc to pass cache
3366         descriptions.  Update descriptions to match latest (rev -032,
3367         December 2007) CPUID documentation.  Do not check valid bit here.
3368         Check for Xeon MP value 0x49 problems.
3369         (detect_caches_cpuid2): New function, split from detect_caches_intel.
3370         Check valid bit before calling decode_caches_intel.  Detect number
3371         of times to repeat CPUID instruction.
3372         (detect_caches_cpuid4): New function.
3373         (detect_caches_intel): Depending on max_level, call
3374         detect_caches_cpuid2 or detect_caches_cpuid4.  Call detect_l2_cache
3375         only when other methods fail to provide valid L2 cache description.
3376
3377 2008-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3378
3379         PR middle-end/37608
3380         * pa.md (call, call_value): Generate an rtx for register r4 and pass
3381         it to PIC call patterns.
3382         (call_symref_pic): Revise pattern to expose PIC register save.  Remove
3383         code generation and attributes from pattern.  Change peephole2 to
3384         split for noreturn case.  Revise split pattern for non noreturn case.
3385         (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
3386         call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
3387         * pa.c (attr_length_call): Simplify extraction of call rtx.  Add some
3388         asserts.
3389
3390 2008-10-11  David Edelsohn  <edelsohn@gnu.org>
3391
3392         * config/rs6000/rs6000.md (aux_truncdfsf2): Remove TARGET_SINGLE_FLOAT.
3393         (addsf3, subsf3, mulsf3 ! TARGET_POWERPC): Remove TARGET_SINGLE_FLOAT
3394         and fp_type.
3395         (divdf3): Reformat long line.
3396
3397 2008-10-11  Michael J. Eager  <eager@eagercon.com>
3398
3399         * config/rs6000/rs6000.c (rs6000_parse_fpu_option): Interpret
3400         -mfpu options.
3401         (rs6000_handle_option): Process -mfpu options.
3402         * config/rs6000/rs6000.h: (TARGET_XILINX_FPU): New.
3403         (enum fpu_type_t): New.
3404         * config/rs6000/rs6000.md (attr fp_type): New.  Include xfpu.md.
3405         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3, trunctfdf2): Set
3406         fp_type.
3407         (floatsisf2): Remove TARGET_SINGLE_FPU condition.
3408         (floatdidf2): Add TARGET_SINGLE_FPU condition.
3409         * config/rs6000/rs6000.opt (-mfpu): New.
3410         (-mxilinx-fpu): New.
3411         * config/rs6000/sysv4.h: (DRIVER_SELF_SPECS): New.
3412         * config/rs6000/xfpu.h: New. Define TARGET_XILINX_FPU.
3413         * config/rs6000/xfpu.md: New. Define Xilinx pipeline.
3414         * gcc/config.gcc: powerpc-xilinx-eabi target: New.
3415         * gcc/doc/invoke.texi (RS/6000 and PowerPC Options): Add -mfpu option.
3416
3417 2008-10-11  Jakub Jelinek  <jakub@redhat.com>
3418
3419         PR target/35760
3420         * config/rs6000/rs6000.c (rs6000_legitimize_address): Only create
3421         LO_SUM on Darwin if mode has just one unit.
3422
3423 2008-10-10  H.J. Lu  <hongjiu.lu@intel.com>
3424
3425         PR debug/37002
3426         * dwarf2out.c (mem_loc_descriptor): Use DRAP for vDRAP which
3427         has been optimized out.
3428
3429 2008-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
3430
3431         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Test PIC_ADDR_P
3432         instead of PIC_DIRECT_ADDR_P.
3433         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
3434         (IS_LITERAL_OR_SYMBOLIC_S16_P, IS_LITERAL_OR_SYMBOLIC_U16_P): Delete.
3435         (IS_NON_EXPLICIT_CONSTANT_P): Don't test PIC_OFFSET_P.
3436         (PIC_OFFSET_P): Rename to...
3437         (PCREL_SYMOFF_P): ...this.
3438         (PIC_DIRECT_ADDR_P): Delete.
3439         (MOVI_SHORI_BASE_OPERAND_P): Check PCREL_SYMOFF_P instead of
3440         PIC_OFFSET_P.
3441         (OUTPUT_ADDR_CONST_EXTRA): Don't require unspecs to have a
3442         single argument.  Handle UNSPEC_EXTRACT_S16, UNSPEC_EXTRACT_U16,
3443         UNSPEC_SYMOFF and UNSPEC_PCREL_SYMOFF.
3444         * config/sh/sh.c (print_operand): Remove CONST handling.
3445         (unspec_caller_rtx_p): Rewrite to use split_const and check
3446         the operands of UNSPEC bases.
3447         (fixup_mova): Replace (unspec [(minus A B)] UNSPEC_PIC)
3448         with (unspec [A B] UNSPEC_SYMOFF).
3449         (nonpic_symbol_mentioned_p): Check for UNSPEC_SYMOFF and
3450         UNSPEC_PCREL_SYMOFF.
3451         (sh_secondary_reload): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
3452         * config/sh/sh.md (UNSPEC_EXTRACT_S16): New unspec.
3453         (UNSPEC_EXTRACT_U16): Likewise.
3454         (UNSPEC_SYMOFF): Likewise.
3455         (UNSPEC_PCREL_SYMOFF): Likewise.
3456         (movsi_const): Use UNSPEC_EXTRACT_*16s to extract 16-bit portions
3457         of constants.
3458         (movsi_const_16bit): Likewise.
3459         (movdi_const, movdi_const_32bit, movdi_const_16bit): Likewise.
3460         (GOTaddr2picreg): Replace (unspec [(minus A (minus B pc))] UNSPEC_PIC)
3461         with (unspec [A B] UNSPEC_PCREL_SYMOFF).
3462         (sym_label2reg): Replace (minus (const (unspec [A] UNSPEC_PIC)) B)
3463         with (unspec [A B] UNSPEC_SYMOFF).
3464         (symPLT_label2reg): Replace (minus A (minus B pc)) with
3465          (unspec [A B] PCREL_UNSPEC_SYMOFF).
3466         * config/sh/constraints.md (Css): Check for an UNSPEC_EXTRACT_S16.
3467         (Csu): Likewise UNSPEC_EXTRACT_U16.
3468         (Csy): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
3469         (Cpg): Update after changes to IS_NON_EXPLICIT_CONSTANT_P.
3470
3471 2008-10-10  Stepan Kasal  <skasal@redhat.com>
3472
3473         * gcc/doc/invoke.texi (Optimize Options): Fix typo in examples
3474         for loop strip mining and loop blocking.
3475
3476 2008-10-10  Alexandre Oliva  <aoliva@redhat.com>
3477
3478         * fortran/trans-types.c (gfc_get_nodesc_array_type): Don't
3479         vary types depending on debug info.
3480
3481 2008-10-10  Alexandre Oliva  <aoliva@redhat.com>
3482
3483         * c-gimplify.c (c_genericize): Don't refer to DECL_ASSEMBLER_NAME
3484         before ensuring it's already computed.
3485
3486 2008-10-09  Jakub Jelinek  <jakub@redhat.com>
3487
3488         * rtl.h (locator_eq): New decl.
3489         * cfglayout.c (locator_scope): New function.
3490         (insn_scope): Use it.
3491         (locator_eq): New function.
3492         (fixup_reorder_chain): Search for last insn in src bb
3493         that has locator set or first insn in dest bb.  Use
3494         locator_eq instead of == to compare locators.
3495         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
3496         * cfgcleanup.c (try_forward_edges): Use locator_eq instead of
3497         == to compare locators.
3498
3499         * tree-ssa-live.c (remove_unused_locals): Mark all edge's goto_block
3500         as used.
3501         * gimple-low.c (lower_function_body, lower_gimple_return,
3502         lower_builtin_setjmp): Set gimple_block on the newly created stmts.
3503         * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Only set
3504         goto_block on edges if goto_locus is known.
3505
3506         PR middle-end/37774
3507         * tree.h (get_object_alignment): Declare.
3508         * emit-rtl.c (set_mem_attributes_minus_bitpos): Call
3509         get_object_alignment if needed.
3510         * builtins.c (get_pointer_alignment): Move ADDR_EXPR operand
3511         handling to ...
3512         (get_object_alignment): ... here.  New function.  Try harder to
3513         determine alignment from get_inner_reference returned offset.
3514
3515 2008-10-08  Jakub Jelinek  <jakub@redhat.com>
3516
3517         * graphite.c (gloog): Don't call find_unreachable_blocks
3518         before delte_unreachable_blocks.
3519
3520         * cfgexpand.c (expand_gimple_cond): Convert also goto_block and
3521         goto_locus of true_edge into RTL locator.
3522
3523 2008-10-08  Uros Bizjak  <ubizjak@gmail.com>
3524
3525         * config/i386/i386.md (*jcc_btdi_rex64): Clobber FLAGS_REG.
3526         (*jcc_btdi_mask_rex64): Ditto.
3527         (*jcc_btsi): Ditto.
3528         (*jcc_btsi_mask): Ditto.
3529         (*jcc_btsi_1): Ditto.
3530         (*jcc_btsi_mask_1): Ditto.
3531
3532 2008-10-08  Paul Brook  <paul@codesourcery.com>
3533
3534         * config/arm/bpabi.h (ARM_FUNCTION_PROFILER): Define new EABI
3535         compatible profiler (__gnu_mcount_nc).
3536         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
3537
3538 2008-10-08  H.J. Lu  <hongjiu.lu@intel.com>
3539
3540         * config/i386/i386.c (initial_ix86_tune_features): Add
3541         X86_TUNE_USE_VECTOR_FP_CONVERTS.
3542         * config/i386/i386.h (ix86_tune_indices): Likewise.
3543         (TARGET_USE_VECTOR_FP_CONVERTS): New.
3544
3545         * config/i386/i386.md: Check TARGET_USE_VECTOR_FP_CONVERTS
3546         instead of (TARGET_USE_VECTOR_CONVERTS || TARGET_GENERIC)
3547         for FP to FP splitters.
3548
3549 2008-10-08  H.J. Lu  <hongjiu.lu@intel.com>
3550
3551         * config/i386/i386.md: Add missing gen_sse2_cvtdq2p to convert
3552         splitter.
3553
3554 2008-10-08  Jakub Jelinek  <jakub@redhat.com>
3555
3556         PR target/36635
3557         PR target/37290
3558         PR rtl-optimization/37341
3559         * cse.c (cse_cc_succs): Add ORIG_BB argument, don't follow edges
3560         to ORIG_BB, pass through ORIG_BB recursively.
3561         (cse_condition_code_reg): Adjust caller.
3562
3563 2008-10-08  Kai Tietz  <kai.tietz@onevision.com>
3564
3565         * sdbout.c (sdbout_one_type): Treat the value type
3566         CONST_DECL for enumerals.
3567
3568 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
3569
3570         * config/i386/i386.md: Remove trailing white spaces.
3571
3572 2008-10-07  Kenneth Zadeck <zadeck@naturalbridge.com>
3573
3574         PR rtl-optimization/37448
3575         * alloc-pool.c (struct alloc_pool_descriptor) [elt_size]: New field.
3576         (stuct alloc_pool_descriptor) [created, allocated, current, peak]:
3577         Make unsigned long.
3578         (struct output_info) [count]: Renamed total_created and made
3579         unsigned long.
3580         (struct output_info) [size]: Renamed total_allocated and made
3581         unsigned long.
3582         (create_alloc_pool, empty_alloc_pool, pool_alloc, pool_free):
3583         Properly keep track of desc->size.
3584         (print_statistics, dump_alloc_pool_statistics): Enhance the
3585         printing of statistics to print the number of elements and to use
3586         unsigned longs.
3587
3588 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
3589
3590         PR middle-end/37576
3591         * opts.h (CL_SAVE): Move up to flags range.
3592         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET,
3593         CL_COMMON): Renumber.
3594         (CL_MIN_OPTION_CLASS): Set to CL_PARAMS.
3595         * opts.c (common_handle_option): Revert last change.
3596
3597 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
3598
3599         * config/i386/i386-protos.h (ix86_schedule): New.
3600
3601         * config/i386/i386.c (ix86_schedule): New.
3602         (override_options): Add schedule to processor_alias_table.  Set
3603         ix86_schedule from the schedule field in processor_alias_table.
3604         (ix86_function_specific_save): Save ix86_schedule.
3605         (ix86_function_specific_restore): Restore ix86_schedule.
3606
3607         * config/i386/i386.md (cpu): Map to ix86_schedule instead of
3608         ix86_tune.  Add none and remove i386, i486, pentium4, nocona
3609         and generic32.
3610
3611         * config/i386/i386.opt: Add schedule.
3612
3613         * config/i386/ppro.md: Remove generic32.
3614
3615 2008-10-07  Simon Martin  <simartin@users.sourceforge.net>
3616
3617         PR c/35437
3618         * expr.c (count_type_elements): Handle ERROR_MARK.
3619
3620 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
3621
3622         PR debug/29609
3623         PR debug/36690
3624         PR debug/37616
3625         * basic-block.h (struct edge_def): Add goto_block field.
3626         * cfglayout.c (fixup_reorder_chain): Ensure that there is at least
3627         one insn with locus corresponding to edge's goto_locus if !optimize.
3628         * profile.c (branch_prob): Copy edge's goto_block.
3629         * cfgrtl.c (force_nonfallthru_and_redirect): Use goto_locus for
3630         emitted jumps.
3631         (cfg_layout_merge_blocks): Emit a nop with edge's goto_locus
3632         locator in between the merged basic blocks if !optimize and needed.
3633         * cfgexpand.c (expand_gimple_cond): Convert goto_block and
3634         goto_locus into RTL locator.  For unconditional jump use that
3635         locator for the jump insn.
3636         (expand_gimple_cond): Convert goto_block and goto_locus into
3637         RTL locator for all remaining edges.  For unconditional jump
3638         use that locator for the jump insn.
3639         * cfgcleanup.c (try_forward_edges): Avoid the optimization if
3640         there is more than one edge or insn locator along the forwarding
3641         edges and !optimize.  If there is just one, set e->goto_locus.
3642         * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Set also
3643         edge's goto_block.
3644         (move_block_to_fn): Adjust edge's goto_block.
3645
3646 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
3647
3648         PR middle-end/37731
3649         * expmed.c (expand_mult): Properly check DImode constant in
3650         CONST_DOUBLE.
3651
3652 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
3653
3654         PR debug/37738
3655         * dwarf2out.c (common_block_die_table): New variable.
3656         (common_block_die_table_hash, common_block_die_table_eq): New
3657         functions.
3658         (gen_variable_die): Look up a DW_TAG_common_block die for a particular
3659         COMMON block in the current scope rather than globally.  Optimize
3660         DW_OP_addr SYMBOL_REF DW_OP_plus_uconst off into
3661         DW_OP_addr SYMBOL_REF+off.
3662
3663 2008-10-07  Eric Botcazou  <ebotcazou@adacore.com>
3664
3665         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <VIEW_CONVERT_EXPR>:
3666         Return true for non-addressable GIMPLE operands.
3667
3668 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
3669
3670         PR target/24765
3671         * config/i386/i386.c (initial_ix86_tune_features): Remove
3672         X86_TUNE_USE_BIT_TEST.
3673         * config/i386/i386.h (ix86_tune_indices): Likewise.
3674         (TARGET_USE_BIT_TEST): Removed.
3675
3676 2008-10-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3677
3678         * config.gcc (arm*-*-*): Add aapcs-linux to supported ABIs.
3679
3680 2008-10-06  Adam Nemet  <anemet@caviumnetworks.com>
3681
3682         * config/mips/mips.md (mulsi3_mul3, muldi3_mul3): Merge these ...
3683         (mul<mode>3_mul3): ... into this new template.
3684
3685 2008-10-06  Aldy Hernandez  <aldyh@redhat.com>
3686
3687         * gimplify.c (gimplify_arg): Add location argument.  Use it.
3688         (gimplify_call_expr): Pass location to gimplify_arg.
3689         (gimplify_modify_expr_to_memcpy): Same.
3690         (gimplify_modify_expr_to_memset): Same.
3691
3692 2008-10-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3693
3694         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3695         Update calls to build_unary_op and build_indirect_ref for location
3696         changes.
3697
3698 2008-10-06  Aldy Hernandez  <aldyh@redhat.com>
3699
3700         build_modify_expr.
3701         * c-decl.c (finish_decl): Pass input_location to build_unary_op.
3702         * c-typeck.c (array_to_pointer_conversion): Pass location to
3703         build_unary_op.
3704         (function_to_pointer_conversion): Use error_at and warning_at.
3705         (build_indirect_ref): Same.
3706         (build_array_ref): Pass location to build_binary_op.
3707         (parser_build_unary_op): Do not set location after calling
3708         build_unary_op.
3709         (build_unary_op): Add location argument.  Use it throughout.  Set
3710         EXPR_LOCATION before returning new tree.
3711         (build_modify_expr): Same.
3712         (build_binary_op): Use location throughout.  Set EXPR_LOCATION before
3713         returning node.
3714         * c-omp.c (c_finish_omp_atomic): Pass location to build_unary_op,
3715         build_indirect_ref, build_modify_expr.
3716         (c_finish_omp_for): Same.  Use error_at instead of error.
3717         * c-common.c (c_common_truthvalue_conversion): Pass location to
3718         build_unary_op.
3719         (warn_for_div_by_zero): Add location argument.
3720         * c-common.h: Add argument to build_modify_expr, build_indirect_ref,
3721         build_unary_op, warn_for_div_by_zero.
3722         * c-parser.c (c_parser_typeof_specifier): Use
3723         protected_set_expr_location.
3724         (c_parser_statement_after_labels): Same.
3725         (c_parser_condition): Same.
3726         (c_parser_expr_no_commas): Pass correct location to build_modify_expr.
3727         (c_parser_conditional_expression): Use protected_set_expr_location.
3728         (c_parser_unary_expression): Pass location to build_indirect_ref.
3729         (c_parser_postfix_expression_after_primary): Pass location to
3730         build_indirect_ref, build_unary_op.
3731         (c_parser_omp_for_loop): Set the increment expression's EXPR_LOCATION.
3732
3733 2008-10-06  Joshua Kinard  <kumba@gentoo.org>
3734
3735         * doc/invoke.texi: List r1x000 family under the -march MIPS option.
3736         * config/mips/mips.h (PROCESSOR_R10000): New processor_type.
3737         * config/mips/mips.c (mips_cpu_info_table): Add r10000, r12000,
3738         r14000 and r16000.
3739         (mips_rtx_cost_data): Add a PROCESSOR_R10000 entry.
3740         (mips_issue_rate): Handle PROCESSOR_R10000.
3741         * config/mips/mips.md (cpu): Add r10000.
3742         Include r10000.md.
3743         * config/mips/10000.md: New file.
3744
3745 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
3746
3747         * config/rs6000/rs6000-protos.h (rs6000_find_base_term): Declare.
3748         * config/rs6000/rs6000.h (FIND_BASE_TERM): New macro.
3749         * config/rs6000/rs6000.c (rs6000_find_base_term): New function.
3750
3751 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
3752
3753         * config/darwin-protos.h (machopic_function_base_name): Delete.
3754         (machopic_function_base_sym): Likewise.
3755         (machopic_gen_offset): Declare.
3756         * config/darwin.h (MACHOPIC_FUNCTION_BASE_NAME): New macro.
3757         (ASM_OUTPUT_LABELREF): Use it instead of a hard-coded string constant.
3758         * config/darwin.c (machopic_function_base_name): Delete.
3759         (machopic_function_base_sym): Likewise.
3760         (gen_pic_offset): Rename to...
3761         (machopic_gen_offset): ...this and remove the pic_base argument.
3762         Instead use MACHO_DYNAMIC_NO_PIC_P to decide whether a PIC offset
3763         is needed.  Create an UNSPEC_MACHOPIC_OFFSET if so, and set
3764         crtl->uses_pic_offset_table.
3765         (machopic_indirect_data_reference): Use new machopic_gen_offset
3766         interface.
3767         (machopic_legitimize_pic_address): Likewise.
3768         (machopic_operand_p): Check for UNSPEC_MACHOPIC_OFFSET.
3769
3770         * config/i386/darwin.h (GOT_SYMBOL_NAME): Use
3771         MACHOPIC_FUNCTION_BASE_NAME instead of machopic_function_base_name.
3772         * config/i386/i386.c (output_set_got): Likewise.
3773         (darwin_local_data_pic): Check for an UNSPEC_MACHOPIC_OFFSET
3774         instead of a MINUS.
3775         (legitimate_pic_operand_p): Handle UNSPEC_MACHOPIC_OFFSET.
3776         (legitimate_address_p): Likewise.
3777         (output_pic_addr_const): Likewise.
3778         (output_addr_const_extra): Likewise.
3779         (ix86_delegitimize_address): Expect darwin_local_data_pic to
3780         match an UNSPEC rather than a MINUS.
3781         * config/i386/i386.md (UNSPEC_MACHOPIC_OFFSET): Define.
3782         (builtin_setjmp_receiver): Use machopic_gen_offset.
3783         * config/i386/predicates.md (pic_symbolic_operand): Handle
3784         UNSPEC_MACHOPIC_OFFSET.
3785
3786         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
3787         Use machopic_gen_offset and machopic_operand_p.
3788         (rs6000_output_addr_const_extra): Handle UNSPEC_MACHOPIC_OFFSET.
3789         (rs6000_emit_prologue): Use MACHOPIC_FUNCTION_BASE_NAME.
3790         * config/rs6000/rs6000.md (UNSPEC_MACHOPIC_OFFSET): Define.
3791         (builtin_setjmp_receiver): Use MACHOPIC_FUNCTION_BASE_NAME.
3792         Set crtl->uses_pic_offset_table.
3793
3794 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
3795
3796         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
3797         Declare.
3798         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): New macro.
3799         * config/rs6000/rs6000.md (UNSPEC_TOCREL): New constant.
3800         * config/rs6000/rs6000.c (constant_pool_expr_1): Delete.
3801         (constant_pool_expr_p): Use split_const and check the base.
3802         (toc_relative_expr_p): Likewise, checking for an UNSPEC_TOCREL
3803         instead of a MINUS.
3804         (legitimate_constant_pool_address_p): Check toc_relative_p
3805         instead of constant_pool_expr_p.
3806         (print_operand_address): Always use output_addr_const for
3807         constant pool addresses.
3808         (rs6000_output_addr_const_extra): New function.
3809         (create_TOC_reference): Create an UNSPEC_TOCREL instead of a MINUS.
3810
3811 2008-10-06  Vladimir Makarov  <vmakarov@redhat.com>
3812
3813         PR middle-end/37535
3814
3815         * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
3816         (mark_ref_live, mark_ref_dead): Use them.
3817         (def_conflicts_with_inputs_p): Remove.
3818         (mark_early_clobbers): New function.
3819         (process_bb_node_lives): Call preprocess_constraints and
3820         mark_early_clobbers.
3821
3822         * doc/rtx.texi (clobber): Change how RA deals with clobbers.
3823
3824 2008-10-06  Danny Smith  <dannysmith@users.sourceforge.net>
3825
3826         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Add thread cleanup
3827         lib with -mthread switch.
3828
3829 2008-10-05  Dodji Seketeli  <dodji@redhat.com>
3830
3831         PR c++/37410
3832         * dwarf2out.c (dwarf2out_imported_module_or_decl): Split this
3833         function in two, making it call a new and reusable
3834         dwarf2out_imported_module_or_decl() that takes the containing
3835         BLOCK of the declaration in argument.
3836         (dwarf2out_imported_module_or_decl_real): New function.
3837         (decls_for_scope, gen_decl_die, dwarf2out_decl): Take
3838         IMPORTED_DECL in account.
3839         * tree.def: Added IMPORTED_DECL node type.
3840         * tree.h: Added accessors for IMPORTED_DECL nodes.
3841         * tree.c (init_ttree): Initialise IMPORTED_DECL node type.
3842
3843 2008-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3844
3845         * doc/gimple.texi: Fix some typos, wrap some long lines,
3846         fix some broken wraps with continuations.
3847         * tree-ssa-reassoc.c: Fix comment typos.
3848
3849 2000-10-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3850
3851         PR target/37603
3852         * pa.c (legitimize_pic_address): Force function labels to memory in
3853         word mode.
3854
3855 2008-10-04  Anton Blanchard  <anton@samba.org>
3856
3857         * config/rs6000/rs6000.c (rs6000_emit_sync): Use gen_lwsync().
3858         (rs6000_split_atomic_op): Same.
3859         (rs6000_split_compare_and_swap): Same.
3860         (rs6000_split_compare_and_swapqhi): Same.
3861
3862 2008-10-04  Richard Guenther  <rguenther@suse.de>
3863
3864         * tree-ssa-sccvn.c (vn_reference_op_eq): Use types_compatible_p
3865         instead of pointer equality.
3866         (vn_nary_op_eq): Likewise.
3867
3868 2008-10-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3869
3870         * config/rs6000/rs6000.md (fseldfsf4): Add TARGET_SINGLE_FLOAT
3871         condition.
3872         (fselsfdf4): Make condition on "TARGET_HARD_FLOAT && TARGET_FPRS &&
3873         TARGET_DOUBLE_FLOAT && TARGET_SINGLE_FLOAT".
3874
3875 2008-10-03  Danny Smith  <dannysmith@users.sourceforge.net>
3876
3877         * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
3878         Revert previous change.
3879
3880 2008-10-03  Tom Tromey  <tromey@redhat.com>
3881
3882         * stringpool.c (ggc_alloc_string): Terminate string.
3883
3884 2008-10-03  Jakub Jelinek  <jakub@redhat.com>
3885
3886         * gimplify.c (gimplify_function_tree): For -finstrument-functions
3887         use gimple_bind_{,set_}block instead of gimple_{,set_}block.
3888         * gimple.h (gimple_bind_set_block): Allow second argument to be NULL.
3889
3890         PR debug/37726
3891         * gimplify.c (declare_vars): Use gimple_bind_block instead of
3892         gimple_block.
3893
3894 2008-10-03  Pascal Obry  <obry@adacore.com>
3895
3896         * gcov.c (create_file_names): Properly handle UNIX and DOS
3897         directory separators.
3898         (make_gcov_file_name): Likewise + convert the ':' DOS drive
3899         separator to '~' to ensure clean filenames on Windows.
3900
3901 2008-10-02  Danny Smith  <dannysmith@users.sourceforge.net>
3902
3903         * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
3904         Add a null terminator to the stripped name.
3905
3906 2008-10-02  David Edelsohn  <edelsohn@gnu.org>
3907
3908         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Revert
3909         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
3910         (function_arg_advance): Condition on TARGET_DOUBLE_FLOAT,
3911         TARGET_SINGLE_FLOAT.  Revert SCALAR_FLOAT_MODE_P condition.
3912         (function_arg): Condition on TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
3913         (rs6000_function_value): Revert TARGET_DOUBLE_FLOAT,
3914         TARGET_SINGLE_FLOAT.
3915
3916 2008-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
3917
3918         * builtins.c (fold_builtin_pow): Check for 0 ** NEGATIVE.
3919
3920 2008-10-02  Richard Guenther  <rguenther@suse.de>
3921
3922         PR middle-end/37713
3923         * tree-ssa.c (useless_type_conversion_p_1): For COMPLEX_TYPE
3924         and VECTOR_TYPE recurse with useless_type_conversion_p which
3925         properly handles void pointer conversion.
3926
3927 2008-10-02  Danny Smith  <dannysmith@users.sourceforge.net>
3928
3929         PR target/37528
3930         * config/i386/mingw32.h (LIBGCC_SPEC) : Replace with ..
3931         (REAL_LIBGCC_SPEC): New.  Always include -lgcc.
3932
3933 2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3934
3935         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3936         Handle ALTIVEC_BUILTIN_VEC_SPLATS, ALTIVEC_BUILTIN_VEC_PROMOTE,
3937         ALTIVEC_BUILTIN_VEC_EXTRACT, and ALTIVEC_BUILTIN_VEC_INSERT specially,
3938         they translate to non builtins.
3939         * config/rs6000/rs6000.c (altivec_init_builtins): Add new variable
3940         opaque_ftype_opaque.  Define builtins __builtin_vec_splats,
3941         __builtin_vec_promote, __builtin_vec_extract, and
3942         __builtin_vec_insert.
3943         * config/rs6000/rs6000.h (enum rs6000_builtins): Add
3944         ALTIVEC_BUILTIN_VEC_EXTRACT, ALTIVEC_BUILTIN_VEC_PROMOTE,
3945         ALTIVEC_BUILTIN_VEC_INSERT, and ALTIVEC_BUILTIN_VEC_SPLATS.
3946         * config/rs6000/altivec.h (vec_extract): Define
3947         (vec_insert): Define.
3948         (vec_splats): Define.
3949         (vec_promote): Define.
3950
3951 2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3952             Yukishige Shibata  <shibata@rd.scei.sony.co.jp>
3953             Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
3954
3955         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add Cell
3956         Altivec intrinsics.
3957         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Delete
3958         prototype.  Add new parameter, blk.
3959         Use BLKmode for the MEM if blk is true.
3960         (altivec_expand_builtin): Handle ALTIVEC_BUILTIN_STVLX,
3961         ALTIVEC_BUILTIN_STVLXL, ALTIVEC_BUILTIN_STVRX, and
3962         ALTIVEC_BUILTIN_STVRXL.
3963         Update usage of altivec_expand_lv_builtin.
3964         Handle ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL,
3965         ALTIVEC_BUILTIN_LVRX, and ALTIVEC_BUILTIN_LVRXL.
3966         (altivec_init_builtins): If compiling for the Cell, also define the
3967         cell VMX builtins.
3968         * config/rs6000/rs6000.h (rs6000_builtins): Define
3969         ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL, ALTIVEC_BUILTIN_LVRX,
3970         ALTIVEC_BUILTIN_LVRXL, ALTIVEC_BUILTIN_STVLX, ALTIVEC_BUILTIN_STVLXL,
3971         ALTIVEC_BUILTIN_STVRX, ALTIVEC_BUILTIN_STVRXL,
3972         ALTIVEC_BUILTIN_VEC_LVLX, ALTIVEC_BUILTIN_VEC_LVLXL,
3973         ALTIVEC_BUILTIN_VEC_LVRX, ALTIVEC_BUILTIN_VEC_LVRXL,
3974         ALTIVEC_BUILTIN_VEC_STVLX, ALTIVEC_BUILTIN_VEC_STVLXL,
3975         ALTIVEC_BUILTIN_VEC_STVRX, and ALTIVEC_BUILTIN_VEC_STVRXL.
3976         * config/rs6000/altivec.md (define_constants): Define UNSPEC_LVLX,
3977         UNSPEC_LVLXL, UNSPEC_LVRX, UNSPEC_LVRXL, UNSPEC_STVLX, UNSPEC_STVLXL,
3978         UNSPEC_STVRX, and UNSPEC_STVRXL.
3979         (altivec_lvlx): New pattern.
3980         (altivec_lvlxl): New pattern.
3981         (altivec_lvrx): New pattern.
3982         (altivec_lvrxl): New pattern.
3983         (altivec_stvlx): New pattern.
3984         (altivec_stvlxl): New pattern.
3985         (altivec_stvrx): New pattern.
3986         (altivec_stvrxl): New pattern.
3987         * config/rs6000/altivec.h (vec_lvlx): Define if PPU is defined.
3988         (vec_lvlxl): Likewise.
3989         (vec_lvrx): Define if PPU is defined.
3990         (vec_lvrxl): Likewise.
3991         (vec_stvlx): Define if PPU is defined.
3992         (vec_stvlxl): Likewise.
3993         (vec_stvrx): Define if PPU is defined.
3994         (vec_stvrxl): Likewise.
3995
3996 2008-10-01  Geert Bosch  <bosch@adacore.com>
3997
3998         * tree.c (contains_placeholder_p): Return 0 for a SAVE_EXPR.
3999
4000 2008-10-01  Richard Guenther  <rguenther@suse.de>
4001
4002         PR tree-optimization/37617
4003         * tree-ssa-pre.c (create_expression_by_pieces): During FRE
4004         do not add to the NEW_SETS.
4005
4006 2008-10-01  Richard Guenther  <rguenther@suse.de>
4007
4008         PR middle-end/37285
4009         * tree-vrp.c (execute_vrp): If we optimized away the default
4010         case make sure to promote the label that got in place of it
4011         to a default case label.
4012
4013 2008-10-01  Richard Henderson  <rth@redhat.com>
4014
4015         PR tree-opt/35737
4016         * tree-complex.c (set_component_ssa_name): Don't optimize
4017         is_gimple_min_invariant values with ssa_names in abnormal phis.
4018
4019 2008-09-30  Paolo Bonzini  <bonzini@gnu.org>
4020
4021         PR tree-optimization/37662
4022         * tree-ssa-ccp.c (fold_gimple_assign): Invert the operands of a
4023         commutative binary operation if they are in the wrong order and
4024         fold_build2 produces non-GIMPLE.
4025
4026 2008-09-30  Jakub Jelinek  <jakub@redhat.com>
4027
4028         PR tree-optimization/37662
4029         PR tree-optimization/37663
4030         * tree-vrp.c (simplify_truth_ops_using_ranges): Don't call
4031         get_value_range with non-SSA_NAME.  Don't assert operands have been
4032         folded, instead just bail out.
4033
4034 2008-09-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4035
4036         * config/rs6000/rs6000.md (fnmadds combiner): Revert typo.
4037
4038 2008-09-30  Richard Guenther  <rguenther@suse.de>
4039
4040         PR middle-end/37491
4041         * tree-vect-transform.c (vect_create_data_ref_ptr): Properly
4042         build restrict-qualified pointers.
4043         (vectorizable_store): Move alias check later.
4044         (vectorizable_load): Likewise.
4045
4046 2008-09-30  Paolo Bonzini  <bonzini@gnu.org>
4047
4048         * c-common.c (empty_if_body_warning): Remove.
4049         * c-common.h (empty_if_body_warning): Remove.
4050         * c-parser.c (c_parser_if_body, c_parser_else_body): Implement
4051         here the -Wempty-body warning for `if' and `else' statements.
4052         * c-typeck.c (c_finish_if_stmt): Do not call empty_body_warning.
4053
4054 2008-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4055
4056         * config/i386/i386.opt: Add msse2avx.
4057
4058         * config/i386/linux.h (ASM_SPEC): New.  Support -msse2avx.
4059         * config/i386/linux64.h (ASM_SPEC): Likewise.
4060
4061         * doc/invoke.texi: Document -msse2avx.
4062
4063 2008-09-29  Eric Botcazou  <ebotcazou@adacore.com>
4064
4065         * dwarf2out.c (constant_size): Use HOST_WIDE_INT in parameter type.
4066
4067 2008-09-29  Joseph Myers  <joseph@codesourcery.com>
4068
4069         * ifcvt.c (noce_emit_store_flag): If using condition from original
4070         jump, reverse it if if_info->cond was reversed.
4071
4072 2008-09-29  Eric Botcazou  <ebotcazou@adacore.com>
4073
4074         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
4075         non-constant memory if it cannot be forced to constant memory.
4076         Overhaul surrounding code and factor out common condition.
4077
4078 2008-09-29  Jeff Law <law@redhat.com>
4079
4080         * reload1.c (alter_reg): Add missing curly braces.
4081
4082 2008-09-29  Michael J. Eager  <eager@eagercon.com>
4083
4084         * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
4085         are easy.
4086         * config/rs6000/rs6000.c (rs6000_override_options): Move
4087         rs6000_init_hard_regno_mode_ok after all options changed.
4088         Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
4089         (rs6000_handle_option): Process -msingle-float, -mdouble-float,
4090         -msimple-fpu flags.  Add warning messages if single FP not configured.
4091         (rs6000_file_start): Output gnu_attribute for single-float.
4092         (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
4093         (rs6000_legitimize_address): Likewise.
4094         (rs6000_legitimize_reload_address): Likewise.
4095         (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
4096         TARGET_SINGLE_FLOAT.
4097         (function_arg_advance): Likewise (partial conversion).
4098         (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
4099         (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
4100         TARGET_SINGLE_FLOAT.
4101         (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
4102         (rs6000_emit_prologue): Likewise.
4103         (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
4104         TARGET_SINGLE_FLOAT.
4105         (rs6000_libcall_value): Likewise.
4106         * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
4107         (TARGET_DOUBLE_FLOAT): New default to 1
4108         (TARGET_SIMPLE_FPU): New default to 0
4109         (TARGET_SINGLE_FPU): New default to 0
4110         (TARGET_SINGLE_FLOAT_MODE): New.
4111         (TARGET_DOUBLE_FLOAT_MODE): New.
4112         * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
4113         TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
4114         UNITS_PER_FP_WORD
4115         * config/rs6000/rs6000.md (define_mode_iterator): Condition on
4116         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
4117         (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
4118         copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
4119         nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
4120         muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
4121         movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
4122         floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
4123         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
4124         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
4125         rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
4126         floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
4127         movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
4128         extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
4129         abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
4130         cmptf_internal1, *cmptf_internal2): Condition on
4131         TARGET_DOUBLE_FLOAT.
4132         (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
4133         mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
4134         *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
4135         btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
4136         floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
4137         *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
4138         TARGET_SINGLE_FLOAT.
4139         (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
4140         * config/rs6000/rs6000.opt (-msingle-float): New.
4141         (-mdouble-float): New.
4142         (-msimple-fpu): New.
4143         * doc/invoke.texi (RS/6000 and PowerPC Options): Add
4144         -msingle-float, -mdouble-float, -msimple-fpu options.
4145         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
4146         _SOFT_DOUBLE for -msingle-float.
4147         * config.gcc: New config for target=powerpc-xilinx-eabi.
4148
4149 2008-09-29  Tobias Grosser  <grosser@fim.uni-passau.de>
4150
4151         * graphite.c (dot_all_scops_1): Remove unused checks. SCoPs always
4152         have exit and entry.
4153         (new_scop): Take entry and exit edge to define new SCoP.
4154         (sd_region_p): New structure used during SCoP detection.
4155         (move_scops): Delete.
4156         (move_sd_regions): New.
4157         (scopdet_info): Change the definition from edges back to basic_blocks.
4158         (scopdet_edge_info):  Work on basic_blocks and rename to
4159         scopdet_basic_block_info.
4160         (split_difficult_bb): At the moment removed. We should later
4161         add it at another place.
4162         (build_scops_1): Work on basic_blocks.
4163         (bb_in_sd_region): New.
4164         (find_single_entry_edge): New.
4165         (find_single_exit_edge): New.
4166         (create_single_entry_edge): New.
4167         (sd_region_without_exit): New.
4168         (create_single_exit_edge): New.
4169         (unmark_exit_edges): New.
4170         (mark_exit_edges): New.
4171         (create_sese_edges): New.
4172         (build_graphite_scops): New.
4173         (build_scops): Make SCoPs SESE.
4174         (limit_scops): Use the new functions.
4175
4176 2008-09-29  Hans-Peter Nilsson  <hp@axis.com>
4177
4178         * config/cris/cris.h (IRA_COVER_CLASSES): Define.
4179
4180 2008-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4181
4182         PR target/37640
4183         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Force
4184         address to a register before taking the lower part.
4185
4186 2008-09-28  Kaz Kojima  <kkojima@gcc.gnu.org>
4187
4188         * config/sh/sh.h (OVERRIDE_OPTIONS): Unset flag_dwarf2_cfi_asm
4189         for SHmedia.
4190
4191 2008-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4192             Kaushal Kantawala  <kaushal_kantawala@playstation.sony.com>
4193
4194         PR tree-opt/36891
4195         * tree-ssa-loop-im.c (rewrite_reciprocal): Set DECL_GIMPLE_REG_P on
4196         the newly created variable.
4197         Create a VECTOR_CST of all 1s for vector types.
4198
4199 2008-09-28  Eric Botcazou  <ebotcazou@adacore.com>
4200
4201         PR middle-end/36575
4202         * fold-const.c (div_and_round_double) <ROUND_DIV_EXPR>: Fix typo.
4203
4204 2008-09-28  Eric Botcazou  <ebotcazou@adacore.com>
4205
4206         * expmed.c (store_fixed_bit_field): Always use convert_to_mode in
4207         order to convert between modes.
4208         (extract_bit_field_1): Test TRULY_NOOP_TRUNCATION on the right mode.
4209
4210 2008-09-27  Kaz Kojima  <kkojima@gcc.gnu.org>
4211
4212         * config/sh/sh.c (sh_gimplify_va_arg_expr): Use VIEW_CONVERT_EXPR
4213         if needed.
4214
4215 2008-09-26  Vladimir Makarov  <vmakarov@redhat.com>
4216
4217         Revert:
4218         2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
4219         * ira-lives.c:...
4220         * doc/rtl.texi:...
4221
4222 2008-09-26  Adam Nemet  <anemet@caviumnetworks.com>
4223
4224         * config/mips/mips.h (ISA_HAS_DMUL3, ISA_HAS_BADDU, ISA_HAS_BBIT,
4225         ISA_HAS_CINS, ISA_HAS_EXTS, ISA_HAS_SEQ_SNE, ISA_HAS_POP): Change
4226         them to yield false with MIPS16.
4227
4228 2008-09-26  Jakub Jelinek  <jakub@redhat.com>
4229
4230         PR middle-end/37275
4231         * dwarf2out.c (tls_mem_loc_descriptor): New function.
4232         (mem_loc_descriptor): Use it for MEM.  For PLUS fail if second
4233         mem_loc_descriptor failed.  Accept UNSPEC.
4234         (loc_descriptor): Use tls_mem_loc_descriptor for MEM.  For PARALLEL
4235         fail if one of the loc_descriptor calls for pieces failed.
4236         (loc_descriptor_from_tree_1): Handle even DECL_EXTERNAL __thread vars,
4237         as long as they bind locally.  For COMPONENT_REF, ARRAY_REF etc. fail
4238         if loc_descriptor_from_tree_1 on offset failed.
4239
4240         PR middle-end/37576
4241         * opts.c (common_handle_option): Don't call print_specific_help with
4242         CL_SAVE as first argument.
4243
4244 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
4245             Steve Ellcey  <sje@cup.hp.com>
4246
4247         * configure: Regenerate for new libtool.
4248         * aclocal.m4: Ditto.
4249
4250 2008-09-26  Pat Haugen  <pthaugen@us.ibm.com>
4251
4252         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Use correct
4253         alias set on MEM when saving stack pointer.
4254         * config/rs6000/rs6000.md (allocate_stack): Likewise
4255
4256 2008-09-26  Dorit Nuzman  <dorit@il.ibm.com>
4257
4258         PR tree-optimization/37574
4259         * tree-vectorizer.c (vect_is_simple_use): Fix indentation.
4260         * tree-vect-transform.c (vect_get_constant_vectors): Use vectype
4261         instead of vector_type for constants. Take computation out of loop.
4262         (vect_get_vec_def_for_operand): Use only vectype for constant case,
4263         and use only vector_type for invariant case.
4264         (get_initial_def_for_reduction): Use vectype instead of vector_type.
4265
4266 2008-09-25  Jakub Jelinek  <jakub@redhat.com>
4267
4268         PR c/37645
4269         * c-common.c (handle_weakref_attribute): Ignore the attribute unless
4270         the decl is a VAR_DECL or FUNCTION_DECL.
4271
4272 2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
4273
4274         PR middle-end/37535
4275         * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
4276         (mark_ref_live, mark_ref_dead): Use them.
4277         (def_conflicts_with_inputs_p): Remove.
4278         (mark_early_clobbers): New function.
4279         (process_bb_node_lives): Call preprocess_constraints and
4280         mark_early_clobbers.
4281
4282         * doc/rtl.texi (clobber): Change how RA deals with clobbers.
4283
4284 2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
4285
4286         PR middle-end/37448
4287         * ira-int.h (IRA_ALLOCNO_TEMP): Rename to ALLOCNO_TEMP.
4288         (ira_compress_allocno_live_ranges): New prototype.
4289
4290         * ira-color.c: Rename IRA_ALLOCNO_TEMP to ALLOCNO_TEMP.
4291         (coalesced_allocnos_living_at_program_points): New.
4292         (coalesced_allocnos_live_at_points_p,
4293         set_coalesced_allocnos_live_points): New functions.
4294         (coalesce_spill_slots): Rewrite.
4295
4296         * ira-lives.c (remove_some_program_points_and_update_live_ranges,
4297         ira_compress_allocno_live_ranges): New functions.
4298
4299         * ira-build.c (ira_flattening): Call
4300         ira_compress_allocno_live_ranges.
4301         (ira_build): Ditto.
4302
4303 2008-09-25  H.J. Lu  <hongjiu.lu@intel.com>
4304
4305         * config/i386/i386.md: Check cmp/branch fuse for cmp peephole
4306         optimization.
4307
4308 2008-09-25  Richard Sandiford  <rdsandiford@googlemail.com>
4309
4310         * combine.c (make_compound_operation): Handle the 'E' format.
4311         (count_rtxs): Likewise.
4312         (update_table_tick): Likewise.
4313         (get_last_value_validate): Likewise.
4314
4315 2008-09-25  Eric Botcazou  <ebotcazou@adacore.com>
4316
4317         * dbxout.c (dbxout_parms): Fetch the inner REG inside a PARALLEL.
4318
4319 2008-09-25 Sergei Dyshel <sergeid@il.ibm.com>
4320
4321         * matrix-reorg.c (transform_allocation_sites): Initializers
4322         added to avoid the warning.
4323
4324 2008-09-25  Martin Jambor  <mjambor@suse.cz>
4325
4326         * cgraph.c (free_nodes): New variable.
4327         (NEXT_FREE_NODE): New macro.
4328         (cgraph_create_node): Reuse nodes from the free list.  Do not
4329         update uid if doing so.
4330         (cgraph_remove_node): Add the node to the free list.
4331
4332 2008-09-25  Gerald Pfeifer  <gerald@pfeifer.com>
4333
4334         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4335
4336 2008-09-24  Richard Henderson  <rth@redhat.com>
4337
4338         * dwarf2.h (DW_OP_GNU_encoded_addr): New.
4339         * unwind-dw2.c (execute_stack_op): Handle it.
4340
4341 2008-09-24  David Edelsohn  <edelsohn@gnu.org>
4342
4343         Revert:
4344         2008-09-24  Michael J. Eager  <eager@eagercon.com>
4345
4346 2008-09-24  Aldy Hernandez  <aldyh@redhat.com>
4347
4348         * c-common.c (fname_decl): New location argument.
4349         * c-common.h (fname_decl): Same.
4350         * c-parser.c (c_lex_one_token): Use {warning,error}_at instead of
4351         {warning,error}.
4352         (c_parser_typeof_specifier): Same.
4353         (c_parser_parms_list_declarator): Same.
4354         (c_parser_asm_string_literal): Same.
4355         (c_parser_compound_statement_nostart): Same.
4356         (c_parser_label): Same.
4357         (c_parser_do_statement): Same.
4358         (c_parser_asm_statement): Same.
4359         (c_parser_unary_expression): Same.
4360         (c_parser_sizeof_expression): Same.
4361         (c_parser_postfix_expression): Same.
4362         (c_parser_pragma): Same.
4363         (c_parser_omp_clause_collapse): Same.
4364         (c_parser_omp_clause_num_threads): Same.
4365         (c_parser_omp_clause_schedule): Same.
4366         (c_parser_omp_all_clauses): Same.
4367         (c_parser_omp_sections_scope): Same.
4368         (c_parser_omp_for_loop): Same.  Pass condition's location to
4369         c_objc_common_truthvalue_conversion.
4370         (c_parser_enum_specifier): Remove comment.
4371
4372 2008-09-24  Michael J. Eager  <eager@eagercon.com>
4373
4374         * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
4375         are easy.
4376         * config/rs6000/rs6000.c (rs6000_override_options): Move
4377         rs6000_init_hard_regno_mode_ok after all options changed.
4378         Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
4379         (rs6000_handle_option): Process -msingle-float, -mdouble-float,
4380         -msimple-fpu flags.  Add warning messages if single FP not configured.
4381         (rs6000_file_start): Output gnu_attribute for single-float.
4382         (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
4383         (rs6000_legitimize_address): Likewise.
4384         (rs6000_legitimize_reload_address): Likewise.
4385         (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
4386         TARGET_SINGLE_FLOAT.
4387         (function_arg_advance): Likewise.
4388         (function_arg): Likewise.
4389         (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
4390         (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
4391         TARGET_SINGLE_FLOAT.
4392         (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
4393         (rs6000_emit_prologue): Likewise.
4394         (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
4395         TARGET_SINGLE_FLOAT.
4396         (rs6000_libcall_value): Likewise.
4397         * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
4398         (TARGET_DOUBLE_FLOAT): New default to 1
4399         (TARGET_SIMPLE_FPU): New default to 0
4400         (TARGET_SINGLE_FPU): New default to 0
4401         (TARGET_SINGLE_FLOAT_MODE): New.
4402         (TARGET_DOUBLE_FLOAT_MODE): New.
4403         * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
4404         TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
4405         UNITS_PER_FP_WORD
4406         * config/rs6000/rs6000.md (define_mode_iterator): Condition on
4407         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
4408         (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
4409         copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
4410         nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
4411         muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
4412         movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
4413         floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
4414         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
4415         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
4416         rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
4417         floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
4418         movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
4419         extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
4420         abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
4421         cmptf_internal1, *cmptf_internal2): Condition on
4422         TARGET_DOUBLE_FLOAT.
4423         (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
4424         mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
4425         *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
4426         btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
4427         floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
4428         *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
4429         TARGET_SINGLE_FLOAT.
4430         (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
4431         * config/rs6000/rs6000.opt (-msingle-float): New.
4432         (-mdouble-float): New.
4433         (-msimple-fpu): New.
4434         * doc/invoke.texi (RS/6000 and PowerPC Options): Add
4435         -msingle-float, -mdouble-float, -msimple-fpu options.
4436         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
4437         _SOFT_DOUBLE for -msingle-float.
4438         * config.gcc: New config for target=powerpc-xilinx-eabi.
4439
4440 2008-09-23  Eric Botcazou  <ebotcazou@adacore.com>
4441
4442         * config/sparc/constraints.md: New file.
4443         * config/sparc/sparc.md: Include it.
4444         * config/sparc/sparc-protos.h (memory_ok_for_ldd): Declare.
4445         (sparc_extra_constraint_check): Delete.
4446         * config/sparc/sparc.c (register_ok_for_ldd): Minor tweaks.
4447         (memory_ok_for_ldd): New predicate.
4448         (sparc_extra_constraint_check): Delete.
4449         * config/sparc/sparc.h (REG_CLASS_FROM_LETTER): Likewise.
4450         (CONST_OK_FOR_LETTER_P): Likewise.
4451         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
4452         (EXTRA_CONSTRAINT): Likewise.
4453
4454 2008-08-23  Steve Ellcey  <sje@cup.hp.com>
4455
4456         * regrename.c (do_replace): Copy REG_POINTER value to new reg.
4457
4458 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
4459
4460         * alias.c (find_base_value): Use FIND_BASE_TERM.
4461         * doc/tm.texi (FIND_BASE_TERM): Update documentation.
4462
4463 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
4464
4465         * config/i386/i386.c: Include cselib.h.
4466         (ix86_pic_register_p): New function.
4467         (ix86_delegitimize_address): Use it to check for the PIC register.
4468
4469 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
4470
4471         * doc/tm.texi (FIND_BASE_TERM): Expand documentation.
4472         * config/i386/i386.c (ix86_find_base_term): Don't check for
4473         SYMBOL_REF and LABEL_REF.
4474
4475 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
4476
4477         * config/i386/i386.c (ix86_delegitimize_address): Wrap the
4478         constant PLUS in a CONST.
4479
4480 2008-09-23  Kai Tietz  <kai.tietz@onevision.com>
4481
4482         * config/i386/i386.c (ix86_function_ok_for_sibcall): Correct
4483         check for sibcall support for w64.
4484
4485 2008-09-23  Eric Botcazou  <ebotcazou@adacore.com>
4486
4487         * c-ppoutput.c (cb_used_define): Do nothing for a builtin node.
4488
4489 2008-09-23  Aldy Hernandez  <aldyh@redhat.com>
4490
4491         * c-tree.h: Add argument to c_objc_common_truthvalue_conversion,
4492         parser_build_binary_op.
4493         * c-decl.c (build_enumerator): Pass location to build_binary_op.
4494         * c-typeck.c (build_array_ref): Same.
4495         (parser_build_unary_op): New location argument.
4496         (pointer_diff): Pass location to build_binary_op,
4497         c_objc_common_truthvalue_conversion.
4498         (build_modify_expr): Same.
4499         (build_unary_op): New location argument.
4500         (build_binary_op): New location argument.
4501         (c_objc_common_truthvalue_conversion): Pass location to
4502         c_*common_truthvalue_conversion.
4503         * c-convert.c (convert): Same.
4504         * c-common.c (binary_op_error): New location argument.
4505         (pointer_int_sum): Pass location to build_binary_op.
4506         (c_common_truthvalue_conversion): New location argument.
4507         (warn_for_sign_compare): Same.
4508         * c-common.h: Add location argument to c_common_truthvalue_conversion,
4509         binary_op_error, build_binary_op, warn_for_sign_compare.
4510         * c-parser.c (c_parser_condition): Pass location to
4511         c_*common_truthvalue_conversion.
4512         (c_parser_conditional_expression): Save condition's location and pass
4513         it on down.
4514         (c_parser_binary_expression): Same, but for the binary operator's
4515         location.
4516         (c_parser_omp_for_loop): Pass location to
4517         c_objc_common_truthvalue_conversion.
4518
4519 2008-09-23  Martin Jambor  <mjambor@suse.cz>
4520
4521         * cgraph.c (cgraph_free_edge): Use sizeof(*e).
4522         (cgraph_node_remove_callees): New temporary f.  Hold the next item
4523         in f when looping.
4524         (cgraph_node_remove_callers): Likewise.
4525
4526         * ipa-prop.c (ipa_edge_removal_hook): Use ATTRIBUTE_UNUSED.
4527         (ipa_node_removal_hook): Likewise.
4528
4529         * doc/gimple.texi (gimple_copy_call_skip_args): Changed to
4530         gimple_call_copy_skip_args and moved to the gimple_call section.
4531         * gimple.c (gimple_copy_call_skip_args): Renamed to
4532         gimple_call_copy_skip_args.  Changed al users.
4533
4534 2008-09-22  Vladimir Makarov  <vmakarov@redhat.com>
4535
4536         * ira-color.c (start_allocno_priorities): Rename to
4537         setup_allocno_priorities.  Use costs and
4538         ALLOCNO_EXCESS_PRESSURE_POINTS_NUM instead of frequencies and
4539         range lengths.  Get rid off doubles.
4540         (ira_fast_allocations): Call start_allocno_priorities.
4541
4542 2008-09-22  David Daney  <ddaney@avtrex.com>
4543
4544         PR target/37593
4545         * config/mips/mips.h (FUNCTION_PROFILER): Call _mcount via a
4546         register if TARGET_LONG_CALLS.
4547
4548 2008-09-22  Richard Guenther  <rguenther@suse.de>
4549
4550         PR tree-optimization/37145
4551         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Re-enable
4552         value-numbering union accesses with their offset and size only.
4553         (visit_reference_op_load): Fix simplification of inserted conversions.
4554         * tree-ssa-pre.c (find_or_generate_expression): Do not
4555         recursively generate expressions if running FRE.
4556
4557 2008-09-22  Adam Nemet  <anemet@caviumnetworks.com>
4558
4559         * config/mips/mips.h (ISA_HAS_BADDU): New macro.
4560         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el, *baddu_di<mode>):
4561         New patterns.
4562
4563 2008-09-22  Richard Guenther  <rguenther@suse.de>
4564
4565         PR tree-optimization/37145
4566         * tree-ssa-pre.c (fully_constant_expression): Simplify builtin calls.
4567         (phi_translate_1): Constant fold references.
4568
4569 2008-09-22  Ira Rosen  <irar@il.ibm.com>
4570
4571         PR tree-optimization/37482
4572         * tree-vectorizer.h (struct _slp_instance): Add new field.
4573         (SLP_INSTANCE_FIRST_LOAD_STMT): New.
4574         (get_earlier_stmt): New function.
4575         * tree-vect-analyze.c (vect_find_first_load_in_slp_instance): New
4576         function.
4577         (vect_analyze_slp_instance): Set SLP_INSTANCE_FIRST_LOAD_STMT.
4578         * tree-vect-transform.c (vect_finish_stmt_generation): Remove the
4579         asserts that GSI points to the scalar statement being vectorized.
4580         Set new statement location according to GSI.
4581         (vect_schedule_slp_instance): Use GSI of
4582         SLP_INSTANCE_FIRST_LOAD_STMT when vectorizing loads.
4583
4584 2008-09-21  Jan Hubicka  <jh@suse.cz>
4585
4586         * ipa-cp.c (ipcp_estimate_growth): Check recursive calls.
4587         (ipcp_insert_stage): Update dead_nodes bitmap.
4588
4589 2008-09-22  Danny Smith  <dannysmith@users.sourceforge.net>
4590
4591         PR target/37528
4592         * config/i386/t-cygming (SHLIB_LC): Remove.
4593         (SHLIB_LINK): Don't add static objects to SHLIB_IMPLIB
4594         * config/i386/t-cygwin (SHLIB_LC): Specify all required libraries.
4595
4596 2008-09-22  Hans-Peter Nilsson  <hp@axis.com>
4597
4598         PR middle-end/37170
4599         PR middle-end/37280
4600         * final.c (mark_symbol_ref_as_used): New helper function.
4601         (output_operand): Instead of just looking inside MEMs for
4602         SYMBOL_REFs, use new helper function and for_each_rtx.
4603         * varasm.c (assemble_external): Move #ifndef ASM_OUTPUT_EXTERNAL
4604         to after weak-handling.  Don't mark decls with TREE_STATIC as weak.
4605         Make head comment more general.
4606         * config/darwin.c (machopic_output_indirection): Handle weak
4607         references here, like in assemble_external.
4608
4609 2008-09-21  Eric Botcazou  <ebotcazou@adacore.com>
4610
4611         * config/sparc/sparc-protos.h (gen_compare_operator): Declare.
4612         (sparc_emit_float_lib_cmp): Change return type.
4613         * config/sparc/sparc.c (gen_compare_reg): Add comment about TFmode.
4614         (gen_compare_operator): New function.
4615         (sparc_emit_float_lib_cmp): Return the new operator to be used in
4616         the comparison sequence.  Minor tweaks.
4617         * config/sparc/sparc.md (seq, sne, sgt, slt, sge, sle): Assert
4618         that the final operator and the result of sparc_emit_float_lib_cmp
4619         match for software TFmode; use emit_insn in lieu of emit_jump_insn.
4620         (beq, bne, bgt, blt, bge, ble, bunordered, bordered, bungt, bunlt,
4621         buneq, bunge, bunle, bltgt): Assert that the final operator and the
4622         result of sparc_emit_float_lib_cmp match for software TFmode.
4623         (movqicc, movhicc, movsicc, movdicc): Merge into...
4624         (mov<I:mode>cc): ...this.
4625         (movsfcc, movdfcc, movtfcc): Merge into...
4626         (mov<F:mode>cc): ...this.
4627         (movqi_cc_sp64, movhi_cc_sp64, movsi_cc_sp64, movdi_cc_sp64): Merge
4628         into...
4629         (mov<I:mode>_cc_v9): ...this.
4630         (movdi_cc_sp64_trunc): Delete.
4631         (movqi_cc_reg_sp64, movhi_cc_reg_sp64, movsi_cc_reg_sp64,
4632         movdi_cc_reg_sp64): Merge into...
4633         (mov<I:mode>_cc_reg_sp64): ...this.
4634         (movsf_cc_sp64): Rename into...
4635         (movsf_cc_v9): ...this.
4636         (movdf_cc_sp64): Rename into...
4637         (movdf_cc_v9): ...this.
4638         (movtf_cc_hq_sp64): Rename into...
4639         (movtf_cc_hq_v9): ...this.
4640         (movtf_cc_sp64): Rename into...
4641         (movtf_cc_v9): ...this.  Adjust for renaming of movdf_cc_sp64.
4642
4643 2008-09-21  Diego Novillo  <dnovillo@google.com>
4644
4645         * doc/gccint.texi: Include generic.texi and gimple.texi.
4646         Re-order index.
4647         * doc/tree-ssa.texi (GENERIC): Move to generic.texi.
4648         (GIMPLE): Move to gimple.texi.
4649         (Annotations): Remove references to to stmt_ann_t and
4650         ssa_name_ann_t.
4651         (SSA Operands): Rename from 'Statement Operands'.
4652         * doc/generic.texi: New.
4653         * doc/gimple.texi: New.
4654         * Makefile.in (TEXI_GCCINT_FILES): Add generic.texi and gimple.texi.
4655         * Makefile.in (TEXI_GCCINT_FILES):
4656         * gimple.c (gimple_copy_call_skip_args): Rename from
4657         giple_copy_call_skip_args.  Update all users.
4658         * doc/gimple.texi (gimple_copy_call_skip_args): Document.
4659
4660 2008-09-21  Ira Rosen  <irar@il.ibm.com>
4661
4662         PR tree-optimization/37539
4663         * tree-vect-transform.c (vect_transform_strided_load): Save vector
4664         statement in related statement field only for the first load of the
4665         group of loads with the same data reference.
4666
4667 2008-09-20  Adam Nemet  <anemet@caviumnetworks.com>
4668
4669         * config/mips/mips.h (TUNE_OCTEON): New macro.
4670         * config/mips/mips.c (mips_issue_rate): Return 2 for Octeon.
4671         (mips_multipass_dfa_lookahead): Return 2 for Octeon.
4672         * config/mips/octeon.md: New file.
4673         * config/mips/mips.md: Include octeon.md.  Restore
4674         semi-alphabetical order of include files.
4675
4676 2008-09-20  H.J. Lu  <hongjiu.lu@intel.com>
4677
4678         PR target/37571
4679         * config/i386/i386.md (*jcc_fused_1): Removed.
4680         (*jcc_fused_2): Likewise.
4681         (*jcc_fused_3): Likewise.
4682         (*jcc_fused_4): Likewise.
4683
4684 2008-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
4685
4686         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Define.
4687         (IRA_COVER_CLASSES): Refer to TARGET_IRA_COVER_CLASSES.
4688         * target.h (gcc_target): Add ira_cover_classes.
4689         * ira.c: Remove IRA_COVER_CLASSES guards.
4690         (setup_cover_and_important_classes): Use targetm.ira_cover_classes
4691         instead of IRA_COVER_CLASSES.
4692         (setup_cover_and_important_classes): Remove IRA_COVER_CLASSES guard.
4693         (setup_class_translate): Likewise.
4694         (setup_reg_class_intersect_union): Likewise.
4695         (find_reg_class_closure): Replace IRA_COVER_CLASSES guard with a
4696         test of targetm.ira_cover_classes.
4697         * opts.c (decode_options): Use targetm.ira_cover_classes instead
4698         of IRA_COVER_CLASSES.
4699         * target-def.h (TARGET_IRA_COVER_CLASSES): Define.
4700         (TARGET_INITIALIZER): Include it.
4701         * targhooks.h (default_ira_cover_classes): Declare.
4702         * targhooks.c (default_ira_cover_classes): New function.
4703
4704 2008-09-19  Bob Wilson  <bob.wilson@acm.org>
4705
4706         * config/xtensa/xtensa.md (reload<mode>_literal): Handle MEM operands.
4707
4708 2008-09-19  Ian Lance Taylor  <iant@google.com>
4709
4710         * varasm.c (narrowing_initializer_constant_valid_p): Return
4711         NULL_TREE if ENDTYPE is not an integer.
4712
4713 2008-09-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4714
4715         PR tree-opt/30930
4716         * tree-ssa.c (execute_update_addresses_taken): Also update
4717         DECL_GIMPLE_REG_P for vector and complex types.
4718
4719 2008-09-19  Andrew MacLeod  <amacleod@redhat.com>
4720             Jan Hubicka  <jh@suse.cz>
4721
4722         PR middle-end/37567
4723         * tree-ssa-ter.c (free_temp_expr_table): Make sure fields are actually
4724         empty before freeing them.
4725         (find_replaceable_exprs): Move asserts to free_temp_expr_table.
4726
4727 2008-09-18  Bob Wilson  <bob.wilson@acm.org>
4728
4729         * configure.ac: Add HAVE_AS_TLS check for Xtensa.
4730         * config/xtensa/predicates.md (tls_symbol_operand): New.
4731         * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Define.
4732         (TARGET_CANNOT_FORCE_MEM): Define.
4733         (xtensa_tls_symbol_p): New.
4734         (xtensa_emit_move_sequence): Check for and legitimize TLS addresses.
4735         (xtensa_legitimate_address_p): Disallow constant pool TLS references.
4736         (xtensa_tls_module_base): New.
4737         (xtensa_call_tls_desc): New.
4738         (xtensa_legitimize_tls_address): New.
4739         (xtensa_legitimize_address): Handle TLS symbols.
4740         (xtensa_tls_referenced_p_1): New.
4741         (xtensa_tls_referenced_p): New.
4742         (xtensa_output_addr_const_extra): Handle UNSPEC_TPOFF and
4743         UNSPEC_DTPOFF.
4744         (XTENSA_BUILTIN_THREAD_POINTER): New.
4745         (XTENSA_BUILTIN_SET_THREAD_POINTER): New.
4746         (xtensa_init_builtins): Set NOTHROW and READONLY for umulsidi3
4747         builtin.  Add declarations for __builtin_thread_pointer and
4748         __builtin_set_thread_pointer.
4749         (xtensa_fold_builtin): Recognize new builtins.
4750         (xtensa_expand_builtin): Expand new builtins.
4751         * config/xtensa/xtensa.h (XCHAL_HAVE_THREADPTR): Define default value.
4752         (TARGET_THREADPTR): Define.
4753         (HAVE_AS_TLS): Define default value.
4754         (LEGITIMATE_CONSTANT_P): Disallow TLS references.
4755         * config/xtensa/xtensa.md (UNSPEC_TPOFF, UNSPEC_DTPOFF): New.
4756         (UNSPEC_TLS_FUNC, UNSPEC_TLS_ARG, UNSPEC_TLS_CALL, UNSPEC_TP): New.
4757         (UNSPECV_SET_TP): New.
4758         (sym_TPOFF, sym_DTPOFF): New.
4759         (load_tp, set_tp, tls_func, tls_arg, tls_call): New.
4760         * config/xtensa/xtensa-protos.h (xtensa_tls_referenced_p): Declare.
4761         * configure: Regenerated.
4762
4763 2008-09-18  H.J. Lu  <hongjiu.lu@intel.com>
4764
4765         PR target/37394
4766         * config/ia64/ia64.c (ia64_optimization_options): Move
4767         checking and setting flag_schedule_insns_after_reload and
4768         ia64_flag_schedule_insns2 back to ...
4769         (ia64_override_options): Here.
4770
4771 2008-09-18  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4772
4773         PR rtl-opt/37451
4774         * loop-doloop.c (doloop_modify): New argument zero_extend_p and
4775         zero extend count after the correction to it is done.
4776         (doloop_optimize): Update call to doloop_modify, don't zero extend
4777         count before call.
4778
4779 2008-09-18  Martin Jambor  <mjambor@suse.cz>
4780
4781         * ipa-cp.c (ipcp_estimate_growth): Return 0 instead of false.
4782
4783         * ipa-prop.c: Correct comments.
4784         * ipa-prop.h: Likewise.
4785
4786 2008-09-18  Jan Hubicka  <jh@suse.cz>
4787
4788         PR middle-end/37448
4789         * ipa-reference.c (ipa_reference_local_vars_info_d,
4790         ipa_reference_global_vars_info_d,
4791         ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
4792         ipa_reference_vars_info_t): Move here from ipa-reference.h
4793         (node_duplication_hook_holder, node_removal_hook_holder): New.
4794         (get_reference_vars_info_from_cgraph): Rename to ...
4795         (get_reference_vars_info): ... this one, use cgraph uids.
4796         (get_local_reference_vars_info, get_global_reference_vars_info):
4797         Use cgraph instead of decl.
4798         (ipa_reference_get_read_local, ipa_reference_get_written_local):
4799         Remove.
4800         (ipa_reference_get_read_global, ipa_reference_get_not_read_global
4801         ipa_reference_get_written_global,
4802         ipa_reference_get_not_written_global): Use cgraph argument.
4803         (check_call): Simplify avail check.
4804         (scan_stmt_for_static_refs): Update.
4805         (propagate_bits): Update.
4806         (merge_callee_local_info): Remove.
4807         (init_function_info): Use cgraph nodes.
4808         (clean_function_local_data): Break out from ...
4809         (clean_function): ... here.
4810         (copy_local_bitmap, copy_global_bitmap): New functions.
4811         (duplicate_node_data, remove_node_data): New functions.
4812         (generate_summary): Register hooks; use visibility instead of
4813         master clones.
4814         (propafate): Use cgraph nodes; copy bitmap to each node in cycle.
4815         * ipa-reference.h (ipa_reference_local_vars_info_d,
4816         ipa_reference_global_vars_info_d,
4817         ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
4818         ipa_reference_vars_info_t): Move to ipa-reference.c
4819         (ipa_reference_get_read_local, ipa_reference_get_written_local):
4820         Remove.
4821         (ipa_reference_get_read_global, ipa_reference_get_written_global,
4822         ipa_reference_get_not_read_global,
4823         ipa_reference_get_not_written_global): Update prototype.
4824         * ipa-pure-const.c (funct_state_vec): Turn into VECtor.
4825         (init_state): Remove.
4826         (node_duplication_hook_holder, node_removal_hook_holder): New.
4827         (get_function_state, set_function_state): Use VECtor.
4828         (analyze_function): Check body availability.
4829         (add_new_function): Likewise.
4830         (duplicate_node_data, remove_node_data): New.
4831         (generate_summary): Register hooks; do not care about clones.
4832         (propafate): Do not care about clones; recursive functions are
4833         not looping.
4834         * ipa-utils.c (searchc, ipa_utils_reduced_inorder): Do not skip clones.
4835         * ipa-prop.c (edge_removal_hook_holder, node_removal_hook_holder,
4836         * edge_duplication_hook_holder, node_duplication_hook_holder): Make
4837         static.
4838         * tree-flow.h (function_ann_d): Remove reference_vars_info.
4839         * tree-ssa-opreands.c (add_call_clobber_ops, add_call_read_ops):
4840         Update call of ipa-reference accesors.
4841
4842 2008-09-18  Simon Baldwin  <simonb@google.com>
4843
4844         * c-opts.c (c_common_handle_option): Add handling for
4845         -Wbuiltin-macro-redefined command line option.
4846         * c.opt: Added builtin-macro-redefined option.
4847         * doc/invoke.texi (Warning Options): Add -Wbuiltin-macro-redefined
4848         documentation.
4849
4850 2008-09-18  Richard Guenther  <rguenther@suse.de>
4851
4852         PR tree-optimization/37258
4853         * tree-ssa-sccvn.c (vn_phi_compute_hash): Include the precision
4854         and signedness for integral types.
4855         (vn_phi_eq): Require compatible types.
4856
4857 2008-09-18  Jakub Jelinek  <jakub@redhat.com>
4858
4859         PR debug/34037
4860         * gimplify.c (gimplify_type_sizes): When not optimizing, ensure
4861         TYPE_MIN_VALUE and TYPE_MAX_VALUE is not is not DECL_IGNORED_P
4862         VAR_DECL.
4863         * cfgexpand.c (expand_used_vars): Keep DECL_ARTIFICIAL
4864         !DECL_IGNORED_P vars in local_decls list for instantiate_decls,
4865         ggc_free other TREE_LIST nodes from that chain.
4866         * function.c (instantiate_decls): Instantiate also DECL_RTL
4867         of vars in cfun->local_decls, free that list afterwards.
4868
4869 2008-09-18  Eric Botcazou  <ebotcazou@adacore.com>
4870
4871         * config/sparc/sol2.h (WIDEST_HARDWARE_FP_SIZE): Move to...
4872         * config/sparc/sparc.h (WIDEST_HARDWARE_FP_SIZE): ...here.
4873
4874 2008-09-18  Andrew MacLeod  <amacleod@redhat.com>
4875
4876         * tree-outof-ssa.c (eliminate_useless_phis): Fix formatting.
4877         * tree-flow-.h (struct immediate_use_iterator_d): Fix comment.
4878
4879 2008-09-18  Andrew MacLeod  <amacleod@redhat.com>
4880
4881         PR tree-optimization/37102
4882         * tree-outof-ssa.c (remove_gimple_phi_args): Remove all the PHI args
4883         from a node. Check to see if another PHI is dead.
4884         (eliminate_useless_phis): Rename from eliminate_virtual_phis and
4885         remove real PHIs which have no uses.
4886         (rewrite_out_of_ssa): Call eliminate_useless_phis.
4887
4888 2008-09-18  Richard Guenther  <rguenther@suse.de>
4889
4890         PR middle-end/37284
4891         * tree-cfg.c (remove_useless_stmts_1): Remove
4892         GIMPLE_CHANGE_DYNAMIC_TYPE if not optimizing.
4893
4894 2008-09-18  Nick Clifton  <nickc@redhat.com>
4895
4896         * config/frv/frv.h (IRA_COVER_CLASSES): Define.
4897         (SECONDARY_INPUT_RELOAD_CLASS): Omit unused argument in call
4898         to frv_secondary_reload_class.
4899         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
4900         * config/frv/frv.c (TARGET_SECONDARY_RELOAD): Define.
4901         (frv_secondary_reload_class): Omit unused parameter.
4902         (frv_secondary_reload): New function.  Handle the case when
4903         secondary_reload_class() is called before the reload_(in|out)
4904         _optabs have been initialised.
4905         * config/frv/frv-protos.h (frv_secondary_reload_class): Omit
4906         unused parameter.
4907         * config/frv/frv.md: Define an exclusion set between fr550_m0
4908         and fr550_f0.
4909
4910 2008-09-18  Richard Guenther  <rguenther@suse.de>
4911
4912         PR tree-optimization/37456
4913         * tree-ssa-reassoc.c (build_and_add_sum): If the stmt we
4914         want to insert after ends a BB insert on the single fallthru
4915         outgoing edge.
4916
4917 2008-09-18  Andreas Krebbel  <krebbel1@de.ibm.com>
4918
4919         * doc/invoke.texi: Document -mhard-dfp, -mno-hard-dfp.
4920         Mention -march=z9-109, z9-ec and z10.
4921
4922 2008-09-18  Uros Bizjak  <ubizjak@gmail.com>
4923
4924         PR rtl-optimization/37544
4925         * regrename.c (maybe_mode_change): Exit early when copy_mode
4926         is narrower than orig_mode and narrower than new_mode.
4927
4928 2008-09-18  Alexander Monakov  <amonakov@ispras.ru>
4929
4930         PR middle-end/37499
4931         * sched-int.h (struct _haifa_insn_data): Remove unused field ref_count.
4932
4933         * sched-rgn.c (ref_counts): Remove.
4934         (insn_referenced): New static variable.
4935         (INSN_REF_COUNT): Remove.
4936         (sched_run_compute_dependencies): Use insn_referenced instead of
4937         INSN_REF_COUNT.
4938         (add_branch_dependences): Likewise.  Delete dead assignment.
4939
4940 2008-09-17  Adam Nemet  <anemet@caviumnetworks.com>
4941
4942         * haifa-sched.c (dep_cost_1): Recognize the producer even if the
4943         consumer is an asm.  Add comment why this is important.
4944         (choose_ready): Add comment to the "INSN_CODE (insn) >= 0 ||
4945         recog_memoized (insn) < 0" assert.  Put ENABLE_CHECKING around it.
4946
4947 2008-09-17  Joseph Myers  <joseph@codesourcery.com>
4948
4949         * expr.c (emit_group_store): Do not shift before moving via a
4950         stack slot.
4951
4952 2008-09-17  Eric Botcazou  <ebotcazou@adacore.com>
4953
4954         * varasm.c (initializer_constant_valid_p): Forbid view-conversions
4955         from aggregate to non-aggregate type if the bit pattern is not fully
4956         preserved afterwards.
4957
4958 2008-09-17  Richard Guenther  <rguenther@suse.de>
4959
4960         * tree-cfg.c (verify_types_in_gimple_assign): Rename to ...
4961         (verify_gimple_assign): ... this.  Split into ...
4962         (verify_gimple_assign_unary): ... this,
4963         (verify_gimple_assign_binary): ... that,
4964         (verify_gimple_assign_single): ... and this.
4965         (verify_types_in_gimple_stmt): Call verify_gimple_assign.
4966         Fix GIMPLE_CHANGE_DYNAMIC_TYPE handling.
4967         (verify_types_in_gimple_min_lval): Handle TARGET_MEM_REF.
4968         (verify_types_in_gimple_reference): Be forgiving with
4969         VIEW_CONVERT_EXPRs.
4970         (verify_gimple_phi): Deal with virtual operands.
4971
4972         * tree.def (PREDICT_EXPR): Change to tcc_expression.
4973
4974 2008-09-17  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4975
4976         * tree.c (get_callee_fndecl): Don't call the language hook.
4977         * langhooks.h (lang_hooks): Remove lang_get_callee_fndecl.
4978         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): Kill.
4979         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_GET_CALLEE_FNDECL.
4980
4981 2008-09-17  Jakub Jelinek  <jakub@redhat.com>
4982
4983         * tree.c (protected_set_expr_location): Don't unnecessarily
4984         check for error_mark_node.
4985
4986 2008-09-17  Art Haas  <ahaas@impactweather.com>
4987
4988         * ipa-reference.c (analyze_function): Declare step only if
4989         ENABLE_CHECKING is defined.
4990
4991 2008-09-17  Jan Hubicka  <jh@suse.cz>
4992
4993         PR c++/18071
4994         * tree.h (DECL_INLINE): remove.
4995         (DECL_DECLARED_INLINE_P): Update docs.
4996         (DECL_NO_INLINE_WARNING_P): new.
4997         (tree_function_decl): Replace inline_flag by no_inline_warning_flag.
4998         * tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P.
4999
5000 2008-09-17  Jakub Jelinek  <jakub@redhat.com>
5001             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5002
5003         PR bootstrap/37441
5004         * dwarf2out.c (dwarf2out_do_cfi_asm) [MIPS_DEBUGGING_INFO]: Return
5005         false.
5006
5007 2008-09-17  Jan Hubicka  <jh@suse.cz>
5008
5009         * ipa-reference.c (ipa_obstack): Remove.
5010         (local_info_obstack, global_info_obstack): New.
5011         (add_static_var): We now handle variables only.
5012         (mark_address_taken, mark_load, mark_store): New functions based on ...
5013         (check_operand): ... remove.
5014         (get_asm_stmt_operands): Rename to ...
5015         (check_asm_memory_clobber): ... this. Look only for memory clobber.
5016         (scan_stmt_for_static_refs): Rewrite.
5017         (scan_op_for_static_refs): Rename to ...
5018         (scan_initializer_for_static_refs): do not look for VAR_DECL
5019         initializers; stop recursion on types and decls.
5020         (ipa_init): Use proper obstacks.
5021         (analyze_variable): Use scan_initializer_for_static_refs.
5022         (init_function_info): Use local obstack.
5023         (analyze_function): Simplify.
5024         (add_new_function): We don't need visited_nodes obstack.
5025         (generate_summary): Use proper obstacks; cleanup after propagation.
5026
5027 2008-09-17  Richard Guenther  <rguenther@suse.de>
5028
5029         PR middle-end/37385
5030         PR tree-optimization/37491
5031         * alias.c (get_alias_set): Use the canonical type.
5032         * tree-vect-transform.c (vectorizable_store): Use the type of
5033         the lhs for the vector type.  Adjust checking.
5034         (vectorizable_load): Adjust checking.
5035
5036 2008-09-16  Jakub Jelinek  <jakub@redhat.com>
5037             Adam Nemet  <anemet@caviumnetworks.com>
5038
5039         PR rtl-optimization/37483
5040         * ifcvt.c (noce_try_sign_mask): Use if_info->test_bb instead of
5041         if_info->insn_b's bb as argument to optimize_bb_for_speed_p.
5042         Rearrange code to better match the original comment.  Check
5043         t_unconditional first.  Improve comment.
5044
5045 2008-09-16  Jakub Jelinek  <jakub@redhat.com>
5046
5047         PR c/37529
5048         * gimplify.c (gimplify_expr) <case GOTO_EXPR>: If gimplification of
5049         GOTO_DESTINATION failed, don't create GIMPLE_GOTO.
5050
5051         PR c++/37530
5052         * gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
5053         GIMPLE_TRY if cleanup sequence is empty.
5054
5055 2008-09-16  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5056
5057         PR middle-end/37263
5058         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
5059         eliminate IV if the cost are the same.
5060
5061 2008-09-16  Richard Guenther  <rguenther@suse.de>
5062
5063         PR middle-end/37380
5064         * tree-sra.c (sra_build_assignment): Do not call the gimplifier
5065         if not necessary.
5066
5067 2008-09-16  Richard Guenther  <rguenther@suse.de>
5068
5069         PR tree-optimization/37508
5070         * tree-vrp.c (simplify_truth_ops_using_ranges): Also allow -1.
5071
5072 2008-09-15  Kaz Kojima  <kkojima@gcc.gnu.org>
5073
5074         * config/sh/sh.md (movsf_ie): Fix length for TARGET_SH2A.
5075
5076 2008-09-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5077
5078         * config/rs6000/rs6000.md (floatsidf2): Rewrite PowerPC64 case to
5079         use gen_floatdidf2 directly.
5080         (floatunssidf2): Likewise.
5081         (floatsidf_ppc64_mfpgpr): Remove.
5082         (floatsidf_ppc64): Remove.
5083         (floatunssidf_ppc64): Remove.
5084
5085 2008-09-15  Jakub Jelinek  <jakub@redhat.com>
5086
5087         * ira-color.c (finish_cost_update): Free update_cost_queue_elems
5088         rather than update_cost_queue.
5089
5090         * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
5091         in every call starting with the second one, instead of only when
5092         alias_bitmap_obstack.elements != NULL.
5093
5094         * tree-predcom.c (filter_suitable_components): Free all refs in
5095         act->refs vector before calling release_component.
5096         (add_ref_to_chain): Free ref if not adding it to chain->refs.
5097
5098         * tree-data-ref.c (free_subscripts): Free all subscript objects.
5099
5100         * tree-loop-linear.c (linear_transform_loops): Initialize
5101         lambda_obstack only after calling perfect_loop_nest_depth.
5102         Goto free_and_continue instead of just continue for later failures.
5103
5104         PR middle-end/37479
5105         * doc/invoke.texi: Document -fno-dwarf2-cfi-asm.
5106
5107         PR libmudflap/36397
5108         * tree-mudflap.c (mf_xform_derefs_1): Handle VIEW_CONVERT_EXPR.
5109
5110 2008-09-14  Andreas Schwab  <schwab@suse.de>
5111
5112         * tree-call-cdce.c (check_target_format): Accept Motorola formats.
5113
5114 2008-09-14  Jan Hubicka  <jh@suse.cz>
5115
5116         * invoke.texi (-fconserve-stack): Document.
5117         * opts.c (decode_options): Handle conserve_stack.
5118         * common.opt (fconvserve_stack): New.
5119
5120 2008-09-14  David Edelsohn  <edelsohn@gnu.org>
5121
5122         * config.host: Add x-aix to host_xmake_file.
5123         * config/rs6000/t-aix52: Do not override LDFLAGS.
5124         * config/rs6000/x-aix: New file.
5125
5126 2008-09-14  Andy Hutchinson  <hutchinsonandy@aim.com>
5127
5128         PR target/19636
5129         PR target/24894
5130         PR target/31644
5131         PR target/31786
5132         * config/avr/avr.c (legitimate_address_p): Fix problem where subreg
5133         is not recognized as a valid register usage. Allow REG_X to be used
5134         as a base pointer.
5135         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Remove code that
5136         forces a reload when using a base register.
5137
5138 2008-09-14  Danny Smith  <dannysmith@users.sourceforge.net>
5139
5140         * config/i386/cygming-crtend.c (register_frame_ctor): If
5141         DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame
5142         directly with atexit.
5143         (deregister_frame_ctor): Rename to ...
5144         (deregister_frame_dtor): Use to call __gcc_deregister_frame
5145         if !DEFAULT_USE_CXA_ATEXIT.
5146
5147 2008-09-13  Jan Hubicka  <jh@suse.cz>
5148
5149         * cgraph.c: Include value-prof.h
5150         * Makefile.in (cgraph.o): Add value-prof.h dependency.
5151
5152 2008-09-13  Jan Hubicka  <jh@suse.cz>
5153
5154         PR middle-end/32581
5155         * tree-profile.c (add_abnormal_goto_call_edges): New function.
5156         (tree_gen_interval_profiler, tree_gen_pow2_profiler,
5157         tree_gen_one_value_profiler, tree_gen_average_profiler,
5158         tree_gen_ic_func_profiler, tree_gen_ior_profiler): Use it.
5159
5160 2008-09-13  Jan Hubicka  <jh@suse.cz>
5161
5162         * i386.c (ix86_expand_movmem, ix86_expand_movstr): Avoid processing
5163         too many bytes on misalligned blocks.
5164
5165 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5166
5167         * doc/cfg.texi: Fix some typos.
5168         * doc/extend.texi: Likewise.
5169         * doc/install.texi: Likewise.
5170         * doc/invoke.texi: Likewise.
5171         * doc/rtl.texi: Likewise.
5172         * doc/tree-ssa.texi: Likewise.
5173
5174 2008-09-13  Richard Guenther  <rguenther@suse.de>
5175
5176         PR middle-end/30141
5177         * tree-nested.c (finalize_nesting_tree_1): Generate valid
5178         gimple stores for memory rhs.
5179
5180 2008-09-13  H.J. Lu  <hongjiu.lu@intel.com>
5181
5182         PR rtl-optimization/37489
5183         * cse.c (fold_rtx): Don't return const_true_rtx for float
5184         compare if FLOAT_STORE_FLAG_VALUE is undefined.
5185
5186 2008-09-13  Jan Hubicka  <jh@suse.cz>
5187
5188         PR tree-optimization/37392
5189         * tree-inline.c (remap_gimple_stmt): Do not remap return value.
5190
5191 2008-09-13  Martin Jambor  <mjambor@suse.cz>
5192             Jan Hubicka  <jh@suse.cz>
5193
5194         * cgraph.c (free_edges): New variable.
5195         (NEXT_FREE_EDGE): New macro.
5196         (cgraph_free_edge): New function.
5197         (cgraph_remove_edge): Call cgraph_remove_edge_1.
5198         (cgraph_node_remove_callees): Likewise.
5199         (cgraph_node_remove_callers): Likewise.
5200         (cgraph_create_edge): Reuse edges from the free list.  Do not
5201         update uid if doing so.
5202         (cgraph_remove_*_hook): Add free call.
5203
5204 2008-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
5205
5206         * ira-color.c (conflict_allocno_vec): Delete.
5207         (update_cost_queue_elem): New structure.
5208         (update_cost_queue): New variable.
5209         (update_cost_queue_tail): Likewise.
5210         (update_cost_queue_elems): Likewise.
5211         (allocno_update_cost_check): Delete.
5212         (initiate_cost_update): Allocate update_cost_queue_elems
5213         instead of allocno_update_cost_check.
5214         (finish_cost_update): Update the free()s accordingly.
5215         (start_update_cost): New function.
5216         (queue_update_cost): Likewise.
5217         (get_next_update_cost): Likewise.
5218         (update_copy_costs_1): Inline into...
5219         (update_copy_costs): ...here.  Use a queue instead of recursive calls.
5220         Use cover_class instead of ALLOCNO_COVER_CLASS (another_allocno),
5221         once we've established they are equal.  Don't allocate update
5222         costs if there is nothing to add to them.
5223         (update_conflict_hard_regno_costs): Remove ALLOCNO and
5224         DIVISOR arguments.  Use a queue instead of recursive calls;
5225         process all the allocnos in the initial queue, rather than
5226         a single allocno.
5227         (assign_hard_reg): Use queue_update_cost instead of
5228         conflict_allocno_vec.  Queue coalesced allocnos instead
5229         of calling update_conflict_hard_regno_costs for each one.
5230         Just call update_conflict_hard_regno_costs once for the
5231         entire queue.
5232         (ira_color): Remove conflict_allocno_vec handling.
5233
5234 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
5235
5236         PR tree-optimization/37484
5237         * graphite.c (scop_record_loop): Use snprintf instead of sprintf.
5238         (save_var_name): Same.
5239         (initialize_cloog_names): Same.
5240         (initialize_cloog_names): Same.
5241
5242 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
5243
5244         * tree-scalar-evolution.c (set_instantiated_value): Set
5245         instantiated_below.
5246
5247 2008-09-12  Vladimir Makarov  <vmakarov@redhat.com>
5248
5249         PR rtl-opt/37377
5250
5251         * ira-build.c (common_loop_tree_node_dominator): Remove.
5252         (copy_live_ranges_to_removed_store_destinations): New function.
5253         (regno_top_level_allocno_map): Move to top level from ...
5254         (ira_flattening): ... here.  Use
5255         copy_live_ranges_to_removed_store_destinations.
5256
5257         * ira-emit.c (generate_edge_moves): Fix a comment.
5258
5259 2008-09-12  Anatoly Sokolov  <aesok@post.ru>
5260
5261         PR target/37466
5262         * config/avr/avr.md (movsi_lreg_const peephole2): Add match_dup for
5263         scratch register after 'set' pattern.
5264
5265 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5266
5267         * emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
5268         information passed to mark_reg_pointer.
5269         * explow.c (force_reg): Likewise.
5270
5271 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5272
5273         * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
5274         when building for the celledp architecture.
5275
5276 2008-09-12  Richard Guenther  <rguenther@suse.de>
5277
5278         * tree-vrp.c (simplify_truth_ops_using_ranges): Fix types.
5279
5280 2008-09-12  Eric Botcazou  <ebotcazou@adacore.com>
5281
5282         PR rtl-optimization/37424
5283         * ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
5284         the regnos instead of the addresses.
5285
5286 2008-09-11  Janis Johnson  <janis187@us.ibm.com>
5287
5288         * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
5289
5290 2008-09-11  Richard Guenther  <rguenther@suse.de>
5291
5292         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
5293         entering the weaker equivalence recording.
5294
5295         * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
5296
5297 2008-09-11  Jeff Law <law@redhat.com>
5298
5299         * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
5300         by assign_stack_local on the IRA path for stack slot sharing
5301         as well as the non-IRA path.
5302
5303 2008-09-11  Uros Bizjak  <ubizjak@gmail.com>
5304
5305         * config/i386/i386.h: Fix whitespace issues.
5306
5307 2008-09-11  Martin Jambor  <mjambor@suse.cz>
5308
5309         * ipa-prop.h (struct ipa_param_flags): Removed.
5310         (struct ipa_param_descriptor): New structure.
5311         (struct ipa_node_params): ipcp_lattices, param_decls and
5312         param_flags moved to ipa_param_description.
5313         (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
5314         descriptors.  Renamed all users.
5315         (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
5316         changed to access descriptors.  Renamed all users.
5317         (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
5318         to access descriptors. Renamed all users.
5319         * ipa-cp.c (ipcp_init_cloned_node): Call
5320         ipa_initialize_node_params instead of ipa_count_formal_params and
5321         ipa_create_param_decls_array.
5322         (ipcp_analyze_node): Likewise.
5323         (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
5324         descriptors.  Renamed all users.
5325         (ipcp_initialize_node_lattices): Remove allocation.
5326         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
5327         ipa_initialize_node_params instead of ipa_count_formal_params and
5328         ipa_create_param_decls_array.
5329         * ipa-prop.c (ipa_create_param_decls_array): Renamed to
5330         ipa_populate_param_decls, made static, added parameter info,
5331         renamed mt to node, removed allocation, changed to use
5332         descriptors.
5333         (ipa_count_formal_params): Made static, added parameter info,
5334         renamed mt to node.
5335         (ipa_initialize_node_params): New function.
5336         (ipa_check_stmt_modifications): Changed to use descriptors.
5337         (ipa_detect_param_modifications): Removed allocation, changed to
5338         use descriptors.
5339         (ipa_note_param_call): Changed to use descriptors.
5340         (ipa_analyze_params_uses): Removed allocation.
5341         (ipa_free_node_params_substructures): Changed to use descriptors.
5342         (ipa_edge_duplication_hook): Use the unused attribute.
5343         (ipa_node_duplication_hook): Use the unused attribute, changed to
5344         use descriptors, changed to duplicate descriptors.
5345
5346         * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
5347         changed all callers.  Call ipa_propagate_indirect_call_infos if doing
5348         indirect inlining.  Made static.
5349         (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
5350         functions called only once.
5351         (cgraph_decide_recursive_inlining): Don't call
5352         ipa_propagate_indirect_call_infos, pass new_edges to
5353         cgraph_mark_inline_edge instead.
5354         (cgraph_decide_inlining_of_small_functions): Don't call
5355         ipa_propagate_indirect_call_infos, pass new_edges to
5356         cgraph_mark_inline_edge instead.
5357         (cgraph_decide_inlining): Don't call
5358         ipa_propagate_indirect_call_infos.
5359         * ipa-prop.c: Check that vectors are allocated.
5360
5361         * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
5362         iff a new cgraph edges have been created.
5363         (cgraph_decide_inlining): New variable redo_always_inline.
5364         Flattening and always_inlining loop until callgraph stabilizes.
5365         * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
5366         true iff new cgraph edges have been created.
5367         (propagate_info_to_inlined_callees): Likewise.
5368         (ipa_propagate_indirect_call_infos): Likewise.
5369
5370 2008-09-11  Richard Guenther  <rguenther@suse.de>
5371
5372         * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
5373         (set_prologue_iterations): Likewise.
5374         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
5375         Likewise.
5376         (vect_update_init_of_dr): Likewise.
5377         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
5378         type verification.
5379         * fold-const.c (fold_unary): Do not generate calculations
5380         in sub-types.
5381
5382 2008-09-11  Paolo Bonzini  <bonzini@gnu.org>
5383
5384         * dojump.c (do_jump) [BIT_AND_EXPR]: Move below.  Fall through to
5385         TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
5386         (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
5387
5388         * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return
5389         a bool.
5390         * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
5391         VRP's simplify_stmt_using_ranges.  Do simplify_stmt_using_ranges
5392         before finalizing the changes.
5393         * tree-vrp.c (extract_range_from_binary_expr): Add limited support
5394         for BIT_IOR_EXPR.
5395         (simplify_truth_ops_using_ranges): New.
5396         (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
5397         simplify_cond_using_ranges, simplify_switch_using_ranges): Return
5398         whether a simplification was made.
5399         (simplify_stmt_using_ranges): Ditto, and accept a GSI.  For GS_ASSIGN,
5400         use a switch statement and also call simplify_truth_ops_using_ranges.
5401
5402 2008-09-11  Jan Hubicka  <jh@suse.cz>
5403
5404         * ggc-common.c (loc_array): Make static.
5405         * dce.c (rest_of_handle_ud_dce): Free worklist.
5406
5407 2008-09-11  Jan Hubicka  <jh@suse.cz>
5408
5409         * cgraph.c (cgraph_release_function_body): Plug memory leak on
5410         ipa_transforms_to_apply and CFG; ggc_free gimple df and struct
5411         function so we are sure we do not dangle it forever.
5412         * function.c (outer_function_chain, find_function_data): Remove.
5413         (function_context_stack): New.
5414         (push_function_context, pop_function_context): Update.
5415         * function.h (struct function): Remove pointer outer.
5416         (outer_function_chain, find_function_data): Remove.
5417         * stmt.c (force_label_rtx): Remove dead call of find_function_data.
5418
5419 2008-09-11  Jan Hubicka  <jh@suse.cz>
5420
5421         PR middle-end/37448
5422         * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
5423
5424 2008-09-11  Jan Hubicka  <jh@suse.cz>
5425
5426         * tree-ssa-pre.c (phi_translate_1): Fix memory leak
5427
5428 2008-09-11  Jan Hubicka  <jh@suse.cz>
5429
5430         * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
5431         (free_var_map_entry): New function.
5432         (redirect_edge_var_map_destroy): Use it.
5433
5434 2008-09-11  Jan Hubicka  <jh@suse.cz>
5435
5436         PR middle-end/37448
5437         * tree-inline.c (add_lexical_block): Replace with ...
5438         (prepend_lexical_block): ... prepend at begginig.
5439         (remap_blocks): Use it and reverse later.
5440         (expand_call_inline): Use prepend_lexical_block.
5441
5442 2008-09-11  Jan Hubicka  <jh@suse.cz>
5443
5444         * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
5445
5446 2008-09-11  Jan Hubicka  <jh@suse.cz>
5447
5448         * function.c (free_after_compilation): Call insn_locators_free.
5449         * cfglayout.c (insn_locators_free): New function.
5450         * rtl.h (insn_locators_free): Declare.
5451
5452 2008-09-11  Jan Hubicka  <jh@suse.cz>
5453
5454         * ifcvt.c (check_cond_move_block): Make regs argument pointer to
5455         vector pointer.
5456         (cond_move_process_if_block): Update call.
5457
5458 2008-09-11  Jan Hubicka  <jh@suse.cz>
5459
5460         * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
5461         * vec.c: Include hashtab.h
5462         (vec_descriptor, ptr_hash_entry): New structures.
5463         (vec_desc_hash, vec_ptr_map): New static variables.
5464         (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
5465         register_overhead, free_overhead, vec_heap_free): New functions.
5466         (vec_gc_o_reserve_1): ggc_free when resizing to 0.
5467         (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
5468         (cmp_statistic, add_statistics, dump_vec_loc_statistics):
5469         New functions.
5470
5471 2008-09-11  Ira Rosen  <irar@il.ibm.com>
5472
5473         PR tree-optimization/37474
5474         * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
5475         length of load permutation.
5476
5477 2008-09-11  Andreas Schwab  <schwab@suse.de>
5478
5479         * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
5480
5481 2008-09-11  Jakub Jelinek  <jakub@redhat.com>
5482
5483         PR target/37382
5484         * expmed.c (extract_low_bits): Avoid creating invalid subregs.
5485         * dse.c (find_shift_sequence): Use extract_low_bits instead of
5486         simplify_gen_subreg.
5487
5488 2008-09-11  Ira Rosen  <irar@il.ibm.com>
5489
5490         * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
5491         for alias check.
5492
5493 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
5494
5495         PR middle-end/37338
5496         * gimplify.c (gimplify_body): Call default_rtl_profile.
5497
5498         PR target/36904
5499         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
5500         instead of tok->val.node if not expanding to something else.  Handle
5501         intervening CPP_PADDING tokens.
5502         (altivec_categorize_keyword): Remove unneeded comparisons.
5503
5504 2008-09-10  Richard Guenther  <rguenther@suse.de>
5505
5506         * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
5507
5508 2008-09-10  Richard Guenther  <rguenther@suse.de>
5509
5510         PR middle-end/37432
5511         * tree-inline.c (insert_init_stmt): Make sure to not
5512         insert invalid gimple stores.
5513
5514 2008-09-10  Sebastian Pop  <sebastian.pop@amd.com>
5515
5516         PR tree-optimization/37388
5517         * toplev.c (process_options): Fail and warn when graphite
5518         flags are used, but the compiler has not been configured
5519         with graphite libraries.
5520         * graphite.c (graphite_transform_loops): Remove printfs
5521         to dump_file for the case when graphite is not available.
5522
5523 2008-09-10  H.J. Lu  <hongjiu.lu@intel.com>
5524
5525         PR target/37434:
5526         * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
5527         the even element into register.
5528         (ix86_expand_vector_init_general): Don't use
5529         ix86_expand_vector_init_interleave on V16QImode and V8HImode
5530         if we can't move from GPR to SSE register directly.
5531
5532 2008-09-10  Bernd Schmidt  <bernd.schmidt@analog.com>
5533
5534         * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
5535         not lose track of the number of NOPs needed.  Number of NOPs needed
5536         for sync vs. loads workaround was switched; corrected.  Run second
5537         pass for all workarounds.  No NOPs needed after call insns.  Change
5538         second pass to use find_next_insn_start and find_load helpers in order
5539         to properly detect parallel insns.
5540         * config/bfin/bfin.md (cbranch_with_nops): Increase length.
5541
5542 2008-09-10  Jan Hubicka  <jh@suse.cz>
5543
5544         * value-prof.c (gimple_ic): Fix tuplification bug.
5545         * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
5546         var warning.
5547
5548 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
5549
5550         PR tree-optimization/37353
5551         * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
5552         (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
5553         calls instead of cond_dead_built_in_calls.
5554         (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
5555         initalize the vector only before adding first entry.  Use VEC_safe_push
5556         instead of VEC_quick_push.  Pass cond_dead_built_in_calls to
5557         shrink_wrap_conditional_dead_built_in_calls call.
5558
5559 2008-09-10  Ira Rosen  <irar@il.ibm.com>
5560
5561         PR tree-optimization/37385
5562         * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new
5563         argument, and use it as a vector type if not NULL.
5564         (vectorizable_store): Call vect_create_data_ref_ptr with the type of
5565         vectorized rhs.
5566         (vect_setup_realignment): Call vect_create_data_ref_ptr with
5567         additional argument.
5568         (vectorizable_load): Likewise.
5569
5570 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
5571
5572         * config/i386/i386.md (SWI32): New mode iterator.
5573         (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
5574         of SWI.
5575
5576 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
5577
5578         PR rtl-optimization/37435
5579         * caller-save.c (insert_restore, insert_save): Check the mode by
5580         reg_save_code.
5581
5582 2008-09-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5583
5584         PR other/37265
5585         * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
5586         splay tree lookup.
5587         (dw2_output_indirect_constant_1): Use unstripped name in symbol
5588         reference.
5589
5590 2008-09-09  Sandra Loosemore  <sandra@codesourcery.com>
5591
5592         * doc/invoke.texi (ARM Options): Correct errors in discussion
5593         of -mfloat-abi, -mhard-float, and -msoft-float.
5594
5595 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
5596             Jan Hubicka  <jh@suse.cz>
5597
5598         PR middle-end/37356
5599         * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
5600         calling gimple_regimplify_operands on it.  Iterate over all newly
5601         added statements, not just the last one.
5602         (insert_init_stmt): Insert stmt into seq first, then call
5603         gimple_regimplify_operands on it.  Don't create new gimplification
5604         context, nor find referenced vars.
5605
5606 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
5607
5608         PR other/37419
5609         * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
5610         to pointer to vector pointer.
5611         * ipa-prop.c (ipa_propagate_indirect_call_infos,
5612         propagate_info_to_inlined_callees): Likewise.
5613         (update_call_notes_after_inlining): Likewise.  Push new indirect edge
5614         to *new_edges instead of new_edges.  Reread IPA_EDGE_REF after
5615         ipa_check_create_edge_args.
5616         * ipa-inline.c (cgraph_decide_recursive_inlining): Change last
5617         argument to pointer to vector pointer.
5618         (cgraph_decide_inlining_of_small_function): Adjust
5619         cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
5620         calls.
5621
5622         PR target/37438
5623         * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when
5624         optimizing for size, not speed.
5625
5626         PR rtl-optimization/37408
5627         * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
5628         if parm is promoted.
5629
5630 2008-09-09  Sebastian Pop  <sebastian.pop@amd.com>
5631
5632         PR tree-optimization/37375
5633         * tree-scalar-evolution.c (scev_info_str): Add field
5634         instantiated_below.
5635         (new_scev_info_str, eq_scev_info, find_var_scev_info,
5636         set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
5637         set_instantiated_value): Pass instantiated_below.
5638         (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls
5639         to above functions.
5640         (instantiate_scev_1, instantiate_scev): Pass a basic block above which
5641         the definitions are not instantiated.
5642
5643         * tree-scalar-evolution.h (instantiate_scev): Update declaration.
5644         (block_before_loop): New.
5645         * tree-data-ref.c (dr_analyze_indices): Update uses of
5646         instantiate_scev.
5647         * graphite.c (block_before_scop): New.
5648         (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
5649         basic block, not a loop for determining the parameters.
5650         (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
5651         scop.
5652         (idx_record_params, find_params_in_bb, find_scop_parameters,
5653         build_loop_iteration_domains, add_conditions_to_domain): Update calls
5654         to instantiate_scev.
5655
5656         * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
5657
5658 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
5659
5660         PR rtl-opt/37333
5661
5662         * ira-build.c (ira_create_allocno): Setup frequency to 0.
5663
5664         * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
5665         Check zero freq and increase if necessary.
5666
5667 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
5668
5669         * ira-conflicts.c (process_regs_for_copy): Check that the hard
5670         regno is in the right range.  Add comments.
5671
5672 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5673
5674         * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
5675         warnings.
5676         * mips-tfile.c (copy_object): Cast alloca result to int *.
5677         * mips-tdump.c (print_symbol): Cast xmalloc return values to
5678         proper types.
5679         Rename class to sclass.
5680         (read_tfile): Cast read_seek return values to proper types.
5681         Cast xcalloc return value to proper type.
5682
5683 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5684
5685         * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
5686         * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
5687         * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
5688
5689 2008-09-09  Jan Hubicka  <jh@suse.cz>
5690
5691         * profile.c (is_edge_inconsistent): Add debug output; ignore
5692         negative count on fake edges.
5693         (is_inconsistent): Add debug output.
5694
5695 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
5696
5697         * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
5698         dump message.
5699         (choose_ready): When first insn is chosen from the ready list, also
5700         dump it.
5701
5702 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
5703
5704         PR rtl-optimization/37360
5705         * haifa-sched.c (max_issue): Do not assert that we never issue more
5706         insns than issue_rate.  Add comment.
5707
5708 2008-09-09  Richard Guenther  <rguenther@suse.de>
5709
5710         * tree-cfg.c (verify_types_in_gimple_op): Remove.
5711         (verify_types_in_gimple_call): Rename to ...
5712         (verify_gimple_call): ... this.  Enhance.
5713         (verify_types_in_gimple_cond): Remove.
5714         (verify_gimple_comparison): New function ...
5715         (verify_types_in_gimple_assign): ... split out from here.
5716         (verify_types_in_gimple_return): Rename to ...
5717         (verify_gimple_return): ... this.  Enhance.
5718         (verify_types_in_gimple_switch): Rename to ...
5719         (verify_gimple_switch): ... this.  Enhance.
5720         (verify_gimple_goto): New function.
5721         (verify_types_in_gimple_phi): Rename to ...
5722         (verify_gimple_phi): ... this.  Enhance.
5723         (verify_types_in_gimple_stmt): Adjust calls to helper functions.
5724         Fold in single-statement cases from verify_types_in_gimple_seq_2.
5725         (verify_types_in_gimple_seq_2): Remove cases handled in
5726         verify_types_in_gimple_stmt.
5727
5728 2008-09-09  Bernd Schmidt  <bernd.schmidt@analog.com>
5729
5730         * config/bfin/bfin.c (n_regs_to_save): New static variable.
5731         (push_multiple_operation, pop_multiple_operation): Set it.
5732         (workaround_rts_anomaly): New function.
5733         (workaround_speculation): New function, broken out of bfin_reorg.
5734         (bfin_reorg): Call the new functions.
5735
5736 2008-09-09  Richard Guenther  <rguenther@suse.de>
5737
5738         PR middle-end/37354
5739         PR middle-end/30165
5740         * gimplify.c (gimplify_conversion): Change conversions of
5741         non-register type to VIEW_CONVERT_EXPRs.
5742         (gimplify_addr_expr): If we need to make the operand
5743         addressable make sure to use a properly initialized
5744         temporary for that so it gets a valid gimple store.
5745
5746 2008-09-09  Aldy Hernandez  <aldyh@redhat.com>
5747
5748         * function.h (struct function): Add function_start_locus.
5749         * cfgexpand.c (gimple_expand_cfg): Use it.
5750         * c-parser.c (c_parser_declaration_or_fndef): Set it.
5751
5752 2008-09-09  Richard Guenther  <rguenther@suse.de>
5753
5754         PR tree-optimization/37433
5755         * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
5756         function calls.
5757
5758 2008-09-09  Richard Guenther  <rguenther@suse.de>
5759
5760         PR tree-optimization/37387
5761         * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
5762         and bits to a common type.
5763
5764 2008-09-09  Nick Clifton  <nickc@redhat.com>
5765
5766         * config/v850/v850.md (return): Restore frame size restriction.
5767
5768 2008-09-09  Paolo Bonzini  <bonzini@gnu.org>
5769
5770         * c-common.c (c_expand_decl): Remove.
5771         * c-common.h (anon_aggr_type_p): Remove prototype.
5772         (DECL_ANON_UNION_ELEMS): Remove.
5773         * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
5774         * c-decl.c (anon_aggr_type_p): Remove.
5775         * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
5776         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
5777         * langhooks.h (struct lang_hooks): Remove expand_decl.
5778         * langhooks.c (lhd_expand_decl): Remove.
5779         * stmt.c (expand_anon_union_decl): Remove.
5780         * tree.h (expand_anon_union_decl): Remove prototype.
5781
5782 2008-08-09  Andy Hutchinson  <hutchinsonandy@aim.com>
5783
5784         PR target/36609
5785         * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
5786         zero.
5787         * config/avr/avr.md  (QISI) : Define mode iterator.
5788         (negated_tst<mode>) : Redefine as split using mode macro.
5789         (reversed_tstqi): Define insn as reversed compare with zero.
5790         (reversed_tsthi): Ditto.
5791         (reversed_tstsi): Ditto.
5792
5793 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
5794
5795         PR middle-end/37393
5796         * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
5797         call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
5798
5799         PR middle-end/37414
5800         * predict.c (optimize_function_for_size_p): Don't segfault if
5801         FUN is NULL.
5802         * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
5803         tree_swap_operands_p): Don't test cfun != NULL before calling
5804         optimize_function_for_s*_p.
5805
5806 2008-09-08  Eric Botcazou  <ebotcazou@adacore.com>
5807
5808         * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
5809         end of the search.
5810
5811 2008-09-08  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
5812
5813         * crx/crx.h (IRA_COVER_CLASSES): Define.
5814
5815 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
5816
5817         PR middle-end/37337
5818         * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
5819         even when a stmt has been gimple_modified_p, but after fold_stmt is
5820         not any longer.  Remove unneeded may_have_exposed_new_symbols
5821         initializations.
5822
5823 2008-09-08  Richard Guenther  <rguenther@suse.de>
5824
5825         PR tree-optimization/37421
5826         * tree-ssa-sccvn.c (visit_copy): Make sure to fully
5827         valueize the RHS.
5828
5829 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
5830
5831         PR middle-end/37415
5832         * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
5833
5834 2008-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5835
5836         PR driver/37409
5837         * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
5838         * pa-hpux10.h (LINK_SPEC): Likewise.
5839         * pa-hpux11.h (LINK_SPEC): Likewise.
5840
5841 2008-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5842
5843         * pa32-regs.h (IRA_COVER_CLASSES): Define.
5844         * pa64-regs.h (IRA_COVER_CLASSES): Define.
5845
5846 2008-09-07  Helge Deller  <deller@gmx.de>
5847
5848         * pa/linux-atomic.c: New file.
5849         * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
5850         * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
5851
5852 2008-09-07  Richard Guenther  <rguenther@suse.de>
5853             Ira Rosen  <irar@il.ibm.com>
5854
5855         PR tree-optimization/36630
5856         * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
5857         Call STRIP_NOPS before calling evolution_part_in_loop_num.
5858
5859 2008-09-07  Dorit Nuzman  <dorit@il.ibm.com>
5860             Ira Rosen  <irar@il.ibm.com>
5861
5862         PR tree-optimization/35642
5863         * config/rs6000/altivec.md (mulv8hi3): Implement.
5864
5865 2008-09-06  Jeff Law <law@redhat.com>
5866
5867         * h8300/h8300.h (IRA_COVER_CLASSES): Define.
5868
5869 2008-09-06  Jan Hubicka  <jh@suse.cz>
5870
5871         PR tree-optimization/14703
5872         * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
5873         declarations.
5874         * passes.c (init_optimization_passes): Recompute inline parameters.
5875
5876 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
5877
5878         * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
5879         DECL being null.
5880
5881 2008-09-06  Richard Sandiford  <rdsandiford@goolemail.com>
5882             Peter Fuerst  <post@pfrst.de>
5883
5884         * doc/invoke.texi: Document -mr10k-cache-barrier=.
5885         * doc/extend.texi: Document __builtin_mips_cache.
5886         * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
5887         * config/mips/mips.opt (mr10k-cache-barrier=): New option.
5888         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
5889         __GCC_HAVE_BUILTIN_MIPS_CACHE.
5890         (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
5891         * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
5892         (set_push_mips_isas): New variable.
5893         (mips_r10k_cache_barrier): New variable.
5894         (cache): New availability predicate.
5895         (mips_builtins): Add an entry for __builtin_mips_cache.
5896         (mips_build_cvpointer_type): New function.
5897         (MIPS_ATYPE_CVPOINTER): New macro.
5898         (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
5899         mode is VOIDmode.
5900         (r10k_simplified_address_p, r10k_simplify_address)
5901         (r10k_uncached_address_p, r10k_safe_address_p)
5902         (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
5903         (r10k_needs_protection_p_call, r10k_needs_protection_p)
5904         (r10k_insert_cache_barriers): New functions.
5905         (mips_reorg_process_insns): Delete cache barriers after a
5906         branch-likely instruction.
5907         (mips_reorg): Call r10k_insert_cache_barriers.
5908         (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
5909         * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
5910         (UNSPEC_R10K_CACHE_BARRIER): Likewise.
5911         (mips_cache, r10k_cache_barrier): New define_insns.
5912
5913 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
5914
5915         * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
5916         * ira-color.c (setup_allocno_left_conflicts_num): Use
5917         hard_reg_set_equal_p instead of a comparison with
5918         ira_zero_hard_reg_set.
5919         * ira.c (setup_reg_subclasses): Likewise.
5920         (setup_cover_and_important_classes): Likewise.
5921         (setup_class_translate): Likewise.
5922         (setup_reg_class_intersect_union): Likewise.
5923         (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
5924         (ira_init_once): Don't initialize them.
5925
5926 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
5927
5928         * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
5929
5930 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
5931
5932         * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
5933
5934 2008-09-05  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
5935
5936         Improved branch hints, safe hints, and scheduling.
5937
5938         * haifa-sched.c (sched_emit_insn) : Define.
5939         * sched-int.h (sched_emit_insn) : Add prototype.
5940         * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
5941         -mhint-max-distance -msafe-hints) : Document.
5942         * config/spu/spu.c (spu_flag_var_tracking): New.
5943         (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
5944         TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
5945         TARGET_ASM_FILE_START): Define.
5946         (TARGET_SCHED_ADJUST_PRIORITY): Remove.
5947         (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
5948         (spu_emit_branch_hint): Add blocks argument.
5949         (insert_branch_hints, insert_nops): Remove.
5950         (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
5951         uses_ls_unit, spu_sched_init_global, spu_sched_init,
5952         spu_sched_reorder, asm_file_start): New functions.
5953         (clock_var, spu_sched_length, pipe0_clock,
5954         pipe1_clock, prev_clock_var, prev_priority,
5955         spu_ls_first, prev_ls_clock): New static variables.
5956         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
5957         * config/spu.md (iprefetch): Add operand, make it clobber MEM.
5958         (nopn_nv): Add a non-volatile version of nop.
5959         * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
5960         -mhint-max-distance, -msafe-hints): New options.
5961
5962 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
5963             Samuel Tardieu  <sam@rfc1149.net>
5964
5965         * opts.c (decode_options): Combine nested if statements.
5966
5967         PR target/37283
5968         * opts.c (decode_options): Handle more relationships among
5969         unit-at-a-time, toplevel-reorder, and section-anchors.
5970
5971 2008-09-05  David Daney  <ddaney@avtrex.com>
5972
5973         * doc/install.texi (--enable-reduced-reflection): Document new option.
5974
5975 2008-09-05  Bob Wilson  <bob.wilson@acm.org>
5976
5977         * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
5978         constantpool_mem_p.
5979         (constantpool_operand): New.
5980         (move_operand): Disallow sub-word modes for the constant pool.
5981         * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
5982         (xtensa_secondary_reload_class): Replace with....
5983         (xtensa_secondary_reload): this function.  Remove SIGN_EXTEND check.
5984         Set icode for sub-word reloads from the constant pool.
5985         * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
5986         (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
5987         * config/xtensa/xtensa.md (reload<mode>_literal): New.
5988         * config/xtensa/xtensa-protos.h: Update prototypes.
5989
5990 2008-09-05  Joseph Myers  <joseph@codesourcery.com>
5991
5992         * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
5993         (REG_CLASS_NAMES): Update.
5994         (REG_CLASS_CONTENTS): Update.
5995         * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
5996         of ALL_REGS for regs 77 and 78.
5997         * function.c (instantiate_virtual_regs_in_insn): Assert that
5998         return value of simplify_gen_subreg is not NULL.
5999
6000 2008-09-05  Paolo Bonzini  <bonzini@gnu.org>
6001
6002         * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
6003         (gen_rtvec_v): Fix coding standards.
6004
6005 2008-09-04  Jan Hubicka  <jh@suse.cz>
6006
6007         * i386.c (decide_alg): Be more conservative about optimizing for size.
6008
6009 2008-09-04  Ian Lance Taylor  <iant@google.com>
6010
6011         * varasm.c (narrowing_initializer_constant_valid_p): New
6012         static function.
6013         (initializer_constant_valid_p): Call it.
6014
6015 2008-09-04  Jeff Law  <law@redhat.com>
6016
6017         * fold-const.c (native_encode_real): Fix computation of WORDS.
6018         (native_interpret_real): Likewise.
6019
6020 2008-09-04  Janis Johnson  <janis187@us.ibm.com>
6021
6022         * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
6023
6024 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
6025
6026         * ira-conflicts.c (process_regs_for_copy): Check insn to check
6027         that the cost is already taken into account in ira-costs.c
6028
6029         * ira-int.h (ira_debug_copy, ira_debug_copies): New.
6030
6031         * ira-build.c (print_copy, print_copies, ira_debug_copy,
6032         ira_debug_copies): New.
6033         (ira_bulid): Call print_copies.
6034
6035         * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
6036
6037 2008-09-04  Samuel Tardieu  <sam@rfc1149.net>
6038
6039         PR target/32783
6040         * config/rs6000/rs6000.c (optimization_options): Remove check of
6041         flag_toplevel_order.
6042
6043 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
6044
6045         * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
6046         * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
6047         second operand is a reg_imm10_operand.
6048         * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
6049         *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
6050         (*seq_<GPR:mode><GPR2:mode>): Rename to
6051         *seq_zero_<GPR:mode><GPR2:mode>.  Don't match if
6052         ISA_HAS_SEQ_SNE.
6053         (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
6054         *seq_zero_<GPR:mode><GPR2:mode>_mip16.  Don't match if
6055         ISA_HAS_SEQ_SNE.
6056         (*sne_<GPR:mode><GPR2:mode>): Rename to
6057         *sne_zero_<GPR:mode><GPR2:mode>.  Don't match if
6058         ISA_HAS_SEQ_SNE.
6059
6060 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
6061
6062         * config/mips/mips.h (ISA_HAS_EXTS): New macro.
6063         * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
6064         combining an arithmetic right shift by more than 31 and a
6065         trunction.  Don't match for out-of-range shift amounts.  Set
6066         attribute mode to <MODE>.
6067         (*lshr32_trunc<mode>): Name the pattern combining a logical right
6068         shift by 32 and and a truncation.  Set attribute mode to <MODE>.
6069         (*<optab>_trunc<mode>_exts): New pattern for truncated right
6070         shifts by less than 32.
6071         (extv): Change predicate on first operand to accept registers.
6072         Change predicate of the other operands from immediate_operand to
6073         const_int_operand.  Expand exts when source is a register.
6074         (extzv): Change predicate of the constant operands from
6075         immediate_operand to const_int_operand.
6076         (extzv<mode>): Change predicate of the constant operands from
6077         immediate_operand to const_int_operand and no constraint. Also
6078         remove mode.
6079         (*extzv_trunc<mode>_exts): New pattern.
6080
6081 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
6082
6083         * config/mips/mips.h (ISA_HAS_CINS): New macro.
6084         * config/mips/mips-protos.h (mask_low_and_shift_p,
6085         mask_low_and_shift_len): Declare.
6086         * config/mips/mips.c (mask_low_and_shift_p,
6087         mask_low_and_shift_len): New functions.
6088         (mips_print_operand): Handle new operand prefix "m".
6089         * config/mips/mips.md (*cins<mode>): New pattern.
6090
6091 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
6092
6093         * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
6094         optimizing for size.
6095
6096 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
6097
6098         * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
6099         regardless of epilogue_completed.
6100
6101 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
6102
6103         PR middle-end/37359
6104         * ira-lives.c (process_bb_node_lives): Check setjmp.
6105
6106 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
6107
6108         PR middle-end/37243
6109         * ira-build.c (form_loop_tree): Reverse BB walk.
6110         (create_bb_allocnos): Likewise.
6111         * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
6112         (mark_reg_store): Rename to...
6113         (mark_ref_live): ...this and take a df_ref argument instead of
6114         note_stores arguments.  Assert that we have a register.
6115         (mark_reg_clobber): Delete.
6116         (def_conflicts_with_inputs_p): New function.
6117         (mark_reg_conflicts): Delete.
6118         (mark_reg_death): Rename to...
6119         (mark_ref_dead): ...this and take a df_ref argument instead of
6120         a register.  Assert that we have a register.
6121         (process_bb_node_lives): Hoist frequency calculation out of
6122         instruction walk.  Convert from a forwards scan to a backwards scan.
6123         Use DF_REF_USES and DF_REF_DEFS instead of register notes and
6124         note_stores.  Remove EH_RETURN_DATA_REGNO and regs_set handling.
6125         (create_allocno_live_ranges): Don't create regs_set.
6126
6127 2008-09-04  Ian Lance Taylor  <iant@google.com>
6128
6129         * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
6130         or REG_LABEL_TARGET.
6131         * calls.c (emit_library_call_value_1): Use MEM_P rather than
6132         comparing MODE with MEM.
6133         * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
6134         comparing with GF_PREDICT_TAKEN.
6135         (gimple_get_lhs): Change code to enum gimple_code.
6136         (gimple_set_lhs): Likewise.
6137         * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
6138         * omp-low.c (find_omp_clause): Change kind parameter to enum
6139         omp_clause_code.
6140         * tree-flow.h (find_omp_clause): Update declaration.
6141         * regrename.c (clear_dead_regs): Change kind parameter to enum
6142         reg_note.
6143         * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
6144         GET_MODE.
6145         * see.c (see_get_extension_data): Change return type to enum
6146         entry_type.  Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
6147         SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
6148         (see_gen_normalized_extension): Change extension_code parameter to
6149         enum entry_type.
6150         (see_seek_pre_extension_expr): Change extension_code to enum
6151         entry_type.
6152         (see_merge_one_def_extension): Likewise.
6153         (see_handle_relevant_defs): Likewise.
6154         (see_handle_relevant_uses): Likewise.
6155         (see_analyze_one_def): Likewise.
6156         * tree-cfg.c (need_fake_edge_p): Compare gimple code with
6157         GIMPLE_ASM rather than ASM_EXPR.
6158         * tree-ssa-alias.c (is_escape_site): Compare gimple code with
6159         GIMPLE_RETURN rather than RETURN_EXPR.
6160         * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
6161         (evaluate_stmt): Likewise.
6162         * tree-vect-analyze.c (vect_analyze_operations): Change relevance
6163         to enum vect_relevant.
6164         (vect_mark_stmts_to_be_vectorized): Change assertion to not
6165         compare gimple codes with tree codes.
6166
6167 2008-09-04  Paul Brook  <paul@codesourcery.com>
6168
6169         * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
6170
6171 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
6172
6173         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
6174         pointer check lost in the recent no-unit-at-a-time patch.
6175
6176 2008-09-04  Jan Hubicka  <jh@suse.cz>
6177
6178         PR middle-end/37343
6179         * tree-switch-conversion.c (check_final_bb): Accept only IP
6180         invariants.
6181
6182 2008-09-04  Jan Hubicka  <jh@suse.cz>
6183
6184         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
6185         Break out from ...
6186         (vrp_evaluate_conditional_warnv_with_ops): ... this one.  Add
6187         using_ranges argument.
6188         (vrp_evaluate_conditional): Avoid bogus warning for type range.
6189         (vrp_visit_cond_stmt): Update call of
6190         vrp_evaluate_conditional_warnv_with_ops
6191
6192 2008-09-04  Jan Hubicka  <jh@suse.cz>
6193
6194         PR tree-optimization/37345
6195         PR tree-optimization/37358
6196         PR tree-optimization/37357
6197         * tree.c (build_function_type_skip_args): Build distinct type copy;
6198         set TYPE_CONTEXT.
6199         (build_function_decl_skip_args): Set type of new decl not orig decl;
6200         clear DECL_VINDEX for methods turned into functions.
6201
6202 2008-09-04  Nick Clifton  <nickc@redhat.com>
6203
6204         * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
6205         * configure: Regenerate.
6206         * config.in: Regenerate.
6207         * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
6208         alignment field, if it is supported.
6209
6210 2008-09-04  Kai Tietz  <kai.tietz@onevision.com>
6211
6212         * config/i386/t-mingw32 (SHLIB_LC): Change order of import
6213         libraries.
6214
6215 2008-09-03  David Edelsohn  <edelsohn@gnu.org>
6216
6217         * config/rs6000/rs6000.c (processor_target_table): Do not
6218         enable VMX for POWER6.
6219
6220 2008-09-03  Anton Blanchard  <anton@samba.org>
6221
6222         * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
6223         emit memory barrier before operation.
6224
6225 2008-09-03  John David Anglin  <dave.anglin@nrc.cnrc.gc.ca>
6226
6227         PR testsuite/37325
6228         * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
6229         default_elf_asm_output_external.
6230
6231 2008-09-03  Jeff Law  <law@redhat.com>
6232
6233         * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
6234
6235 2008-09-03  Richard Henderson  <rth@redhat.com>
6236
6237         * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
6238         memory barrier to below the test-and-set.
6239         (alpha_split_lock_test_and_set_12): Likewise.
6240
6241 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
6242
6243         PR rtl-opt/37243
6244
6245         * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
6246         all_allocnos.
6247
6248         * ira-color.c (print_loop_title): Use all_allocnos.
6249         (color_pass): Ditto.  Don't add border_allocnos.  Check that
6250         subloop allocno in the correspdoning bitmap all_allocnos.
6251
6252         * ira-emit.c (change_loop): Use all_allocnos.
6253
6254         * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node): Ditto.
6255         (ira_create_allocno): Set up all_allocnos bit for the created allocno.
6256         (create_cap_allocno): Remove setting mentioned_allocnos.
6257         (create_insn_allocnos): Ditto.
6258         (remove_unnecessary_allocnos): Use all_allocnos.
6259         (check_allocno_creation): Check that allocnos are in the
6260         corresponding bitmap all_allocnos.
6261
6262 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
6263
6264         PR rtl-opt/37243
6265
6266         * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
6267         (process_regs_for_copy): Process subregs.  Refine check when cost
6268         is taken into account in ira-costs.c.
6269         (process_reg_shuffles): Use REG_SUBREG_P.
6270         (add_insn_allocno_copies): Ditto.  Ignore modes.
6271
6272         * ira-color.c (conflict_allocno_vec): New.
6273         (COST_HOP_DIVISOR): New macro.
6274         (update_copy_costs_1): Use it.
6275         (update_conflict_hard_regno_costs): New function.
6276         (assign_hard_reg): Use it.
6277         (ira_color): Allocate and free conflict_allocno_vec.
6278
6279 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
6280
6281         PR rtl-opt/37296
6282
6283         * ira-int.h (ira_sort_insn_chain): Remove.
6284
6285         * ira.c (basic_block_order_nums, chain_insn_order,
6286         chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
6287         (ira): Don't call ira_sort_insn_chain.
6288
6289         * reload1.c (reload): Don't call ira_sort_insn_chain.
6290
6291 2008-09-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6292
6293         PR middle-end/37293
6294         * cgraphunit.c (update_call_expr): Remove eh regions from statements
6295         which become non throw.
6296         (cgraph_function_versioning): Also clear DECL_WEAK.  Call
6297         update_call_expr after updating the flags on the decl.
6298
6299 2008-09-03  Jan Hubicka  <jh@suse.cz>
6300
6301         PR tree-optimization/37315
6302         * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
6303         * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
6304         (cgraph_analyze_functions): Use node->analyzed
6305         (cgraph_mark_functions_to_output): Likewise.
6306         (cgraph_expand_function): All functions can be released after
6307         expanding.
6308         (cgraph_optimize): Use gimple_has_body_p.
6309         * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
6310         (cgraph_decide_inlining_incrementally): Likewise.
6311         (inline_transform): Inline transform.
6312         * tree-inline.c (initialize_cfun): Do now shallow copy structure;
6313         copy fields needed.
6314         (inlinable_function_p): Drop gimple_body check.
6315         (expand_call_inline): Use gimple_has_body_p.
6316         * gimple.c (gimple_has_body_p): New.
6317         * gimple.h (gimple_has_body_p): Add prototype.
6318         * tree-cfg.c (execute_build_cfg): Remove gimple_body.
6319         (dump_function_to_file): Use gimple_has_body_p check.
6320
6321 2008-09-03  Jakub Jelinek  <jakub@redhat.com>
6322
6323         PR c++/37346
6324         * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
6325         substatements.
6326         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
6327
6328 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
6329
6330         From Michael Frysinger  <michael.frysinger@analog.com>
6331         * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
6332         bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549.  Add 0.2
6333         for bf538.
6334
6335 2008-09-03  Hari Sandanagobalane  <hariharan@picochip.com>
6336
6337         Add picoChip port.
6338         * doc/extend.texi: Document picoChip builtin functions.
6339         * doc/invoke.texi: Document picoChip options.
6340         * doc/contrib.texi: Add picoChip contribution.
6341         * doc/md.texi: Document picoChip constraints.
6342         * config.gcc: Add picochip-*-*.
6343         * config/picochip/: Add new port.
6344
6345 2008-09-03  Richard Guenther  <rguenther@suse.de>
6346
6347         PR tree-optimization/37328
6348         * tree-sra.c (sra_build_assignment): Gimplify properly.
6349         (generate_copy_inout): Take the correct stmt as definition,
6350         remove bogus assert.
6351
6352 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
6353
6354         * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
6355         attributes.
6356
6357         From Michael Frysinger  <michael.frysinger@analog.com>
6358         * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
6359
6360 2008-09-03 Danny Smith  <dannysmith@usrs.sourceforge.net>
6361
6362         * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
6363         (__gthread_setspecific): Revert 2008-08-31 change to
6364         __GTHREAD_HIDE_W32API case.  Apply it to !__GTHREAD_HIDE_W32API case.
6365
6366 2008-09-02  Aldy Hernandez  <aldyh@redhat.com>
6367
6368         * diagnostic.c (error_at): New.
6369         * toplev.h (error_at): New prototype.
6370         * c-typeck.c (build_array_ref): Call error_at instead of error.
6371         Pass location to pedwarn.
6372
6373 2008-09-02  Adam Nemet  <anemet@caviumnetworks.com>
6374
6375         * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
6376
6377 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
6378
6379         * dwarf2out.c (tree_add_const_value_attribute): Only handle
6380         VAR_DECL and CONST_DECL.
6381
6382 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
6383             Jakub Jelinek  <jakub@redhat.com>
6384
6385         * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
6386         (setup_incoming_varargs_64): Assume cum != NULL. Set/check
6387         ix86_varargs_gpr_size and ix86_varargs_fpr_size.  Use
6388         ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
6389         Don't set ix86_save_varrargs_registers.
6390         (ix86_setup_incoming_varargs): Assume cum != NULL.
6391         (ix86_va_start): Check ix86_varargs_gpr_size and
6392         ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
6393         cfun->va_list_fpr_size, respectively.  Subtract 8*X86_64_REGPARM_MAX
6394         from frame pointer if ix86_varargs_gpr_size == 0.
6395         (ix86_compute_frame_layout): Updated.
6396         * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
6397         (ix86_varargs_gpr_size): Define.
6398         (ix86_varargs_fpr_size): Likewise.
6399         (machine_function): Remove save_varrargs_registers.
6400         Add varargs_gpr_size and varargs_fpr_size.
6401
6402 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
6403
6404         * config/alpha/alpha.c (va_list_skip_additions,
6405         alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
6406         (alpha_gimplify_va_arg): Call unshare_expr on second use of
6407         offset_field.
6408
6409         PR tree-optimization/36766
6410         * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
6411         for already removed basic blocks.
6412
6413         PR target/36332
6414         * real.c (real_maxval): Clear a lower bit to make real_maxval
6415         match get_max_float for IBM long double format.
6416
6417 2008-09-02  Andreas Schwab  <schwab@suse.de>
6418
6419         * configure.ac: Use m4_quote to quote the expansion of m4_do.
6420         * configure: Regenerate.
6421
6422 2008-09-02  Richard Sandiford  <rdsandiford@googlemail.com>
6423
6424         * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
6425         SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
6426         checking for a non-VOID CONSTANT_P.
6427
6428 2008-09-02  Jan Hubicka  <jh@suse.cz>
6429
6430         * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
6431         * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
6432         sdiv_pow2_cheap
6433
6434 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
6435
6436         * expr.c (emit_group_store): Don't assert stack temp mode size.
6437
6438 2008-09-02  Sebastian Pop  <sebastian.pop@amd.com>
6439             Tobias Grosser  <grosser@fim.uni-passau.de>
6440             Jan Sjodin  <jan.sjodin@amd.com>
6441             Harsha Jagasia  <harsha.jagasia@amd.com>
6442             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
6443             Konrad Trifunovic  <konrad.trifunovic@inria.fr>
6444             Adrien Eliche  <aeliche@isty.uvsq.fr>
6445
6446         Merge from graphite branch.
6447         * graphite.c: New.
6448         * graphite.h: New.
6449         * tree-loop-linear.c (perfect_loop_nest_depth): Export.
6450         * doc/invoke.texi (-floop-block, -floop-interchange,
6451         -floop-strip-mine): Document new flags.
6452         * tree-into-ssa.c (gimple_vec): Moved...
6453         * tree-loop-distribution.c (rdg_component): Moved...
6454         * cfgloopmanip.c: Include tree-flow.h.
6455         (update_dominators_in_loop): New.
6456         (create_empty_if_region_on_edge): New.
6457         (create_empty_loop_on_edge): New.
6458         (loopify): Use update_dominators_in_loop.
6459         * tree-pass.h (pass_graphite_transforms): Declared.
6460         * configure: Regenerate.
6461         * tree-phinodes.c (make_phi_node): Export.
6462         (add_phi_node_to_bb): New, split from create_phi_node.
6463         * tree-chrec.c (for_each_scev_op): New.
6464         * tree-chrec.h (for_each_scev_op): Declared.
6465         * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
6466         (remove_statement): Call get_phi_with_result.
6467         * config.in (HAVE_cloog): Undef.
6468         * gdbinit.in (pgg): New.
6469         * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
6470         * tree-ssa-loop.c (graphite_transforms): New.
6471         (gate_graphite_transforms): New.
6472         (pass_graphite_transforms): New.
6473         * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
6474         HAVE_cloog): Defined.
6475         * tree-vectorizer.c (rename_variables_in_bb): Export.
6476         * tree-data-ref.c (dr_may_alias_p): Export.
6477         (stmt_simple_memref_p): New.
6478         (find_data_references_in_stmt): Export.
6479         (find_data_references_in_loop): Export.
6480         (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
6481         (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
6482         (create_rdg_vertices): Export.
6483         (build_empty_rdg): New.
6484         (build_rdg): Call build_empty_rdg.  Free dependence_relations.
6485         * tree-data-ref.h (rdg_component): ... here.
6486         (scop_p): New.
6487         (struct data_reference): Add a field scop.
6488         (DR_SCOP): New.
6489         (find_data_references_in_loop): Declared.
6490         (find_data_references_in_stmt): Declared.
6491         (create_rdg_vertices): Declared.
6492         (dr_may_alias_p): Declared.
6493         (stmt_simple_memref_p): Declared.
6494         (struct rdg_edge): Add a field ddr_p relation.
6495         (build_empty_rdg): Declared.
6496         * lambda.h (lambda_matrix): Declare a VEC of.
6497         (find_induction_var_from_exit_cond): Declared.
6498         (lambda_vector_compare): New.
6499         * common.opt (fgraphite, floop-strip-mine,
6500         floop-interchange, floop-block): New flags.
6501         * lambda-code.c (find_induction_var_from_exit_cond): Export.
6502         * cfgloop.c (is_loop_exit): New.
6503         * cfgloop.h (is_loop_exit): Declared.
6504         (create_empty_if_region_on_edge): Declared.
6505         (create_empty_loop_on_edge): Declared.
6506         * tree-flow.h (add_phi_node_to_bb): Declared.
6507         (make_phi_node): Declared.
6508         (rename_variables_in_bb): Declared.
6509         (perfect_loop_nest_depth): Declared.
6510         (graphite_transform_loops): Declared.
6511         * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
6512         (graphite.o-warn): Add -Wno-error.
6513         (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
6514         (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
6515         (INCLUDES): Add PPLINC, CLOOGINC.
6516         (OBJS-common): Add graphite.o.
6517         (graphite.o): Add rule.
6518         * gimple.h (gimple_vec): ... here.
6519         * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
6520         * passes.c (init_optimization_passes): Schedule
6521         pass_graphite_transforms.
6522
6523 2008-09-02  Samuel Tardieu  <sam@rfc1149.net>
6524
6525         PR target/37283
6526         * opts.c (decode_options): Move processing of -fno-unit-at-a-time
6527         and -fno-toplevel-reorder after handle_options.
6528
6529 2008-09-02  Paul Brook  <paul@codesourcery.com>
6530
6531         * config/arm/arm.c (arm_tune_cortex_a9): Define.
6532         (arm_override_options): Set arm_tune_cortex_a9.
6533         (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
6534         (arm_issue_rate): Handle cortexa9.
6535         * config/arm/arm.h (arm_tune_cortex_a9): Declare.
6536         * config/arm/arm-cores.def: Add cortex-a9.
6537         * config/arm/arm-tune.md: Regenerate.
6538         * config/arm/arm.md: Include cortex-a9.md.
6539         (generic_sched, generic_vfp): Add cortexa9.
6540         * config/arm/cortex-a9.md: New file.
6541
6542 2008-09-02  Richard Guenther  <rguenther@suse.de>
6543
6544         PR tree-optimization/37327
6545         * tree-vrp.c (register_new_assert_for): Make sure to not have
6546         TREE_OVERFLOW set on the bound.
6547
6548 2008-09-02  Alexander Monakov  <amonakov@ispras.ru>
6549
6550         Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
6551
6552         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
6553         * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
6554         spec_info->mask.
6555
6556 2008-09-02  Victor Kaplansky  <victork@il.ibm.com>
6557
6558         * gcc/config/spu/spu.md (divdf3): Removed.
6559
6560 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
6561
6562         PR tree-optimization/37095
6563         * cgraph.c (cgraph_node): When creating new cgraph node after
6564         assembler_name_hash has been populated, record it in the hash
6565         table.
6566
6567 2008-09-01  Paul Brook  <paul@codesourcery.com>
6568
6569         * doc/invoke.texi: Document -mword-relocations.
6570         * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
6571         * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
6572         * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
6573         * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
6574         (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
6575         (arm_emit_movpair): New function.
6576         (arm_print_operand <c>): Handle sybolic addresses.
6577         * config/arm/arm.h (TARGET_USE_MOVT): Define.
6578         (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
6579         * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
6580         * config/arm/arm.opt: Add -mword-relocations.
6581         * config/arm/arm.md (movsi): Use arm_emit_movpair.
6582         (arm_movt, arm_movw): New.
6583
6584 2008-09-01  Paul Brook  <paul@codesourcery.com>
6585
6586         * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
6587         Allow Interworking on ARMv4 EABI based targets.
6588         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
6589         (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
6590
6591 2008-09-01  Paul Brook  <paul@codesourcery.com>
6592
6593         * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
6594         optimized LT0 test.  Remove optimization for GT.
6595
6596 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6597
6598         * pa64-hpux.h (LIB_SPEC): Link against librt when building static
6599         openmp applications.
6600         * pa-hpux11.h (LIB_SPEC): Likewise.
6601
6602         * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS
6603         is defined.
6604
6605 2008-09-01  Jan Hubicka  <jh@suse.cz>
6606
6607         * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
6608         present, use only counts; when guessed use only frequencies.
6609         (estimate_bb_frequencies): Use function_frequency.
6610         * profile.c (compute_branch_probabilities): Exit early when
6611         profile reading failed. Set profile_status.
6612         (branch_prob): Do not set profile_status.
6613
6614 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
6615
6616         * tree.c (protected_set_expr_location): New.
6617         * tree.h (protected_set_expr_location): New prototype.
6618         * c-tree.h (build_array_ref): Add argument.
6619         (parser_build_unary_op): Same.
6620         * c-typeck.c (build_indirect_ref): Handle new location argument.
6621         (build_array_ref): Same.
6622         (parser_build_unary_op): Same.
6623         * gimplify.c (gimplify_asm_expr): Set input_location before calling
6624         error.
6625         * c-omp.c (c_finish_omp_atomic): Pass location when calling
6626         build_indirect_ref.
6627         * c-common.c (finish_label_address_expr): Handle new location argument.
6628         * c-common.h (build_indirect_ref): Add argument.
6629         (finish_label_address_expr): Same.
6630         * c-parser.c (c_parser_unary_expression): Pass location to build
6631         functions.
6632         (c_parser_postfix_expression): Same.
6633
6634 2008-09-01  Paul Brook  <paul@codesourcery.com>
6635
6636         * config/arm/arm.md: Include cortex-r4f.md.
6637         (attr fpu): Update type list.
6638         (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
6639         fconstd, fcmps and fcmpd.
6640         (attr tune_cortexr4): Define.
6641         (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
6642         * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
6643         fconsts, fconstd, fcmps and fcmpd.  Use them in insn patterns.
6644         * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
6645         * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
6646         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
6647         cortex_a8_vfp_farith: Ditto.
6648         * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
6649         * config/arm/cortex-r4.md: Use tune_cortexr4.
6650         * config/arm/cortex-r4f.md: New file.
6651
6652 2008-09-01  Richard Guenther  <rguenther@suse.de>
6653
6654         PR tree-optimization/37305
6655         * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
6656         the result of constant conversions.
6657         (fold_gimple_assign): Likewise.
6658
6659 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
6660
6661         * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
6662         #ifdef ENABLE_CHECKING.
6663
6664 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
6665
6666         * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
6667         * sched-int.h (print_insn, print_pattern, print_value): Declare also
6668         when !INSN_SCHEDULING.
6669
6670 2008-09-01  Andreas Schwab  <schwab@suse.de>
6671
6672         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
6673
6674 2008-09-01  Paul Brook  <paul@codesourcery.com>
6675
6676         * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
6677
6678 2008-09-01  Jan Hubicka  <jh@suse.cz>
6679
6680         * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
6681
6682         * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
6683         Pass speed operand.
6684         * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
6685         * gimplify.c (gimplify_init_constructor): Add speed operand.
6686         * tree-sra.c (decide_block_copy): Likewise.
6687         * tree-inline.c (estimate_move_cost): Likewise.
6688         * config/alpha/alpha.h (MOVE_RATIO): Update.
6689         * config/frv/frv.c (MOVE_RATIO): Update.
6690         * config/spu/spu.h (MOVE_RATIO): Update.
6691         * config/sparc/sparc.h (MOVE_RATIO): Update.
6692         * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
6693         * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
6694         * config/cris/cris.h (MOVE_RATIO): Update.
6695         * config/mn10300/mn10300.h (MOVE_RATIO): Update.
6696         * config/arm/arm.h (MOVE_RATIO): Update.
6697         * config/pa/pa.md: Update uses of MOVE_RATIO
6698         * config/pa/pa.h (MOVE_RATIO): Update.
6699         * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
6700         CLEAR_RATIO, SET_RATIO): Update.
6701         * config/h8300/h8300.h (MOVE_RATIO): Update.
6702         * config/v850/v850.h (MOVE_RATIO): Update.
6703         * config/bfin/bfin.h (MOVE_RATIO): Update.
6704
6705 2008-08-31  Andrey Belevantsev  <abel@ispras.ru>
6706             Dmitry Melnik  <dm@ispras.ru>
6707             Dmitry Zhurikhin  <zhur@ispras.ru>
6708             Alexander Monakov  <amonakov@ispras.ru>
6709             Maxim Kuvyrkov  <maxim@codesourcery.com>
6710
6711         * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
6712         sel-sched-dump.c, sel-sched-ir.c: New files.
6713         * Makefile.in (OBJS-common): Add selective scheduling object files.
6714         (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
6715         (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
6716         (sched-vis.o): Add dependency on $(INSN_ATTR_H).
6717         * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
6718         * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
6719         (make_forwarder_block): Update loop latch if we have redirected
6720         the loop latch edge.
6721         * cfgloop.c (get_loop_body_in_custom_order): New function.
6722         * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
6723         (CP_FALLTHRU_PREHEADERS): Likewise.
6724         (get_loop_body_in_custom_order): Declare.
6725         * cfgloopmanip.c (has_preds_from_loop): New.
6726         (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
6727         Assert that the preheader edge will be fall thru when it is set.
6728         * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
6729         fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
6730         fsel-sched-substitution, fselective-scheduling): New flags.
6731         * cse.c (hash_rtx_cb): New.
6732         (hash_rtx): Use it.
6733         * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
6734         sel_sched_insn_cnt): New counters.
6735         * final.c (compute_alignments): Export.  Free dominance
6736         info after loop_optimizer_finalize.
6737         * genattr.c (main): Output maximal_insn_latency prototype.
6738         * genautomata.c (output_default_latencies): New.
6739         Factor its code from ...
6740         (output_internal_insn_latency_func): ... here.
6741         (output_internal_maximal_insn_latency_func): New.
6742         (output_maximal_insn_latency_func): New.
6743         * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
6744         (struct hard_reg_set_iterator): New.
6745         (hard_reg_set_iter_init, hard_reg_set_iter_set,
6746         hard_reg_set_iter_next): New functions.
6747         (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
6748         * lists.c (remove_free_INSN_LIST_node,
6749         remove_free_EXPR_LIST_node): New functions.
6750         * loop-init.c (loop_optimizer_init): When
6751         LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
6752         calling create_preheaders.
6753         (loop_optimizer_finalize): Do not verify flow info after reload.
6754         * recog.c (validate_replace_rtx_1): New parameter simplify.
6755         Default it to true.  Update all uses.  Factor out simplifying
6756         code to ...
6757         (simplify_while_replacing): ... this new function.
6758         (validate_replace_rtx_part,
6759         validate_replace_rtx_part_nosimplify): New.
6760         * recog.h (validate_replace_rtx_part,
6761         validate_replace_rtx_part_nosimplify): Declare.
6762         * rtl.c (rtx_equal_p_cb): New.
6763         (rtx_equal_p): Use it.
6764         * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
6765         (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
6766         debug_bb_n_slim, debug_bb_slim,    print_rtl_slim): Likewise.
6767         * vecprim.h: Add a vector type for unsigned int.
6768         * haifa-sched.c: Include vecprim.h and cfgloop.h.
6769         (issue_rate, sched_verbose_param, note_list, dfa_state_size,
6770         ready_try, cycle_issued_insns, spec_info): Make global.
6771         (readyp): Initialize.
6772         (dfa_lookahead): New global variable.
6773         (old_max_uid, old_last_basic_block): Remove.
6774         (h_i_d): Make it a vector.
6775         (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
6776         through HID macro.
6777         (after_recovery, adding_bb_to_current_region_p):
6778         New variables to handle correct insertion of the recovery code.
6779         (struct ready_list): Move declaration to sched-int.h.
6780         (rgn_n_insns): Removed.
6781         (rtx_vec_t): Move to sched-int.h.
6782         (find_insn_reg_weight): Remove.
6783         (find_insn_reg_weight1): Rename to find_insn_reg_weight.
6784         (haifa_init_h_i_d, haifa_finish_h_i_d):
6785         New functions to initialize / finalize haifa instruction data.
6786         (extend_h_i_d, init_h_i_d): Rewrite.
6787         (unlink_other_notes): Move logic to add_to_note_list.  Handle
6788         selective scheduler.
6789         (ready_lastpos, ready_element, ready_sort, reemit_notes,
6790         find_fallthru_edge): Make global, remove static prototypes.
6791         (max_issue): Make global.  Add privileged_n and state parameters.  Use
6792         them.
6793         (extend_global, extend_all): Removed.
6794         (init_before_recovery): Add new param.  Fix the handling of the case
6795         when we insert a recovery code before the EXIT which has a predecessor
6796         with a fallthrough edge to it.
6797         (create_recovery_block): Make global.  Rename to
6798         sched_create_recovery_block.  Update.
6799         (change_pattern): Rename to sched_change_pattern.  Make global.
6800         (speculate_insn): Rename to sched_speculate_insn.  Make global.
6801         Split haifa-specific functionality into ...
6802         (haifa_change_pattern): New static function.
6803         (sched_extend_bb): New static function.
6804         (sched_init_bbs): New function.
6805         (current_sched_info): Change type to struct haifa_sched_info.
6806         (insn_cost): Adjust for selective scheduling.
6807         (dep_cost_1): New function.  Move logic from ...
6808         (dep_cost): ... here.
6809         (dep_cost): Use dep_cost_1.
6810         (contributes_to_priority_p): Use sched_deps_info instead of
6811         current_sched_info.
6812         (priority): Adjust to work with selective scheduling.  Process the
6813         corner case when all dependencies don't contribute to priority.
6814         (rank_for_schedule): Use ds_weak instead of dep_weak.
6815         (advance_state): New function.  Move logic from ...
6816         (advance_one_cycle): ... here.
6817         (add_to_note_list, concat_note_lists): New functions.
6818         (rm_other_notes): Make static.  Adjust for selective scheduling.
6819         (remove_notes, restore_other_notes): New functions.
6820         (move_insn): Add two arguments.  Update assert.  Don't call
6821         reemit_notes.
6822         (choose_ready): Remove lookahead variable, use dfa_lookahead.
6823         Remove more_issue, max_points.  Move the code to initialize
6824         max_lookahead_tries to max_issue.
6825         (schedule_block): Remove rgn_n_insns1 parameter.  Don't allocate
6826         ready.  Adjust use of move_insn.  Call restore_other_notes.
6827         (luid): Remove.
6828         (sched_init, sched_finish): Move Haifa-specific initialization/
6829         finalization to ...
6830         (haifa_sched_init, haifa_sched_finish): ... respectively.
6831         New functions.
6832         (setup_sched_dump): New function.
6833         (haifa_init_only_bb): New static function.
6834         (haifa_speculate_insn): New static function.
6835         (try_ready): Use haifa_* instead of speculate_insn and change_pattern.
6836         (extend_ready, extend_all): Remove.
6837         (sched_extend_ready_list, sched_finish_ready_list): New functions.
6838         (create_check_block_twin, add_to_speculative_block): Use
6839         haifa_insns_init instead of extend_global.  Update to use new
6840         initialization functions.  Change parameter.  Factor out code from
6841         create_check_block_twin to ...
6842         (sched_create_recovery_edges) ... this new function.
6843         (add_block): Remove.
6844         (sched_scan_info): New.
6845         (extend_bb): Use sched_scan_info.
6846         (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
6847         static functions for walking through scheduling region.
6848         (sched_luids): New vector variable to replace uid_to_luid.
6849         (luids_extend_insn): New function.
6850         (sched_max_luid): New variable.
6851         (luids_init_insn): New function.
6852         (sched_init_luids, sched_finish_luids): New functions.
6853         (insn_luid): New debug function.
6854         (sched_extend_target): New function.
6855         (haifa_init_insn): New static function.
6856         (sched_init_only_bb): New hook.
6857         (sched_split_block): New hook.
6858         (sched_split_block_1): New function.
6859         (sched_create_empty_bb): New hook.
6860         (sched_create_empty_bb_1): New function.
6861         (common_sched_info, ready): New global variables.
6862         (current_sched_info_var): Remove.
6863         (move_block_after_check): Use common_sched_info.
6864         (haifa_luid_for_non_insn): New static function.
6865         (init_before_recovery): Use haifa_init_only_bb instead of add_block.
6866         (increase_insn_priority): New.
6867         * modulo-sched.c: (issue_rate): Remove static declaration.
6868         (sms_sched_info): Change type to haifa_sched_info.
6869         (sms_sched_deps_info, sms_common_sched_info): New variables.
6870         (setup_sched_infos): New.
6871         (sms_schedule): Initialize them.  Call haifa_sched_init/finish.
6872         Do not call regstat_free_calls_crossed.
6873         (sms_print_insn): Use const_rtx.
6874         * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
6875         PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
6876         PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
6877         PARAM_SCHED_MEM_TRUE_DEP_COST): New.
6878         * sched-deps.c (sched_deps_info): New.  Update all relevant uses of
6879         current_sched_info to use it.
6880         (enum reg_pending_barrier_mode): Move to sched-int.h.
6881         (h_d_i_d): New variable. Initialize to NULL.
6882         ({true, output, anti, spec, forward}_dependency_cache): Initialize
6883         to NULL.
6884         (estimate_dep_weak): Remove static declaration.
6885         (sched_has_condition_p): New function.  Adjust users of
6886         sched_get_condition to use it instead.
6887         (conditions_mutex_p): Add arguments indicating which conditions are
6888         reversed.  Use them.
6889         (sched_get_condition_with_rev): Rename from sched_get_condition.  Add
6890         argument to indicate whether returned condition is reversed.  Do not
6891         generate new rtx when condition should be reversed; indicate it by
6892         setting new argument instead.
6893         (add_dependence_list_and_free): Add deps parameter.
6894         Update all users.  Do not free dependence list when
6895         deps context is readonly.
6896         (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
6897         contexts.
6898         (remove_from_dependence_list, remove_from_both_dependence_lists): New.
6899         (remove_from_deps): New. Use the above functions.
6900         (cur_insn, can_start_lhs_rhs_p): New static variables.
6901         (add_or_update_back_dep_1): Initialize present_dep_type.
6902         (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
6903         haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
6904         haifa_note_dep): New functions implementing dependence hooks for
6905         the Haifa scheduler.
6906         (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
6907         note_dep): New functions.
6908         (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
6909         functions.
6910         (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
6911         (free_deps): Initialize deps->reg_last.
6912         (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
6913         sched_analyze_insn): Update to use dependency hooks infrastructure
6914         and readonly contexts.
6915         (deps_analyze_insn): New function.  Move part of logic from ...
6916         (sched_analyze): ... here.  Also move some logic to ...
6917         (deps_start_bb): ... here.  New function.
6918         (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
6919         sel_sched_p.
6920         (sched_deps_init): New function.  Move code from ...
6921         (init_dependency_caches): ... here.  Remove.
6922         (init_deps_data_vector): New.
6923         (sched_deps_finish): New function.  Move code from ...
6924         (free_dependency_caches): ... here.  Remove.
6925         (init_deps_global, finish_deps_global): Adjust for use with
6926         selective scheduling.
6927         (get_dep_weak): Move logic to ...
6928         (get_dep_weak_1): New function.
6929         (ds_merge): Move logic to ...
6930         (ds_merge_1): New static function.
6931         (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
6932         (ds_get_max_dep_weak): New function.
6933         * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
6934         (n_insns): Rename to rgn_n_insns.
6935         (debug_ebb_dependencies): New function.
6936         (init_ready_list): Use it.
6937         (begin_schedule_ready): Use sched_init_only_bb.
6938         (ebb_print_insn): Indicate when an insn starts a new cycle.
6939         (contributes_to_priority, compute_jump_reg_dependencies,
6940         add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
6941         (add_block1): Remove to ebb_add_block.
6942         (ebb_sched_deps_info, ebb_common_sched_info): New variables.
6943         (schedule_ebb): Initialize them.  Use remove_notes instead of
6944         rm_other_notes.  Use haifa_local_init/finish.
6945         (schedule_ebbs): Use haifa_sched_init/finish.
6946         * sched-int.h: Include vecprim.h, remove rtl.h.
6947         (struct ready_list): Delete declaration.
6948         (sched_verbose_param, enum sched_pass_id_t,
6949         bb_vec_t, insn_vec_t, rtx_vec_t): New.
6950         (struct sched_scan_info_def): New structure.
6951         (sched_scan_info, sched_scan, sched_init_bbs,
6952         sched_init_luids, sched_finish_luids, sched_extend_target,
6953         haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
6954         (struct common_sched_info_def): New.
6955         (common_sched_info, haifa_common_sched_info,
6956         sched_emulate_haifa_p): Declare.
6957         (sel_sched_p): New.
6958         (sched_luids): Declare.
6959         (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
6960         (sched_max_luid, insn_luid): Declare.
6961         (note_list, remove_notes, restore_other_notes, bb_note): Declare.
6962         (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
6963         print_insn, print_pattern, print_value, haifa_classify_insn,
6964         sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
6965         setup_sched_dump, sched_init, sched_finish,
6966         sel_insn_is_speculation_check): Export.
6967         (struct ready_list): Move from haifa-sched.c.
6968         (ready_try, ready, max_issue): Export.
6969         (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
6970         sched_init_only_bb, sched_split_block, sched_split_block_1,
6971         sched_create_empty_bb, sched_create_empty_bb_1,
6972         sched_create_recovery_block, sched_create_recovery_edges): Export.
6973         (enum reg_pending_barrier_mode): Export.
6974         (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
6975         (deps_t): New.
6976         (struct sched_info): Rename to haifa_sched_info.  Use const_rtx for
6977         print_insn field.  Move add_block and fix_recovery_cfg to
6978         common_sched_info_def.  Move compute_jump_reg_dependencies,
6979         use_cselib  ...
6980         (struct sched_deps_info_def): ... this new structure.
6981         (sched_deps_info): Declare.
6982         (struct spec_info_def): Remove weakness_cutoff, add
6983         data_weakness_cutoff and control_weakness_cutoff.
6984         (spec_info): Declare.
6985         (struct _haifa_deps_insn_data): Split from haifa_insn_data.  Add
6986         dep_count field.
6987         (struct haifa_insn_data): Rename to struct _haifa_insn_data.
6988         (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
6989         (current_sched_info): Change type to struct haifa_sched_info.
6990         (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
6991         (h_d_i_d): New variable.
6992         (HDID): New accessor macro.
6993         (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
6994         (HID): New accessor macro.  Rewrite h_i_d accessor macros through HID
6995         and HDID.
6996         (IS_SPECULATION_CHECK_P): Update for selective scheduler.
6997         (enum SCHED_FLAGS): Update for selective scheduler.
6998         (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
6999         (init_dependency_caches, free_dependency_caches): Delete declarations.
7000         (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
7001         estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
7002         ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
7003         sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
7004         haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
7005         ds_to_dt): Export.
7006         (rm_other_notes): Delete declaration.
7007         (schedule_block): Remove one argument.
7008         (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
7009         ready_element, ready_lastpos, sched_extend_ready_list,
7010         sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
7011         concat_note_lists): Export.
7012         (struct region): Move from sched-rgn.h.
7013         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
7014         RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
7015         BLOCK_TO_BB, CONTAINING_RGN): Export.
7016         (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
7017         (current_nr_blocks, current_blocks, target_bb): Likewise.
7018         (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
7019         sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
7020         sched_rgn_local_init, extend_regions,
7021         rgn_make_new_region_out_of_new_block, compute_priorities,
7022         debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
7023         extend_rgns, deps_join rgn_setup_common_sched_info,
7024         rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
7025         dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
7026         (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
7027         increase_insn_priority): Likewise.
7028         * sched-rgn.c: Include sel-sched.h.
7029         (ref_counts): New static variable.  Use it ...
7030         (INSN_REF_COUNT): ... here.  Rewrite and move closer to uses.
7031         (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
7032         (sched_is_disabled_for_current_region_p): Delete static declaration.
7033         (struct region): Move to sched-int.h.
7034         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
7035         ebb_head): Define and initialize.
7036         (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
7037         BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
7038         BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
7039         sched-int.h.
7040         (find_single_block_region): Add new argument to indicate that EBB
7041         regions should be constructed.
7042         (debug_live): Delete declaration.
7043         (current_nr_blocks, current_blocks, target_bb):
7044         Remove static qualifiers.
7045         (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
7046         declaration.
7047         (init_regions): Delete declaration.
7048         (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
7049         rgn_estimate_number_of_insns): New.
7050         (too_large): Use estimate_number_of_insns.
7051         (haifa_find_rgns): New. Move the code from ...
7052         (find_rgns): ... here.  Call either sel_find_rgns or haifa_find_rgns.
7053         (free_trg_info): New.
7054         (compute_trg_info): Allocate candidate tables here instead of ...
7055         (init_ready_list): ... here.
7056         (rgn_print_insn): Use const_rtx.
7057         (contributes_to_priority, extend_regions): Delete static declaration.
7058         (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
7059         (add_block1): Rename to rgn_add_block.
7060         (debug_rgn_dependencies): Delete static qualifier.
7061         (new_ready): Use sched_deps_info.  Simplify.
7062         (rgn_common_sched_info, rgn_const_sched_deps_info,
7063         rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
7064         New.
7065         (region_sched_info): Rename to rgn_const_sched_info.
7066         (deps_join): New, extracted from ...
7067         (propagate_deps): ... here.
7068         (compute_block_dependences, debug_dependencies): Update for selective
7069         scheduling.
7070         (free_rgn_deps, compute_priorities): New functions.
7071         (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
7072         sched_rgn_compute_dependencies): New functions.
7073         (schedule_region): Use them.
7074         (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
7075         rgn_setup_common_sched_info, rgn_setup_sched_infos):
7076         New functions.
7077         (schedule_insns): Call new functions that were split out.
7078         (rgn_make_new_region_out_of_new_block): New.
7079         (get_rgn_sched_max_insns_priority): New.
7080         (rest_of_handle_sched, rest_of_handle_sched2): Call selective
7081         scheduling when appropriate.
7082         * sched-vis.c: Include insn-attr.h.
7083         (print_value, print_pattern): Make global.
7084         (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
7085         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
7086         TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
7087         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
7088         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
7089         TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
7090         hooks.  Initialize them to 0.
7091         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
7092         * target.h (struct gcc_target): Add them.  Rename gen_check field to
7093         gen_spec_check.
7094         * flags.h (sel_sched_switch_set): Declare.
7095         * opts.c (sel_sched_switch_set): New variable.
7096         (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
7097         pipelining is disabled from command line.
7098         (common_handle_option): Record whether selective scheduling is
7099         requested from command line.
7100         * doc/invoke.texi: Document new flags and parameters.
7101         * doc/tm.texi: Document new target hooks.
7102         * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
7103         ia64_gen_check.
7104         (dfa_state_size): Do not declare locally.
7105         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
7106         * config/rs6000/rs6000.c (rs6000_init_sched_context,
7107         rs6000_alloc_sched_context, rs6000_set_sched_context,
7108         rs6000_free_sched_context): New functions.
7109         (struct _rs6000_sched_context): New.
7110         (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
7111         scheduling.
7112         (rs6000_sched_finish): Do not run for selective scheduling.
7113
7114 2008-08-31  Jan Hubicka  <jh@suse.cz>
7115
7116         * frv.c (frv_rtx_costs): Update forward declaration.
7117         * spu.c (spu_rtx_costs): Likewise.
7118         * pdp11.c: Include df.h
7119         (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
7120         * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
7121         (m68hc11_rtx_costs_1): Fix call of rtx_cost.
7122         * iq2000.c (iq2000_address_cost): Add speed argument.
7123         (iq2000_rtx_costs): Likewise.
7124         * mn10300.c (mn10300_address_cost_1): Remove speed argument;
7125         update call of mn10300_address_cost.
7126         * mcore.c: Include df.h
7127         (mcore_rtx_costs): Update prototype.
7128         * score3.c: Include df.h
7129         (score3_rtx_costs): Remove speed argument.
7130         * score7.c: Include df.h
7131         (score7_address_cost): Remove speed argument.
7132         * score-protos.h (score_address_cost): Update prototype.
7133         * score.c: Include df.h
7134         (score_rtx_costs): Update call of costs functions.
7135         * v850.c (v850_rtx_costs): Add bool argument.
7136
7137 2008-08-31  Hans-Peter Nilsson  <hp@axis.com>
7138
7139         * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
7140
7141 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
7142
7143         * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
7144         * config/i386/gthr-win32.c (__gthread_setspecific): Same.
7145
7146 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
7147
7148         * mkmap-flat.awk: Add option pe_dll.
7149         * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
7150         * config/i386/t-cygwin (SHLIB_LC): Add.
7151         * config/i386/t-mingw32 (SHLIB_LC): Add.
7152         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
7153         (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
7154         (LINK_SPEC): Support libgcc_s.
7155         (LIBGCC_SPEC): Support libgcc_s.
7156         (LIBGCC_SONAME): New.
7157
7158 2008-08-31  Jan Hubicka  <jh@suse.cz>
7159
7160         * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
7161         mistakely had old version of patch.
7162
7163         * ipa-cp.c (ipcp_need_original_clone_p): Remove.
7164         (ipcp_estimate_growth): New.
7165         (ipcp_insert_stage): Use ipcp_estimate_growth.
7166         * profile.c (branch_prob): When reading failed, do not consider
7167         profile as read.
7168
7169 2008-08-31  Jan Hubicka  <jh@suse.cz>
7170
7171         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
7172         loop is optimized for speed.
7173
7174 2008-08-31  Richard Guenther  <rguenther@suse.de>
7175
7176         PR middle-end/37289
7177         * fold-const.c (fold_binary): Retain conversions in folding
7178         ~A + 1 to -A.
7179
7180 2008-08-31  Jan Hubicka  <jh@suse.cz>
7181
7182         * postreload-gcse.c (eliminate_partially_redundant_loads):
7183         Use optimize_bb_for_size_p.
7184         * predict.c (maybe_hot_frequency_p): Make inline.
7185         (maybe_hot_count_p): Break out from ...
7186         (maybe_hot_bb_p): ... this one.
7187         (maybe_hot_edge_p): Simplify.
7188         * basic-block.h (probably_cold_bb_p): Remove.
7189
7190 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
7191
7192         PR target/37168
7193         * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
7194         prototype.
7195         * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
7196         * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
7197         Also split V4SFmode.
7198         * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
7199         vector float modes.
7200
7201 2008-08-31  Jan Hubicka  <jh@suse.cz>
7202
7203         * predict.c (PROB_VERY_LIKELY): Make small enough so things
7204         become cold.
7205         * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
7206
7207 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
7208
7209         PR debug/37287
7210         * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
7211         add source coords.
7212
7213         * dwarf2out.c (native_encode_initializer): Subtract min_index for
7214         non-range array index.  Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
7215
7216 2008-08-31  Jan Hubicka  <jh@suse.cz>
7217
7218         * sparc.h (BRANCH_COST): Fix macro definition.
7219         * avr.c (avr_operand_rtx_cost): Add speed argument.
7220         (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
7221
7222 2008-08-31  Richard Guenther  <rguenther@suse.de>
7223
7224         * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
7225         types instead of operands.  Re-instantiate verifying of
7226         binary expression operands.
7227
7228 2008-08-30  Jan Hubicka  <jh@suse.cz>
7229
7230         * fwprop.c (should_replace_address): Add speed attribute.
7231         (PR_OPTIMIZE_FOR_SPEED): New flag.
7232         (propagate_rtx_1): Use it.
7233         (propagate_rtx): Set it.
7234         (try_fwprop_subst): Update call of rtx_costs.
7235         (forward_propagate_and_simplify): LIkewise.
7236         * hooks.c (hook_int_rtx_bool_0): New
7237         (hook_bool_rtx_int_int_intp_false): Replace by ...
7238         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
7239         * hooks.h (hook_int_rtx_bool_0): New
7240         (hook_bool_rtx_int_int_intp_false): Replace by ...
7241         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
7242         * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
7243         (prepare_cmp_insn): UPdate call of rtx_cost.
7244         * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
7245         (reload_cse_simplify_operands): Update call of rtx_cost.
7246         (reload_cse_move2add): call of rtx_cost.
7247         * target.h (struct gcc_target): Update rtx_costs and address_costs.
7248         * rtlanal.c (rtx_cost): Add speed argument.
7249         (address_cost): Add speed argument
7250         (default_address_cost): Likewise.
7251         (insn_rtx_cost): Likewise.
7252         * cfgloopanal.c (seq_cost): Add speed argument.
7253         (target_reg_cost, target_spill_cost): Turn to array.
7254         (init_set_costs): Update for speed.
7255         (estimate_reg_pressure_cost): Add speed argument.
7256         * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
7257         * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
7258         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
7259         (seq_cost): Add speed argument.
7260         (computation_cost): Add speed arugment.
7261         (add_cost, multiply_by_const, get_address_cost): add speed argument.
7262         (force_expr_to_var_cost): Update for profile info.
7263         (force_var_cost): Likewise.
7264         (split_address_cost): Likewise.
7265         (ptr_difference_cost): Likewise.
7266         (difference_cost): Likewise.
7267         (get_computation_cost_at): Likewise.
7268         (determine_iv_cost): Likewise.
7269         (ivopts_global_cost_for_size): Likewise.
7270         (rewrite_use_address): Likewise.
7271         (tree_ssa_iv_optimize_loop): Initialize speed field.
7272         * cse.c (optimize_this_for_speed_p): New static var.
7273         (notreg_cost): Update call of rtx_cost.
7274         (cse_extended_basic_block): set optimize_this_for_speed_p.
7275         * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
7276         (noce_try_cmove_arith): Likewise.
7277         (noce_try_sign_mask): LIkewise.
7278         * expr.c (compress_float_constant): Update rtx_cost calls.
7279         * tree-ssa-address.c (most_expensive_mult_to_index): Add speed
7280         argument.
7281         (addr_to_parts): Likewise.
7282         (create_mem_ref): Likewise.
7283         * dse.c (find_shift_sequence): Add speed argument.
7284         (replace_read): Update call.
7285         * calls.c (precompute_register_parameters): Update call of rtx_cost.
7286         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
7287         * neg_cost, shift_cost, shiftadd_cost,
7288         shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
7289         mul_highpart_cost): Increase dimension.
7290         (init_expmed): Initialize for both size and speed.
7291         (expand_shift): Use profile.
7292         (synth_mult): Use profile.
7293         (choose_mult_variant): Use profile.
7294         (expand_mult): Use profile.
7295         (expand_mult_highpart_optab): Use profile.
7296         (expand_mult_highpart): Use profile.
7297         (expand_smod_pow2): Use profile.
7298         (expand_divmod): Use profile.
7299         * simplify-rtx.c (simplify_binary_operation_1): Update call of
7300         rtx_cost.
7301         * loop-invariant.c (create_new_invariant): Use profile.
7302         (gain_for_invariant): Add speed parameter.
7303         (best_gain_for_invariant): Likewise.
7304         (find_invariants_to_move): Likewise.
7305         (move_single_loop_invariants): Set it.
7306         * target-def.h (TARGET_RTX_COSTS): Use hook.
7307         * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
7308         (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
7309         * output.h (default_address_cost): Update prototype.
7310         * combine.c (optimize_this_for_speed_p): New static var.
7311         (combine_validate_cost): Update call of rtx_cost.
7312         (combine_instructions): Set optimize_this_for_speed_p.
7313         (expand_compound_operation): Update call of rtx_cost.
7314         (make_extraction):Update call of rtx_cost.
7315         (force_to_mode):Update call of rtx_cost.
7316         (distribute_and_simplify_rtx):Update call of rtx_cost.
7317         * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
7318         (estimate_reg_pressure_cost): Update prototype.
7319         * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
7320         * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
7321         Remove.
7322         * config/alpha/alpha.c (alpha_rtx_costs): Update.
7323         (alpha_rtx_costs): Update.
7324         * config/frv/frv.c (frv_rtx_costs): Update.
7325         * config/s390/s390.c (s390_rtx_costs): Update.
7326         * config/m32c/m32c.c (m32c_memory_move_cost): Update.
7327         (m32c_rtx_costs): Update.
7328         * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
7329         (spu_rtx_costs): Update.
7330         * config/sparc/sparc.c (sparc_rtx_costs): Update.
7331         * config/m32r/m32r.c (m32r_rtx_costs): Update.
7332         * config/i386/i386.c (:ix86_address_cost): Update.
7333         (ix86_rtx_costs): Update.
7334         * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
7335         * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
7336         * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
7337         * config/crx/crx.c (crx_address_cost): Update.
7338         * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
7339         * config/stormy16/stormy16.c
7340         (xstormy16_address_cost, xstormy16_rtx_costs): Update.
7341         * config/m68hc11/m68hc11.c
7342         (m68hc11_address_cost, m68hc11_rtx_costs): Update.
7343         * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
7344         * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
7345         Update.
7346         * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
7347         Update
7348         * config/ia64/ia64.c (ia64_rtx_costs): Update.
7349         * config/m68k/m68k.c (m68k_rtx_costs): Update.
7350         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
7351         * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
7352         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
7353         (mcore_rtx_costs): update.
7354         * config/score/score3.c (score3_rtx_costs): Update.
7355         * config/score/score7.c (score7_rtx_costs): Update.
7356         * config/score/score3.h (score3_rtx_costs):Update.
7357         * config/score/score7.h (score7_rtx_costs): Update.
7358         * config/score/score.c (score_rtx_costs): Update.
7359         * config/arm/arm.c (arm_address_cost): Update.
7360         (arm_rtx_costs_1): Update.
7361         (arm_rtx_costs_1): Update.
7362         (arm_size_rtx_costs): Update.
7363         (arm_size_rtx_costs): Update.
7364         (arm_size_rtx_costs): Update.
7365         (arm_xscale_rtx_costs): Update.
7366         (arm_thumb_address_cost): Update.
7367         * config/pa/pa.c (hppa_address_cost): Update.
7368         * config/mips/mips.c (mips_rtx_costs): Update.
7369         * config/vax/vax.c (vax_address_cost): Update.
7370         * config/h8300/h8300.c (h8300_shift_costs): Update.
7371         (h8300_rtx_costs): Update.
7372         * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
7373         (v850_rtx_costs): Update.
7374         * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
7375         * config/bfin/bfin.c
7376         (bfin_address_cost): Update.
7377         (bfin_rtx_costs): Update.
7378         * stmt.c (lshift_cheap_p): Update.
7379
7380 2008-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7381
7382         PR middle-end/36444
7383         * expmed.c (extract_bit_field_1): Check the mode size to make
7384         sure the vector modes have the same size.
7385
7386 2008-08-29  Michael Meissner  <gnu@the-meissners.org>
7387
7388         * dojump.c (top level): Include basic-block.h to declare
7389         optimize_insn_for_speed_p
7390
7391         * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
7392
7393         * opts.h (CL_SAVE): New option class for marking options that are
7394         target specific options usable in the target attribute.
7395         (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
7396
7397         * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
7398         can easily find the target specific options that are safe to use
7399         in the attribute or pragma.
7400
7401         * attribs.c (decl_attributes): Change #pragma GCC option to
7402         #pragma GCC target, and attribute((option(...))) to
7403         attribute((target(...))).
7404
7405         * doc/extend.texi (target attribute): Change from option
7406         attribute.  Delete push/pop/reset.
7407         (#pragma GCC target): Change from #pragma GCC option.  Delete
7408         push/pop/reset.
7409         (#pragma GCC push_options): Document new pragma.
7410         (#pragma GCC pop_options): Document new pragma.
7411         (#pragma GCC reset_options): Document new pragma.
7412
7413         * targhooks.c (default_target_option_valid_attribute_p): Add
7414         warning about port not supporting target attributes.
7415         (default_target_option_pragma_parse): New function, warn about
7416         #pragma GCC target not being supported.
7417
7418         * targhooks.h (default_target_option_pragma_parse): Add
7419         declaration.
7420
7421         * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
7422         TI_CURRENT_OPTION_PRAGMA.
7423         (current_target_pragma): Rename from current_option_pragma.
7424
7425         * target.h: (struct target_option): Delete booleans for changing
7426         the optimization level on hot/cold functions.  Change signature of
7427         pragma_parse hook to take a second tree.
7428
7429         * c-tree.h (c_builtin_function_ext_scope): Add declaration.
7430
7431         * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
7432         that the declaration is done at global scope.
7433
7434         * langhooks.c (add_builtin_function_common): Move most of the code
7435         from add_builtin_function here, calling the hook passed in.
7436         (add_builtin_function): Call add_builtin_function_common with
7437         standard builtin hook.
7438         (add_builtin_function_ext_scope): New function to add builtins to
7439         global scope.
7440
7441         * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
7442         hook.
7443         (add_builtin_function_ext_scope): Add declaration.
7444
7445         * c-pragma.c (handle_pragma_target): Rename from
7446         handle_pragma_option, #pragma GCC option is now #pragma GCC
7447         target.  Move warning about port not supporting target options to
7448         default pragma parse hook.  Remove push/pop/reset from this
7449         pragma.
7450         (handle_pragma_optimize): Remove push/pop/reset from this pragma.
7451         (option_stack): Delete static variable.
7452         (optimize_stack): Ditto.
7453         (optons_stack): New stack of saved target and optimization
7454         options.
7455         (handle_pragma_push_options): New function to handle pushing both
7456         target and optimization options.
7457         (handle_pragma_pop_options): New function to handle popping both
7458         target and optimization options.
7459         (handle_pragma_reset_options): New function to handle resetting
7460         both target and optimization options to their initial state.
7461         (init_pragma): Rename handle_pragma_option to
7462         handle_pragma_target.  Add support for push_options, pop_options,
7463         and reset_options pragmas.
7464
7465         * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
7466         default_target_option_pragma_parse.
7467         (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
7468         default_target_option_valid_attribute_p.
7469         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
7470         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
7471         (TARGET_OPTION_HOOKS): Delete the fields for whether to change
7472         optimization level on hot/cold functions.
7473
7474         * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
7475         if the caller and callee have different optimization levels.
7476
7477         * c-common.c (handle_target_attribute): Rename from
7478         handle_option_attribute, attribute((option(...))) is now
7479         attribute((target(...))).  Move warning if the port does not
7480         support target attributes to the default hook.
7481         (handle_hot_attribute): Delete code to change the optimization
7482         level of hot functions.
7483         (handle_cold_attribute): Ditto.
7484
7485         * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
7486         argument that is the binary tree options to use if there are no
7487         arguments.  Call ix86_valid_target_attribute_tree instead of
7488         ix86_valid_option_attribute_tree.
7489         (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
7490         (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
7491         ix86_pragma_option_parse.
7492
7493         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
7494         Rename from ix86_valid_option_attribute_tree.
7495
7496         * config/i386/i386.c (ix86_add_new_builtins): New function to add
7497         new builtins when the ISA changes.
7498         (ix86_valid_target_attribute_tree): Rename from
7499         ix86_valid_option_attribute_tree.  Change callers.  If the
7500         function specified optimization options, use those as the starting
7501         point before setting up the target attributes.  If the
7502         optimization options were changed in the course of setting the
7503         target attributes, record the new optimization options.
7504         (ix86_valid_target_attribute_tree_inner_p): Rename from
7505         ix86_valid_option_attribute_tree_inner_p.  Change callers.  Call
7506         ix86_add_new_builtins if the ISA changed.
7507         (ix86_valid_target_attribute_p): Rename from
7508         ix86_valid_option_attribute_p.  Change callers.
7509         (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
7510         __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
7511         as delayed builtin functions.
7512         (struct builtin_isa): New structure to record builtin functions
7513         that should be delayed until the ISA for that function is used.
7514         (ix86_builtins_isa): Change from int to struct to track builtin
7515         functions we want to declare at some point.
7516         (def_builtin): If the front end can delay defining the builtin
7517         functions, don't create builtins for ISAs not part of the default
7518         options.
7519         (def_builtin_const): Ditto.
7520         (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
7521         __builtin_ia32_pcmov_v2di to be different builtin functions.
7522         (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
7523         a structure instead of an int.
7524         (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
7525         ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
7526         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
7527         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
7528
7529         * config/ia64/ia64.h
7530         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
7531         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
7532
7533         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
7534         hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
7535         (LANG_HOOKS_INITIALIZER): Add
7536         LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
7537
7538 2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
7539
7540         PR target/37270
7541         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
7542         the reload address with the index register for SFmode
7543         access with a displacement.
7544
7545 2008-08-30  Jan Hubicka  <jh@suse.cz>
7546
7547         * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
7548         * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
7549         * dojump.c (do_jump): Likewise.
7550         * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
7551         (note-if_info): Add BRANCH_COST.
7552         (noce_try_store_flag_constants, noce_try_addcc,
7553         noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
7554         noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
7555         find_if_case_2): Use computed branch cost.
7556         * expr.h (BRANCH_COST): Update default.
7557         * predict.c (predictable_edge_p): New function.
7558         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
7559         Update BRANCH_COST call.
7560         * basic-block.h (predictable_edge_p): Declare.
7561         * config/alpha/alpha.h (BRANCH_COST): Update.
7562         * config/frv/frv.h (BRANCH_COST): Update.
7563         * config/s390/s390.h (BRANCH_COST): Update.
7564         * config/spu/spu.h (BRANCH_COST): Update.
7565         * config/sparc/sparc.h (BRANCH_COST): Update.
7566         * config/m32r/m32r.h (BRANCH_COST): Update.
7567         * config/i386/i386.h (BRANCH_COST): Update.
7568         * config/i386/i386.c (ix86_expand_int_movcc): Update use of
7569         BRANCH_COST.
7570         * config/sh/sh.h (BRANCH_COST): Update.
7571         * config/pdp11/pdp11.h (BRANCH_COST): Update.
7572         * config/avr/avr.h (BRANCH_COST): Update.
7573         * config/crx/crx.h (BRANCH_COST): Update.
7574         * config/xtensa/xtensa.h (BRANCH_COST): Update.
7575         * config/stormy16/stormy16.h (BRANCH_COST): Update.
7576         * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
7577         * config/iq2000/iq2000.h (BRANCH_COST): Update.
7578         * config/ia64/ia64.h (BRANCH_COST): Update.
7579         * config/rs6000/rs6000.h (BRANCH_COST): Update.
7580         * config/arc/arc.h (BRANCH_COST): Update.
7581         * config/score/score.h (BRANCH_COST): Update.
7582         * config/arm/arm.h (BRANCH_COST): Update.
7583         * config/pa/pa.h (BRANCH_COST): Update.
7584         * config/mips/mips.h (BRANCH_COST): Update.
7585         * config/vax/vax.h (BRANCH_COST): Update.
7586         * config/h8300/h8300.h (BRANCH_COST): Update.
7587         * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
7588         * doc/invoke.texi (predictable-branch-cost-outcome): Document.
7589         * doc/tm.texi (BRANCH_COST): Update.
7590
7591 2008-08-30  Samuel Tardieu  <sam@rfc1149.net>
7592
7593         PR target/37283
7594         * config/arm/arm.c (arm_optimization_options): Set
7595         flag_section_anchors to 2 instead of 1 to distinguish it from
7596         -fsection-anchors given explicitely on the command line.
7597
7598 2008-08-30  Richard Sandiford  <rdsandiford@googlemail.com>
7599
7600         * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
7601         final insn of a split.
7602
7603 2008-08-30  Jan Hubicka  <jh@suse.cz>
7604
7605         * postreload-gcse.c (gate_handle_gcse2): Disable for functions
7606         optimized for speed.
7607         * final.c (compute_alignments): Use optimize_bb_for_size_p.
7608         * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
7609         * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
7610         flag_gcse_after_reload_set): New static vars.
7611         (common_handle_option): Enable those flags for profile-use.
7612         (decode_options): Remove optimize_size flags that are handled
7613         on higher granuality.
7614         * tree-vectorizer.c (vectorize_loops): Use
7615         optimize_loop_nest_for_speed_p.
7616         * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
7617         * tree-predcom.c (tree_predictive_commoning): Use
7618         optimize_loop_for_speed_p.
7619         * varasm.c (assemble_start_function): Use
7620         optimize_function_for_speed_p.
7621         * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
7622         * predict.c (optimize_loop_for_speed_p): Fix walk.
7623
7624 2008-08-30  Jan Hubicka  <jh@suse.cz>
7625
7626         * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
7627         functions.
7628         (cgraph_decide_inlining_of_small_function): Use edge->count to detect
7629         profile presence locally.
7630
7631 2008-08-29  Joseph Myers  <joseph@codesourcery.com>
7632
7633         PR bootstrap/37086
7634         * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
7635         versions before 4.0.
7636
7637 2008-08-29  Jan Hubicka  <jh@suse.cz>
7638
7639         * tree-inline.c (insert_init_stmt): Insert sequence even when
7640         not in SSA form.
7641
7642 2008-08-29  Jeff Law  <law@redhat.com>
7643
7644         * mn10300.c (mn10300_secondary_reload_class): We need secondary
7645         reloads for AM33-2 if IN is a pseudo with an equivalent memory
7646         location and class is an FP register.
7647
7648 2008-08-29  Jan Hubicka  <jh@suse.cz>
7649
7650         * see.c (see_merge_one_def_extension): Silence used uninitialized
7651         warning.
7652         * matrix-reorg.c (check_allocation_function): Likewise.
7653         * config/i386/driver-i386.c (detect_caches_amd): Likewise.
7654
7655 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
7656
7657         PR c/37261
7658         * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
7659         compute new & and | in type rather than TREE_TYPE (arg0).
7660
7661         * dwarf2out.c (fortran_common): Update comment.
7662         (gen_variable_die): Swap com_die and var_die variables in Fortran
7663         COMMON block handling code.
7664
7665         * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
7666
7667         * dwarf2out.c (gen_const_die): New function.
7668         (size_of_die, value_format, output_die): Output larger
7669         dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
7670         (native_encode_initializer): New function.
7671         (tree_add_const_value_attribute): Call it.
7672         (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
7673
7674         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
7675         DECL_BY_REFERENCE decls don't pass TREE_READONLY and
7676         TREE_THIS_VOLATILE to add_type_attribute.
7677
7678         * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
7679         types.
7680         (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
7681         types.
7682
7683         * dwarf2out.c (loc_by_reference): New function.
7684         (add_location_or_const_value_attribute): Use it.
7685
7686         PR fortran/23057
7687         * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
7688         as DW_TAG_variable children of DW_TAG_common_block rather than
7689         DW_TAG_member children.  Put DW_AT_external to individual
7690         DW_TAG_variable DIEs, not to DW_TAG_common_block.
7691
7692         * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
7693         loc_descriptor_from_tree_1.
7694
7695         PR fortran/29635
7696         PR fortran/23057
7697         * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
7698         arguments to imported_module_or_decl.
7699         (debug_nothing_tree_tree): Removed.
7700         (debug_nothing_tree_tree_tree_bool): New prototype.
7701         * debug.c (do_nothing_debug_hooks): Adjust.
7702         (debug_nothing_tree_tree): Removed.
7703         (debug_nothing_tree_tree_tree_bool): New function.
7704         * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
7705         (gen_variable_die): Put all common vars for the
7706         same COMMON block under one DW_TAG_common_block.
7707         (declare_in_namespace): Return new context_die, for Fortran
7708         return the module DIE instead of adding extra declarations into
7709         the namespace.
7710         (gen_type_die_with_usage): Adjust declare_in_namespace caller.
7711         (gen_namespace_die): If is_fortran (), generate DW_TAG_module
7712         instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
7713         DW_AT_declaration.
7714         (dwarf2out_global_decl): Don't skip Fortran global vars.
7715         (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
7716         (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
7717         If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
7718         DW_TAG_imported_declaration as child of previous
7719         DW_TAG_imported_module.
7720         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
7721         * sdbout.c (sdb_debug_hooks): Likewise.
7722         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7723
7724 2008-08-29  Jan Hubicka  <jh@suse.cz>
7725
7726         * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
7727
7728         * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
7729         * ipa-cp.c (n_cloning_candidates): New static variable.
7730         (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
7731         (ipcp_print_all_lattices): Improve debug output.
7732         (ipcp_cloning_candidate_p): New function.
7733         (ipcp_initialize_node_lattices): Use it.
7734         (ipcp_init_stage): Do only analyzis here; prettier debug output.
7735         (ipcp_propagate_stage): Prettier debug output.
7736         (ipcp_iterate_stage): Initialize latices here; prettier debug output.
7737         (ipcp_print_all_structures): Remove.
7738         (ipcp_need_redirect_p): Test !n_cloning_candidates.
7739         (ipcp_insert_stage): Prettier debug output; call
7740         cgraph_remove_unreachable_nodes before propagating.
7741         (pass_ipa_cp): Schedule function removal pass.
7742         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
7743         debug output.
7744         (cgraph_maybe_hot_edge_p): Move to ...
7745         * predict.c (cgraph_maybe_hot_edge_p) ... here.
7746         * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
7747         (common_handle_option): Set them; enable ipa-cp when profiling.
7748         * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
7749         (ipa_print_all_jump_functions): Likewise.
7750         (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
7751         (ipa_print_node_params, ipa_print_all_params): New.
7752         * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
7753         ipa_print_all_param_flags): Remove.
7754         (ipa_print_node_params, ipa_print_all_params): New.
7755
7756 2008-08-29  Bob Wilson  <bob.wilson@acm.org>
7757
7758         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
7759         change from 2008-04-03.
7760         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
7761
7762 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
7763
7764         PR rtl-opt/37251
7765         * ira-color.c (push_allocnos_to_stack): Truncate
7766         removed_splay_allocno_vec.
7767
7768 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
7769
7770         PR rtl-opt/37243
7771         * ira-color (ira_fast_allocation): Don't assign hard registers to
7772         global allocnos.
7773
7774 2008-08-29  Jan Hubicka  <jh@suse.cz>
7775
7776         PR middle-end/37278
7777         * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
7778         for cold internal loops.
7779
7780 2008-08-29  Richard Guenther  <rguenther@suse.de>
7781
7782         * tree-ssa-structalias.c (create_variable_info_for): Do not
7783         create fields for heap vars or vars with a noalias state.
7784         For NO_ALIAS_ANYTHING variables add a self-constraint, not one
7785         from ESCAPED.
7786
7787 2008-08-29  Richard Guenther  <rguenther@suse.de>
7788
7789         * common.opt (ftree-store-ccp): Mark as preserved for
7790         backward compatibility.
7791         * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
7792         * tree-pass.h (pass_store_ccp): Remove.
7793         * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
7794         (first_vdef): Remove declaration.
7795         (get_value_loaded_by): Likewise.
7796         * tree-ssa-ccp.c (do_store_ccp): Remove.
7797         (get_default_value): Simplify as do_store_ccp is always false
7798         now.  Do not initialize mem_ref.
7799         (set_value_varying): Likewise.
7800         (canonicalize_float_value): Likewise.
7801         (set_lattice_value): Likewise.
7802         (likely_value): Likewise.
7803         (surely_varying_stmt_p): Likewise.
7804         (ccp_initialize): Likewise.
7805         (ccp_lattice_meet): Likewise.
7806         (ccp_visit_phi_node): Likewise.
7807         (ccp_fold): Likewise.
7808         (evaluate_stmt): Likewise.
7809         (visit_assignment): Likewise.
7810         (ccp_visit_stmt): Likewise.
7811         (execute_ssa_ccp): Fold into ...
7812         (do_ssa_ccp): ... this.
7813         (do_ssa_store_ccp): Remove.
7814         (gate_store_ccp): Likewise.
7815         (pass_store_ccp): Likewise.
7816         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
7817         initialize mem_ref.
7818         * tree-ssa-propagate.c (first_vdef): Remove.
7819         (get_value_loaded_by): Likewise.
7820         (replace_vuses_in): Likewise.
7821         (substitute_and_fold): Do not call replace_vuses_in.
7822         * opts.c (decode_options): Do not set flag_tree_store_ccp.
7823
7824 2008-08-29  Richard Guenther  <rguenther@suse.de>
7825
7826         PR middle-end/37236
7827         * tree-ssa-structalias.c (intra_create_variable_infos): Mark
7828         PARAM_NOALIAS tags with is_heapvar.
7829         * tree-ssa-operands.c (access_can_touch_variable): Offset
7830         based tests do not apply for heapvars.  Fix offset test.
7831
7832 2008-08-29  Jan Hubicka  <jh@suse.cz>
7833
7834         * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
7835         (-fipa-cp-clone): Enabled by default at -O3.
7836         * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
7837         make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
7838
7839 2008-08-29  Jan Hubicka  <jh@suse.cz>
7840
7841         * tree.c (build_function_type_skip_args,
7842         build_function_decl_skip_args): New functions.
7843         * tree.h (build_function_type_skip_args,
7844         build_function_decl_skip_args): Declare.
7845         * gimple.c (giple_copy_call_skip_args): New function.
7846         (giple_copy_call_skip_args): Declare.
7847
7848         * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
7849         * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
7850         (ipcp_node_modifiable_p): ... this one; use
7851         tree_versionable_function_p.
7852         (ipcp_create_replace_map): Improve debug output.
7853         (ipcp_need_redirect_p): Return false when not clonning.
7854         (ipcp_update_callgraph): Skip args.
7855         (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
7856         skip args.
7857         * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
7858         (save_inline_function_body): Update call of tree_function_versioning.
7859         * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
7860         * tree-inline.c (copy_arguments_for_versioning): Add skip_args
7861         argument.
7862         (tree_function_versioning): Likewise.
7863         * tree-inline.h (tree_function_versioning): Update prototype.
7864
7865 2008-08-29  Jan Hubicka  <jh@suse.cz>
7866
7867         * loop-unswitch.c (unswitch_single_loop): Use
7868         optimize_loop_for_speed_p.
7869         * tree-ssa-threadupdate.c (mark_threaded_blocks):
7870         Use optimize_function_for_size_p.
7871         * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
7872         * postreload-gcse.c (eliminate_partially_redundant_load):
7873         Use optimize_bb_for_size_p.
7874         * value-prof.c (gimple_divmod_fixed_value_transform,
7875         gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
7876         gimple_stringops_transform): Use optimize_bb_for_size_p.
7877         * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
7878         * final.c (compute_alignments): Use optimize_function_for_size_p.
7879         * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
7880         (fold_builtin_strcpy, fold_builtin_fputs): Use
7881         optimize_function_for_size_p.
7882         * fold-const.c (tree_swap_operands_p): Use
7883         optimize_function_for_size_p.
7884         * recog.c (relax_delay_slots): Likewise.
7885         * tree-ssa-math-opts.c (replace_reciprocal):
7886         Use optimize_bb_for_speed_p.
7887         (execute_cse_reciprocals): Use optimize_bb_for_size_p.
7888         * ipa-inline.c (cgraph_decide_recursive_inlining): Use
7889         optimize_function_for_size_p.
7890         (cgraph_decide_inlining_of_small_function): Use
7891         optimize_function_for_size_p.
7892         * global.c (find_reg): Use optimize_function_for_size_p.
7893         * opts.c (decode_options): Do not clear flag_tree_ch,
7894         flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
7895         flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
7896         work it out from profile.
7897         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
7898         optimize_loop_for_speed_p.
7899         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
7900         Constify argument.
7901         (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
7902         * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
7903         * tree-eh.c (decide_copy_try_finally): Use
7904         optimize_function_for_size_p.
7905         * local-alloc.c (block_alloc): Pass BB pointer.
7906         (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
7907         * gcse.c (gcse_main): Use optimize_function_for_size_p.
7908         * loop-unroll.c (decide_unrolling_and_peeling):
7909         Use optimize_loop_for_size_p.
7910         (decide_peel_completely): Likewise.
7911         * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
7912         optimize_loop_for_size_p.
7913         (vect_enhance_data_refs_alignment): Likewise.
7914         * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
7915         (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
7916         Update call.
7917         * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
7918         (try_crossjump_bb): Use optimize_bb_for_size_p.
7919         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
7920         optimize_loop_for_speed_p.
7921         * bb-reorder.c (find_traces_1_round): Likewise.
7922         (copy_bb): Use optimize_bb_for_speed_p.
7923         (duplicate_computed_gotos): Likewise.
7924         * basic-block.h (optimize_loop_nest_for_size_p,
7925         optimize_loop_nest_for_speed_p): New.
7926         * stmt.c (expand_case): Use optimize_insn_for_size_p.
7927
7928 2008-08-29  Tristan Gingold  <gingold@adacore.com>
7929
7930         * gcov.c (main): Call expandargv.
7931
7932 2008-08-29  Jan Hubicka  <jh@suse.cz>
7933
7934         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
7935         is not cold.
7936         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
7937         Constify arguments.
7938         (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
7939         * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
7940         Constify.
7941         (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
7942
7943 2008-08-29  Jan Hubicka  <jh@suse.cz>
7944
7945         * tree-pass.h (pass_strip_predict_hints): Declare.
7946         * predict.c (strip_builtin_expect): Rename to ...
7947         (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
7948         (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
7949         (tree_estimate_probability): Do not strip builtin_expect.
7950         (pass_strip_predict_hints): New pass.
7951         * tree-inline.c (expand_call_inline): When inlining cold function,
7952         predict it as unlikely.
7953         * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
7954
7955 2008-08-29  Richard Guenther  <rguenther@suse.de>
7956
7957         PR tree-optimization/37207
7958         * tree-vrp.c (extract_range_from_binary_expr): Also try
7959         to constant fold if only one of the operands is a constant.
7960
7961 2008-08-29  Nick Clifton  <nickc@redhat.com>
7962
7963         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
7964         the same way as SYMBOL_REFs.
7965
7966 2008-08-28  Bob Wilson  <bob.wilson@acm.org>
7967
7968         * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
7969
7970 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
7971
7972         * config/mips/mips.h (ISA_HAS_BBIT): New macro.
7973         * config/mips/mips.md (branch_likely): Remove const.  Fix
7974         comment formatting.
7975         (define_delay for type "branch"): Change to only apply for branch
7976         with likely variant.
7977         (define_delay for type "branch" and "branch_likely" no).  New delay
7978         definition.
7979         (equality_op): New code iterator.
7980         (bbv, bbinv): New code attributes.
7981         (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
7982         patterns.
7983
7984 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7985             Andrew Pinski  <pinskia@gcc.gnu.org>
7986
7987         PR 18050
7988         * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
7989
7990 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
7991
7992         * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
7993         rule that a symbolic constant must be defined and >= 0 for the
7994         corresponding facility to be present at compile-time.
7995         * gthr-posix.c: Likewise.
7996
7997 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
7998
7999         * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
8000         * config/mips/mips.md (D): New mode attribute.
8001         (mulsi3, muldi3): Merge it into ...
8002         (mul<mode>3): ... new template.  Use _mul3 ending for 3-op patterns.
8003         (muldi3_mul3): New pattern.
8004         (mulsi3_mult3): Rename to mulsi3_mul3.
8005
8006 2008-08-28  Jan Hubicka  <jh@suse.cz>
8007
8008         * expmed.c (store_bit_field_1): Be prepared for movstrict expander
8009         to fail.
8010         * predict.c (always_optimize_for_size_p): Rename to ...
8011         (optimize_function_for_size): ... this one; make extern.
8012         (optimize_function_for_speed_p): New.
8013         (optimize_bb_for_size_p, optimize_bb_for_size_p,
8014         optimize_edge_for_size_p,optimize_edge_for_size_p,
8015         optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
8016         * basic-block.h (optimize_function_for_size_p,
8017         optimize_function_for_speed_p): Declare.
8018         * i386.md (optimize_size checks): Replace them by appropriate
8019         predicate.
8020         (standard_80387_constant_p, ix86_compute_frame_layout,
8021         ix86_expand_epilogue, ix86_decompose_address,
8022         print_operand, emit_i387_cw_initialization,
8023         inline_memory_move_cost, ix86_pad_returns,
8024         ix86_reorg): Replace optimize_size checks.
8025
8026 2008-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8027
8028         * rtl.h (simplify_subreg_regno): Declare.
8029         * rtlanal.c (simplify_subreg_regno): New function, split out from...
8030         * simplify-rtx.c (simplify_subreg): ...here.
8031         * reload.c (find_reloads): Use simplify_subreg_regno instead of
8032         subreg_offset_representable_p.
8033
8034 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8035
8036         PR c/30949
8037         * c-typeck.c (convert_for_assignment): Give a note describing what
8038         was passed and what was expected.
8039
8040 2008-08-28  Joey Ye  <joey.ye@intel.com>
8041
8042         * doc/extend.texi: Document AVX built-in functions.
8043         * doc/invoke.texi: Document -mavx.
8044
8045 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
8046             Joey Ye  <joey.ye@intel.com>
8047             Xuepeng Guo  <xuepeng.guo@intel.com>
8048
8049         * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
8050
8051         * config/i386/cpuid.h (bit_FMA): New.
8052         (bit_XSAVE): Likewise.
8053         (bit_OSXSAVE): Likewise.
8054         (bit_AVX): Likewise.
8055
8056         * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
8057         define.  Use ASM_OUTPUT_AVX_PREFIX.
8058
8059         * config/i386/gmmintrin.h: New.
8060
8061         * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
8062         (OPTION_MASK_ISA_AVX_SET): New.
8063         (OPTION_MASK_ISA_FMA_SET): Likewise.
8064         (OPTION_MASK_ISA_AVX_UNSET): Likewise.
8065         (OPTION_MASK_ISA_FMA_SET): Likewise.
8066         (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
8067         (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
8068         (pta_flags): Add PTA_AVX and PTA_FMA.
8069         (override_options): Handle PTA_AVX and PTA_FMA.
8070         (init_cumulative_args): Handle warn_avx.
8071         (classify_argument): Return 0 for COImode and OImode.  Return
8072         1 and X86_64_AVX_CLASS for 256bit vector types.
8073         (examine_argument): Handle X86_64_AVX_CLASS.
8074         (construct_container): Likewise.
8075         (function_arg_advance_32): Pass OImode and 256bit vector types
8076         in AVX register.
8077         (function_arg_advance_64): Take a new argument to indicate if a
8078         parameter is named.  Handle 256bit vector types.  Return
8079         immediately for unnamed 256bit vector mode parameters.
8080         (function_arg_advance): Updated.
8081         (function_arg_32): Add comments for TImode.  Handle OImode
8082         and 256bit vector types.
8083         (function_arg_64): Take a new argument to indicate if a
8084         parameter is named.  Handle 256bit vector types.  Return NULL
8085         for unnamed 256bit vector mode parameters.
8086         (function_arg): Updated.
8087         (setup_incoming_varargs_64): Support
8088         AVX encoding for *sse_prologue_save_insn.
8089         (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
8090         (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
8091         enabled.  For all 1s in 256bit vector modes, return 3 if AVX is
8092         enabled, otherwise return -3.
8093         (standard_sse_constant_opcode): Handle AVX and 256bit vector
8094         modes.
8095         (print_reg): Support AVX registers.  Handle 'x' and 't'.
8096         Handle 'd' to duplicate the operand.
8097         (print_operand): Likewise.  Also support AVX vector compare
8098         instructions.
8099         (output_387_binary_op): Support AVX.
8100         (output_fp_compare): Likewise.
8101         (ix86_expand_vector_move_misalign): Likewise.
8102         (ix86_attr_length_vex_default): New.
8103         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
8104         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
8105         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
8106         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
8107         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
8108         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
8109         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
8110         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
8111         IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
8112         IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
8113         IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
8114         IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
8115         IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
8116         IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
8117         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
8118         IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
8119         IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
8120         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
8121         IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
8122         IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
8123         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
8124         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
8125         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
8126         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
8127         IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
8128         IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
8129         IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
8130         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
8131         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
8132         IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
8133         IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
8134         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
8135         IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
8136         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
8137         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
8138         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
8139         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
8140         IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
8141         IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
8142         IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
8143         IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
8144         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
8145         IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
8146         IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
8147         IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
8148         IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
8149         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
8150         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
8151         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
8152         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
8153         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
8154         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
8155         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
8156         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
8157         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
8158         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
8159         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
8160         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
8161         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
8162         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
8163         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
8164         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
8165         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
8166         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
8167         and IX86_BUILTIN_MOVMSKPS256,
8168         (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
8169         V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
8170         V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
8171         V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
8172         V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
8173         VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
8174         VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
8175         VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
8176         (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
8177         INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
8178         INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
8179         INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
8180         V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
8181         V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
8182         V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
8183         V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
8184         V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
8185         V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
8186         V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
8187         V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
8188         V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
8189         V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
8190         V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
8191         V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
8192         V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
8193         V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
8194         (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
8195         IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
8196         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
8197         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
8198         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
8199         IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
8200         IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
8201         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
8202         IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
8203         IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
8204         IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
8205         IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
8206         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
8207         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
8208         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
8209         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
8210         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
8211         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
8212         IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
8213         IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
8214         IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
8215         IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
8216         IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
8217         IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
8218         IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
8219         IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
8220         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
8221         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
8222         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
8223         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
8224         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
8225         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
8226         IX86_BUILTIN_CMPPS,
8227         IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
8228         IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
8229         IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
8230         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
8231         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
8232         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
8233         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
8234         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
8235         IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
8236         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
8237         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
8238         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
8239         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
8240         IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
8241         IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
8242         IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
8243         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
8244         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
8245         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
8246         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
8247         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
8248         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
8249         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
8250         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
8251         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
8252         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
8253         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
8254         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
8255         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
8256         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
8257         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
8258         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
8259         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
8260         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
8261         IX86_BUILTIN_MOVMSKPS256.
8262         (ix86_init_mmx_sse_builtins): Support AVX builtins.
8263         (ix86_expand_args_builtin): Likewise.
8264         (ix86_expand_special_args_builtin): Likewise.
8265         (ix86_hard_regno_mode_ok): Handle AVX modes.
8266         (ix86_expand_vector_init_duplicate): Likewise.
8267         (ix86_expand_vector_init_one_nonzero): Likewise.
8268         (ix86_expand_vector_init_one_var): Likewise.
8269         (ix86_expand_vector_init_concat): Likewise.
8270         (ix86_expand_vector_init_general): Likewise.
8271         (ix86_expand_vector_set): Likewise.
8272         (ix86_vector_mode_supported_p): Likewise.
8273         (x86_extended_reg_mentioned_p): Check INSN_P before using
8274         PATTERN.
8275
8276         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8277         OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
8278
8279         * config/i386/i386.h (TARGET_AVX): New.
8280         (TARGET_FMA): Likewise.
8281         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
8282         (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
8283         (VALID_AVX256_REG_MODE): New.
8284         (AVX256_VEC_FLOAT_MODE_P): Likewise.
8285         (AVX_FLOAT_MODE_P): Likewise.
8286         (AVX128_VEC_FLOAT_MODE_P): Likewise.
8287         (AVX256_VEC_FLOAT_MODE_P): Likewise.
8288         (AVX_VEC_FLOAT_MODE_P): Likewise.
8289         (ASM_OUTPUT_AVX_PREFIX): Likewise.
8290         (ASM_OUTPUT_OPCODE): Likewise.
8291         (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
8292         support.
8293         (SSE_REG_MODE_P): Allow 256bit vector modes.
8294         (ix86_args): Add a warn_avx field.
8295
8296         * config/i386/i386.md (UNSPEC_PCMP): New.
8297         (UNSPEC_VPERMIL): Likewise.
8298         (UNSPEC_VPERMIL2): Likewise.
8299         (UNSPEC_VPERMIL2F128): Likewise.
8300         (UNSPEC_MASKLOAD): Likewise.
8301         (UNSPEC_MASKSTORE): Likewise.
8302         (UNSPEC_CAST): Likewise.
8303         (UNSPEC_VTESTP): Likewise.
8304         (UNSPECV_VZEROALL): Likewise.
8305         (UNSPECV_VZEROUPPER): Likewise.
8306         (XMM0_REG): Likewise.
8307         (XMM1_REG): Likewise.
8308         (XMM2_REG): Likewise.
8309         (XMM3_REG): Likewise.
8310         (XMM4_REG): Likewise.
8311         (XMM5_REG): Likewise.
8312         (XMM6_REG): Likewise.
8313         (XMM8_REG): Likewise.
8314         (XMM9_REG): Likewise.
8315         (XMM10_REG): Likewise.
8316         (XMM11_REG): Likewise.
8317         (XMM12_REG): Likewise.
8318         (XMM13_REG): Likewise.
8319         (XMM14_REG): Likewise.
8320         (XMM15_REG): Likewise.
8321         (prefix): Likewise.
8322         (prefix_vex_imm8): Likewise.
8323         (prefix_vex_w): Likewise.
8324         (length_vex): Likewise.
8325         (maxmin): Likewise.
8326         (movoi): Likewise.
8327         (*avx_ashlti3): Likewise.
8328         (*avx_lshrti3): Likewise.
8329         (*avx_setcc<mode>): Likewise.
8330         (*fop_<mode>_comm_mixed_avx): Likewise.
8331         (*fop_<mode>_comm_avx): Likewise.
8332         (*fop_<mode>_1_mixed_avx): Likewise.
8333         (*fop_<mode>_1_avx): Likewise.
8334         (*avx_<code><mode>3): Likewise.
8335         (*avx_ieee_smin<mode>3): Likewise.
8336         (*avx_ieee_smax<mode>3): Likewise.
8337         (mode): Add OI, V8SF and V4DF.
8338         (length): Support VEX prefix.
8339         (*cmpfp_i_mixed): Set prefix attribute.
8340         (*cmpfp_i_sse): Likewise.
8341         (*cmpfp_iu_mixed): Likewise.
8342         (*cmpfp_iu_sse): Likewise.
8343         (*movsi_1): Support AVX.
8344         (*movdi_2): Likewise.
8345         (*movdi_1_rex64): Likewise.
8346         (*movti_internal): Likewise.
8347         (*movti_rex64): Likewise.
8348         (*movsf_1): Likewise.
8349         (*movdf_nointeger): Likewise.
8350         (*movdf_integer_rex64): Likewise.
8351         (*movtf_internal): Likewise.
8352         (zero_extendsidi2_32): Likewise.
8353         (zero_extendsidi2_rex64): Likewise.
8354         (*extendsfdf2_mixed): Likewise.
8355         (*extendsfdf2_sse): Likewise.
8356         (*truncdfsf_fast_mixed): Likewise.
8357         (*truncdfsf_fast_sse): Likewise.
8358         (*truncdfsf_mixed): Likewise.
8359         (fix_trunc<mode>di_sse): Likewise.
8360         (fix_trunc<mode>si_sse): Likewise.
8361         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
8362         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
8363         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
8364         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
8365         (*rcpsf2_sse): Likewise.
8366         (*rsqrtsf2_sse): Likewise.
8367         (*sqrt<mode>2_sse): Likewise.
8368         (sse4_1_round<mode>2): Likewise.
8369         (*sse_prologue_save_insn): Disallow REX prefix for AVX.
8370         Support AVX.  Set length attribute properly for AVX.
8371
8372         * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
8373         (VECTOR_MODES (FLOAT, 32)): Likewise.
8374         (VECTOR_MODE (INT, DI, 8)): Likewise.
8375         (VECTOR_MODE (INT, HI, 32)): Likewise.
8376         (VECTOR_MODE (INT, QI, 64)): Likewise.
8377         (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
8378         (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
8379         (VECTOR_MODE (INT, DI, 4)): Removed.
8380         (VECTOR_MODE (INT, SI, 8)): Likewise.
8381         (VECTOR_MODE (INT, HI, 16)): Likewise.
8382         (VECTOR_MODE (INT, QI, 32)): Likewise.
8383         (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
8384         (INT_MODE (OI, 32)): Likewise.
8385
8386         * config/i386/i386.opt (mavx): New.
8387         (mfma): Likewise.
8388
8389         * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
8390
8391         * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
8392         (*mov<mode>_internal_avx): New.
8393         (*movv2sf_internal_rex64_avx): Likewise.
8394         (*movv2sf_internal_avx): Likewise.
8395
8396         * config/i386/predicates.md (const_4_to_5_operand): New.
8397         (const_6_to_7_operand): Likewise.
8398         (const_8_to_11_operand): Likewise.
8399         (const_12_to_15_operand): Likewise.
8400         (avx_comparison_float_operator): Likewise.
8401
8402         * config/i386/sse.md (AVX256MODEI): New.
8403         (AVX256MODE): Likewise.
8404         (AVXMODEQI): Likewise.
8405         (AVXMODE): Likewise.
8406         (AVX256MODEF2P): Likewise.
8407         (AVX256MODE2P): Likewise.
8408         (AVX256MODE4P): Likewise.
8409         (AVX256MODE8P): Likewise.
8410         (AVXMODEF2P): Likewise.
8411         (AVXMODEF4P): Likewise.
8412         (AVXMODEDCVTDQ2PS): Likewise.
8413         (AVXMODEDCVTPS2DQ): Likewise.
8414         (avxvecmode): Likewise.
8415         (avxvecpsmode): Likewise.
8416         (avxhalfvecmode): Likewise.
8417         (avxscalarmode): Likewise.
8418         (avxcvtvecmode): Likewise.
8419         (avxpermvecmode): Likewise.
8420         (avxmodesuffixf2c): Likewise.
8421         (avxmodesuffixp): Likewise.
8422         (avxmodesuffixs): Likewise.
8423         (avxmodesuffix): Likewise.
8424         (vpermilbits): Likewise.
8425         (pinsrbits): Likewise.
8426         (mov<mode>): Likewise.
8427         (*mov<mode>_internal): Likewise.
8428         (push<mode>1): Likewise.
8429         (movmisalign<mode>): Likewise.
8430         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
8431         (avx_movdqu<avxmodesuffix>): Likewise.
8432         (avx_lddqu<avxmodesuffix>): Likewise.
8433         (<plusminus_insn><mode>3): Likewise.
8434         (*avx_<plusminus_insn><mode>3): Likewise.
8435         (*avx_vm<plusminus_insn><mode>3): Likewise.
8436         (mul<mode>3): Likewise.
8437         (*avx_mul<mode>3): Likewise.
8438         (*avx_vmmul<mode>3): Likewise.
8439         (divv8sf3): Likewise.
8440         (divv4df3): Likewise.
8441         (avx_div<mode>3): Likewise.
8442         (*avx_div<mode>3): Likewise.
8443         (*avx_vmdiv<mode>3): Likewise.
8444         (avx_rcpv8sf2): Likewise.
8445         (*avx_vmrcpv4sf2): Likewise.
8446         (sqrtv8sf2): Likewise.
8447         (avx_sqrtv8sf2): Likewise.
8448         (*avx_vmsqrt<mode>2): Likewise.
8449         (rsqrtv8sf2): Likewise.
8450         (avx_rsqrtv8sf2): Likewise.
8451         (*avx_vmrsqrtv4sf2): Likewise.
8452         (<code><mode>3): Likewise.
8453         (*avx_<code><mode>3_finite): Likewise.
8454         (*avx_<code><mode>3): Likewise.
8455         (*avx_vm<code><mode>3): Likewise.
8456         (*avx_ieee_smin<mode>3): Likewise.
8457         (*avx_ieee_smax<mode>3): Likewise.
8458         (avx_addsubv8sf3): Likewise.
8459         (avx_addsubv4df3): Likewise.
8460         (*avx_addsubv4sf3): Likewise.
8461         (*avx_addsubv2df3): Likewise.
8462         (avx_h<plusminus_insn>v4df3): Likewise.
8463         (avx_h<plusminus_insn>v8sf3): Likewise.
8464         (*avx_h<plusminus_insn>v4sf3): Likewise.
8465         (*avx_h<plusminus_insn>v2df3): Likewise.
8466         (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
8467         (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
8468         (*avx_maskcmp<mode>3): Likewise.
8469         (avx_nand<mode>3): Likewise.
8470         (*avx_<code><mode>3): Likewise.
8471         (*avx_nand<mode>3): Likewise.
8472         (*avx_<code><mode>3): Likewise.
8473         (*avx_cvtsi2ss): Likewise.
8474         (*avx_cvtsi2ssq): Likewise.
8475         (*avx_cvtsi2sd): Likewise.
8476         (*avx_cvtsi2sdq): Likewise.
8477         (*avx_cvtsd2ss): Likewise.
8478         (avx_cvtss2sd): Likewise.
8479         (avx_cvtdq2ps<avxmodesuffix>): Likewise.
8480         (avx_cvtps2dq<avxmodesuffix>): Likewise.
8481         (avx_cvttps2dq<avxmodesuffix>): Likewise.
8482         (*avx_cvtsi2sd): Likewise.
8483         (*avx_cvtsi2sdq): Likewise.
8484         (avx_cvtdq2pd256): Likewise.
8485         (avx_cvtpd2dq256): Likewise.
8486         (avx_cvttpd2dq256): Likewise.
8487         (*avx_cvtsd2ss): Likewise.
8488         (*avx_cvtss2sd): Likewise.
8489         (avx_cvtpd2ps256): Likewise.
8490         (avx_cvtps2pd256): Likewise.
8491         (*avx_movhlps): Likewise.
8492         (*avx_movlhps): Likewise.
8493         (avx_unpckhps256): Likewise.
8494         (*avx_unpckhps): Likewise.
8495         (avx_unpcklps256): Likewise.
8496         (*avx_unpcklps): Likewise.
8497         (avx_movshdup256): Likewise.
8498         (avx_movsldup256): Likewise.
8499         (avx_shufps256): Likewise.
8500         (avx_shufps256_1): Likewise.
8501         (*avx_shufps_<mode>): Likewise.
8502         (*avx_loadhps): Likewise.
8503         (*avx_storelps): Likewise.
8504         (*avx_loadlps): Likewise.
8505         (*avx_movss): Likewise.
8506         (*vec_dupv4sf_avx): Likewise.
8507         (*vec_concatv2sf_avx): Likewise.
8508         (*vec_concatv4sf_avx): Likewise.
8509         (*vec_setv4sf_0_avx): Likewise.
8510         (*vec_setv4sf_avx): Likewise.
8511         (*avx_insertps): Likewise.
8512         (avx_vextractf128<mode>): Likewise.
8513         (vec_extract_lo_<mode>): Likewise.
8514         (vec_extract_hi_<mode>): Likewise.
8515         (vec_extract_lo_<mode>): Likewise.
8516         (vec_extract_hi_<mode>): Likewise.
8517         (vec_extract_lo_v16hi): Likewise.
8518         (vec_extract_hi_v16hi): Likewise.
8519         (vec_extract_lo_v32qi): Likewise.
8520         (vec_extract_hi_v32qi): Likewise.
8521         (avx_unpckhpd256): Likewise.
8522         (*avx_unpckhpd): Likewise.
8523         (avx_movddup256): Likewise.
8524         (*avx_movddup): Likewise.
8525         (avx_unpcklpd256): Likewise.
8526         (*avx_unpcklpd): Likewise.
8527         (avx_shufpd256): Likewise.
8528         (avx_shufpd256_1): Likewise.
8529         (*avx_punpckhqdq): Likewise.
8530         (*avx_punpcklqdq): Likewise.
8531         (*avx_shufpd_<mode>): Likewise.
8532         (*avx_storehpd): Likewise.
8533         (*avx_loadhpd): Likewise.
8534         (*avx_loadlpd): Likewise.
8535         (*avx_movsd): Likewise.
8536         (*vec_concatv2df_avx): Likewise.
8537         (*avx_<plusminus_insn><mode>3): Likewise.
8538         (*avx_<plusminus_insn><mode>3): Likewise.
8539         (*avx_mulv8hi3): Likewise.
8540         (*avxv8hi3_highpart): Likewise.
8541         (*avx_umulv8hi3_highpart): Likewise.
8542         (*avx_umulv2siv2di3): Likewise.
8543         (*avx_mulv2siv2di3): Likewise.
8544         (*avx_pmaddwd): Likewise.
8545         (*avx_mulv4si3): Likewise.
8546         (*avx_ashr<mode>3): Likewise.
8547         (*avx_lshr<mode>3): Likewise.
8548         (*avx_ashl<mode>3): Likewise.
8549         (*avx_<code><mode>3): Likewise.
8550         (*avx_eq<mode>3): Likewise.
8551         (*avx_gt<mode>3): Likewise.
8552         (*avx_nand<mode>3): Likewise.
8553         (*avx_nand<mode>3): Likewise.
8554         (*avx_<code><mode>3): Likewise.
8555         (*avx_<code><mode>3): Likewise.
8556         (*avx_packsswb): Likewise.
8557         (*avx_packssdw): Likewise.
8558         (*avx_packuswb): Likewise.
8559         (*avx_punpckhbw): Likewise.
8560         (*avx_punpcklbw): Likewise.
8561         (*avx_punpckhwd): Likewise.
8562         (*avx_punpcklwd): Likewise.
8563         (*avx_punpckhdq): Likewise.
8564         (*avx_punpckldq): Likewise.
8565         (*avx_pinsr<avxmodesuffixs>): Likewise.
8566         (*avx_pinsrq): Likewise.
8567         (*avx_loadld): Likewise.
8568         (*vec_extractv2di_1_rex64_avx): Likewise.
8569         (*vec_extractv2di_1_avx): Likewise.
8570         (*vec_dupv2di_avx): Likewise.
8571         (*vec_concatv2si_avx): Likewise.
8572         (*vec_concatv4si_1_avx): Likewise.
8573         (*vec_concatv2di_avx): Likewise.
8574         (*vec_concatv2di_rex64_avx): Likewise.
8575         (*avx_uavgv16qi3): Likewise.
8576         (*avx_uavgv8hi3): Likewise.
8577         (*avx_psadbw): Likewise.
8578         (avx_movmskp<avxmodesuffixf2c>256): Likewise.
8579         (*avx_phaddwv8hi3): Likewise.
8580         (*avx_phadddv4si3): Likewise.
8581         (*avx_phaddswv8hi3): Likewise.
8582         (*avx_phsubwv8hi3): Likewise.
8583         (*avx_phsubdv4si3): Likewise.
8584         (*avx_phsubswv8hi3): Likewise.
8585         (*avx_pmaddubsw128): Likewise.
8586         (*avx_pmulhrswv8hi3): Likewise.
8587         (*avx_pshufbv16qi3): Likewise.
8588         (*avx_psign<mode>3): Likewise.
8589         (*avx_palignrti): Likewise.
8590         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
8591         (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
8592         (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
8593         (*avx_mpsadbw): Likewise.
8594         (*avx_packusdw): Likewise.
8595         (*avx_pblendvb): Likewise.
8596         (*avx_pblendw): Likewise.
8597         (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
8598         (avx_ptest256): Likewise.
8599         (avx_roundp<avxmodesuffixf2c>256): Likewise.
8600         (*avx_rounds<ssemodesuffixf2c>): Likewise.
8601         (*avx_aesenc): Likewise.
8602         (*avx_aesenclast): Likewise.
8603         (*avx_aesdec): Likewise.
8604         (*avx_aesdeclast): Likewise.
8605         (avx_vzeroupper): Likewise.
8606         (avx_vzeroupper_rex64): Likewise.
8607         (avx_vpermil<mode>): Likewise.
8608         (avx_vpermilvar<mode>3): Likewise.
8609         (avx_vpermil2<mode>3): Likewise.
8610         (avx_vperm2f128<mode>3): Likewise.
8611         (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
8612         (avx_vbroadcastss256): Likewise.
8613         (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
8614         (avx_vinsertf128<mode>): Likewise.
8615         (vec_set_lo_<mode>): Likewise.
8616         (vec_set_hi_<mode>): Likewise.
8617         (vec_set_lo_<mode>): Likewise.
8618         (vec_set_hi_<mode>): Likewise.
8619         (vec_set_lo_v16hi): Likewise.
8620         (vec_set_hi_v16hi): Likewise.
8621         (vec_set_lo_v32qi): Likewise.
8622         (vec_set_hi_v32qi): Likewise.
8623         (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
8624         (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
8625         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
8626         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
8627         (vec_init<mode>): Likewise.
8628         (*vec_concat<mode>_avx): Likewise.
8629         (blendbits): Support V8SF and V4DF.
8630         (sse2_movq128): Support AVX.
8631         (<sse>_movnt<mode>): Likewise.
8632         (sse2_movntv2di): Likewise.
8633         (sse_rcpv4sf2): Likewise.
8634         (sse_sqrtv4sf2): Likewise.
8635         (sse_rsqrtv4sf2): Likewise.
8636         (<sse>_comi): Likewise.
8637         (<sse>_ucomi): Likewise.
8638         (sse_cvtss2si): Likewise.
8639         (sse_cvtss2si_2): Likewise.
8640         (sse_cvtss2siq): Likewise.
8641         (sse_cvtss2siq_2): Likewise.
8642         (sse_cvttss2si): Likewise.
8643         (sse_cvttss2siq): Likewise.
8644         (sse2_cvtsd2si): Likewise.
8645         (sse2_cvtsd2si_2): Likewise.
8646         (sse2_cvtsd2siq): Likewise.
8647         (sse2_cvtsd2siq_2): Likewise.
8648         (sse2_cvttsd2si): Likewise.
8649         (sse2_cvttsd2siq): Likewise.
8650         (sse2_cvtdq2pd): Likewise.
8651         (*sse2_cvtpd2dq): Likewise.
8652         (*sse2_cvttpd2dq): Likewise.
8653         (*sse2_cvtpd2ps): Likewise.
8654         (sse2_cvtps2pd): Likewise.
8655         (sse3_movshdup): Likewise.
8656         (sse3_movsldup): Likewise.
8657         (sse_storehps): Likewise.
8658         (*sse4_1_extractps): Likewise.
8659         (sse2_storelpd): Likewise.
8660         (vec_dupv2df_sse3): Likewise.
8661         (*vec_concatv2df_sse3): Likewise.
8662         (*sse4_1_pextrb): Likewise.
8663         (*sse4_1_pextrb_memory): Likewise.
8664         (*sse2_pextrw): Likewise.
8665         (*sse4_1_pextrw_memory): Likewise.
8666         (*sse4_1_pextrd): Likewise.
8667         (*sse4_1_pextrq): Likewise.
8668         (sse2_pshufd_1): Likewise.
8669         (sse2_pshuflw_1): Likewise.
8670         (sse2_pshufhw_1): Likewise.
8671         (*sse2_storeq_rex64): Likewise.
8672         (*vec_dupv4si): Likewise.
8673         (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
8674         (sse2_pmovmskb): Likewise.
8675         (*sse2_maskmovdqu): Likewise.
8676         (*sse2_maskmovdqu_rex64): Likewise.
8677         (sse_ldmxcsr): Likewise.
8678         (sse_stmxcsr): Likewise.
8679         (abs<mode>2): Likewise.
8680         (sse4_1_movntdqa): Likewise.
8681         (sse4_1_phminposuw): Likewise.
8682         (sse4_1_extendv8qiv8hi2): Likewise.
8683         (*sse4_1_extendv8qiv8hi2): Likewise.
8684         (sse4_1_extendv4qiv4si2): Likewise.
8685         (*sse4_1_extendv4qiv4si2): Likewise.
8686         (sse4_1_extendv2qiv2di2): Likewise.
8687         (*sse4_1_extendv2qiv2di2): Likewise.
8688         (sse4_1_extendv4hiv4si2): Likewise.
8689         (*sse4_1_extendv4hiv4si2): Likewise.
8690         (sse4_1_extendv2hiv2di2): Likewise.
8691         (*sse4_1_extendv2hiv2di2): Likewise.
8692         (sse4_1_extendv2siv2di2): Likewise.
8693         (*sse4_1_extendv2siv2di2): Likewise.
8694         (sse4_1_zero_extendv8qiv8hi2): Likewise.
8695         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
8696         (sse4_1_zero_extendv4qiv4si2): Likewise.
8697         (*sse4_1_zero_extendv4qiv4si2): Likewise.
8698         (sse4_1_zero_extendv2qiv2di2): Likewise.
8699         (*sse4_1_zero_extendv2qiv2di2): Likewise.
8700         (sse4_1_zero_extendv4hiv4si2): Likewise.
8701         (*sse4_1_zero_extendv4hiv4si2): Likewise.
8702         (sse4_1_zero_extendv2hiv2di2): Likewise.
8703         (*sse4_1_zero_extendv2hiv2di2): Likewise.
8704         (sse4_1_zero_extendv2siv2di2): Likewise.
8705         (*sse4_1_zero_extendv2siv2di2): Likewise.
8706         (sse4_1_ptest): Likewise.
8707         (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
8708         (sse4_2_pcmpestri): Likewise.
8709         (sse4_2_pcmpestrm): Likewise.
8710         (sse4_2_pcmpistri): Likewise.
8711         (sse4_2_pcmpistrm): Likewise.
8712         (aesimc): Likewise.
8713         (aeskeygenassist): Likewise.
8714
8715 2008-08-28  Uros Bizjak  <ubizjak@gmail.com>
8716
8717         * config/i386/predicates.md (vzeroall_operation): New.
8718
8719         * config/i386/sse.md (avx_vzeroall): New.
8720         (*avx_vzeroall): Likewise.
8721
8722 2008-08-28  Paul Brook  <paul@codesourcery.com>
8723             Mark Shinwell  <shinwell@codesourcery.com>
8724             Richard Earnshaw  <richard.earnshaw@arm.com>
8725
8726         * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
8727         (TARGET_MIN_ANCHOR_OFFSET): New.
8728         (arm_override_options): Set correct anchor ranges for Thumb-1
8729         and Thumb-2 if required.
8730         (legitimize_pic_address): Handle case involving a TLS symbol
8731         reference with an addend.
8732         (arm_optimization_options): Enable section anchors at -O1 and
8733         above.
8734         * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
8735         * config/arm/arm-protos.h (arm_optimization_options): New.
8736
8737 2008-08-28  Nick Clifton  <nickc@redhat.com>
8738
8739         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
8740         * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
8741         attribute.
8742
8743         * config/v850/v850.h (IRA_COVER_CLASSES): Define.
8744         * config/v850/v850.md (return): Remove frame size restriction.
8745
8746         * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
8747
8748         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
8749
8750         * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
8751
8752         * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
8753
8754 2008-08-28  Paul Brook  <paul@codesourcery.com>
8755
8756         * config/arm/vfp11.md: Update license notice.
8757         * config/arm/cortex-r4.md: Ditto.
8758
8759 2008-08-28  Richard Guenther  <rguenther@suse.de>
8760
8761         PR tree-optimization/37207
8762         * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
8763         tuplification bug.
8764
8765 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
8766
8767         PR c++/36741
8768         * tree.c (int_fits_type_p): Don't forget unsigned integers
8769           of type sizetype which higher end word equals -1.
8770
8771 2008-08-28  Ira Rosen  <irar@il.ibm.com>
8772
8773         * target.h (struct vectorize): Add new target builtin.
8774         * tree-vectorizer.c (destroy_loop_vec_info): Call
8775         vect_free_slp_instance instead of vect_free_slp_node.
8776         * tree-vectorizer.h (enum slp_load_perm_type): New.
8777         (struct _slp_instance): Add new fields.
8778         (SLP_INSTANCE_LOAD_PERMUTATION): New.
8779         (SLP_INSTANCE_LOADS): New.
8780         (vect_free_slp_tree): Remove.
8781         (vect_free_slp_instance): Declare.
8782         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
8783         (vectorizable_load): Add argument.
8784         (vect_transform_slp_perm_load): New.
8785         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
8786         vectorizable_load.
8787         (vect_get_place_in_interleaving_chain): New function.
8788         (vect_free_slp_tree): Make static.
8789         (vect_free_slp_instance): New function.
8790         (vect_build_slp_tree): Add new arguments. Allow load permutations and
8791         collect the load location in the interleaving chain.
8792         (vect_supported_slp_permutation_p): New function.
8793         (vect_supported_load_permutation_p): Likewise.
8794         (vect_analyze_slp_instance): In case of loads permutation, call
8795         vect_supported_load_permutation_p to check that the permutation is
8796         supported.
8797         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
8798         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
8799         (vect_create_mask_and_perm): New function.
8800         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
8801         (vectorizable_load): Add an argument. Don't keep the created vectors
8802         statements in the node if permutation is required. Call
8803         vect_transform_slp_perm_load to generate the permutation.
8804         (vect_transform_stmt): Add new argument. Call vectorizable_load with
8805         additional argument.
8806         (vect_schedule_slp_instance): In case of loads permutation, allocate
8807         vectorized statements structure for all the related SLP nodes. Call
8808         vect_transform_stmt with addditional argument.
8809         (vect_transform_loop): Call vect_transform_stmt with correct arguments.
8810         * config/spu/spu.c (spu_builtin_vec_perm): New.
8811         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
8812         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
8813         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
8814         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
8815
8816 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
8817
8818         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
8819         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
8820         __gthread_cond_signal, __gthread_cond_timedwait,
8821         __gthread_cond_timedwait_recursive): New functions.
8822         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
8823         Likewise.
8824         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
8825         thread interfaces.
8826
8827 2008-08-28  Richard Guenther  <rguenther@suse.de>
8828
8829         PR middle-end/37005
8830         * fold-const.c (maybe_canonicalize_comparison_1): Require
8831         undefined overflow only for canonicalizing A +- CST cmp CST.
8832         Make sure to not generate new constants that are not inside
8833         their TYPE_MIN/MAX_VALUE range.
8834         (maybe_canonicalize_comparison): Remove undefined overflow
8835         checking from here.
8836         (fold_binary): Remove now duplicate folding.
8837
8838 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
8839
8840         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
8841         use not updated in the last change.
8842
8843 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
8844
8845         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
8846         (IRA_COVER_CLASSES): Add FPUL_REGS.
8847
8848 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8849
8850         PR 37217
8851         * c-common.c (conversion_warning): Check for null operands.
8852
8853 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8854
8855         PR c/31673
8856         * c-decl.c (check_for_loop_decls): Improve error message. Give
8857         hint.
8858
8859 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8860
8861         PR c/37186
8862         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
8863         (convert_for_assignment): Pass corrent OPT_W* parameter to
8864         WARN_FOR_ASSIGNMENT.
8865
8866 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
8867
8868         PR c++/35321
8869         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
8870
8871 2008-08-27  Paul Brook  <paul@codesourcery.com>
8872
8873         * config.gcc: Loosen checks for arm uclinux eabi targets.
8874
8875 2008-08-27  Paul Brook  <paul@codesourcery.com>
8876
8877         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
8878         _clzsi2.
8879         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
8880
8881 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
8882
8883         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
8884         the enumerators of an ENUMERAL_TYPE.
8885         * dbxout.c (dbxout_type): Ditto.
8886
8887 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8888
8889         PR rtl-opt/37219
8890         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
8891         (fwprop_addr): Check that the loop_father is not the outer loop.
8892
8893 2008-08-26  Paul Brook  <paul@codesourcery.com>
8894
8895         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
8896         Remove documentation entry for fmul type.
8897         Use fmuls to annotate single-precision multiplication patterns,
8898         fmuld to annotate double-precision multiplication patterns,
8899         fmacs to annotate single-precision multiply-accumulate patterns
8900         and fmacd to annotate double-precision multiply-accumulate patterns.
8901         * config/arm/vfp11.md: Update reservations accordingly.
8902         * config/arm/arm.md: Note that certain values of the "type"
8903         attribute are documented in vfp.md.
8904         * config/arm/arm1020e.md: Remove out of date duplicate comment.
8905         (v10_cvt): Use new fmul types.
8906
8907 2008-08-26  Paul Brook  <paul@codesourcery.com>
8908
8909         * config/arm/vfp.md: Move pipeline description for VFP11 to...
8910         * config/arm/vfp11.md: ...here.  New.
8911         * config/arm/arm.md: Include vfp11.md.
8912
8913 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
8914
8915         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
8916         parameter to inform call.
8917
8918 2008-08-26  Jeff Law  <law@redhat.com>
8919
8920         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
8921         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
8922         preferred class when copying a constant into a partial word register.
8923
8924 2008-08-26  Ben Elliston  <bje@au.ibm.com>
8925
8926         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
8927         * cp/typeck.c: Likewise.
8928         * cp/tree.c: Likewise.
8929         * gimple-low.c: Likewise.
8930         * jump.c: Likewise.
8931
8932 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
8933
8934         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
8935         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
8936
8937         * doc/passes.texi: Describe IRA.
8938
8939         * doc/tm.texi (IRA_COVER_CLASSES,
8940         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
8941
8942         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
8943         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
8944         -fira-propagate-cost, -fno-ira-share-save-slots,
8945         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
8946
8947         * flags.h (ira_algorithm): New enumeration.
8948         (flag_ira_algorithm, flag_ira_verbose): New external variable
8949         declarations.
8950
8951         * postreload.c (gate_handle_postreload): Don't do post reload
8952         optimizations unless the reload is completed.
8953
8954         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
8955         IRA.
8956
8957         * tree-pass.h (pass_ira): New external variable declaration.
8958
8959         * reload.h: Add 2008 to the Copyright.
8960
8961         * cfgloopanal.c: Include params.h.
8962         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
8963         mode.
8964
8965         * params.h (IRA_MAX_LOOPS_NUM): New macro.
8966
8967         * toplev.c (ira.h): New include.
8968         (flag_ira_algorithm, flag_ira_verbose): New external variables.
8969         (backend_init_target): Call ira_init.
8970         (backend_init): Call ira_init_once.
8971         (finalize): Call finish_ira_once.
8972
8973         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
8974         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
8975         external variables.
8976
8977         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
8978         may_move_out_cost): New external variable declarations.
8979         (move_table): New typedef.
8980
8981         * caller-save.c: Include headers output.h and ira.h.
8982         (no_caller_save_reg_set): New global variable.
8983         (save_slots_num, save_slots): New variables.
8984         (reg_save_code, reg_restore_code, add_stored_regs): Add
8985         prototypes.
8986         (init_caller_save): Set up no_caller_save_reg_set.
8987         (init_save_areas): Reset save_slots_num.
8988         (saved_hard_reg): New structure.
8989         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
8990         (initiate_saved_hard_regs, new_saved_hard_reg,
8991         finish_saved_hard_regs, saved_hard_reg_compare_func): New
8992         functions.
8993         (setup_save_areas): Add code for sharing stack slots.
8994         (all_blocks): New variable.
8995         (save_call_clobbered_regs): Process pseudo-register too.
8996         (mark_set_regs): Process pseudo-register too.
8997         (insert_one_insn): Put the insn after bb note in a empty basic
8998         block.  Add insn check.
8999
9000         * global.c (eliminable_regset): Make it external.
9001         (mark_elimination): Use DF_LR_IN for IRA.
9002         (pseudo_for_reload_consideration_p): New.
9003         (build_insn_chain): Make it external.  Don't ignore spilled
9004         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
9005         (gate_handle_global_alloc): New function.
9006         (pass_global_alloc): Add the gate function.
9007
9008         * opts.c (decode_options): Set up flag_ira.  Print the warning for
9009         -fira.
9010         (common_handle_option): Process -fira-algorithm and -fira-verbose.
9011
9012         * timevar.def (TV_IRA, TV_RELOAD): New passes.
9013
9014         * regmove.c (regmove_optimize): Don't do replacement of output for
9015         IRA.
9016
9017         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
9018         New external variable declarations.
9019
9020         * local-alloc.c (update_equiv_regs): Make it external.  Return
9021         true if jump label rebuilding should be done.  Rescan new_insn for
9022         notes.
9023         (gate_handle_local_alloc): New function.
9024         (pass_local_alloc): Add the gate function.
9025
9026         * alias.c (value_addr_p, stack_addr_p): New functions.
9027         (nonoverlapping_memrefs_p): Use them for IRA.
9028
9029         * common.opt (fira, fira-algorithm, fira-coalesce,
9030         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
9031         fira-verbose): New options.
9032
9033         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
9034         move_cost, may_move_in_cost, may_move_out_cost): Make the
9035         variables external.
9036         (move_table): Remove typedef.
9037         (init_move_cost): Make it external.
9038         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
9039         functions.
9040
9041         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
9042         setup_reg_classes): New function prototypes.
9043         (eliminable_regset): New external variable declaration.
9044         (build_insn_chain, update_equiv_regs): New function prototypes.
9045
9046         * Makefile.in (IRA_INT_H): New definition.
9047         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
9048         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
9049         (reload1.o, toplev.o): Add dependence on ira.h.
9050         (cfgloopanal.o): Add PARAMS_H.
9051         (caller-save.o): Add dependence on output.h and ira.h.
9052         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
9053         ira-emit.o, ira-lives.o): New entries.
9054
9055         * passes.c (pass_ira): New pass.
9056
9057         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
9058
9059         * reload1.c (ira.h): Include the header.
9060         (changed_allocation_pseudos): New bitmap.
9061         (init_reload): Initiate the bitmap.
9062         (compute_use_by_pseudos): Permits spilled registers in FROM.
9063         (temp_pseudo_reg_arr): New variable.
9064         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
9065         IRA.  Call alter_reg with the additional parameter.  Don't clear
9066         spilled_pseudos for IRA.  Restore original insn chain for IRA.
9067         Clear changed_allocation_pseudos at the end of reload.
9068         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
9069         (hard_regno_to_pseudo_regno): New variable.
9070         (count_pseudo): Check spilled pseudos.  Set up
9071         hard_regno_to_pseudo_regno.
9072         (count_spilled_pseudo): Check spilled pseudos. Update
9073         hard_regno_to_pseudo_regno.
9074         (find_reg): Use better_spill_reload_regno_p.  Check
9075         hard_regno_to_pseudo_regno.
9076         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
9077         code for IRA.
9078         (eliminate_regs_1): Use additional parameter for alter_reg.
9079         (finish_spills): Set up pseudo_previous_regs only for spilled
9080         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
9081         more arguments.  Don't clear live_throughout and dead_or_set for
9082         spilled pseudos.  Use additional parameter for alter_reg.  Call
9083         mark_allocation_change.  Set up changed_allocation_pseudos.
9084         Remove sanity check.
9085         (emit_input_reload_insns, delete_output_reload): Use additional
9086         parameter for alter_reg.  Call mark_allocation_change.
9087         (substitute, gen_reload_chain_without_interm_reg_p): New
9088         functions.
9089         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
9090
9091         * testsuite/gcc.dg/20080410-1.c: New file.
9092
9093         * config/s390/s390.h (IRA_COVER_CLASSES,
9094         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
9095
9096         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
9097
9098         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
9099
9100         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9101
9102         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
9103
9104         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9105
9106         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
9107
9108         2008-08-24  Jeff Law  <law@redhat.com>
9109         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
9110         when ignoring unavailable registers.
9111
9112         2008-08-24  Jeff Law  <law@redhat.com>
9113         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
9114         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
9115         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
9116         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
9117
9118         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
9119         * ira-build.c (allocno_range_compare_func): Stabilize sort.
9120
9121         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
9122         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
9123         * reload1.c (find_reg): Process registers in register allocation order.
9124
9125         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
9126         * toplev.c (backend_init_target): Move ira_init call from
9127         here...
9128         (lang_dependent_init_target): ...to here.
9129
9130         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
9131         * ira.c (setup_class_subset_and_memory_move_costs): Don't
9132         calculate memory move costs for NO_REGS.
9133
9134         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
9135         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
9136         STACK_REGS is defined.
9137
9138         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
9139         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
9140
9141         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
9142         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
9143
9144         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
9145         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
9146         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
9147         barrier.
9148
9149 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
9150             Dorit Nuzman  <dorit@il.ibm.com>
9151
9152         * gcc/config/spu/spu.md (vec_extract_evenv4si,
9153         vec_extract_evenv4sf, vec_extract_evenv8hi,
9154         vec_extract_evenv16qi, vec_extract_oddv4si,
9155         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
9156         vec_interleave_highv4sf, vec_interleave_lowv4sf,
9157         vec_interleave_highv4si, vec_interleave_lowv4si,
9158         vec_interleave_highv8hi, vec_interleave_lowv8hi,
9159         vec_interleave_highv16qi, vec_interleave_lowv16qi,
9160         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
9161
9162 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
9163
9164         PR target/36756
9165         * config/rs6000/rs6000.c (optimization_options): Don't default to
9166         section anchors without toplevel reorder.
9167
9168 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9169
9170         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
9171         (mfc_end_critical_section): Likewise.
9172
9173 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9174
9175         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
9176         all type qualifiers from element type to vector type.
9177
9178 2008-08-25  David Daney  <ddaney@avtrex.com>
9179
9180         * config/mips/mips.md (immediate_insn): Move up in file, fix
9181         comment typo, reformat.
9182         (fetchop_bit, atomic_hiqi_op memory_barrier,
9183         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
9184         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
9185         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
9186         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
9187         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
9188         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
9189         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
9190         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
9191         sync_old_nand<mode>, sync_new_nand<mode>,
9192         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
9193         test_and_set_12): Moved to sync.md.
9194         (sync.md): Include.
9195         * config/mips/sync.md: New file.
9196
9197 2008-08-25  Richard Henderson  <rth@redhat.com>
9198
9199         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
9200         (regsave): Likewise.
9201         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
9202         (output_cfi_directive): Likewise.
9203         (div_data_align): New.
9204         (output_cfi): Use it.
9205
9206 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
9207
9208         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
9209         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
9210         (TARGET_OCTEON): New macro.
9211         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
9212         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
9213         (ISA_HAS_POP): New macro.
9214         * config/mips/driver-native.c (host_detect_local_cpu): Handle
9215         Octeon.
9216         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
9217         Handle Octeon.
9218         * config/mips/mips.md (cpu): Add octeon.
9219         (type): Add pop attribute value.
9220         (popcount<mode>2): New pattern.
9221         * doc/invoke.texi (-march=@var{arch}): Add octeon.
9222
9223 2008-08-24  Jan Hubicka  <jh@suse.cz>
9224
9225         * doc/invoke.texi (-fipa-cp-clone): New option.
9226         (-fipa-cp): Update docs.
9227         (--param ipcp-unit-growth):New.
9228         * ipa-cp.c: Include fibheap.h, params.h
9229         (ipcp_initialize_node_lattices): When not cloning, all externally
9230         visible functions are bottom.
9231         (ipcp_need_redirect_p): Accept clones.
9232         (ipcp_insert_stage): Use cost driven heuristics.
9233         (max_count, dead_nodes): New static vars.
9234         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
9235         ipcp_const_param_count): New functions.
9236         * common.opt (ipa-cp-clone): New command line option.
9237         * params.def (ipcp-unit-growth): New.
9238
9239 2008-08-24  Jan Hubicka  <jh@suse.cz>
9240
9241         * tree-inline.c (tree_function_versioning): Look harder
9242         for referenced vars.
9243
9244 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
9245
9246         PR tree-optimization/37185
9247         * matrix-reorg.c (transform_access_sites): Update changed stmt.
9248
9249 2008-08-23  Jan Hubicka  <jh@suse.cz>
9250
9251         * ipa-cp.c (ipcp_analyze_node): New function.
9252         (ipcp_update_cloned_node): Use it.
9253         (ipcp_init_stage): Likewise.
9254         * ipa-inline.c (function_insertion_hook_holder): New static var.
9255         (analyze_function): Break out from ....
9256         (inline_generate_summary): Here; register insertion hook.
9257         (cgraph_decide_inlining): Remove hook.
9258         (add_new_function): New function.
9259
9260 2008-08-23  Jan Hubicka  <jh@suse.cz>
9261
9262         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
9263
9264 2008-08-23  Jan Hubicka  <jh@suse.cz>
9265
9266         * ipa-cp.c (constant_val_insert): Remove.
9267         (ipcp_propagate_one_const): Remove.
9268         (ipcp_create_replace_map): Always insert replacements to the map.
9269         (ipcp_insert_stage): Do not try to insert statements by hand.
9270         * tree-inline.c (insert_init_stmt): Break out from ...
9271         (setup_one_parameter): ... here; allow NULL BB pointer.
9272         (tree_function_versioning): Use setup_one_parameter to process
9273         replacement map.
9274
9275 2008-08-23  Jan Hubicka  <jh@suse.cz>
9276
9277         * tree.c (decl_address_ip_invariant_p): New function.
9278         * tree.h (decl_address_ip_invariant_p): Declare.
9279         * gimple.c (strip_invariant_refs): Break out from ...
9280         (is_gimple_invariant_address): ... here
9281         (is_gimple_ip_invariant_address): New function.
9282         (is_gimple_ip_invariant): New function.
9283         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
9284         Declare.
9285
9286         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
9287         (ipcp_lat_is_insertable): All constants are insertable.
9288         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
9289         IPA_CONST_VALUE_REF.
9290         (ipcp_initialize_node_lattices): Propagate all types of operands.
9291         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
9292         (ipcp_create_replace_map): Reformat.
9293         (ipcp_need_redirect_p): Simplify.
9294         (ipcp_insert_stage): Check that argument is used before clonning.
9295         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
9296         IPA_CONST_REF.
9297         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
9298         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
9299         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
9300         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
9301         (jump_func_type): Remove IPA_CONST_VALUE_REF.
9302         * tree-inline.c (tree_function_versioning): Add variables referenced
9303         by replacing trees.
9304
9305 2008-08-23  Jan Hubicka  <jh@suse.cz>
9306
9307         PR target/37094
9308         * i386.c (standard_80387_constant_p): Use optimize_size.
9309
9310 2008-08-23  Ira Rosen  <irar@il.ibm.com>
9311
9312         PR tree-optimization/37161
9313         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
9314         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
9315         (vect_determine_vectorization_factor): Move the scalar type
9316         retrieval to vect_get_smallest_scalar_type.
9317         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
9318         scalar type. Remove redundant computation.
9319         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
9320         (vect_get_slp_defs): Take the type of RHS into account if
9321         necessary by calling vect_get_smallest_scalar_type. Call
9322         vect_get_constant_vectors with additional argument.
9323
9324 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9325
9326         PR 35648
9327         * doc/invoke.texi (Wwrite-strings): Clarify description.
9328
9329 2008-08-23  Ira Rosen  <irar@il.ibm.com>
9330
9331         PR tree-optimization/37174
9332         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
9333         def stmt is a part of the loop before accessing its stmt_vec_info.
9334
9335 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
9336
9337         PR target/11259
9338         * config/avr/avr.md (UNSPEC_SWAP): New constants.
9339         (*swap): New insn pattern.
9340         (*ashlqi3): Rename from ashlqi3 insn pattern.
9341         (ashlqi3): New expanders.
9342         (*lshrqi3): Rename from lshrqi3 insn pattern.
9343         (lshrqi3): New expanders.
9344         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
9345         lshrqi3_const5, lshrqi3_const6): New splitters.
9346         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
9347         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
9348         peephole2 patterns.
9349
9350 2008-08-22  Richard Guenther  <rguenther@suse.de>
9351
9352         PR tree-optimization/37078
9353         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
9354         [+INF, +INF] ranges.
9355
9356 2008-08-22  Richard Guenther  <rguenther@suse.de>
9357
9358         PR tree-optimization/37143
9359         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
9360         a conversion statement instead of a copy.
9361
9362 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
9363
9364         PR target/37184
9365         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
9366         CCCmode, CCOmode and CCSmode destination modes.
9367
9368         PR target/37191
9369         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
9370         from different units in a single alternative.
9371         (*vec_extractv2sf_1): Ditto.
9372         (*vec_extractv2si_0): Ditto.
9373         (*vec_extractv2si_1): Ditto.
9374         * config/i386/sse.md (sse2_storehpd): Ditto.
9375         (sse2_storelpd): Ditto.
9376         (sse2_loadhpd): Ditto.
9377         (sse2_loadlpd): Ditto.
9378
9379         PR target/37197
9380         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
9381         (popcountsi2): Ditto.
9382         (clzdi2_abm): Ditto.
9383         (popcountdi2): Ditto.
9384         (clzhi2_abm): Ditto.
9385         (popcounthi2): Ditto.
9386
9387 2008-08-22  Richard Guenther  <rguenther@suse.de>
9388
9389         PR middle-end/36548
9390         PR middle-end/37125
9391         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
9392         if the multiplication does not overflow.
9393
9394 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
9395
9396         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
9397
9398 2008-08-21  Richard Henderson  <rth@redhat.com>
9399
9400         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
9401         spurrious comma from test.
9402         * configure: Rebuild.
9403
9404 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9405
9406         PR 30457
9407         * builtins.c (fold_builtin_next_arg): Add warning about undefined
9408         behaviour.
9409
9410 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
9411
9412         * c-tree.h (grokfield): New argument.
9413         * c-decl.c (grokfield): Handle new location argument.
9414         * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
9415
9416 2008-08-21  Richard Guenther  <rguenther@suse.de>
9417
9418         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
9419
9420 2008-08-21  Jan Hubicka  <jh@suse.cz>
9421
9422         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
9423         (cgraph_add_function_insertion_hook,
9424         cgraph_remove_function_insertion_hook,
9425         cgraph_call_function_insertion_hooks): New functions.
9426         * cgraph.h (cgraph_add_function_insertion_hook,
9427         cgraph_remove_function_insertion_hook,
9428         cgraph_call_function_insertion_hooks): Declare.
9429         * ipa-reference.c (function_insertion_hook_holder): New variable.
9430         (check_operand, look_for_address_of): When checking late, do not care
9431         about module bitmaps.
9432         (add_new_function): New function.
9433         (generate_summary): Register hooks; zero module bitmaps.
9434         (propagate): Unregister hooks.
9435         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
9436         (add_new_function): New function.
9437         (generate_summary): Register hook.
9438         (propagate): Remove hook.
9439
9440         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
9441
9442         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
9443         * ipa-cp.c (ipcp_update_cloned_node): New function.
9444         (build_const_val): Handle functions correctly; bring type logic
9445         into sync with tree-inline.c
9446         (ipcp_init_stage):  Take care of computing stuff needed by
9447         indirect inlining; update clones.
9448         (ipcp_generate_summary): Break out of ipcp_driver.
9449         (ipcp_driver): Do only execution and transformation.
9450         (pass_ipa_cp): Make IPA_PASS.
9451         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
9452         offset to address.
9453         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
9454         ipcp, some info is already available.
9455         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
9456         * tree-inline.c (remap_ssa_name): Unshare expression.
9457
9458 2008-08-21  Richard Guenther  <rguenther@suse.de>
9459
9460         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
9461         a PHI ask VN if it is already available.
9462         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
9463         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
9464
9465 2008-08-21  Richard Guenther  <rguenther@suse.de>
9466
9467         PR middle-end/36817
9468         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
9469         makes sure to produce a result of the correct type.
9470
9471 2008-08-21  Jan Hubicka  <jh@suse.cz>
9472         Backport from LTO branch:
9473
9474         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
9475                     Jan Hubicka  <jh@suse.cz>
9476
9477         * ipa-pure-const.c
9478         (init_state, finish_state, set_function_state, generate_summary):
9479         New functions.
9480         (scan_stmt): Renamed from scan_function.  Changed to keep state in
9481         local static vars rather than cgraph aux field.
9482         (propagate): Renamed from static_execute. Changed to keep state in
9483         local static vars rather than cgraph aux field.
9484         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
9485         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
9486
9487         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
9488
9489         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
9490         * ipa-reference.c (init_function_info, generate_summary,
9491         propagate): New functions.
9492         (analyze_function):  Call init_function_info.
9493         (static_execute): Stripped into generate_summary and propagate.
9494         (pass_ipa_reference): Made into ipa_opt_pass.
9495
9496 2008-08-21  Richard Guenther  <rguenther@suse.de>
9497
9498         PR tree-optimization/37181
9499         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
9500         folding result.
9501         (extract_range_from_unary_expr): Likewise.
9502
9503 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9504
9505         * diagnostic.c (pedwarn_at): Rename as pedwarn.
9506         (pedwarn): Delete.
9507         * toplev.h (pedwarn_at): Likewise.
9508         * builtins.c: Update all calls to pedwarn.
9509         * c-lex.c: Likewise.
9510         * toplev.c: Likewise.
9511         * c-tree.h: Likewise.
9512         * c-decl.c: Likewise.
9513         * c-errors.c: Likewise.
9514         * c-typeck.c: Likewise.
9515         * c-common.c: Likewise.
9516         * c-parser.c: Likewise.
9517
9518 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
9519
9520         PR target/31070
9521         * config/sparc/sparc.c (function_arg_slotno): Handle structure
9522         with MODE_VECTOR_INT mode.
9523
9524 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9525
9526         PR middle-end/179
9527         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
9528         initialized outside the current module.
9529         (warn_uninitialized_var): Ignore left-hand side when walking the
9530         trees. Ignore address expressions. Examine VUSE operands in gimple
9531         statements with a variable declaration on the right-hand side.
9532
9533 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
9534
9535         PR bootstrap/37155
9536         * rtlanal.c (subreg_offset_representable_p): Revert last change.
9537
9538 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9539
9540         PR 35701
9541         * c-common.c (conversion_warning): Do not warn if applying bit-and
9542         operator to unsigned constant that fits in the target type.
9543
9544 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9545
9546         PR c++/35602
9547         * c-common.c (conversion_warning): Do not warn for artificial
9548         expressions.
9549
9550 2008-08-20  Richard Guenther  <rguenther@suse.de>
9551
9552         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
9553         (extract_range_from_binary_expr): Fall back to constant propagation.
9554         (extract_range_from_unary_expr): Likewise.
9555
9556 2008-08-20  Richard Guenther  <rguenther@suse.de>
9557
9558         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
9559         with TREE_THIS_VOLATILE on shared nodes.
9560         (fold_stmt_r): Likewise.
9561
9562 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
9563
9564         PR c/37171
9565         * c-parser.c (c_parser_attributes): For keywords use canonical
9566         spelling for attr_name.
9567
9568 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9569
9570         * value-prof.c (check_counter): Revert wrong call to error.
9571
9572 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9573
9574         * profile.c: Update calls to inform.
9575         * value-prof.c: Update calls to inform.
9576
9577 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9578
9579         * diagnostic.c (inform): Add an explicit location_t parameter.
9580         * toplev.h (inform): Update declaration.
9581         * builtins.c: Update all calls to inform.
9582         * c-common.c: Likewise.
9583         * c-decl.c: Likewise.
9584         * c-opts.c: Likewise.
9585         * c-pch.c: Likewise.
9586         * c-pragma.c: Likewise.
9587         * c-typeck.c: Likewise.
9588         * coverage.c: Likewise.
9589         * opts.c: Likewise.
9590         * toplev.c: Likewise.
9591         * tree-cfg.c: Likewise.
9592         * tree-ssa.c: Likewise.
9593
9594 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
9595
9596         PR target/37169
9597         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
9598         V2DI mode, for SSE4.1, use movq instead of vector set if the
9599         second element is zero and inter-unit moves are OK.
9600
9601 2008-08-20  Richard Guenther  <rguenther@suse.de>
9602
9603         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
9604         properly handle conversion/copy chains after tuplification.
9605
9606 2008-08-20  Richard Guenther  <rguenther@suse.de>
9607
9608         * passes.c (init_optimization_passes): Move the second
9609         forwprop pass before alias computation.  Remove the second
9610         DCE pass.  Remove the first dominator and phi copy/const
9611         prop passes.
9612
9613 2008-08-20  Nick Clifton  <nickc@redhat.com>
9614
9615         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
9616         support of this feature.  Do not assume that a sufficiently new
9617         assembler will support the feature regardless of the target type.
9618         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
9619         * configure: Regenerate.
9620
9621 2008-08-20  Richard Guenther  <rguenther@suse.de>
9622
9623         * tree-vrp.c (found_in_subgraph): Remove.
9624         (live): New global static.
9625         (live_on_edge): New function.
9626         (blocks_visited): Remove.
9627         (register_edge_assert_for_2): Use live_on_edge.
9628         (find_conditional_asserts): Remove code dealing with
9629         found_in_subgraph.  Do not walk the CFG.
9630         (find_switch_asserts): Likewise.
9631         (find_assert_locations_1): Renamed from find_assert_locations.
9632         Move finding assert locations for conditional and switch
9633         statements first.  Update live bitmap.  Do not walk the CFG.
9634         (find_assert_locations): New function.
9635         (insert_range_assertions): Remove entry of CFG walk.
9636         Adjust call to find_assert_locations.
9637         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
9638         that only can appear because of fake exit edges but assert we
9639         never try to insert on those.
9640         (fini_pre): Do not remove fake exit edges here...
9641         (execute_pre): ...but here, before committing edge inserts.
9642
9643 2008-08-19  Richard Guenther  <rguenther@suse.de>
9644
9645         * passes.c (init_optimization_passes): Exchange store-ccp
9646         with a ccp pass.
9647
9648 2008-08-19  Rafael Espíndola  <espindola@google.com>
9649
9650         * varasm.c (weak_decls): Move earlier in the file.
9651         (assemble_external): Add weak decls to the weak_decls list.
9652         (declare_weak): Don't add decls to the weak_decls list.
9653
9654 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
9655
9656         PR target/37157
9657         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
9658         before (sse2_shufpd_<mode>).
9659
9660 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
9661
9662         PR debug/37156
9663         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
9664         * tree.c (block_nonartificial_location): Likewise.
9665
9666 2008-08-19  Richard Guenther  <rguenther@suse.de>
9667
9668         PR tree-optimization/35972
9669         PR tree-optimization/23094
9670         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
9671         parameter.
9672         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
9673         handle MISALIGNED_INDIRECT_REF.
9674         (get_ref_from_reference_ops): New helper.
9675         (vn_reference_lookup_pieces): Walk the use-def chain using the
9676         alias-oracle if requested.
9677         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
9678         walking the use-def chain.
9679         (compute_avail): But not here.
9680         (create_component_ref_by_pieces_1): Properly handle
9681         MISALIGNED_INDIRECT_REF.
9682         (do_regular_insertion): Handle fully redundant
9683         expressions after PHI-translation also for SSA_NAME values, not
9684         only constants.  Correctly use edoubleprime for that.
9685
9686 2008-08-19  Ira Rosen  <irar@il.ibm.com>
9687
9688         * tree-vectorizer.c (supportable_widening_operation): Support
9689         multi-step conversion, return the number of steps in such conversion
9690         and the required intermediate types.
9691         (supportable_narrowing_operation): Likewise.
9692         * tree-vectorizer.h (vect_pow2): New function.
9693         (supportable_widening_operation): Change argument types.
9694         (supportable_narrowing_operation): Likewise.
9695         (vectorizable_type_promotion): Add an argument.
9696         (vectorizable_type_demotion): Likewise.
9697         * tree-vect-analyze.c (vect_analyze_operations): Call
9698         vectorizable_type_promotion and vectorizable_type_demotion with
9699         additional argument.
9700         (vect_get_and_check_slp_defs): Detect patterns.
9701         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
9702         types.
9703         (vect_analyze_slp_instance): Don't fail in case of multiple types.
9704         Call vect_build_slp_tree with correct arguments. Calculate unrolling
9705         factor according to the smallest type in the loop.
9706         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
9707         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
9708         supportable_widening_operation with correct arguments.
9709         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
9710         operands lists according to the number of vector statements in left
9711         or right node, if exists.
9712         (vect_gen_widened_results_half): Remove unused argument.
9713         (vectorizable_conversion): Call supportable_widening_operation,
9714         supportable_narrowing_operation, and vect_gen_widened_results_half
9715         with correct arguments.
9716         (vectorizable_assignment): Change documentation, support multiple
9717         types in SLP.
9718         (vectorizable_operation): Likewise.
9719         (vect_get_loop_based_defs): New function.
9720         (vect_create_vectorized_demotion_stmts): Likewise.
9721         (vectorizable_type_demotion): Support loop-aware SLP and general
9722         multi-step conversion. Call vect_get_loop_based_defs and
9723         vect_create_vectorized_demotion_stmts for transformation.
9724         (vect_create_vectorized_promotion_stmts): New function.
9725         (vectorizable_type_promotion): Support loop-aware SLP and general
9726         multi-step conversion. Call vect_create_vectorized_promotion_stmts
9727         for transformation.
9728         (vectorizable_store): Change documentation, support multiple
9729         types in SLP.
9730         (vectorizable_load): Likewise.
9731         (vect_transform_stmt): Pass SLP_NODE to
9732         vectorizable_type_promotion and vectorizable_type_demotion.
9733         (vect_schedule_slp_instance): Move here the calculation of number
9734         of vectorized statements for each node from...
9735         (vect_schedule_slp): ... here.
9736         (vect_transform_loop): Call vect_schedule_slp without the last
9737         argument.
9738
9739 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
9740
9741         PR bootstrap/37152
9742         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
9743         to == in assert statement.
9744         (vectorizable_reduction): Fix typo.
9745
9746 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9747
9748         PR bootstrap/37153
9749         * value-prof.c (check_counter): Dereference pointer to overall
9750         count when printing it.
9751
9752 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9753
9754         * profile.h: Really add it.
9755
9756 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9757
9758         * mcf.c: Really add it.
9759
9760 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
9761             Vinodha Ramasamy  <vinodha@google.com>
9762
9763         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
9764         count_scale.
9765         * value-prof.c (check_counter): Fix the counter if
9766         flag_profile_correction is true.
9767         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
9768         tree_mod_subtract_transform):
9769         Follow check_counter parameter change.
9770         * common.opt (fprofile-correction): New option.
9771         * mcf.c: New file.
9772         * profile.h: Likewise.
9773         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
9774         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
9775         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
9776         functions.
9777         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
9778         flag_profile_correction is set.
9779
9780 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
9781
9782         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
9783
9784 2008-08-18  Tomas Bily  <tbily@suse.cz>
9785
9786         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
9787         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
9788         CONVERT_EXPR_P.
9789         * tree-data-ref.c (split_constant_offset_1): Likewise.
9790         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
9791         * tree-sra.c (sra_walk_expr): Likewise.
9792         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
9793         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
9794         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
9795         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
9796         Likewise.
9797         * gimple.c (gimple_assign_unary_nop_p): Likewise.
9798         * tree-vect-transform.c (vectorizable_type_demotion)
9799         (vectorizable_type_promotion): Likewise.
9800         * tree-inline.c (expand_call_inline):
9801         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
9802         (forward_propagate_addr_expr_1, forward_propagate_comparison)
9803         (tree_ssa_forward_propagate_single_use_vars): Likewise.
9804         * expr.c (expand_expr_real_1): Likewise.
9805         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
9806         (gimple_assign_unary_useless_conversion_p): Likewise.
9807         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9808         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
9809         * fold-const.c (fold_unary): Likewise.
9810         * tree.h (CONVERT_EXPR_P): Likewise.
9811         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
9812         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
9813         * tree-vrp.c:
9814         (register_edge_assert_for_2, extract_range_from_unary_expr)
9815         (register_edge_assert_for_1): Likewise.
9816
9817 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9818
9819         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
9820         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
9821         (enum real_value_const): Delete.
9822         (get_real_const): Delete.
9823         * real.c (get_real_const): Delete.
9824         (dconst_e_ptr): Define.
9825         (dconst_third_ptr): Define.
9826         (dconst_sqrt2_ptr): Define.
9827         * builtins.c: Update all callers.
9828
9829 2008-08-18  Richard Guenther  <rguenther@suse.de>
9830
9831         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
9832         statement iterator after statement removal.
9833
9834 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
9835
9836         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
9837         (detect_processor_freebsd): Likewise.
9838         (host_detect_local_cpu): Call newly added functions for FreeBSD.
9839
9840 2008-08-18  Richard Guenther  <rguenther@suse.de>
9841
9842         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
9843         and loads have the correct types.
9844
9845 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9846
9847         PR cpp/7263
9848         * c-opts.c (cpp_opts): Remove static.
9849         * c-parser.c (cpp_opts): Declare it extern.
9850         (disable_extension_diagnostics): Handle cpp options.
9851         (enable_extension_diagnostics): Likewise.
9852
9853 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9854
9855         * diagnostics.c (permerror_at): Rename as permerror.
9856         (permerror): Delete.
9857         * toplev.h: Likewise.
9858
9859 2008-08-18  Richard Guenther  <rguenther@suse.de>
9860
9861         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
9862         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
9863         Move call_cdce before build_alias.  Move copyrename2,
9864         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
9865         right after final inlining.
9866         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
9867         (pass_build_cfg): But instead via TODO_dump_func.
9868
9869 2008-08-18  Richard Guenther  <rguenther@suse.de>
9870
9871         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
9872         element index.
9873         (scalarize_init): If we failed to generate some initializers
9874         do not generate zeros for not instantiated members.  Instead
9875         rely on the copy out.
9876         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
9877         about missing flow-sensitive alias info only if we have
9878         aliases computed.
9879
9880 2008-08-17  Nick Clifton  <nickc@redhat.com>
9881
9882         * doc/extend.texi (Function Attributes): Fix typo in description
9883         if hot function attribute.
9884
9885 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
9886             Richard Sandiford  <rdsandiford@googlemail.com>
9887
9888         * doc/install.texi (--with-mips-plt): Document.
9889         * doc/invoke.texi (-mplt, -mno-plt): Document.
9890         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
9891         and handle ${with_mips_plt}.
9892         * config/mips/mips.opt (mplt): New option.
9893         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
9894         (TARGET_ABICALLS_PIC2): Likewise.
9895         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
9896         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
9897         (ASM_SPEC): Use !mabi=* instead of !mabi*.
9898         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
9899         to decide whether to output ".option picX" directives.
9900         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
9901         Pass -call_nonpic rather than -KPIC for -mplt.
9902         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
9903         on the command line.  Also remove it when -mabi=64 is used without
9904         -msym32.
9905         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
9906         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
9907         TARGET_ABICALLS_PIC0.
9908         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
9909         TARGET_ABICALLS.
9910         (mips16_build_function_stub): Only output ".option pic" directives
9911         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
9912         (mips16_build_call_stub): Fix comment and remove redundant
9913         ".set at"/"set .noat" directives.
9914         (mips_function_rodata_section): Use the default behaviour for
9915         TARGET_ABSOLUTE_ABICALLS.
9916         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
9917         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
9918         (mips_restore_gp): Do nothing if the current function doesn't use
9919         a global pointer.
9920         (mips_expand_prologue): Only save $gp if the current function uses it.
9921         Use a normal move for TARGET_ABICALLS_PIC0.
9922         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
9923
9924 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
9925
9926         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
9927         of function when handling GLOBAL_POINTER_REGNUM.
9928
9929 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
9930
9931         PR ada/20548
9932         * common.opt (-fstack-check): Do not declare the variable here.
9933         (-fstack-check=): New option variant.
9934         * doc/invoke.texi (Code Gen Options): Document it.
9935         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
9936         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
9937         (STACK_CHECK_STATIC_BUILTIN): New macro.
9938         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
9939         * opts.c: Include expr.h.
9940         (common_handle_option) <OPT_fold_stack_check_>: New case.
9941         <OPT_fstack_check>: Likewise.
9942         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
9943         consistently in the test for variable-sized types.  Adjust for
9944         new behaviour of flag_stack_check.
9945         * explow.c: Include except.h.
9946         (allocate_dynamic_stack_space): Do not take into account
9947         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
9948         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
9949         for variable-sized parameters.  Treat all parameters whose size is
9950         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
9951         stack checking is enabled.
9952         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
9953         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
9954         if generic stack checking is enabled.
9955         (expand_function_end): Adjust for new behaviour of flag_stack_check.
9956         * reload1.c (reload): Likewise.
9957         * stmt.c (expand_decl): Assert that all automatic variables have
9958         fixed size at this point and remove dead code.
9959         * flags.h (stack_check_type): New enumeration type.
9960         (flag_stack_check): Declare.
9961         * toplev.c (flag_stack_check): New global variable.
9962         * Makefile.in (opts.o): Add dependency on EXPR_H.
9963         (explow.o): Add dependency on except.h.
9964
9965 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
9966
9967         * config/avr/avr.c (avr_override_options): Reduce value of
9968         PARAM_INLINE_CALL_COST.
9969
9970 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
9971
9972         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
9973         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
9974         lieu of TYPE_MODE (type) throughout.
9975
9976 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
9977
9978         * config/arm/arm.c (add_minipool_backward_ref): Check for
9979         8-byte-aligned entries in second case of forcing insertion after a
9980         particular entry.  Change third case to avoid inserting
9981         non-8-byte-aligned entries before 8-byte-aligned ones.
9982
9983 2008-08-15  Richard Guenther  <rguenther@suse.de>
9984
9985         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
9986         strip components for unknown size accesses.
9987
9988 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
9989
9990         * config/s390/2097.md New file.
9991         * config/s390/s390.md ("z10prop" attribute): Define none,
9992         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
9993         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
9994         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
9995         possible values and apply them to insns as appropriate.
9996         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
9997         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
9998         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
9999         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
10000         ("bfp" mode attribute): Removed.  Every occurence replaced
10001         with <mode>.
10002         * config/s390/s390.c (struct "z10_cost"): Updated entries.
10003         * config/s390/2084.md (insn_reservation "x_itof"): Updated
10004         type attribute.
10005
10006 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10007
10008         PR c/28152
10009         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
10010         for keywords.
10011
10012 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
10013
10014         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
10015         additional argument. Support reduction when duplication is needed due
10016         to data-types of different sizes in the loop.
10017         (get_initial_def_for_induction): Fix printout.
10018         (vect_get_vec_def_for_stmt_copy): Support case where the
10019         vec_stmt_for_operand is a phi node.
10020         (vectorizable_reduction): Support reduction when duplication is needed
10021         due to data-types of different sizes in the loop.
10022         (vectorizable_call): Remove restriction to not vectorize in case we
10023         have data-types of different sizes in the loop.
10024         (vectorizable_conversion): Likewise.
10025         (vectorizable_operation): Likewise.
10026         (vectorizable_type_demotion): Likewise.
10027         (vectorizable_type_promotion): Likewise.
10028         (vectorizable_induction): Add restriction to not vectorize in case
10029         we have data-types of different sizes in the loop.
10030
10031 2008-08-14  Christophe Saout  <christophe@saout.de>
10032             Uros Bizjak  <ubizjak@gmail.com>
10033
10034         PR target/37101
10035         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
10036         (*vec_concatv2di_rex64_sse4_1): Ditto.
10037         (*vec_concatv2di_rex64_sse): Ditto.
10038
10039 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
10040
10041         PR middle-end/37103
10042         * fold-const.c (fold_widened_comparison): Do not allow
10043         sign changes that change the result even if shorter type
10044         is wider than arg1_unw's type.
10045
10046 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
10047
10048         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
10049         Skip if the multilib testing specifies -march that does not
10050         agree with the one specified in the testcase.
10051
10052 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
10053
10054         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
10055         zero extend SImode values being converted to TFmode before passing
10056         to libcalls.
10057
10058 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10059
10060         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
10061         __PPU__ when targeting the Cell/B.E. PPU processor.
10062
10063 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
10064
10065         * gimple.h (gimple_call_set_chain): Accept SSA variables.
10066         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
10067         Rematerialize the static chain, if any.
10068         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
10069         static chain.
10070
10071 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
10072
10073         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
10074         (new_loc_descr): Likewise.
10075         (add_loc_descr): Likewise.
10076         (size_of_loc_descr): Likewise.
10077         (size_of_locs): Likewise.
10078         (output_loc_operands): Likewise.
10079         (output_loc_sequence): Likewise.
10080         (new_reg_loc_descr): New.
10081         (build_cfa_loc): Use it.
10082         (build_cfa_aligned_loc): Likewise.
10083         (one_reg_loc_descriptor): Likewise.
10084         (based_loc_descr): Likewise.
10085
10086 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10087
10088         PR 30551
10089         * doc/invoke.texi (Wmain): Update.
10090         * c-decl.c (start_decl): warn_main is only 0 or 1.
10091         (start_function): Likewise. Fix formatting.
10092         (finish_function): Delete redundant warning.
10093         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
10094         * c-opts (c_common_handle_option): -Wall only has effect if
10095         warn_main is uninitialized. OPT_Wmain is automatically
10096         handled. -pedantic also enables Wmain.
10097         (c_common_post_options): Handle all logic for Wmain here.
10098         * c-common.c (warn_main): Delete.
10099         (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
10100         * c-common.h (warn_main): Delete.
10101
10102 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
10103
10104         PR middle-end/36701
10105         * expr.c (emit_group_store): Allocate stack temp with the
10106         largest alignment when copying from register to stack.
10107
10108 2008-08-13  Richard Guenther  <rguenther@suse.de>
10109
10110         * tree.h (maybe_fold_offset_to_address): Declare.
10111         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
10112         (ccp_fold): Handle pointer conversions the same as fold_stmt.
10113         Likewise for POINTER_PLUS_EXPR.
10114         (maybe_fold_offset_to_reference): Enable disabled code.
10115         (maybe_fold_offset_to_address): New function.
10116         (fold_stmt_r): Use it.
10117         (fold_gimple_assign): Likewise.
10118         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
10119         (gimplify_expr): Likewise.
10120
10121 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10122
10123         * toplev.h (pedwarn_at): Fix declaration.
10124
10125 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
10126
10127         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10128         LINK_SPEC): Use %R in -Y P argument.
10129
10130 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10131
10132         PR c/15236
10133         * diagnostic.c (pedwarn_at): New.
10134         * toplev.h (pedwarn_at): Declare.
10135         * c-tree.h (build_enumerator): Update declaration.
10136         * c-decl.c (finish_enum): Update comment.
10137         (build_enumerator): Take a location parameter. Give a pedwarn but do
10138         not perform any conversion.
10139         * c-parser.c (c_parser_enum_specifier): Set correct location for
10140         enumerator.
10141
10142 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10143
10144         PR 35635
10145         * c-common.c (conversion_warning): Use a switch. Ignore boolean
10146         expressions except for conversions to signed:1 bitfields. Handle
10147         COND_EXPR with constant operands.
10148
10149 2008-08-13  Richard Guenther  <rguenther@suse.de>
10150
10151         PR tree-optimization/15255
10152         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
10153         (struct oecount_s): New struct and VEC types.
10154         (cvec): New global.
10155         (oecount_hash): New function.
10156         (oecount_eq): Likewise.
10157         (oecount_cmp): Likewise.
10158         (zero_one_operation): New function.
10159         (build_and_add_sum): Likewise.
10160         (undistribute_ops_list): Perform un-distribution of multiplication
10161         and division on the chain of summands.
10162         (should_break_up_subtract): Also break up subtracts for factors.
10163         (reassociate_bb): Delete dead visited statements.
10164         Call undistribute_ops_list.  Re-sort and optimize if it did something.
10165         * passes.c (init_optimization_passes): Move DSE before
10166         reassociation.
10167         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
10168         PHI nodes.
10169
10170 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
10171
10172         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
10173
10174         * doc/invoke.texi: Revert unintended checkin.
10175
10176 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
10177
10178         PR libgomp/26165
10179         * gcc.c (include_spec_function): Tweak call to find_a_file.
10180
10181 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
10182
10183         PR middle-end/37014
10184         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
10185         and TRUTH_ORIF_EXPR.
10186         * dojump.c (do_jump): Likewise.
10187
10188         PR tree-optimization/37084
10189         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
10190         if id->regimplify, don't assume stmt is a cast assignment.
10191
10192 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
10193
10194         * final.c (final_scan_insn): Use app_enable/app_disable functions.
10195
10196 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10197
10198         PR bootstrap/37097
10199         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
10200         by last change.
10201
10202 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10203
10204         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
10205         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
10206
10207         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
10208         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
10209         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
10210         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
10211         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
10212
10213         * doc/tm.texi (Storage Layout): Remove documentation for
10214         TARGET_FLOAT_FORMAT.
10215
10216         * simplify-rtx.c (simplify_binary_operation_1): Replace
10217         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
10218
10219 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10220
10221         * real.h (struct real_format): New member has_sign_dependent_rounding.
10222         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
10223         spu_single_format, ieee_double_format, mips_double_format,
10224         motorola_double_format, ieee_extended_motorola_format,
10225         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
10226         ieee_extended_intel_96_round_53_format, ibm_extended_format,
10227         mips_extended_format, ieee_quad_format, mips_quad_format,
10228         vax_f_format, vax_d_format, vax_g_format): Initialize it.
10229         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
10230
10231         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
10232         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
10233         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
10234         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
10235         (ROUND_TOWARDS_ZERO): Likewise.
10236
10237         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
10238         (FLOAT_MODE_FORMAT): New macro.
10239         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
10240         (MODE_COMPOSITE_P): ... this new macro.
10241         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
10242         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
10243         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
10244
10245         * flags.h: Include "real.h".
10246
10247         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
10248         REAL_MODE_FORMAT_COMPOSITE_P.
10249         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
10250
10251         * doc/tm.texi (Storage Layout): Remove documentation of
10252         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
10253         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
10254         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
10255         they only apply to libgcc2.a.
10256
10257 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10258
10259         * config/spu/float_disf.c: New file.
10260         * config/spu/float_unsdisf.c: New file.
10261         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
10262         (LIB2FUNCS_EXCLUDE): Define.
10263
10264 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10265             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
10266
10267         * real.h (struct real_format): New member round_towards_zero.
10268         * real.c (round_for_format): Respect fmt->round_towards_zero.
10269         (ieee_single_format, mips_single_format, motorola_single_format,
10270         spu_single_format, ieee_double_format, mips_double_format,
10271         motorola_double_format, ieee_extended_motorola_format,
10272         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
10273         ieee_extended_intel_96_round_53_format, ibm_extended_format,
10274         mips_extended_format, ieee_quad_format, mips_quad_format,
10275         vax_f_format, vax_d_format, vax_g_format): Initialize it.
10276         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
10277
10278         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
10279         real_format to choose rounding mode when calling MPFR functions.
10280         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
10281         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
10282
10283         * real.h (real_to_decimal_for_mode): Add prototype.
10284         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
10285         Respect target rounding mode when generating decimal representation.
10286         (real_to_decimal): New stub for backwards compatibility.
10287         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
10288         real_to_decimal_for_mode instead of real_to_decimal.
10289
10290         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
10291
10292 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10293             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
10294
10295         * real.c (spu_single_format): New variable.
10296         * real.h (spu_single_format): Declare.
10297
10298         * config/spu/spu.c (spu_override_options): Install SFmode format.
10299         (spu_split_immediate): Use integer mode to operate on pieces of
10300         floating-point values in all cases.
10301
10302         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
10303         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
10304         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
10305
10306 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10307
10308         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
10309
10310 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10311
10312         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
10313
10314 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
10315
10316         PR c++/36688
10317         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
10318         on the VAR_DECL instead of TYPE_READONLY on its type.
10319
10320 2008-08-12  Ira Rosen  <irar@il.ibm.com>
10321
10322         * tree-vectorizer.c: Depend on langhooks.h.
10323         (supportable_widening_operation): Add two arguments. Support double
10324         type conversions.
10325         (supportable_narrowing_operation): Likewise.
10326         * tree-vectorizer.h (supportable_widening_operation): Add two
10327         arguments.
10328         (supportable_narrowing_operation): Likewise.
10329         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
10330         supportable_widening_operation with correct arguments.
10331         * tree-vect-transform.c (vectorizable_conversion): Likewise.
10332         (vectorizable_type_demotion): Support double type conversions.
10333         (vectorizable_type_promotion): Likewise.
10334         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
10335
10336 2008-08-11  Michael Matz  <matz@suse.de>
10337
10338         * i386/i386.c (override_options): Move initialisation from
10339         flag_schedule_insns_after_reload to here from ...
10340         (optimization_options): ... here.
10341
10342 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
10343
10344         PR rtl-optimization/36998
10345         * dwarf2out.c (compute_barrier_args_size_1,
10346         compute_barrier_args_size): Temporarily remove assertions.
10347
10348 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10349
10350         PR middle-end/20644
10351         * tree-ssa.c (struct walk_data): Add new flag
10352         warn_possibly_uninitialized.
10353         (warn_uninitialized_var): Use it.
10354         (warn_uninitialized_vars): New.
10355         (execute_early_warn_uninitialized): Call it.
10356         (execute_late_warn_uninitialized): Likewise.
10357
10358 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10359
10360         PR middle-end/36238
10361         * reload1.c (gen_reload): Guard calls to get_secondary_mem
10362         for memory subregs.
10363
10364 2008-08-09  Jan Hubicka  <jh@suse.cz>
10365
10366         PR target/37055
10367         * optabs.c (maybe_emit_unop_insn): Remove produced code if
10368         expansion failed.
10369         (expand_fix): Be prepared for expansion to fail.
10370         (expand_sfix_optab): Remove instructions if expansion failed.
10371
10372 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
10373
10374         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
10375         avr31 architecture.
10376         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
10377         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10378
10379 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10380
10381         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
10382         mips/t-libgcc-mips16 to tmake_file.
10383         * config/mips/mips-protos.h (mips_call_type): New enum.
10384         (mips_pic_base_register, mips_got_load): Declare.
10385         (mips_restore_gp): Take an rtx argument.
10386         (mips_use_pic_fn_addr_reg_p): Declare.
10387         (mips_expand_call): Replace the sibcall_p argument with
10388         a mips_call_type argument.  Add a lazy_p parameter.
10389         (mips_split_call): Declare.
10390         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
10391         (MIPS16_PIC_TEMP): Likewise.
10392         (reg_class): Delete M16_NA_REGS.
10393         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
10394         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
10395         (mips_split_hi_p): Declare.
10396         * config/mips/mips.c (mips_split_hi_p): New array.
10397         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
10398         (mips_got_symbol_type_p): New function.
10399         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
10400         (mips16_stub_function_p): New function.
10401         (mips16_local_function_p): Likewise.
10402         (mips_use_pic_fn_addr_reg_p): Likewise.
10403         (mips_cannot_force_const_mem): Return false for HIGHs.
10404         Extend CONST_INT and symbolic handling to MIPS16, using
10405         mips_symbol_insns to check that the base symbol type is a
10406         legitimate constant.  Reject GOT-based constants if
10407         TARGET_MIPS16_PCREL_LOADS.
10408         (mips_const_insns): Check targetm.cannot_force_const_mem when
10409         decomposing a symbolic base and a large offset.
10410         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
10411         When calling a function that needs $25 from MIPS16 code,
10412         move the target address into $25 separately and add a USE
10413         to the call insn.
10414         (mips16_gp_pseudo_reg): Insert the initializer immediately
10415         before the first real insn.
10416         (mips_pic_base_register, mips_got_load): New functions.
10417         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
10418         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
10419         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
10420         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
10421         (mips_call_tls_get_addr): Update the call to mips_expand_call,
10422         also passing NULL_RTX rather than const0_rtx as the aux argument.
10423         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
10424         instead of TARGET_EXPLICIT_RELOCS.
10425         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
10426         (mips_load_call_address): Replace the sibcall_p argument with
10427         a mips_call_type argument.  Use mips_got_load.
10428         (mips16_local_alias): New structure.
10429         (mips16_local_aliases): New variable.
10430         (mips16_local_aliases_hash): New function.
10431         (mips16_local_aliases_eq): Likewise.
10432         (mips16_local_alias): Likewise.
10433         (mips16_stub_function): Likewise.
10434         (mips16_build_function_stub): Create a local alias for the target
10435         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
10436         .cpload directive and an R_MIPS_NONE relocation for the target
10437         function, then load the alias rather than the function itself.
10438         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
10439         (mips16_copy_fpr_return_value): Use mips16_stub_function and
10440         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
10441         (mips16_build_call_stub): Replace the FN parameter with an
10442         FN_PTR parameter.  Force the address into a register if it
10443         isn't a call_insn_operand; don't rely on the caller to do this.
10444         If a call to a locally-defined and locally-binding MIPS16
10445         function must be made indirectly, redirect the call to the
10446         function's local alias.  Use mips16_stub_function_p,
10447         mips16_stub_function, mips_expand_call and use_reg.
10448         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
10449         Use explicit %hi and %lo accesses where possible.
10450         Use MIPS_CALL to generate the correct code form of a
10451         jal instruction.  Add clobbers of $18 instead of uses.
10452         Update the call to mips_emit_call_insn.
10453         (mips_expand_call): Replace the SIBCALL_P argument with a
10454         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
10455         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
10456         allowing it to modify the call address.  Update the calls to
10457         mips_load_call_address and mips_emit_call_insn.
10458         (mips_split_call): New function.
10459         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
10460         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
10461         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
10462         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
10463         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
10464         if TARGET_MIPS16.
10465         (mips_cprestore_slot): New function.
10466         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
10467         and use mips_cprestore_slot.
10468         (mips_output_function_prologue): Handle TARGET_MIPS16 for
10469         LOADGP_OLDABI.
10470         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
10471         then use a copygp_mips16 instruction to set up $28.
10472         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
10473         (mips16_lay_out_constants): Call split_all_insns_noflow.
10474         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
10475         false if TARGET_MIPS16.
10476         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
10477         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
10478         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
10479         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
10480         MIPS16 code.  Allow MIPS16 o32 PIC.
10481         (mips_override_options): Allow MIPS16 o32 PIC.
10482         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
10483         after reload if TARGET_USE_GOT.
10484         (UNSPEC_COPYGP): New constant.
10485         (length): Use a default length of 8 for MIPS16 GOT loads.
10486         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
10487         (*got_page<mode>): Check mips_split_hi_p.
10488         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
10489         (unspec_got<mode>, unspec_call<mode>): New expanders.
10490         (load_got<mode>, load_call<mode>): Remove the length attributes.
10491         Use a got attribute instead of a type attribute.
10492         (copygp_mips16): New insn.
10493         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
10494         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
10495         (sibcall, sibcall_value, call, call_value): Update the calls
10496         to mips_expand_call.
10497         (call_internal, call_value_internal): Use mips_split_call.
10498         (call_value_multiple_internal): Likewise.
10499         (call_split): Move after call_internal (the insn it is split from).
10500         (call_internal_direct, call_value_internal_direct): Turn into
10501         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
10502         (call_direct_split, call_value_direct_split): New patterns.
10503         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
10504         and use M16_REGS instead of M16_NA_REGS.
10505         * config/mips/predicates.md (const_call_insn_operand): Replace
10506         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
10507         mips_use_pic_fn_addr_reg_p check.
10508         (move_operand): Reject HIGHs if mips_split_hi_p.
10509         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
10510         (__mips16_floatunsisf): Inline __mips16_floatsisf.
10511         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
10512         * config/mips/libgcc-mips16.ver: New file.
10513         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
10514         $(srcdir)/config/mips/libgcc-mips16.ver.
10515
10516 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10517
10518         * config/mips/mips.c (mips_unspec_address_offset): Move earlier
10519         in file.
10520         (mips_unspec_address, mips_unspec_offset_high): Likewise.
10521         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
10522         (mips16_cfun_returns_in_fpr_p): Likewise.
10523
10524 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10525
10526         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
10527         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
10528         rather than 4 to PC.
10529
10530 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10531
10532         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
10533         (FUNCTION_PROFILER): Save the static chain pointer into $2
10534         beforehand and restore it aftewards.
10535         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
10536         address directly into $25 and call the function through $25;
10537         do not clobber $3.  Pad the DImode version to cover the space
10538         left by the deleted $25 <- $3 move.
10539         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
10540         the removal of the $25 <- $3 move.
10541         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
10542         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
10543
10544 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10545             Daniel Jacobowitz  <dan@codesourcery.com>
10546
10547         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
10548         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
10549         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
10550         * config/mips/mips.c (mips_start_function_definition): New function.
10551         (mips_end_function_definition): Likewise.
10552         (mips_output_function_prologue): Use mips_start_function_definition.
10553         (mips_output_function_epilogue): Use mips_end_function_definition.
10554         (build_mips16_function_stub): Use mips_start_function_definition
10555         and mips_end_function_definition.
10556         (build_mips16_call_stub): Likewise.
10557
10558 2008-08-09  Richard Guenther  <rguenther@suse.de>
10559
10560         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
10561         * gimple.h (gimple_call_fn): Adjust comment.
10562         (gimple_call_set_fndecl): New function.
10563         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
10564         longer having bare FUNCTION_DECL operand.
10565         (gimple_call_return_type): Likewise.
10566         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
10567
10568         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
10569         (gimple_mod_pow2): Likewise.
10570         (gimple_mod_subtract): Likewise.
10571         (gimple_ic): Likewise.
10572         (gimple_stringop_fixed_value): Likewise.
10573         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
10574         longer having bare FUNCTION_DECL operand.
10575         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
10576         * omp-low.c (optimize_omp_library_calls): Likewise.
10577         * cgraphunit.c (update_call_expr): Likewise.
10578         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
10579         (execute_convert_to_rsqrt): Likewise.
10580         * cfgexpand.c (gimple_to_tree): Simplify.
10581         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
10582         bare FUNCTION_DECL operand.
10583         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
10584         (convert_gimple_call): Use gimple_call_fndecl.
10585         * c-common.c (c_warn_unused_result): Likewise.
10586
10587 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10588
10589         PR c/17880
10590         * c-typeck.c (digest_init): Call verify_sequence_points from here.
10591         (c_finish_return): Likewise.
10592         (c_start_case): Likewise.
10593         * c-common.c (warn_for_collisions_1): Use explicit location in warning.
10594         * c-parser.c (c_parser_condition): New. Call
10595         verify_sequence_points.
10596         (c_parser_paren_condition): Call c_parser_condition.
10597         (c_parser_for_statement): Call c_parser_condition.
10598
10599 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10600
10601         PR 36901
10602         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
10603         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
10604         Moved from diagnostic.h
10605         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
10606         DK_PERMERROR.
10607         (emit_diagnostic): New.
10608         (warning0, pedwarn0): Delete.
10609         (warning, warning_at, pedwarn, permerror): Return bool.
10610         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
10611         Moved to diagnostic.c.
10612         (struct diagnostic_context): Use correct type for
10613         classify_diagnostic.
10614         (diagnostic_report_diagnostic): Update declaration.
10615         (emit_diagnostic): Declare.
10616         * errors.c (warning): Return bool.
10617         * errors.h (warning): Update declaration.
10618         * toplev.h (warning0, pedwarn0): Delete.
10619         (warning, warning_at, pedwarn, permerror): Return bool.
10620         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
10621         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
10622         inform. Update all calls.
10623         (diagnose_mismatched_decls): Check return value of warning/pedwarn
10624         before giving informative note.
10625         (implicit_decl_warning): Likewise.
10626         * c-typeck.c (build_function_call): Likewise.
10627         * tree-sssa.c (warn_uninit): Likewise.
10628         * builtins.c (gimplify_va_arg_expr): Likewise.
10629
10630 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10631
10632         PR 7651
10633         * doc/invoke.texi (-Wextra): Move warning from here...
10634         (-Wuninitialized): ... to here.
10635
10636 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10637
10638         PR 28875
10639         * flags.h (set_Wunused): Delete
10640         * toplev.c (process_options): Handle Wunused flags here.
10641         * opts.c (maybe_warn_unused_parameter): Delete.
10642         (common_handle_option): Replace set_Wunused by warn_unused.
10643         (set_Wextra): Do not handle Wunused-parameter here.
10644         (set_Wunused): Delete.
10645         * c-opts.c (c_common_handle_option): Replace set_Wunused by
10646         warn_unused.
10647         * common.opt (Wunused): Add Var and Init.
10648         (Wunused-function): Likewise.
10649         (Wunused-label): Likewise.
10650         (Wunused-parameter): Likewise.
10651         (Wunused-value): Likewise.
10652         (Wunused-variable): Likewise.
10653
10654 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
10655
10656         * doc/invoke.texi: Add cpu_type power7.
10657         * config.in (HAVE_AS_VSX): New.
10658         * config.gcc: Add cpu_type power7.
10659         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
10660         VSX instructions.
10661         * configure: Regenerate.
10662         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
10663         power5.
10664         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
10665         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
10666         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
10667
10668 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
10669
10670         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
10671         type to vectorize.builtin_conversion.
10672         (vectorizable_conversion): Likewise.
10673         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
10674         integral type as input.
10675         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
10676         FIX_TRUNC_EXPR.
10677         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
10678         and ALTIVEC_BUILTIN_VCTSXS.
10679         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
10680         formatting.
10681
10682 2008-08-08  Richard Guenther  <rguenther@suse.de>
10683
10684         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
10685         (surely_varying_stmt_p): Calls are varying only if they are
10686         non-builtin and not indirect or have no result.
10687         (ccp_fold): Re-instantiate code before the tuples merge.
10688
10689 2008-08-08  Richard Guenther  <rguenther@suse.de>
10690
10691         PR tree-optimization/37056
10692         * gimple.h (gimple_assign_rhs_class): New helper function.
10693         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
10694         unary operations properly.
10695
10696 2008-08-07  Jan Hubicka  <jh@suse.cz>
10697
10698         * i386.h (ix86_size_cost): Declare.
10699         (ix86_cur_cost): New function macro.
10700         * i386.md (peepholes expanding size and splitters): Predicate by
10701         optimize_insn_for_speed_p.
10702         (peepholes reduce size and splitters): Predicate by
10703         optimize_insn_for_size_p.
10704         * i386.c (ix86_size_cost): Rename from ...
10705         (size_cost): This one.
10706         (override_options): Update.
10707         (decide_alg): Likewise.
10708         (ix86_expand_clear): Use RTL profile.
10709         (ix86_pad_returns): Use RTL profile.
10710
10711 2008-08-07  Jan Hubicka  <jh@suse.cz>
10712
10713         * recog.c (split_all_insns): Set RTL profile
10714         (peephole2_optimize): Likewise.
10715         * function.c (thread_prologue_and_epilogue_insns): Likewise.
10716         * combine.c (combine_instructions): Likewise.
10717
10718 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10719
10720         * c-common.c (c_common_reswords): Also warn about keyword "bool".
10721
10722 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
10723
10724         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
10725         value in a6 after the set_frame_ptr insn.
10726
10727 2008-08-07  Richard Henderson  <rth@redhat.com>
10728
10729         PR debug/37033
10730         * gcc.c (cpp_options): Pass along -g*.
10731
10732 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
10733
10734         * config/arm/arm.c (output_move_neon): Update comment describing
10735         big-endian vector layout.
10736         (arm_assemble_integer): Do not handle big-endian NEON vectors
10737         specially.
10738         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
10739         neon_vget_lane<mode>_sext_internal,
10740         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
10741         element indices for big-endian.
10742
10743 2008-08-07  Richard Henderson  <rth@redhat.com>
10744
10745         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
10746         * configure, config.in: Rebuild.
10747         * debug.h (dwarf2out_do_cfi_asm): Declare.
10748         * c-cppbuiltin.c (c_cpp_builtins): Use it.
10749         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
10750         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
10751         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
10752
10753 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
10754
10755         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
10756         movv2si_internal): Combine into mov<mode>_internal.
10757         (movv2si_internal_2): Remove.
10758
10759 2008-08-07  Jan Hubicka  <jh@suse.cz>
10760
10761         PR target/37048
10762         * i386.md (single stringop patterns): Enable unconditionally.
10763
10764 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
10765
10766         PR target/36992
10767         * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
10768
10769         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
10770         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
10771
10772         * config/i386/sse.md (sse2_movq128): New.
10773
10774         * doc/extend.texi: Document __builtin_ia32_movq128.
10775
10776 2008-08-07  Richard Guenther  <rguenther@suse.de>
10777
10778         PR middle-end/37042
10779         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
10780         pointers can access anything.
10781
10782 2008-08-06  Jan Hubicka  <jh@suse.cz>
10783
10784         * optabs.c (emit_unop_insn): Break out to ...
10785         (maybe_emit_unop_insn): ... this one.
10786         (expand_sfix_optab): Use maybe variant.
10787         * optabs.h (maybe_emit_unop_insn): Declare.
10788
10789         * i386.md (mov0 patterns): Enable by default.
10790         (FP conversion expanders): Disable expansion of code expanding
10791         sequences when instruction should be optimized for size.
10792         (single strinop patterns): Enable when optimizing for size.
10793         (string expanders): Disable expanding of code expanding sequences
10794         when optimizning instruction for size.
10795         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
10796         per BB basis.
10797         (ix86_fp_comparison_sahf_cost): Likewise.
10798         (ix86_expand_branch): Likewise.
10799         (ix86_expand_ashl_const): Likewise.
10800         (ix86_split_ashl): Likewise.
10801         (ix86_expand_strlen): Likewise.
10802         (ix86_emit_fp_unordered_jump): Likewie.
10803
10804 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10805
10806         * c-common.c: Fix typo.
10807         (c_common_reswords): Activate more C++ keyword warnings.
10808
10809         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
10810
10811 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10812
10813         PR 26785
10814         * diagnostic.c (permerror_at): New.
10815         * toplev.h (permerror_at): Declare.
10816
10817 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
10818             Ira Rosen  <irar@il.ibm.com>
10819
10820         * tree-vect-transform.c (vect_model_simple_cost): Return
10821         immediately if stmt is pure SLP.
10822         (vect_model_store_cost): Ditto.
10823         (vect_model_load_cost): Ditto.
10824         (vectorizable_store): Remove PURE_SLP check before call
10825         to vect_model_store_cost.
10826         (vect_model_store_cost): When checking whether stmt describe
10827         strided access, add a check that it is not slp_node.
10828
10829 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10830
10831         PR 8715
10832         * c-common.c (warn_for_sign_compare): New. Handle separately the
10833         case that 'constant' is zero.
10834         * c-typeck.c (build_binary_op): Move code to c-common.c
10835
10836 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10837
10838         * config/alpha/alpha.c (alpha_preferred_reload_class,
10839         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
10840         alpha_output_mi_thunk_osf): Avoid C++ keywords.
10841         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
10842         * config/arm/arm.md: Likewise.
10843         * config/avr/avr-protos.h (preferred_reload_class,
10844         test_hard_reg_class, avr_simplify_comparison_p,
10845         out_shift_with_cnt, class_max_nregs): Likewise.
10846         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
10847         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
10848         preferred_reload_class, test_hard_reg_class): Likewise.
10849         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
10850         bfin_memory_move_cost, bfin_secondary_reload,
10851         bfin_output_mi_thunk): Likewise.
10852         * config/crx/crx.c (crx_secondary_reload_class,
10853         crx_memory_move_cost): Likewise.
10854         * config/frv/frv-protos.h (frv_secondary_reload_class,
10855         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
10856         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
10857         frv_secondary_reload_class, frv_class_likely_spilled_p,
10858         frv_class_max_nregs): Likewise.
10859         * config/h8300/h8300.c (h8300_classify_operand,
10860         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
10861         Likewise.
10862         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
10863         * config/ia64/ia64.c (ia64_preferred_reload_class,
10864         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
10865         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
10866         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
10867         Likewise.
10868         * config/m68hc11/m68hc11.c (preferred_reload_class,
10869         m68hc11_memory_move_cost): Likewise.
10870         * config/mcore/mcore.c (mcore_secondary_reload_class,
10871         mcore_reload_class): Likewise.
10872         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
10873         mips_class_max_nregs, mips_cannot_change_mode_class,
10874         mips_preferred_reload_class, mips_secondary_reload_class,
10875         mips_output_mi_thunk): Likewise.
10876         * config/mmix/mmix.c (mmix_preferred_reload_class,
10877         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
10878         Likewise.
10879         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
10880         Likewise.
10881         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
10882         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
10883         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
10884         * config/rs6000/rs6000.c (paired_expand_vector_init,
10885         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
10886         compare_section_name, rs6000_memory_move_cost): Likewise.
10887         * config/s390/s390.c (s390_emit_compare_and_swap,
10888         s390_preferred_reload_class, s390_secondary_reload,
10889         legitimize_pic_address, legitimize_tls_address,
10890         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
10891         s390_class_max_nregs): Likewise.
10892         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
10893         * config/s390/s390.md: Likewise.
10894         * config/score/score-protos.h (score_secondary_reload_class,
10895         score_preferred_reload_class): Likewise.
10896         * config/score/score.c (score_preferred_reload_class,
10897         score_secondary_reload_class): Likewise.
10898         * config/score/score3.c (score3_output_mi_thunk,
10899         score3_preferred_reload_class, score3_secondary_reload_class,
10900         score3_hard_regno_mode_ok): Likewise.
10901         * config/score/score3.h (score3_preferred_reload_class,
10902         score3_secondary_reload_class): Likewise.
10903         * config/score/score7.c (score7_output_mi_thunk,
10904         score7_preferred_reload_class, score7_secondary_reload_class,
10905         score7_hard_regno_mode_ok): Likewise.
10906         * config/score/score7.h (score7_preferred_reload_class,
10907         score7_secondary_reload_class): Likewise.
10908         * config/sh/sh.c (prepare_move_operands, output_far_jump,
10909         output_branchy_insn, add_constant, gen_block_redirect,
10910         sh_insn_length_adjustment, sh_cannot_change_mode_class,
10911         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
10912         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10913         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
10914         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
10915         xstormy16_preferred_reload_class): Likewise.
10916         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
10917         xtensa_expand_atomic, override_options,
10918         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
10919         Likewise.
10920         * reorg.c (try_merge_delay_insns): Likewise.
10921         * tree.c (merge_dllimport_decl_attributes): Likewise.
10922
10923         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
10924
10925 2008-08-06  Michael Matz  <matz@suse.de>
10926
10927         * Makefile.in (write_entries_to_file): Quote words.
10928         * gengtype.c: (read_input_line): Skip over leading white-space.
10929
10930 2008-08-06  Marc Gauthier  <marc@tensilica.com>
10931
10932         * config.gcc: Match more processor names for Xtensa.
10933         * configure.ac: Likewise.
10934         * doc/install.texi (Specific): Likewise.
10935         * configure: Regenerate.
10936
10937 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10938
10939         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
10940         * calls.c (avoid_likely_spilled_reg): Likewise.
10941         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
10942         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
10943         * config/i386/i386.c (ix86_expand_special_args_builtin,
10944         ix86_secondary_reload): Likewise.
10945         * except.c (struct eh_region, gen_eh_region_catch,
10946         remove_unreachable_regions, duplicate_eh_regions,
10947         assign_filter_values, build_post_landing_pads,
10948         sjlj_find_directly_reachable_regions, remove_eh_handler,
10949         reachable_next_level, foreach_reachable_handler,
10950         can_throw_internal_1, can_throw_external_1,
10951         collect_one_action_chain): Likewise.
10952         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
10953         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
10954         * function.c (update_temp_slot_address, instantiate_new_reg,
10955         instantiate_virtual_regs_in_rtx,
10956         instantiate_virtual_regs_in_insn): Likewise.
10957         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
10958         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
10959         gimplify_cleanup_point_expr): Likewise.
10960         * ipa-cp.c (ipcp_lattice_changed): Likewise.
10961         * passes.c (next_pass_1): Likewise.
10962         * print-tree.c (print_node_brief, print_node): Likewise.
10963         * profile.c (branch_prob): Likewise.
10964         * tree-dump.c (dump_register): Likewise.
10965         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
10966         Likewise.
10967         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
10968         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
10969         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
10970         copy_arguments_for_versioning, copy_static_chain): Likewise.
10971         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
10972         add_new_name_mapping, register_new_name_mapping): Likewise.
10973         * tree-mudflap.c (mf_xform_derefs): Likewise.
10974         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
10975         get_init_expr, combine_chains): Likewise.
10976         * tree-pretty-print.c (dump_generic_node): Likewise.
10977         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
10978         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
10979         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
10980         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
10981
10982 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
10983
10984         PR middle-end/37010
10985         * calls.c (expand_call): Use the biggest preferred stack
10986         boundary.
10987
10988 2008-08-06  Michael Matz  <matz@suse.de>
10989
10990         PR target/36613
10991         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
10992         for reused reload, instead of overwriting them.
10993
10994 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
10995
10996         PR middle-end/37009
10997         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
10998         for incoming stack boundary.
10999
11000         * function.c (assign_parm_find_entry_rtl): Update
11001         parm_stack_boundary.
11002
11003         * function.h (rtl_data): Add parm_stack_boundary.
11004
11005         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
11006         parm_stack_boundary for incoming stack boundary.
11007
11008 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
11009
11010         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
11011         for unrepresentable subregs or treat them as equal to other regs
11012         or subregs with the same register number.
11013
11014 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
11015
11016         PR middle-end/35432
11017         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
11018         if want_value.
11019
11020 2008-08-06  Jan Hubicka  <jh@suse.cz>
11021
11022         * predict.c (maybe_hot_frequency_p): When profile is absent, all
11023         frequencies might be hot.
11024
11025 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
11026
11027         * reload.c (find_reloads): Force constants into literal pool
11028         also if they are wrapped in a SUBREG.
11029
11030 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
11031
11032         PR target/35659
11033         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
11034         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
11035         Don't allow predicated instructions for data speculation.
11036         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
11037         declaration.
11038
11039 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
11040
11041         * haifa-sched.c (extend_global): Split to extend_global_data and
11042         extend_region_data.  Update all uses.
11043         (extend_all): Rename to extend_block_data.
11044
11045 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
11046
11047         * sched-rgn.c (new_ready): Check if instruction can be
11048         speculatively scheduled before attempting speculation.
11049         (debug_rgn_dependencies): Remove wrongful assert.
11050
11051 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
11052
11053         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
11054
11055 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
11056
11057         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
11058         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
11059         va_size, and type_size.
11060
11061 2008-08-04  Jason Merrill  <jason@redhat.com>
11062
11063         PR c++/37016
11064         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
11065         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
11066
11067 2008-08-05  Richard Henderson  <rth@redhat.com>
11068
11069         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
11070         * configure: Rebuild.
11071
11072 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11073
11074         PR tree-opt/37024
11075         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
11076         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
11077         is a conversion.
11078
11079 2008-08-05  Richard Henderson  <rth@redhat.com>
11080
11081         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
11082         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
11083         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
11084         * common.opt (fdwarf2-cfi-asm): New.
11085         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
11086         * config.in, configure: Rebuild.
11087         * dwarf2asm.c (dw2_asm_output_data_raw): New.
11088         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw):
11089         New.
11090         (dw2_force_const_mem): Externalize.
11091         * dwarf2asm.h: Update.
11092         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
11093         generate a real label.
11094         (output_cfi_directive): New.
11095         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
11096         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
11097         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
11098         and .cfi_lsda.
11099         (dwarf2out_end_epilogue): Emit .cfi_endproc.
11100         (output_loc_operands_raw, output_loc_sequence_raw): New.
11101         (output_cfa_loc_raw): New.
11102
11103 2008-08-05  Paul Brook  <paul@codesourcery.com>
11104
11105         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
11106         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
11107         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
11108         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
11109         * config/arm/arm.h (TARGET_VFPD32): Define.
11110         (TARGET_VFP3): Use TARGET_VFPD32.
11111         (fputype): Add FPUTYPE_VFP3D16.
11112         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
11113         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
11114         * config/arm/arm-cores.def: Add cortex-r4f.
11115         * config/arm/arm-tune.md: Regenerate.
11116
11117 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11118
11119         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
11120         Reword some comments throughout the file.
11121
11122         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
11123         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
11124         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of
11125         MFC_MIN_DMA_LIST_ELEMENTS.
11126         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of
11127         MFC_MAX_DMA_LIST_ELEMENTS.
11128
11129         (MFC_START_ENABLE): Remove PPU-only define.
11130         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
11131         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
11132
11133         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
11134         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
11135         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
11136         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
11137         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
11138         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
11139         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
11140
11141         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
11142         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
11143         (mfc_sdcrt, mfc_sdcrtst): Likewise.
11144         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
11145
11146         (spu_read_machine_status): Fix typo.
11147
11148 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11149
11150         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
11151         SUBREG of multi-word hard register.
11152         * config/spu/spu.c (valid_subreg): Likewise.
11153         (adjust_operand): Handle SUBREGs of multi-word hard registers.
11154
11155 2008-08-04  Richard Guenther  <rguenther@suse.de>
11156
11157         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
11158         the candidate with the stripped base if that base is different
11159         from the original base even for offset zero.
11160
11161 2008-08-04  Richard Guenther  <rguenther@suse.de>
11162
11163         PR middle-end/36691
11164         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
11165         check for no_overflow.
11166
11167 2008-08-04  Richard Guenther  <rguenther@suse.de>
11168
11169         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
11170
11171 2008-08-04  Paul Brook  <paul@codesourcery.com>
11172
11173         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
11174         (arm_order_regs_for_local_alloc): New function.
11175         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
11176         prototype.
11177         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
11178
11179 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11180
11181         PR target/37012
11182         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
11183         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
11184         (ix86_expand_epilogue): Likewise.
11185
11186 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
11187
11188         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
11189         in comments.
11190
11191 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
11192
11193         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
11194         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
11195         (*movv2sf_internal_rex64): Ditto.
11196
11197 2008-08-03  Jan Hubicka  <jh@suse.cz>
11198
11199         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
11200         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
11201         * expmed.c (expand_smod_pow2): Likewise.
11202
11203 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
11204
11205         PR target/36992
11206         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
11207         alternative 0 of operand 1.
11208         (*vec_concatv2di_rex64_sse): Ditto.
11209         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
11210         of operand 1.
11211         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
11212         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
11213         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
11214         (*movv2sf_internal_rex64): Ditto.
11215
11216 2008-08-02  Richard Guenther  <rguenther@suse.de>
11217
11218         PR target/35252
11219         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
11220         (ssedoublesizemode): New mode attribute.
11221         (sse_shufps): Call gen_sse_shufps_v4sf.
11222         (sse_shufps_1): Macroize.
11223         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
11224         (sse2_shufpd_1): Macroize.
11225         (vec_extract_odd, vec_extract_even): New expanders.
11226         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
11227         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
11228         * i386.c (ix86_expand_vector_init_one_nonzero): Call
11229         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
11230         (ix86_expand_vector_set): Likewise.
11231         (ix86_expand_reduc_v4sf): Likewise.
11232
11233 2008-08-01  Doug Kwan  <dougkwan@google.com>
11234
11235         * matrix-reorg.c: Re-enable all code.
11236         (struct malloc_call_data): Change CALL_STMT to gimple type.
11237         (collect_data_for_malloc_call): Tuplify.
11238         (struct access_site_info): Change STMT to gimple type.
11239         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
11240         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
11241         (struct free_info): Change STMT to gimple type.
11242         (struct matrix_access_phi_node):  Change PHI to gimple type.
11243         (get_inner_of_cast_expr): Remove.
11244         (may_flatten_matrices_1): Tuplify.
11245         (may_flatten_matrices): Ditto.
11246         (mark_min_matrix_escape_level): Ditto.
11247         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
11248         (ssa_accessed_in_call_rhs): New
11249         (ssa_accessed_in_assign_rhs): New
11250         (record_access_alloc_site_info): Tuplify.
11251         (add_allocation_site): Ditto.
11252         (analyze_matrix_allocation_site): Ditto.
11253         (analyze_transpose): Ditto.
11254         (get_index_from_offset): Ditto.
11255         (update_type_size): Ditto.
11256         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
11257         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
11258         (analyze_accesses_for_phi_node): Tuplify.
11259         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
11260         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
11261         (analyze_matrix_accesses): Tuplify.
11262         (check_var_data): New call-back type for check_var_notmodified_p.
11263         (check_var_notmodified_p): Tuplify and use call-back struct to
11264         return statement found.
11265         (can_calculate_expr_before_stmt): Factor out statement related code
11266         into ...
11267         (can_calculate_stmt_before_stmt): New.
11268         (check_allocation_function): Tuplify.
11269         (find_sites_in_func): Ditto.
11270         (record_all_accesses_in_func): Ditto.
11271         (transform_access_sites): Ditto.
11272         (transform_allocation_sites): Ditto.
11273         (matrix_reorg): Re-enable.
11274         (gate_matrix_reorg): Re-enable.
11275
11276 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
11277
11278         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
11279         for labels for which it hasn't been set yet.  If it has been set,
11280         stop walking insns and continue with next worklist item.
11281         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
11282         if the only BARRIER is at the very end of a function.
11283
11284 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
11285
11286         * cfgexpand.c (expand_stack_alignment): Assert that
11287         stack_realign_drap and drap_rtx must match.
11288
11289         * function.c (instantiate_new_reg): If DRAP is used to realign
11290         stack, replace virtual_incoming_args_rtx with internal arg
11291         pointer.
11292
11293 2008-08-01  Richard Guenther  <rguenther@suse.de>
11294
11295         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
11296         loop information only if we initialized it.
11297         (execute_pre): Call fini_pre with in_fre.
11298         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
11299         if we do not unroll because we hit max-completely-peeled-insns.
11300         Use our estimation for consistency, do allow shrinking.
11301
11302 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
11303
11304         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
11305         with MIN_STACK_BOUNDARY.
11306         (ix86_update_stack_boundary): Likewise.
11307         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
11308         STACK_BOUNDARY.
11309
11310         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
11311         (MIN_STACK_BOUNDARY): This.
11312
11313 2008-08-01  Richard Guenther  <rguenther@suse.de>
11314
11315         PR middle-end/36997
11316         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
11317
11318 2008-08-01  Richard Guenther  <rguenther@suse.de>
11319
11320         PR tree-optimization/36988
11321         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
11322         do not matter if that doesn't change volatile qualification.
11323
11324 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
11325
11326         * configure.ac: Do not generate libada-mk.  Do not subst
11327         host_cc_for_libada.
11328         * libada-mk.in: Remove.
11329         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
11330         * configure: Regenerate.
11331
11332 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
11333
11334         * tree-pass.h: Added comment about not dumping passes with name
11335         starting with star in struct opt_pass.
11336         * passes.c (register_dump_files_1): Don't do dump for a pass with
11337         name starting with star.
11338         * doc/passes.texi (Pass manager): Mention pass names and special
11339         meaning of star prefix to avoid dump.
11340
11341 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
11342
11343         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
11344         to MIPS64r2.
11345         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
11346         (ISA_MIPS64R2): New macro.
11347         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
11348         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
11349         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
11350         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
11351         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
11352         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
11353         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
11354         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
11355         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
11356         Move up to keep list alphabetically sorted.
11357         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
11358         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
11359         processor.
11360         * doc/invoke.texi (MIPS Options): Add -mips64r2.
11361         (-march=@var{arch}): Add mips64r2.
11362
11363 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
11364
11365         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
11366
11367 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
11368
11369         * expr.c (expand_assignment): Check for complete type.
11370
11371 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
11372
11373         PR debug/36977
11374         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
11375
11376         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
11377         for stack alignment.
11378
11379         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
11380
11381 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
11382
11383         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
11384         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
11385
11386 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
11387
11388         PR rtl-optimization/36419
11389         * dwarf2out.c (barrier_args_size): New variable.
11390         (compute_barrier_args_size, compute_barrier_args_size_1): New
11391         functions.
11392         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
11393         if not called yet in the current function, use barrier_args_size
11394         array to find the new args_size value.
11395         (dwarf2out_frame_debug): Free and clear barrier_args_size.
11396
11397 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
11398
11399         PR debug/36980
11400         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
11401         rule 19.
11402
11403 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
11404
11405         PR debug/36976
11406         * dwarf2out.c (dwarf2out_args_size_adjust): New.
11407         (dwarf2out_stack_adjust): Use it.
11408         (dwarf2out_frame_debug_expr): Likewise.
11409
11410 2008-07-31  Richard Guenther  <rguenther@suse.de>
11411
11412         PR tree-optimization/36978
11413         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
11414         the generated condition.
11415
11416 2008-07-31  Richard Guenther  <rguenther@suse.de>
11417
11418         * passes.c (init_optimization_passes): Always call
11419         pass_early_warn_uninitialized.
11420         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
11421         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
11422         * doc/passes.texi (Warn for uninitialized variables): Adjust.
11423
11424 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
11425
11426         PR c/36970
11427         * builtins.c (maybe_emit_free_warning): New function.
11428         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
11429         maybe_emit_free_warning for BUILT_IN_FREE.
11430
11431         PR debug/36278
11432         * dwarf2out.c (get_context_die): New function.
11433         (force_decl_die, force_type_die): Use it.
11434         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
11435         returns NULL, force generation of DW_TAG_typedef and put that into
11436         DW_AT_import.
11437
11438         PR preprocessor/36649
11439         * c-pch.c (c_common_read_pch): Save and restore
11440         line_table->trace_includes across PCH restore.
11441
11442 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
11443
11444         PR ada/36554
11445         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
11446
11447 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
11448
11449         PR 36974
11450         * final.c (call_from_call_insn): Handle COND_EXEC.
11451
11452 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
11453
11454         * builtins.c (std_gimplify_va_arg_expr): Replace
11455         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
11456         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
11457
11458 2008-07-30  Joey Ye  <joey.ye@intel.com>
11459             H.J. Lu  <hongjiu.lu@intel.com>
11460
11461         * builtins.c (expand_builtin_setjmp_receiver): Replace
11462         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
11463         (expand_builtin_apply_args_1): Likewise.
11464         (expand_builtin_longjmp): Need DRAP for stack alignment.
11465         (expand_builtin_apply): Likewise.
11466
11467         * caller-save.c (setup_save_areas): Call assign_stack_local_1
11468         instead of assign_stack_local to allow alignment reduction.
11469
11470         * calls.c (emit_call_1): Need DRAP for stack alignment if
11471         return pops.
11472         (expand_call): Replace virtual_incoming_args_rtx with
11473         crtl->args.internal_arg_pointer.
11474         * stmt.c (expand_nl_goto_receiver): Likewise.
11475
11476         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
11477         alignment and store to stack_alignment_estimated and
11478         max_used_stack_slot_alignment.
11479         (expand_one_var): Likewise.
11480         (expand_stack_alignment): New function.
11481         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
11482         and stack_alignment_estimated fields in rtl_data.  Call
11483         expand_stack_alignment at end.
11484
11485         * defaults.h (INCOMING_STACK_BOUNDARY): New.
11486         (MAX_STACK_ALIGNMENT): Likewise.
11487         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
11488         (SUPPORTS_STACK_ALIGNMENT): Likewise.
11489
11490         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
11491         stack alignment when generating virtual registers.
11492
11493         * function.c (assign_stack_local): Renamed to ...
11494         (assign_stack_local_1): This.  Add a parameter to indicate
11495         if it is OK to reduce alignment.
11496         (assign_stack_local): Use it.
11497         (instantiate_new_reg): Instantiate virtual incoming args rtx
11498         to vDRAP if stack realignment and DRAP is needed.
11499         (assign_parms): Collect parameter/return type alignment and
11500         contribute to stack_alignment_estimated.
11501         (locate_and_pad_parm): Likewise.
11502         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
11503         with crtl->args.internal_arg_pointer.
11504
11505         * function.h (rtl_data): Add new field drap_reg,
11506         max_used_stack_slot_alignment, stack_alignment_estimated,
11507         stack_realign_needed, need_drap, stack_realign_processed and
11508         stack_realign_finalized.
11509         (stack_realign_fp): New macro.
11510         (stack_realign_drap): Likewise.
11511
11512         * global.c (compute_regsets): Frame pointer is needed when
11513         stack is realigned.  Can eliminate frame pointer when stack is
11514         realigned and dynamic realigned argument pointer isn't used.
11515
11516         * reload1.c (update_eliminables):  Frame pointer is needed
11517         when stack is realigned.
11518         (init_elim_table): Can eliminate frame pointer when stack is
11519         realigned and dynamic realigned argument pointer isn't used.
11520
11521         * rtl.h (assign_stack_local_1): Declare new funtion.
11522
11523         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
11524         (TARGET_GET_DRAP_RTX): Likewise.
11525         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
11526         TARGET_GET_DRAP_RTX.
11527
11528         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
11529
11530         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
11531         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
11532
11533 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
11534             H.J. Lu  <hongjiu.lu@intel.com>
11535
11536         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
11537         vdrap_reg, stack_realign and drap_reg_saved.
11538         (add_cfi): Don't allow redefining CFA when DRAP is used.
11539         (reg_save): Handle stack alignment.
11540         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
11541         alignment.  Don't generate DWARF information for (set fp sp)
11542         when DRAP is used.
11543         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
11544         to INVALID_REGNUM.
11545         (int_loc_descriptor): Move prototype forward.  Also define if
11546         DWARF2_UNWIND_INFO is true.
11547         (output_cfa_loc): Handle DW_CFA_expression.
11548         (build_cfa_aligned_loc): New.
11549         (based_loc_descr): Update assert for stack realign.  For local
11550         variables, use sp+offset when stack is aligned without drap and
11551         fp+offset when stack is aligned with drap.  For arguments, use
11552         cfa+offset when drap is used to align stack.
11553
11554 2008-07-30  Joey Ye  <joey.ye@intel.com>
11555             H.J. Lu  <hongjiu.lu@intel.com>
11556
11557         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
11558         Break long line.
11559         (ix86_gen_andsp): New.
11560         (ix86_user_incoming_stack_boundary): Likewise.
11561         (ix86_default_incoming_stack_boundary): Likewise.
11562         (ix86_incoming_stack_boundary): Likewise.
11563         (ix86_can_eliminate): Likewise.
11564         (find_drap_reg): Likewise.
11565         (ix86_update_stack_boundary): Likewise.
11566         (ix86_get_drap_rtx): Likewise.
11567         (ix86_finalize_stack_realign_flags): Likewise.
11568         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
11569         (TARGET_GET_DRAP_RTX): Likewise.
11570         (override_options): Overide option value for new options.
11571         (ix86_function_ok_for_sibcall): Remove check for
11572         force_align_arg_pointer.
11573         (ix86_handle_cconv_attribute): Likewise.
11574         (ix86_function_regparm): Likewise.
11575         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
11576         (ix86_va_start): Replace virtual_incoming_args_rtx with
11577         crtl->args.internal_arg_pointer.
11578         (ix86_select_alt_pic_regnum): Check DRAP register.
11579         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
11580         (ix86_compute_frame_layout): Compute frame layout wrt stack
11581         realignment.
11582         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
11583         (ix86_expand_prologue): Decide if stack realignment is needed
11584         and generate prologue code accordingly.
11585         (ix86_expand_epilogue): Generate epilogue code wrt stack
11586         realignment is really needed or not.
11587
11588         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
11589         (ABI_STACK_BOUNDARY): Likewise.
11590         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
11591         (STACK_REALIGN_DEFAULT): Likewise.
11592         (INCOMING_STACK_BOUNDARY): Likewise.
11593         (MAX_STACK_ALIGNMENT): Likewise.
11594         (ix86_incoming_stack_boundary): Likewise.
11595         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
11596         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
11597         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
11598         (machine_function): Remove force_align_arg_pointer.
11599
11600         * config/i386/i386.md (BX_REG): New.
11601         (R13_REG): Likewise.
11602
11603         * config/i386/i386.opt (mforce_drap): New.
11604         (mincoming-stack-boundary): Likewise.
11605         (mstackrealign): Add Init(-1).
11606
11607         * config/i386/i386-protos.h (ix86_can_eliminate): New
11608
11609 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
11610
11611         * doc/extend.texi: Update force_align_arg_pointer.
11612
11613         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
11614         -mstackrealign.
11615
11616         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
11617         (INCOMING_STACK_BOUNDARY): Likewise.
11618         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
11619         (TARGET_GET_DRAP_RTX): Likewise.
11620
11621 2008-07-30  Andreas Schwab  <schwab@suse.de>
11622
11623         PR rtl-optimization/36929
11624         * dse.c (replace_inc_dec): Use emit_insn_before instead of
11625         add_insn_before and fix argument order.
11626         (replace_inc_dec_mem): Handle NULL rtx.
11627
11628 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
11629
11630         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
11631         function.
11632         (arm_compute_initial_elimination_offset): Use it.
11633         (arm_compute_save_reg_mask): Include static chain save slot when
11634         calculating alignment.
11635         (arm_get_frame_offsets): Ditto.
11636         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
11637         that we can use to decrement the stack when the stack decrement
11638         could be too big for an immediate value in a single insn.
11639         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
11640
11641 2008-07-30  Richard Guenther  <rguenther@suse.de>
11642
11643         PR tree-optimization/36967
11644         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
11645         Release defs of statements we remove.
11646
11647 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
11648
11649         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
11650         instead of NULL_RTVEC.
11651
11652 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
11653
11654         PR target/35866
11655
11656         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
11657         vector modes.
11658
11659 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
11660
11661         * final.c (call_from_call_insn): New.
11662         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
11663
11664 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
11665
11666         * configure.ac: Substitute ADA_CFLAGS.
11667         * configure: Regenerate.
11668         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
11669         * Makefile.in: Remove mention of X_* variables.
11670         * config/pa/x-ada-hpux10: Remove.
11671         * config/pa/x-ada: Remove.
11672
11673         * doc/fragments.texi: Update.
11674
11675 2008-07-30  Olivier Hainque  <hainque@adacore.com>
11676
11677         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
11678         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
11679         __dso_handle explicitly here.
11680
11681 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11682
11683         PR 34389
11684         * c-typeck.c (build_binary_op): Encapsulate code into...
11685         * c-common.c (shorten_binary_op): ...this new function.
11686         (conversion_warning): Use the new function. Handle non-negative
11687         constant in bitwise-and.
11688         * c-common.h (shorten_binary_op): Declare.
11689
11690 2008-07-30  Olivier Hainque  <hainque@adacore.com>
11691
11692         * scan.c (make_sstring_space): Add explicit conversions of
11693         allocator's return value.
11694         * fix-header.c (recognized_function): Likewise.
11695
11696 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11697
11698         * doc/cpp.texi: Update to GFDL 1.2.
11699         * doc/gcc.texi: Do not list GPL as Invariant Section.
11700         * doc/gccint.texi: Likewise.  Update copyright years.
11701         * doc/install.texi: Update copyright years.
11702
11703 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
11704
11705         PR target/36955
11706         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
11707         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
11708
11709 2008-07-29  Jan Hubicka  <jh@suse.cz>
11710
11711         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
11712         (grokdeclarator): Likewise.
11713         * langhooks.c (lhd_warn_unused_global_decl): Use
11714         DECL_DECLARED_INLINE_P.
11715         * print-tree.c (print_node): Remove DECL_INLINE check.
11716
11717 2008-07-29  Richard Guenther  <rguenther@suse.de>
11718
11719         PR tree-optimization/36945
11720         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
11721         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
11722         Record invariant addresses un-decomposed.
11723         (copy_reference_ops_from_call): Record reference call
11724         arguments properly.  Simplify.
11725         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
11726         helper split out from ...
11727         (create_component_ref_by_pieces): ... here.  Simplify.
11728         Prepare for recursive invocation for call arguments.
11729         (create_expression_by_pieces): Adjust call to
11730         create_component_ref_by_pieces.
11731         (compute_avail): Process operand 2 of reference ops.
11732
11733 2008-07-29  Richard Guenther  <rguenther@suse.de>
11734
11735         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
11736
11737 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
11738
11739         * c-format.c (check_format_types): Revert unwanted checkin.
11740
11741 2008-07-29  Jan Hubicka  <jh@suse.cz>
11742
11743         * flags.h (flag_really_no_inline): Remove.
11744         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
11745         * toplev.c (flag_really_no_inline): Remove.
11746         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
11747         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
11748         (cgraph_decide_inlining_incrementally): Likewise.
11749         (compute_inline_parameters): Likewise.
11750         * opts.c (decode_options): Simplify.
11751         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
11752         * common.opt (finline): Initialize to 1.
11753         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
11754
11755 2008-07-29  Jan Hubicka  <jh@suse.cz>
11756
11757         * predict.c (always_optimize_for_size_p): New function.
11758         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
11759         optimize_edge_for_size_p, optimize_edge_for_speed_p,
11760         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
11761         functions.
11762         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
11763         * function.c (prepare_function_start): Set default profile.
11764         * function.h (rtl_data): Add maybe_hot_insn_p.
11765         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
11766         (construct_exit_block): Likewise.
11767         (tree_expand_cfg): Likewise.
11768         * basic-block.h
11769         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
11770         optimize_edge_for_size_p, optimize_edge_for_speed_p,
11771         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
11772         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
11773         Declare.
11774
11775 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11776
11777         PR 34985
11778         * c-decl.c (merge_decls): Merge USED flags.
11779
11780 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
11781
11782         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
11783         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
11784         next_stack, lab_false and lab_over trees.
11785
11786 2008-07-28  Richard Guenther  <rguenther@suse.de>
11787
11788         PR tree-optimization/36957
11789         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
11790         (useless_type_conversion_p): Remove.
11791         (types_compatible_p): Remove.
11792         * gimple.h (tree_ssa_useless_type_conversion): Declare.
11793         (useless_type_conversion_p): Declare.
11794         (types_compatible_p): Declare.
11795         (gimple_expr_type): Return the base type only if it is
11796         trivially convertible to the subtype.
11797
11798 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
11799
11800         * configure.ac: Use the m4_do macro to concatenate the warnings into
11801         one string in ACX_PROG_CC_WARNING_OPTS,
11802         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
11803         ACX_PROG_CC_WARNINGS_ARE_ERRORS.
11804         * configure: Regenerate.
11805
11806 2008-07-28  Richard Guenther  <rguenther@suse.de>
11807
11808         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
11809         (insert_fake_stores): Remove.
11810         (realify_fake_stores): Likewise.
11811         (execute_pre): Remove dead code.
11812         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
11813         (find_func_aliases): Deal with it here instead.
11814         Re-enable gcc_unreachable call.
11815
11816 2008-07-28  Richard Guenther  <rguenther@suse.de>
11817
11818         Merge from gimple-tuples-branch.
11819
11820         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
11821         * gimple.def: New file.
11822         * gsstruct.def: Likewise.
11823         * gimple-iterator.c: Likewise.
11824         * gimple-pretty-print.c: Likewise.
11825         * tree-gimple.c: Removed.  Merged into ...
11826         * gimple.c: ... here.  New file.
11827         * tree-gimple.h: Removed.  Merged into ...
11828         * gimple.h: ... here.  New file.
11829
11830         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
11831         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
11832         --enable-checking=gimple flag.
11833         * config.in: Likewise.
11834         * configure: Regenerated.
11835
11836         * tree-ssa-operands.h: Tuplified.
11837         * tree-vrp.c: Likewise.
11838         * tree-loop-linear.c: Likewise.
11839         * tree-into-ssa.c: Likewise.
11840         * tree-ssa-loop-im.c: Likewise.
11841         * tree-dump.c: Likewise.
11842         * tree-complex.c: Likewise.
11843         * cgraphbuild.c: Likewise.
11844         * tree-ssa-threadupdate.c: Likewise.
11845         * tree-ssa-loop-niter.c: Likewise.
11846         * tree-pretty-print.c: Likewise.
11847         * tracer.c: Likewise.
11848         * gengtype.c: Likewise.
11849         * tree-loop-distribution.c: Likewise.
11850         * tree-ssa-loop-unswitch.c: Likewise.
11851         * cgraph.c: Likewise.
11852         * cgraph.h: Likewise.
11853         * tree-ssa-loop-manip.c: Likewise.
11854         * value-prof.c: Likewise.
11855         * tree-ssa-loop-ch.c: Likewise.
11856         * tree-tailcall.c: Likewise.
11857         * value-prof.h: Likewise.
11858         * tree.c: Likewise.
11859         * tree.h: Likewise.
11860         * tree-pass.h: Likewise.
11861         * ipa-cp.c: Likewise.
11862         * tree-scalar-evolution.c: Likewise.
11863         * tree-scalar-evolution.h: Likewise.
11864         * target.h: Likewise.
11865         * lambda-mat.c: Likewise.
11866         * tree-phinodes.c: Likewise.
11867         * diagnostic.h: Likewise.
11868         * builtins.c: Likewise.
11869         * tree-ssa-alias-warnings.c: Likewise.
11870         * cfghooks.c: Likewise.
11871         * fold-const.c: Likewise.
11872         * cfghooks.h: Likewise.
11873         * omp-low.c: Likewise.
11874         * tree-ssa-dse.c: Likewise.
11875         * ipa-reference.c: Likewise.
11876         * tree-ssa-uncprop.c: Likewise.
11877         * toplev.c: Likewise.
11878         * tree-gimple.c: Likewise.
11879         * tree-gimple.h: Likewise.
11880         * tree-chrec.c: Likewise.
11881         * tree-chrec.h: Likewise.
11882         * tree-ssa-sccvn.c: Likewise.
11883         * tree-ssa-sccvn.h: Likewise.
11884         * cgraphunit.c: Likewise.
11885         * tree-ssa-copyrename.c: Likewise.
11886         * tree-ssa-ccp.c: Likewise.
11887         * tree-ssa-loop-ivopts.c: Likewise.
11888         * tree-nomudflap.c: Likewise.
11889         * tree-call-cdce.c: Likewise.
11890         * ipa-pure-const.c: Likewise.
11891         * c-format.c: Likewise.
11892         * tree-stdarg.c: Likewise.
11893         * tree-ssa-math-opts.c: Likewise.
11894         * tree-ssa-dom.c: Likewise.
11895         * tree-nrv.c: Likewise.
11896         * tree-ssa-propagate.c: Likewise.
11897         * ipa-utils.c: Likewise.
11898         * tree-ssa-propagate.h: Likewise.
11899         * tree-ssa-alias.c: Likewise.
11900         * gimple-low.c: Likewise.
11901         * tree-ssa-sink.c: Likewise.
11902         * ipa-inline.c: Likewise.
11903         * c-semantics.c: Likewise.
11904         * dwarf2out.c: Likewise.
11905         * expr.c: Likewise.
11906         * tree-ssa-loop-ivcanon.c: Likewise.
11907         * predict.c: Likewise.
11908         * tree-ssa-loop.c: Likewise.
11909         * tree-parloops.c: Likewise.
11910         * tree-ssa-address.c: Likewise.
11911         * tree-ssa-ifcombine.c: Likewise.
11912         * matrix-reorg.c: Likewise.
11913         * c-decl.c: Likewise.
11914         * tree-eh.c: Likewise.
11915         * c-pretty-print.c: Likewise.
11916         * lambda-trans.c: Likewise.
11917         * function.c: Likewise.
11918         * langhooks.c: Likewise.
11919         * ebitmap.h: Likewise.
11920         * tree-vectorizer.c: Likewise.
11921         * function.h: Likewise.
11922         * langhooks.h: Likewise.
11923         * tree-vectorizer.h: Likewise.
11924         * ipa-type-escape.c: Likewise.
11925         * ipa-type-escape.h: Likewise.
11926         * domwalk.c: Likewise.
11927         * tree-if-conv.c: Likewise.
11928         * profile.c: Likewise.
11929         * domwalk.h: Likewise.
11930         * tree-data-ref.c: Likewise.
11931         * tree-data-ref.h: Likewise.
11932         * tree-flow-inline.h: Likewise.
11933         * tree-affine.c: Likewise.
11934         * tree-vect-analyze.c: Likewise.
11935         * c-typeck.c: Likewise.
11936         * gimplify.c: Likewise.
11937         * coretypes.h: Likewise.
11938         * tree-ssa-phiopt.c: Likewise.
11939         * calls.c: Likewise.
11940         * tree-ssa-coalesce.c: Likewise.
11941         * tree.def: Likewise.
11942         * tree-dfa.c: Likewise.
11943         * except.c: Likewise.
11944         * except.h: Likewise.
11945         * cfgexpand.c: Likewise.
11946         * tree-cfgcleanup.c: Likewise.
11947         * tree-ssa-pre.c: Likewise.
11948         * tree-ssa-live.c: Likewise.
11949         * tree-sra.c: Likewise.
11950         * tree-ssa-live.h: Likewise.
11951         * tree-predcom.c: Likewise.
11952         * lambda.h: Likewise.
11953         * tree-mudflap.c: Likewise.
11954         * ipa-prop.c: Likewise.
11955         * print-tree.c: Likewise.
11956         * tree-ssa-copy.c: Likewise.
11957         * ipa-prop.h: Likewise.
11958         * tree-ssa-forwprop.c: Likewise.
11959         * ggc-page.c: Likewise.
11960         * c-omp.c: Likewise.
11961         * tree-ssa-dce.c: Likewise.
11962         * tree-vect-patterns.c: Likewise.
11963         * tree-ssa-ter.c: Likewise.
11964         * tree-nested.c: Likewise.
11965         * tree-ssa.c: Likewise.
11966         * lambda-code.c: Likewise.
11967         * tree-ssa-loop-prefetch.c: Likewise.
11968         * tree-inline.c: Likewise.
11969         * tree-inline.h: Likewise.
11970         * tree-iterator.c: Likewise.
11971         * tree-optimize.c: Likewise.
11972         * tree-ssa-phiprop.c: Likewise.
11973         * tree-vect-transform.c: Likewise.
11974         * tree-object-size.c: Likewise.
11975         * tree-outof-ssa.c: Likewise.
11976         * cfgloop.c: Likewise.
11977         * system.h: Likewise.
11978         * tree-profile.c: Likewise.
11979         * cfgloop.h: Likewise.
11980         * c-gimplify.c: Likewise.
11981         * c-common.c: Likewise.
11982         * tree-vect-generic.c: Likewise.
11983         * tree-flow.h: Likewise.
11984         * c-common.h: Likewise.
11985         * basic-block.h: Likewise.
11986         * tree-ssa-structalias.c: Likewise.
11987         * tree-switch-conversion.c: Likewise.
11988         * tree-ssa-structalias.h: Likewise.
11989         * tree-cfg.c: Likewise.
11990         * passes.c: Likewise.
11991         * ipa-struct-reorg.c: Likewise.
11992         * ipa-struct-reorg.h: Likewise.
11993         * tree-ssa-reassoc.c: Likewise.
11994         * cfgrtl.c: Likewise.
11995         * varpool.c: Likewise.
11996         * stmt.c: Likewise.
11997         * tree-ssanames.c: Likewise.
11998         * tree-ssa-threadedge.c: Likewise.
11999         * langhooks-def.h: Likewise.
12000         * tree-ssa-operands.c: Likewise.
12001         * config/alpha/alpha.c: Likewise.
12002         * config/frv/frv.c: Likewise.
12003         * config/s390/s390.c: Likewise.
12004         * config/m32c/m32c.c: Likewise.
12005         * config/m32c/m32c-protos.h: Likewise.
12006         * config/spu/spu.c: Likewise.
12007         * config/sparc/sparc.c: Likewise.
12008         * config/i386/i386.c: Likewise.
12009         * config/sh/sh.c: Likewise.
12010         * config/xtensa/xtensa.c: Likewise.
12011         * config/stormy16/stormy16.c: Likewise.
12012         * config/ia64/ia64.c: Likewise.
12013         * config/rs6000/rs6000.c: Likewise.
12014         * config/pa/pa.c: Likewise.
12015         * config/mips/mips.c: Likewise.
12016
12017 2008-07-28  Simon Baldwin  <simonb@google.com>
12018
12019         * c-pragma.c (handle_pragma_message): New function.
12020         (init_pragma): Register handle_pragma_message.
12021         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
12022         documentation.
12023
12024 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
12025
12026         PR tree-optimization/35252
12027         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
12028         REALPART_EXPR to be considered as same load operation.
12029
12030 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
12031
12032         PR tree-optimization/36830
12033         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
12034         (expressions_equal_p): Return false if only one operand is null.
12035
12036 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
12037
12038         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
12039         version requirements.
12040
12041 2008-07-26  Olivier Hainque  <hainque@adacore.com>
12042
12043         * collect2.c (symkind): New enum.  Symbol kinds we care about.
12044         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
12045         code and head comment accordingly.
12046         (scan_prog_file): Use symkind names instead of bare integers.
12047
12048 2008-07-25  Jan Hubicka  <jh@suse.cz>
12049
12050         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
12051         DECL_INLINE.
12052         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
12053         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
12054         * dojump.c (clear_pending_stack_adjust): Likewise.
12055         * print-tree.c (print_node): Ignore DECL_INLINE.
12056         * tree-inline.c (inlinable_function_p): Likewise.
12057
12058 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
12059
12060         * doc/extend.texi (hot attribute): Document that the hot attribute
12061         turns on -O3 for some ports.
12062         (cold attribute): Document that the cold attribute turns on -Os
12063         for some ports
12064
12065         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
12066         reflect function specific option support.
12067
12068         * target.h (struct target_option_hooks): Add fields to say whether
12069         the cold attribute implies -Os and the hot attribute implies -O3.
12070
12071         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
12072         By default, do not turn on -Os for cold functions.
12073         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
12074         not turn on -O3 for hot functions.
12075
12076         * c-common.c (handle_hot_attribute): Use target hook to determine
12077         if hot functions should enable -O3.
12078         (handle_cold_attribute): Use target hook to determine if cold
12079         functions should enable -Os.
12080
12081         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
12082         (override_options): Move disable scheduling to
12083         optimization_options.
12084         (optimization_options): Disable scheduling here, not
12085         override_options.
12086         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
12087         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
12088
12089         * config/ia64/ia64.c (ia64_override_options): Move setting
12090         scheduling flags to ia64_optimization_options.
12091         (ia64_optimization_options): Disable scheduling options here, and
12092         not in ia64_override_options.
12093         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
12094         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
12095
12096 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
12097
12098         PR target/36936
12099         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
12100
12101 2008-07-25  Martin Jambor  <mjambor@suse.cz>
12102
12103         PR tree-optimization/36926
12104         * ipa-prop.c (ipa_analyze_call_uses): Call
12105         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
12106
12107 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
12108
12109         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
12110         movv2si_internal): Add mem = reg alternative.
12111
12112 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
12113
12114         PR bootstrap/36918
12115         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
12116         DEFAULT_PCC_STRUCT_RETURN to 127.
12117
12118 2008-07-24  Jan Hubicka  <jh@suse.cz>
12119
12120         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
12121         (build_cgraph_edges): Likewise.
12122         * cgraph.c (cgraph_node): Do not update assembler hash.
12123         (cgraph_remove_node): Drop non-unit-at-a-time code.
12124         * tree-pass.h (pass_O0_always_inline): Remove.
12125         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
12126         * toplev.c (process_options): Flag unit-at-a-time does not imply
12127         no section anchors.
12128         * cgraphunit.c: Update comments.
12129         (decide_is_function_needed): Drop non-unit-at-a-time mode.
12130         (cgraph_assemble_pending_functions): Remove.
12131         (cgraph_reset_node): Drop non-unit-at-a-time code.
12132         (cgraph_finalize_function): Likewise.
12133         (cgraph_analyze_function): Likewise.
12134         (cgraph_finalize_compilation_unit): Likewise.
12135         (cgraph_expand_function): Likewise.
12136         (cgraph_optimize): Likesise.
12137         (save_inline_function_body): Likewise.
12138         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
12139         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
12140         * ipa-inline.c: Update comments.
12141         (enum inlining_mode): remove INLINE_SPEED.
12142         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
12143         (cgraph_mark_inline_edge): Likewise.
12144         (try_inline): Likewise.
12145         (cgraph_decide_inlining_incrementally): Likewise.
12146         (cgraph_gate_inlining): Remove.
12147         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
12148         (cgraph_gate_early_inlining): Likewise.
12149         (gate_inline_passes): Remove.
12150         (pass_inline_parameters, pass_ipa_inline): Remove gates.
12151         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
12152         pass_O0_always_inline): Remove.
12153         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
12154         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
12155         * opts.c (no_unit_at_a_time_default): Remove.
12156         (decode_options): Remove flag_unit_at_a_time reset and warning.
12157         * opts.h (no_unit_at_a_time_default): Remove.
12158         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
12159         early in GNU dialect.
12160         (merge_decls): Update comment; drop unit-at-a-time check.
12161         (finish_decl): Likewise.
12162         (grok_declaration): Remove flag_inline_trees code.
12163         (finish_functions): Return on function returning non-void on all
12164         statics.
12165         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
12166         * cfgexpand.c (expand_one_static_var): Remove.
12167         (expand_one_var): Remove expand_one_static_var call.
12168         (expand_used_vars_for_block): Remove flag_unit_a_time check.
12169         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
12170         and flag_unit_at_a-time compatibility checks.
12171         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
12172         * tree-inline.c (flag_inline_trees): Remove.
12173         (inlinable_function_p): Don't check it.
12174         (expand_call_inline): Remove non-unit-at-a-time code.
12175         * tree-inline.h (flag_inline_trees): Remove.
12176         * tree-optimize.c (execute_early_local_optimizations): Remove
12177         unit-at-a-time checks.
12178         (tree_rest_of_compilation): Likewise.
12179         * combine.c (setup_incoming_promotions): Likewise.
12180         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
12181         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
12182         * passes.c (pass_inline_parameters): Update comments; remove
12183         O0_alwaysinline pass.
12184         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
12185         (execute_one_pass): Likewise.
12186         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
12187         (ix86_function_sseregparm): Likewise.
12188         * arm.c (arm_function_in_section_p): Likewise.
12189         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
12190         * varpool.c: Update comments.
12191         (decide_is_variable_needed): Remove unit-at-a-time checks.
12192         (varpool_finalize_decl): Likewise.
12193
12194 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
12195
12196         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
12197         to 2 instead of -1.
12198         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
12199
12200 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
12201
12202         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
12203         imp symbol extension.
12204
12205         2008-07-23  Ian Lance Taylor  <iant@google.com>
12206
12207         * tree-vrp.c (infer_value_range): Ignore asm statements when
12208         looking for memory accesses for -fdelete-null-pointer-checks.
12209
12210 2008-07-24  Ben Elliston  <bje@au.ibm.com>
12211
12212         * config/spu/spu-c.c (__vector_keyword): New variable.
12213         (vector_keyword): Likewise.
12214         (spu_categorize_keyword): New function.
12215         (spu_macro_to_expand): Likewise.
12216         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
12217         compiling an ISO C dialect.
12218
12219 2008-07-24  Ben Elliston  <bje@au.ibm.com>
12220
12221         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
12222         conventional usage.
12223
12224 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
12225
12226         * configure: Regenerate.
12227         * configure.ac: Require texinfo 4.7.
12228         * doc/install.texi: Document texinfo 4.7 requirement.
12229
12230 2008-07-23  Martin Jambor  <mjambor@suse.cz>
12231
12232         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
12233         rather than for DECL_SAVED_TREE.
12234         * ipa-prop.c: Include diagnostic.h.
12235         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
12236         thoroughly.
12237         (ipa_detect_param_modifications): Function rewritten from scratch.
12238         (ipa_compute_jump_functions): Changed accesses to modification flags.
12239         (ipa_free_node_params_substructures): Update flags destruction.
12240         (ipa_node_duplication_hook): Update flags duplication.
12241         (ipa_print_all_params_modified): Updated flag access.
12242         * ipa-prop.h (struct ipa_param_flags): New structure.
12243         (struct ipa_node_params): New field modification_analysis_done,
12244         modified_flags changed into param_flags.
12245         (ipa_is_ith_param_modified): Changed to use new flags.
12246         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
12247
12248         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
12249         ipa-cp.c and split into two functions.
12250         (ipa_print_node_jump_functions): New function.
12251         (compute_scalar_jump_functions): New function.
12252         (type_like_member_ptr_p): New function.
12253         (compute_pass_through_member_ptrs): New function.
12254         (fill_member_ptr_cst_jump_function): New function.
12255         (determine_cst_member_ptr): New function.
12256         (compute_cst_member_ptr_arguments): New function.
12257         (ipa_compute_jump_functions): Complete rewrite.
12258         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
12259         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
12260         (struct ipa_member_ptr_cst): New structure.
12261         (union jump_func_value): New field member_cst.
12262         * ipa-cp.c (ipcp_lat_is_insertable): New function.
12263         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
12264         jump function types.
12265         (ipcp_print_all_lattices): Slight fprintf rearrangement.
12266         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
12267         instead of ipcp_print_all_jump_functions.
12268         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
12269         only for replacable scalars.
12270
12271         * doc/invoke.texi (Optimize options): Add description of
12272         -findirect-inlining.
12273         * common.opt (flag_indirect_inlining): New flag.
12274         * opts.c (decode_options): Set flag_indirect_inlining when
12275         optimize >= 3.
12276
12277         * ipa-inline.c: Include ipa-prop.h.
12278         (inline_indirect_intraprocedural_analysis): New function.
12279         (inline_generate_summary): Allocate parameter and argument info
12280         structures, call inline_indirect_intraprocedural_analysis on each
12281         node when doing indirect inlining and deallocate indirect inlining
12282         data structures in the end.
12283         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
12284         (free_all_ipa_structures_after_iinln): New function.
12285         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
12286         done.
12287         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
12288
12289         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
12290         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
12291         of computing the frequency separately.
12292         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
12293         of computing the frequency separately.
12294         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
12295         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
12296         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
12297         (ipa_get_stmt_member_ptr_load_param): New function.
12298         (ipa_is_ssa_with_stmt_def): New function.
12299         (ipa_note_param_call): New function.
12300         (ipa_analyze_call_uses): New function.
12301         (ipa_analyze_stmt_uses): New function.
12302         (ipa_analyze_params_uses): New function.
12303         (ipa_free_node_params_substructures): Also free the param_calls linked
12304         list.
12305         (ipa_node_duplication_hook): Also duplicate the param_calls
12306         linked list.
12307         (ipa_print_node_param_flags): New function.
12308         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
12309         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
12310         * ipa-prop.h (struct ipa_param_flags): New field called.
12311         (struct ipa_param_call_note): New structure.
12312         (struct ipa_node_params): New fields param_calls and
12313         uses_analysis_done.
12314         (ipa_is_ith_param_called): New function.
12315         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
12316         ipa_analyze_params_uses and dump parameter flags.
12317
12318         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
12319         ipa_propagate_indirect_call_infos if performing indirect inlining,
12320         pass a new parameter new_edges to it.
12321         (add_new_edges_to_heap): New fucntion.
12322         (cgraph_decide_inlining_of_small_functions): New vector
12323         new_indirect_edges for newly found indirect edges , call
12324         ipa_propagate_indirect_call_infos after inlining.
12325         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
12326         inlining if performing indirect inlining.  Call
12327         free_all_ipa_structures_after_iinln when doing so too.
12328         (inline_generate_summary): Do not call
12329         free_all_ipa_structures_after_iinln here.
12330         * ipa-prop.c (update_jump_functions_after_inlining): New function.
12331         (print_edge_addition_message): New function.
12332         (update_call_notes_after_inlining): New function.
12333         (propagate_info_to_inlined_callees): New function.
12334         (ipa_propagate_indirect_call_infos): New function.
12335         * ipa-prop.h: Include cgraph.h
12336         (struct ipa_param_call_note): Fields reordered, new field processed.
12337         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
12338         flag indirect_call.
12339         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
12340         rediscovered call statements.
12341         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
12342         (dump_cgraph_node): Dump also the indirect_call flag.
12343         (cgraph_clone_edge): Copy also the indirect_call flag.
12344         * tree-inline.c (copy_bb): Do not check for fndecls from call
12345         expressions, check for edge availability when moving clones.
12346         (get_indirect_callee_fndecl): New function.
12347         (expand_call_inline): If callee declaration is not apprent from
12348         the statement, try calling get_indirect_callee_fndecl.  Do not
12349         issue warnings or call sorry when not inlinings an indirect edge.
12350         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
12351
12352         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
12353         bit more frandly to matching.
12354         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
12355         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
12356         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
12357
12358 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
12359
12360         PR 36907
12361         * opth-gen.awk: Suppress function specific features when building
12362         target libraries.
12363         * optc-gen.awk: Ditto.
12364
12365 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12366
12367         PR 35058
12368         * diagnostic.c (pedwarn): Add opt parameter.
12369         (pedwarn0): New.
12370         * c-tree.h (pedwarn_init): Add opt parameter.
12371         (pedwarn_c90): Likewise.
12372         (pedwarn_c99): Likewise.
12373         * c-errors.c (pedwarn_c99): Likewise.
12374         (pedwarn_c90): Likewise.
12375         * toplev.h (pedwarn): Update declaration.
12376         (pedwarn0): Declare.
12377         * c-lex.c: All calls to pedwarn changed.
12378         * builtins.c: All calls to pedwarn changed.
12379         * toplev.c: All calls to pedwarn changed.
12380         * c-decl.c: All calls to pedwarn changed.
12381         * c-typeck.c: All calls to pedwarn changed.
12382         * c-common.c: All calls to pedwarn changed.
12383         * c-parser.c: All calls to pedwarn changed.
12384
12385 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
12386             Karthik Kumar  <karthikkumar@gmail.com>
12387
12388         * attribs.c (file scope): Include c-common.h.
12389         (decl_attributes): Add support for #pragma GCC optimize and
12390         #pragma GCC option.
12391
12392         * targhooks.c (default_can_inline_p): New function that is the
12393         default for the TARGET_CAN_INLINE_P target hook.
12394
12395         * targhooks.h (default_can_inline_p): Add declaration.
12396
12397         * tree.c (cl_optimization_node): New static tree for building
12398         OPTIMIZATION_NODE tree.
12399         (cl_target_option_node): New static tree for building
12400         TARGET_OPTION_NODE tree.
12401         (cl_option_hash_table): New hash table for hashing
12402         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
12403         (cl_option_hash_hash): New function to provide the hash value for
12404         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
12405         (cl_option_hash_eq): New function to provide an equality test for
12406         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
12407         (tree_code_size): Add support for OPTIMIZATION_NODE and
12408         TARGET_OPTION_NODE trees.
12409         (tree_code_structure): Add support for OPTIMIZATION_NODE and
12410         TARGET_OPTION_NODE trees.
12411         (build_optimization_node): Build a tree that has all of the
12412         current optimization options.
12413         (build_target_option_node): Build a tree that has the target
12414         options that might be changed on a per function basis.
12415
12416         * tree.h (file scope): Include options.h.
12417         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
12418         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
12419         (TREE_OPTIMIZATION): Ditto.
12420         (TREE_TARGET_SPECIFIC): Ditto.
12421         (struct tree_function_decl): Add fields for remembering the
12422         current optimization options and target specific options.
12423         (struct tree_optimization_option): New tree variant that remembers
12424         the optimization options.
12425         (struct tree_target_option): New tree variant that remembers the
12426         target specific flags that might change for compiling a particular
12427         function.
12428         (union tree_node): Include tree_optimization_option and
12429         tree_target_option fields.
12430         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
12431         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
12432         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
12433         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
12434         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
12435         optimization and target options.
12436         (optimization_default_node): New macro to refer to global_trees
12437         field.
12438         (optimization_current_node): Ditto.
12439         (optimization_cold_node): Ditto.
12440         (optimization_hot_node): Ditto.
12441         (target_option_default_node): Ditto.
12442         (target_option_current_node): Ditto.
12443         (current_option_pragma): Ditto.
12444         (current_optimize_pragma): Ditto.
12445
12446         * target.h (struct gcc_target): Add valid_option_attribute_p,
12447         target_option_save, target_option_restore, target_option_print,
12448         target_option_pragma_parse, and can_inline_p hooks.
12449
12450         * toplev.h (parse_optimize_options): Add declaration.
12451         (fast_math_flags_struct_set_p): Ditto.
12452
12453         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
12454         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
12455         optimize is used.
12456
12457         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
12458         tree_can_inline_p hook to see if one function can inline another.
12459         (cgraph_decide_inlining): Ditto.
12460         (cgraph_decide_inlining_incrementally): Ditto.
12461
12462         * opts.c (decode_options): Add support for running multiple times
12463         to allow functions with different target or optimization options
12464         than was specified on the command line.
12465         (fast_math_flags_struct_set_p): New function that is similar to
12466         fast_math_flags_set_p, except it uses the values in the
12467         cl_optimization structure instead of global variables.
12468
12469         * optc-gen.awk: Add support for TargetSave to allow a back end to
12470         declare new fields that need to be saved when using function
12471         specific options.  Include flags.h and target.h in the options.c
12472         source.  Add support for Save to indicate which options can be set
12473         for individual functions.  Generate cl_optimize_save,
12474         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
12475         cl_target_option_restore, cl_target_option_print functions to
12476         allow functions to use different optimization or target options.
12477
12478         * opt-functions.awk (var_type_struct): Return the type used for
12479         storing the field in a structure.
12480
12481         * opth-gen.awk: Add support for TargetSave to allow a back end to
12482         declare new fields that need to be saved when using function
12483         specific options.  Add support for Save to indicate which options
12484         can be set for individual functions.  Only generate one extern for
12485         Mask fields.  Generate cl_optimization and cl_target_option
12486         structures to remember optimization and target options.
12487
12488         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
12489         collecting new tree nodes.
12490         (TS_TARGET_OPTION): Ditto.
12491
12492         * c-decl.c (merge_decls): Merge function specific target and
12493         optimization options.
12494
12495         * function.c (invoke_set_current_function_hook): If the function
12496         uses different optimization options, change the global variables
12497         to reflect this.
12498
12499         * coretypes.h (struct cl_optimization): Add forward reference.
12500         (struct cl_target_option): Ditto.
12501
12502         * c-pragma.c (option_stack): New static vector to remember the
12503         current #pragma GCC option stack.
12504         (handle_pragma_option): New function to support #pragma GCC option
12505         to change target options.
12506         (optimize_stack): New static vector to remember the current
12507         #pragma GCC optimize stack.
12508         (handle_pragma_optimize): New function to support #pragma GCC
12509         optimize to change optimization options.
12510         (init_pragma): Add support for #pragma GCC optimize and #pragma
12511         GCC option.
12512
12513         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
12514         optimization options.
12515         (TARGET_OPTION_NODE): New tree code for remembering certain target
12516         options.
12517
12518         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
12519         TARGET_OPTION_NODE trees.
12520
12521         * common.opt (-O): Add Optimization flag.
12522         (-Os): Ditto.
12523         (-fmath-errno): Ditto.
12524         (-falign-functions): Add UInteger flag to make sure flag gets full
12525         int in cl_optimization structure.
12526         (-falign-jumps): Ditto.
12527         (-falign-labels): Ditto.
12528         (-falign-loops): Ditto.
12529         (-fsched-stalled-insns): Ditto.
12530         (-fsched-stalled-insns-dep): Ditto.
12531
12532         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
12533         definition.
12534         (TARGET_OPTION_SAVE): Ditto.
12535         (TARGET_OPTION_RESTORE): Ditto.
12536         (TARGET_OPTION_PRINT): Ditto.
12537         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
12538         (TARGET_CAN_INLINE_P): Ditto.
12539         (TARGET_INITIALIZER): Add new hooks.
12540
12541         * tree-inline.c (tree_can_inline_p): New function to determine
12542         whether one function can inline another.  Check if the functions
12543         use compatible optimization options, and also call the backend
12544         can_inline_p hook.
12545
12546         * tree-inline.h (tree_can_inline_p): Add declaration.
12547
12548         * c-common.c (c_common_attribute): Add support for option and
12549         optimize attributes.
12550         (handle_option_attribute): Add support for the option attribute to
12551         allow the user to specify different target options for compiling a
12552         specific function.
12553         (handle_optimize_attribute): Add support for the optimize
12554         attribute to allow the user to specify different optimization
12555         options for compiling a specific function.
12556         (handle_hot_attribute): Turn on -O3 optimization for this one
12557         function if it isn't the default optimization level.
12558         (handle_cold_attribute): Turn on -Os optimization for this one
12559         function if it insn't the default optimization.
12560         (const_char_p): New const char * typedef.
12561         (optimize_args): New static vector to remember the optimization
12562         arguments.
12563         (parse_optimize_options): New function to set up the optimization
12564         arguments from either the optimize attribute or #pragma GCC optimize.
12565
12566         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
12567         (builtin_define_std): Ditto.
12568
12569         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
12570         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
12571         (x86_64-*-*): Ditto.
12572
12573         * Makefile.in (TREE_H): Add options.h.
12574         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
12575
12576         * doc/extend.texi (option attribute): Document new attribute.
12577         (optimize attribute): Ditto.
12578         (hot attribute): Document hot attribute sets -O3.
12579         (cold attribute): Document cold attribute sets -Os.
12580         (#pragma GCC option): Document new pragma.
12581         (#pragma GCC optimize): Ditto.
12582
12583         * doc/options.texi (TargetSave): Document TargetSave syntax.
12584         (UInteger): Document UInteger must be used for certain flags.
12585         (Save): Document Save option to create target specific options
12586         that can be saved/restored on a function specific context.
12587
12588         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
12589         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
12590
12591         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
12592         (TARGET_OPTION_SAVE): Ditto.
12593         (TARGET_OPTION_RESTORE): Ditto.
12594         (TARGET_OPTION_PRINT): Ditto.
12595         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
12596         (TARGET_CAN_INLINE_P): Ditto.
12597
12598         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
12599         -mfpmath=sse,387.
12600         (-mfpmath=both): Ditto.
12601
12602 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
12603             Karthik Kumar  <karthikkumar@gmail.com>
12604
12605         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
12606         (TARGET_POPCNT): Ditto.
12607         (TARGET_SAHF): Ditto.
12608         (TARGET_AES): Ditto.
12609         (TARGET_PCLMUL): Ditto.
12610         (TARGET_CMPXCHG16B): Ditto.
12611         (TARGET_RECIP): Move switch into target_flags.
12612         (TARGET_FUSED_MADD): Ditto.
12613         (ix86_arch_features): Make an unsigned char type.
12614         (ix86_tune_features): Ditto.
12615         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
12616         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
12617         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
12618
12619         * config/i386/i386.opt (arch): New TargetSave field to define
12620         fields that need to be saved for function specific option support.
12621         (tune): Ditto.
12622         (fpmath): Ditto.
12623         (branch_cost): Ditto.
12624         (ix86_isa_flags_explicit): Ditto.
12625         (tune_defaulted): Ditto.
12626         (arch_specified): Ditto.
12627         (-m128-long-double): Add Save flag to save option for target
12628         specific option support.
12629         (-m80387): Ditto.
12630         (-maccumulate-outgoing-args): Ditto.
12631         (-malign-double): Ditto.
12632         (-malign-stringops): Ditto.
12633         (-mfancy-math-387): Ditto.
12634         (-mhard-float): Ditto.
12635         (-mieee-fp): Ditto.
12636         (-minline-all-stringops): Ditto.
12637         (-minline-stringops-dynamically): Ditto.
12638         (-mms-bitfields): Ditto.
12639         (-mno-align-stringops): Ditto.
12640         (-mno-fancy-math-387): Ditto.
12641         (-mno-push-args): Ditto.
12642         (-mno-red-zone): Ditto.
12643         (-mpush-args): Ditto.
12644         (-mred-zone): Ditto.
12645         (-mrtd): Ditto.
12646         (-msseregparm): Ditto.
12647         (-mstack-arg-probe): Ditto.
12648         (-m32): Ditto.
12649         (-m64): Ditto.
12650         (-mmmx): Ditto.
12651         (-m3dnow): Ditto.
12652         (-m3dnowa): Ditto.
12653         (-msse): Ditto.
12654         (-msse2): Ditto.
12655         (-msse3): Ditto.
12656         (-msse4.1): Ditto.
12657         (-msse4.2): Ditto.
12658         (-msse4): Ditto.
12659         (-mno-sse4): Ditto.
12660         (-msse4a): Ditto.
12661         (-msse5): Ditto.
12662         (-mrecip): Move flag into target_flags.
12663         (-mcld): Ditto.
12664         (-mno-fused-madd): Ditto.
12665         (-mfused-madd): Ditto.
12666         (-mabm): Move flag into ix86_isa_flags.
12667         (-mcx16): Ditto.
12668         (-mpopcnt): Ditto.
12669         (-msahf): Ditto.
12670         (-maes): Ditto.
12671         (-mpclmul): Ditto.
12672
12673         * config/i386/i386-c.c: New file for #pragma support.
12674         (ix86_target_macros_internal): New function to #define or #undef
12675         target macros based when the user uses the #pragma GCC option to
12676         change target options.
12677         (ix86_pragma_option_parse): New function to add #pragma GCC option
12678         support.
12679         (ix86_target_macros): Move defining the target macros here from
12680         TARGET_CPU_CPP_BUILTINS in i386.h.
12681         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
12682         defined, initialize any subtarget #pragmas.
12683
12684         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
12685         REGISTER_TARGET_PRAGMAS.
12686
12687         * config/i386/t-i386: New file for x86 dependencies.
12688         (i386.o): Make dependencies mirror the include files used.
12689         (i386-c.o): New file, add dependencies.
12690
12691         * config/i386/i386-protos.h (override_options): Add bool argument.
12692         (ix86_valid_option_attribute_tree): Add declaration.
12693         (ix86_target_macros): Ditto.
12694         (ix86_register_macros): Ditto.
12695
12696         * config/i386/i386.c (ix86_tune_features): Move initialization of
12697         the target masks to initial_ix86_tune_features to allow functions
12698         to have different target options.  Make type unsigned char,
12699         instead of unsigned int.
12700         (initial_ix86_tune_features): New static vector to hold processor
12701         masks for the tune variables.
12702         (ix86_arch_features): Move initialization of the target masks to
12703         initial_ix86_arch_features to allow functions to have different
12704         target options.  Make type unsigned char, instead of unsigned int.
12705         (initial_ix86_arch_features): New static vector to hold processor
12706         masks for the arch variables.
12707         (enum ix86_function_specific_strings): New enum to describe the
12708         string options used for attribute((option(...))).
12709         (ix86_target_string): New function to return a string that
12710         describes the target options.
12711         (ix86_debug_options): New function to print the current options in
12712         the debugger.
12713         (ix86_function_specific_save): New function hook to save the
12714         function specific global variables in the cl_target_option structure.
12715         (ix86_function_specific_restore): New function hook to restore the
12716         function specific variables from the cl_target_option structure to
12717         the global variables.
12718         (ix86_function_specific_print): New function hook to print the
12719         target specific options in the cl_target_option structure.
12720         (ix86_valid_option_attribute_p): New function hook to validate
12721         attribute((option(...))) arguments.
12722         (ix86_valid_option_attribute_tree): New function that is common
12723         code between attribute((option(...))) and #pragma GCC option
12724         support that parses the options and returns a tree holding the options.
12725         (ix86_valid_option_attribute_inner_p): New helper function for
12726         ix86_valid_option_attribute_tree.
12727         (ix86_can_inline_p): New function hook to decide if one function
12728         can inline another on a target specific basis.
12729         (ix86_set_current_function); New function hook to switch target
12730         options if the user used attribute((option(...))) or #pragma GCC
12731         option.
12732         (ix86_tune_defaulted): Move to static file scope from
12733         override_options.
12734         (ix86_arch_specified): Ditto.
12735         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
12736         ix86_isa_flags.
12737         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
12738         (OPTION_MASK_ISA_ABM_SET): Ditto.
12739         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
12740         (OPTION_MASK_ISA_CX16_SET): Ditto.
12741         (OPTION_MASK_ISA_SAHF_SET): Ditto.
12742         (OPTION_MASK_ISA_AES_UNSET): Ditto.
12743         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
12744         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
12745         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
12746         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
12747         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
12748         (struct ptt): Move to static file scope from override_options.
12749         (processor_target_table): Ditto.
12750         (cpu_names): Ditto.
12751         (ix86_handle_option): Add support for options that are now isa options.
12752         (override_options): Add support for declaring functions that
12753         support different target options than were specified on the
12754         command line.  Move struct ptt, processor_target_table, cpu_names,
12755         ix86_tune_defaulted, ix86_arch_specified to static file scope.
12756         Add bool argument.  Fix up error messages so the appropriate error
12757         is given for either command line or attribute.
12758         (ix86_previous_fndecl): New static to remember previous function
12759         declaration to see if we need to change target options.
12760         (ix86_builtins_isa): New array to record the ISA of each builtin
12761         function.
12762         (def_builtin): Always create the builtin function, even if the
12763         current ISA doesn't support it.
12764         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
12765         tests for those builtins.
12766         (ix86_init_builtins): Remove TARGET_MMX test for calling
12767         ix86_init_mmx_sse_builtins.
12768         (ix86_expand_builtin): If the current ISA doesn't support a given
12769         builtin, signal an error.
12770         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
12771         (TARGET_SET_CURRENT_FUNCTION): Ditto.
12772         (TARGET_OPTION_SAVE): Ditto.
12773         (TARGET_OPTION_RESTORE): Ditto.
12774         (TARGET_OPTION_PRINT): Ditto.
12775         (TARGET_CAN_INLINE_P): Ditto.
12776
12777 2008-07-22  Rafael Ávila de Espíndola  <espindola@google.com>
12778
12779         * c-typeck.c (build_external_ref): Don't call assemble_external.
12780         * final.c (output_operand): Call assemble_external.
12781
12782 2008-07-21  DJ Delorie  <dj@redhat.com>
12783
12784         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
12785         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
12786
12787 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12788
12789         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
12790         original insn and splitter contents into ...
12791         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
12792         flag_unsafe_math_optimizations.  Add dummy scratch register.
12793         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
12794         !flag_unsafe_math_optimizations.  Returns number with next
12795         highest magnitude if this is still less or equal to the true
12796         quotient in magnitude.
12797
12798 2008-07-21  Rafael Ávila de Espíndola  <espindola@google.com>
12799
12800         * Makefile.in: Replace toplev.h with TOPLEV_H.
12801         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
12802         * c-lex.c (fe_file_change): Don't set in_system_header.
12803         * c-parser.c (c_token): Remove in_system_header.
12804         (c_lex_one_token): Don't set in_system_header.
12805         (c_parser_set_source_position_from_token): Don't set in_system_header.
12806         * diagnostic.c (diagnostic_report_diagnostic): Use location from
12807         diagnostic_info.
12808         (warning_at): New.
12809         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
12810         * flags.h (in_system_header): Remove.
12811         * function.c (saved_in_system_header): Remove.
12812         (push_cfun): Don't set in_system_header.
12813         (pop_cfun): Don't set in_system_header.
12814         (push_struct_function): Don't set in_system_header.
12815         * input.h (expanded_location): Add sysp.
12816         (in_system_header_at): New.
12817         (in_system_header): New.
12818         * toplev.c (in_system_header): Remove.
12819         * toplev.h: Include input.h
12820         (warning_at): New.
12821         * tree-cfg.c (execute_warn_function_return): Call warning_at.
12822         * tree-ssa.c (warn_uninit): Call warning_at.
12823         (warn_uninitialized_var): Update calls to warn_uninit.
12824         (warn_uninitialized_phi): Update calls to warn_uninit.
12825         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
12826         (expand_location): Initialize xloc.sysp.
12827         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
12828         (tree_decl_with_vis): Remove in_system_header_flag.
12829
12830 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
12831
12832         PR target/36822
12833         * recog.c (asm_operand_ok): Change the order of the extra
12834         memory constraint checks.
12835
12836 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12837
12838         PR tree-opt/36879
12839         * tree-switch-conversion.c (build_one_array): Call
12840         varpool_mark_needed_node and varpool_finalize_decl
12841         instead of assemble_variable.
12842
12843 2008-07-19  Jan Hubicka  <jh@suse.cz>
12844
12845         * cgraph.c (cgraph_add_new_function): Do early local passes.
12846         * tree-nrv.c (gate_pass_return_slot): New gate.
12847         (pass_nrv): Add the gate.
12848         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
12849         functions.
12850         (coalesce_ssa_name): Coalesce SSA names.
12851         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
12852         not optimizing so unused user vars remains visible.
12853         * common.opt (flag_tree_ter): Always enable by default.
12854         * tree-ssa-ter.c: Include flags.h
12855         (is_replaceable_p): Check that locations match; when aliasing
12856         is missing be conservative about loads.
12857         * tree-optimize.c (gate_init_datastructures): Remove.
12858         (pass_init_datastructures): New.
12859         * passes.c: Reorder passes so we always go into SSA.
12860
12861 2008-07-19  Jan Hubicka  <jh@suse.cz>
12862
12863         * doc/extend.texi (flatten attribute): Remove note about
12864         unit-at-a-time.
12865         * doc/invoke.texi (--combine): Likewise.
12866         (-finline-functions-called-once): Update levels when enabled.
12867         (-funit-at-a-time): Document new behaviour.
12868         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
12869         -fno-section-anchors when disabled explicitly.
12870         (inline params): They are not ignored now.
12871         (precompiled headers): Remove unit-at-a-time as being incompatible.
12872         * opts.c (decode_options): Handle unit-at-a-time as alias;
12873         imply -fno-section-anchors when toplevel reorder is disabled
12874         explicitly.
12875         * common.opt (ftoplevel-reorder): Set default value to 2.
12876         (funit-at-a-time): Set default value to 1.
12877         * config/rs6000/rs6000.c (optimization_options): Set section anchors
12878         to 2.
12879
12880 2008-07-19  Jan Hubicka  <jh@suse.cz>
12881
12882         * builtins.c (expand_builtin_int_roundingfn,
12883         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
12884         it is not useful.
12885
12886 2008-07-19  Richard Guenther  <rguenther@suse.de>
12887
12888         PR bootstrap/36864
12889         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
12890         * tree-ssa-sccvn.c (get_constant_value_id): New function.
12891         * tree-ssa-pre.c (get_expr_value_id): For newly created
12892         constant value-ids make sure to add the expression to its
12893         expression-set.
12894
12895 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
12896
12897         PR middle-end/36877
12898         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
12899         return value of the builtin is ignored.
12900
12901 2008-07-19  Olivier Hainque  <hainque@adacore.com>
12902
12903         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
12904         bits, a C conformant malloc implementation has to provide.
12905         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
12906
12907 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
12908
12909         PR target/36780
12910         PR target/36827
12911         * reload.c (find_reloads_subreg_address): Only reload address if
12912         reloaded == 0, not for reloaded != 1.
12913
12914         Revert:
12915         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
12916         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
12917         (m32c_legitimate_address_p): Handle "++rii" addresses created by
12918         m32c_legitimize_reload_address.
12919
12920         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
12921         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
12922         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
12923
12924 2008-07-19  Olivier Hainque  <hainque@adacore.com>
12925
12926         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
12927         argument, saying whether nested array are to be collapsed
12928         into a single array type DIE with multiple subscripts.
12929         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
12930         issues, centralize the nested array types collapsing control and
12931         disable the transformation for Ada.
12932
12933 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
12934
12935         PR target/36786
12936         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
12937         x86_64_shift_adj.
12938         (x86_64_shift_adj_2): New expander.
12939         (x86_64_shift_adj_3): Ditto.
12940         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
12941         to split TImode operands.
12942         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
12943         (ix86_split_lshr): Ditto.
12944
12945 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
12946
12947         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
12948         and __CHAR32_TYPE__.
12949         * c-typeck.c (digest_init): Support char16_t and char32_t.
12950         (set_nonincremental_init_from_string): Idem.
12951
12952 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12953
12954         PR middle-end/36859
12955         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
12956         PREFERRED_STACK_BOUNDARY.
12957         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
12958
12959 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12960
12961         PR middle-end/36858
12962         * function.c (locate_and_pad_parm): Cap boundary earlier.
12963
12964 2008-07-17  Julian Brown  <julian@codesourcery.com>
12965
12966         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
12967         no-op for targets which don't use DLLs.
12968
12969 2008-07-17  Martin Jambor  <mjambor@suse.cz>
12970
12971         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
12972         that nodes are relevant by examining the node->analyzed flag.
12973         (ipcp_init_stage): Check which nodes are relevant, assert that the
12974         relevant ones are also required.
12975         (ipcp_propagate_stage): Check on the side arrays are properly
12976         allocated.
12977         (ipcp_print_all_jump_functions): Make sure not to touch any node
12978         that is not analyzed or an edge that does not have a corresponding
12979         entry in the on-the-side vectors.
12980         (ipcp_function_scale_print): Likewise.
12981         (ipcp_update_callgraph): Check that the node is relevant.
12982         (ipcp_insert_stage): Check that the node is relevant.  Check there is
12983         an info for every node and edge.
12984         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
12985         (ipa_print_all_tree_maps): Likewise and a new variable info.
12986         (ipa_print_all_params_modified): Likewise.
12987         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
12988
12989 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
12990
12991         PR target/25343
12992         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
12993
12994 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
12995
12996         PR rtl-optimization/36753
12997         * fwprop.c (use_killed_between): Don't shortcut
12998         single-definition global registers.
12999
13000 2008-07-16  Jan Hubicka  <jh@suse.cz>
13001
13002         * cgraph.h (varpool_empty_needed_queue): Declare.
13003         * cgraphunit.c (output_in_order): Mark all variables as needed;
13004         empty the queue.
13005         * varpool.c (varpool_assemble_node): Update debug queue.
13006         (varpool_assemble_pending_decls): Don't do it here.
13007         (varpool_empty_needed_queue):  New function.
13008
13009 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13010
13011         * recog.c (peephole2_optimize): Fix formatting.
13012
13013 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13014
13015         * c-pch.c (get_ident): Avoid C++ keywords.
13016         * combine-stack-adj.c (single_set_for_csa): Likewise.
13017         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
13018         output_asm_insn): Likewise.
13019         * reload.c (push_secondary_reload, find_reusable_reload,
13020         push_reload, combine_reloads, find_reloads,
13021         debug_reload_to_stream): Likewise.
13022         * reload.h (struct reload): Likewise.
13023         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
13024         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
13025         emit_output_reload_insns): Likewise.
13026         * targhooks.c (default_secondary_reload): Likewise.
13027         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
13028
13029 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13030
13031         * recog.c (validate_change_1, validate_change,
13032         validate_unshare_change, validate_replace_rtx_1, struct
13033         funny_match, constrain_operands, peephole2_optimize): Avoid C++
13034         keywords.
13035         * reload.c (push_secondary_reload, secondary_reload_class,
13036         scratch_reload_class, find_valid_class, find_reusable_reload,
13037         push_reload, find_dummy_reload, find_reloads_address_1,
13038         find_reloads_address_part, find_equiv_reg): Likewise.
13039         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
13040         choose_reload_regs): Likewise.
13041         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
13042         Likewise.
13043         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
13044         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
13045         * sched-rgn.c (concat_INSN_LIST): Likewise.
13046         * stor-layout.c (mode_for_size, mode_for_size_tree,
13047         smallest_mode_for_size): Likewise.
13048
13049 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13050
13051         * cfg.c (dump_reg_info): Avoid C++ keywords.
13052         * dwarf2asm.c (dw2_force_const_mem,
13053         dw2_asm_output_encoded_addr_rtx): Likewise.
13054         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
13055         * expmed.c (expand_shift): Likewise.
13056         * global.c (find_reg): Likewise.
13057         * graph.c (draw_edge): Likewise.
13058         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
13059         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
13060         widen_clz, widen_bswap, expand_parity, expand_unop,
13061         emit_cmp_and_jump_insn_1): Likewise.
13062         * postreload.c (reload_cse_simplify_operands): Likewise.
13063         * ra.h (add_neighbor): Likewise.
13064         * reg-stack.c (remove_regno_note, change_stack): Likewise.
13065         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
13066         record_reg_classes, copy_cost, record_address_regs,
13067         invalid_mode_change_p): Likewise.
13068         * regrename.c (regrename_optimize, scan_rtx_reg,
13069         dump_def_use_chain, find_oldest_value_reg,
13070         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
13071
13072 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
13073
13074         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
13075         MASK_POWERPC64 for power4 in previous commit.
13076
13077 2008-07-16  Olivier Hainque  <hainque@adacore.com>
13078
13079         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
13080         instead of bare conversion to cast const-ness away.
13081
13082 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
13083
13084         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
13085         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
13086         * config/xtensa/xtensa.c (xtensa_function_value): New function.
13087         (TARGET_FUNCTION_VALUE): Define.
13088
13089 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
13090
13091         * config/rs6000/rs6000.c (processor_target_table): Add
13092         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
13093
13094 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
13095
13096         PR target/36827
13097         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
13098         (m32c_legitimate_address_p): Handle "++rii" addresses created by
13099         m32c_legitimize_reload_address.
13100
13101 2007-07-16  Rafael Ávila de Espíndola  <espindola@google.com>
13102
13103         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
13104         DECL_IN_SYSTEM_HEADER in sync.
13105
13106 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
13107
13108         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
13109         * tree-ssa-pre.c (pre_expr_eq): Ditto
13110         (get_constant_for_value_id): Take a type as an argument.
13111         (fully_constant_expression): Pass in type.
13112         (find_or_generate_expression): Short circuit constant case.
13113         (create_expression_by_pieces): Remove special casing of
13114         pointer_plus.
13115         (do_regular_insertion): Short circuit constant case.
13116         (do_partial_partial_insertion): Ditto.
13117
13118 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
13119
13120         PR target/36782
13121         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
13122
13123 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
13124
13125         * config/xtensa/libgcc-xtensa.ver: New file.
13126         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
13127
13128 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13129
13130         * df-problems.c (df_set_note): Avoid C++ keywords.
13131         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
13132         * dse.c (record_store, remove_useless_values): Likewise.
13133         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
13134         gen_reg_rtx_offset, operand_subword, change_address_1,
13135         change_address, adjust_address_1, offset_address,
13136         widen_memory_access, emit_copy_of_insn_after): Likewise.
13137         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
13138         * fwprop.c (should_replace_address, propagate_rtx_1,
13139         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
13140         Likewise.
13141         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
13142         gcse_emit_move_after, update_ld_motion_stores): Likewise.
13143         * lcm.c (compute_insert_delete, pre_edge_lcm,
13144         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
13145         * lower-subreg.c (resolve_reg_notes): Likewise.
13146         * mode-switching.c (optimize_mode_switching): Likewise.
13147
13148 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13149
13150         * bt-load.c (add_btr_def, migrate_btr_def,
13151         branch_target_load_optimize): Avoid C++ keywords.
13152         * caller-save.c (insert_restore, insert_save, insert_one_insn):
13153         Likewise.
13154         * combine.c (subst, simplify_set, make_extraction,
13155         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
13156         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
13157         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
13158
13159 2008-07-15  Richard Guenther  <rguenther@suse.de>
13160
13161         PR middle-end/36369
13162         * c-common.c (strict_aliasing_warning): Do not warn for
13163         TYPE_REF_CAN_ALIAS_ALL pointers.
13164         (c_common_get_alias_set): may_alias types are not special.
13165         * tree.c (build_pointer_type_for_mode): Look up the may_alias
13166         attribute and set can_ref_all accordingly.
13167         (build_reference_type_for_mode): Likewise.
13168         * doc/extend.texi (may_alias): Clarify.
13169
13170 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
13171
13172         PR target/36780
13173         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
13174         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
13175
13176 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13177
13178         PR target/31568
13179         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
13180         gcc_assert, instead call output_operand_lossage.
13181
13182 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
13183
13184         * builtins.c (std_canonical_va_list): Treat structure based
13185         va_list types.
13186
13187 2008-07-15  Ben Elliston  <bje@au.ibm.com>
13188
13189         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
13190
13191 2007-07-14  Rafael Ávila de Espíndola  <espindola@google.com>
13192
13193         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
13194         is set.
13195
13196 2008-07-14  Jan Hubicka  <jh@suse.cz>
13197
13198         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
13199         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
13200         fix predicates and constraints.
13201         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
13202         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
13203
13204 2008-07-14  Doug Kwan  <dougkwan@google.com>
13205
13206         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
13207         additional option file arm/eabi.opt.
13208         * config/arm/eabi.h (File): New configuration file for EABI targets.
13209         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
13210         SUBSUBTARGET_EXTRA_SPECS.
13211         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
13212         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
13213         from STARTFILE_SPEC so that it can be referenced in an override.
13214         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
13215         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
13216         can be referenced in an override.
13217         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
13218         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
13219         so that it can be referenced in an override.
13220         (LINK_SPEC): Use BPABI_LINK_SPEC.
13221         * config/arm/eabi.opt (File): New.
13222
13223 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13224
13225         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
13226         (FIXED_VALUE_H): New variable.
13227         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
13228         input.h, fixed-value.h.
13229         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
13230         (BASIC_BLOCK_H): Use $(BITMAP_H).
13231         (FUNCTION_H): Add varray.h.
13232         (IPA_REFERENCE_H): Use $(BITMAP_H).
13233         (CGRAPH_H): Add $(BASIC_BLOCK_H).
13234         (DF_H): Use $(BITMAP_H).
13235         (GGC_H): Add statistics.h.
13236         (INSN_ADDR_H): New.
13237         (INSN_ATTR_H): Use it.
13238         (SYSTEM_H): Add safe-ctype.h, filenames.h.
13239         (INPUT_H): New.
13240         (SYMTAB_H): Add $(OBSTACK_H).
13241         (CPP_INTERNAL_H): New.
13242         (TREE_DUMP_H): Add tree-pass.h.
13243         (TREE_FLOW_H): Use $(BITMAP_H)
13244         (PRETTY_PRINT_H): Use $(INPUT_H).
13245         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
13246         (GSTAB_H): New.
13247         (BITMAP_H): New.
13248         (many object files): Fix lots of header dependencies throughout.
13249
13250 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13251
13252         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
13253         New macros.
13254         (s-gtyp-input): Use them to write tmp-gi.list.
13255         (echo_to_gi.list): Remove.
13256
13257 2008-07-14  Richard Guenther  <rguenther@suse.de>
13258
13259         * tree-ssa-sccvn.c (pre_info): Remove.
13260         (switch_to_PRE_table): Likewise.
13261         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
13262         (set_hashtable_value_ids): Do not create value-ids for the
13263         optimistic tables.
13264         (run_scc_vn): Remove double test.  Remove bogus special-case
13265         in value-number printing.
13266         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
13267         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
13268         SSA_NAME_VALUE.
13269         * tree-flow-inline.h (get_value_handle): Remove.
13270         * tree-flow.h (get_value_handle): Remove.
13271
13272 2008-07-14  Martin Jambor  <mjambor@suse.cz>
13273
13274         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
13275         in which we generate arithmetics is not a subrange.
13276
13277 2008-07-14  Martin Jambor  <mjambor@suse.cz>
13278
13279         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
13280
13281 2008-07-14  Richard Guenther  <rguenther@suse.de>
13282
13283         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
13284
13285 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
13286
13287         PR target/36745
13288         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
13289         reload for symbol refs moved to r0 with -fPIC.
13290         (legitimize_pic_address): Use the target register as temporary
13291         reg if possible.
13292         (emit_symbolic_move): Adjust comment.
13293         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
13294         New expanders.
13295
13296 2008-07-14  Ben Elliston  <bje@au.ibm.com>
13297
13298         * c-common.h (C_CPP_HASHNODE): New macro.
13299         * coretypes.h (struct cpp_token): Forward declare.
13300         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
13301         the context-sensitive keyword method.
13302         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
13303         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
13304         expand_bool_pixel): New.
13305         (altivec_categorize_keyword): New function.
13306         (init_vector_keywords): New function.
13307         (rs6000_macro_to_expand): Likewise.
13308         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
13309         compiling an ISO C dialect.
13310
13311 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
13312
13313         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
13314         (create_expression_by_pieces): Fix typo.
13315         (do_regular_insertion): Use debug counter here too.
13316
13317 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
13318
13319         PR target/35492.
13320         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
13321         CONST_OK_FOR_LETTER_P.  All port-local users changed.
13322         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
13323         implement Kp matching power-of-two.
13324         (CONSTRAINT_LEN): Define to match.
13325         * config/cris/cris.md: Replace all use of constraint K with Kc.
13326         ("*btst*): Use Kp for operand 0 of last alternative.
13327
13328 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13329
13330         PR testsuite/36440
13331         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
13332         and quad formats.
13333
13334 2008-07-13  Jan Hubicka  <jh@suse.cz>
13335
13336         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
13337         to be mangled too.
13338
13339 2008-07-13  Richard Guenther  <rguenther@suse.de>
13340
13341         PR middle-end/36811
13342         * langhooks.c (lhd_print_error_function): Deal with recursive
13343         BLOCK trees.
13344
13345 2008-07-12  Jan Hubicka  <jh@suse.cz>
13346
13347         * cgraph.c (assembler_name_hash): New static var.
13348         (hash_node_by_assembler_name, eq_assembler_name): New.
13349         (cgraph_node_for_asm): Use hashtable.
13350         (cgraph_remove_node): Maintain hashtable.
13351         (change_decl_assembler_name): Sanity check that names are not changing
13352         after aliasing was processed.
13353         * cgraph.h (varpoon_node): Add next GGC marker.
13354         * tree.c (decl_assembler_name_equal): Constify.
13355         (decl_assembler_name_hash): New.
13356         * tree.h (decl_assembler_name_equal): Constify.
13357         (decl_assembler_name_hash): Update.
13358
13359 2008-07-12  David Daney  <ddaney@avtrex.com>
13360
13361         * config/mips/driver-native.c (host_detect_local_cpu): Handle
13362         sb1 and r5000 cpus.
13363
13364 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
13365
13366         * doc/md.texi: Document the MIPS "v" constraint.
13367         * config/mips/mips.h (reg_class): Revert last change.
13368         (REG_CLASS_NAMES): Likewise.
13369         (REG_CLASS_CONTENTS): Likewise.
13370         * config/mips/mips.c (mips_regno_to_class): Likewise.
13371         * config/mips/constraints.md (v): Likewise, but add documentation.
13372         Add a comment to say that this constraint should not be used in
13373         gcc code.
13374
13375 2008-07-11  DJ Delorie  <dj@redhat.com>
13376
13377         * config/h8300/h8300.md (length): Fix branch offset limit.
13378
13379 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
13380
13381         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
13382         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
13383         (avr_hard_regno_scratch_ok): New function.
13384         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
13385         * config/avr/avr.md (all peepholes that request a scratch register):
13386         Remove avr_peep2_scratch_safe use.
13387
13388 2008-07-11  Tom Tromey  <tromey@redhat.com>
13389             Ian Lance Taylor  <iant@google.com>
13390
13391         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
13392         (struct c_common_resword): Define.
13393         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
13394         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
13395         (c_common_reswords, num_c_common_reswords): Declare.
13396         * c-common.c (c_common_reswords): New global const array.
13397         (num_c_common_reswords): New const int.
13398         * c-parser.c (struct resword, reswords): Don't define.
13399         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
13400         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
13401         than reswords.  If warning about C++ keywords, give them a special
13402         RID code.
13403         (c_lex_one_token): Warn about C++ keywords.  Call
13404         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
13405         (c_parser_external_declaration): Look for RID_xxx rather than
13406         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
13407         (c_parser_statement_after_labels): Likewise.
13408         (c_parser_objc_class_instance_variables): Likewise.
13409         (c_parser_objc_class_declaration): Likewise.
13410         (c_parser_objc_try_catch_statement): Likewise.
13411         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
13412         (declspecs_add_type): Likewise.
13413
13414 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
13415
13416         * ggc-page.c (alloc_page):
13417         Substituting xmalloc, xcalloc with
13418         XNEWVEC and XCNEWVAR macros which add the
13419         needed casts.
13420
13421 2008-07-11  Richard Guenther  <rguenther@suse.de>
13422
13423         PR tree-optimization/36765
13424         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
13425         aliases from HEAP vars to SMTs.
13426
13427 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13428
13429         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
13430         * configure.ac (loose_warn): Move -Wc++-compat from here...
13431         (strict_warn): ...to here.
13432         * configure: Regenerate.
13433
13434 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
13435
13436         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
13437         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
13438         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
13439         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
13440         excluding more specific h8300-*-* and sh-*-* targets.
13441
13442 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
13443
13444         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
13445         (eliminate): Ditto.
13446         (execute_pre): Call loop_optimizer_finalize in early exit.
13447
13448 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
13449
13450         PR middle-end/36790
13451         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
13452         uids in the bitmap, not just VAR_DECL uids.
13453
13454         PR rtl-optimization/36419
13455         * combine-stack-adj.c (adjust_frame_related_expr): New function.
13456         (combine_stack_adjustments_for_block): Call it if needed.  Delete
13457         correct insn.
13458         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
13459         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
13460         prologue sp adjustment.
13461
13462 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
13463
13464         PR other/28322
13465         * opts.c (print_ignored_options): Report postponed diagnostics for
13466         unknown -Wno-* options as warnings, not errors.
13467         (postpone_unknown_option_error): Renamed to...
13468         (postpone_unknown_option_warning): ... this.
13469
13470 2008-07-09  Doug Kwan  <dougkwan@google.com>
13471
13472         Revert:
13473         2008-07-08  Doug Kwan  <dougkwan@google.com>
13474
13475         * config/arm/arm.opt (mandroid): New option.
13476         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
13477         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
13478         (CC1_SPEC): Same.
13479         (CC1PLUS_SPEC): Same.
13480         (LIB_SPEC): Same.
13481         (STARTFILE_SPEC): Same.
13482         (ENDFILE_SPEC): Same.
13483         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
13484         used.
13485
13486 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
13487
13488         PR target/35802
13489         * config/mips/mips.h (reg_class): Remove V1_REG.
13490         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
13491         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
13492         instead of V1_REGS.
13493         (mips_get_tp): New function.
13494         (mips_legitimize_tls_address): Use it.
13495         * config/mips/constraints.md (v): Delete.
13496         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
13497         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
13498         After reload, split into a move and ...
13499         (*tls_get_tp_<mode>_split): ...this new instruction.
13500
13501 2008-07-09  David Daney  <ddaney@avtrex.com>
13502
13503         * config/mips/driver-native.c: Include coretypes.h and tm.h.
13504
13505 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
13506
13507         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
13508         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
13509         Add c argument.
13510         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
13511         htab_delete should be called.  Don't free c.
13512         (lookup_tmp_var): Create temp_htab lazily.
13513         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
13514         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
13515         callers.
13516         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
13517         lower_omp_ordered, lower_omp_critical, lower_omp_for,
13518         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
13519         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
13520         * tree-sra.c (generate_element_init): Likewise.
13521         * tree-mudflap.c (execute_mudflap_function_ops,
13522         execute_mudflap_function_decls): Likewise.
13523         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
13524         * tree-gimple.h (struct gimplify_ctx): New type.
13525         (push_gimplify_context): Adjust prototype.
13526
13527 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
13528
13529         * tree-ssa-pre.c (phi_translate_1): Update placement of
13530         add_to_value calls.
13531
13532 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
13533
13534         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
13535         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
13536         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
13537         * targhooks.c (default_hard_regno_scratch_ok): New function.
13538         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
13539         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
13540         * recog.c:  Include "target.h".
13541         (peep2_find_free_register): Add check for global regs. Add target
13542         specific check.
13543         * Makefile.in (recog.o): Depend on target.h.
13544
13545 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
13546
13547         * config/sh/sh.c (sh_canonical_va_list_type): New.
13548         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
13549
13550 2008-07-09  Raksit Ashok <raksit@google.com>
13551
13552         * doc/invoke.texi (Option Summary): Mention new option
13553         -Wdisallowed-function-list=...
13554         (Warning Options): Document -Wdisallowed-function-list=...
13555         * common.opt (Wdisallowed-function-list=): New flag.
13556         * flags.h (warn_disallowed_functions): External definition of new
13557         boolean warning flag.
13558         (warn_if_disallowed_function_p): Declare new function.
13559         * opts.c (warning_disallowed_functions): New static variable.
13560         (warn_disallowed_functions): New boolean warning flag.
13561         (warn_if_disallowed_function_p): New function.
13562         (add_comma_separated_to_vector): Rename
13563         add_instrument_functions_exclude_list to this.
13564         (common_handle_option): Handle new option. Rename calls to
13565         add_instrument_functions_exclude_list into calls to
13566         add_comma_separated_to_vector.
13567         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
13568         based on flag warn_disallowed_functions.
13569
13570 2008-07-09  Christian Bruel  <christian.bruel@st.com>
13571
13572         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
13573          instead of get_attr_length.
13574
13575 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13576
13577         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
13578         keywords.
13579         * genemit.c (gen_insn): Likewise.
13580         * gengtype.c (note_def_vec): Likewise.
13581         * gengtype.h (note_def_vec): Likewise.
13582         * genoutput.c (struct data, output_insn_data, process_template,
13583         gen_expand, gen_split, note_constraint): Likewise.
13584         * genrecog.c (new_decision, add_to_sequence, factor_tests,
13585         make_insn_sequence): Likewise.
13586         * gensupport.c (record_insn_name): Likewise.
13587
13588 2008-07-08  Doug Kwan  <dougkwan@google.com>
13589
13590         * config/arm/arm.opt (mandroid): New option.
13591         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
13592         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
13593         (CC1_SPEC): Same.
13594         (CC1PLUS_SPEC): Same.
13595         (LIB_SPEC): Same.
13596         (STARTFILE_SPEC): Same.
13597         (ENDFILE_SPEC): Same.
13598         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
13599         used.
13600
13601 2008-07-08  Raksit Ashok  <raksit@google.com>
13602
13603         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
13604         (set_storage_via_setmem): Fix expected_align parameter.
13605         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
13606         missing from the list.
13607         * doc/md.texi (movmem): Explicitly state that expected alignment is
13608         to be expressed in bytes.
13609         (setmem): Explicitly state that expected alignment is to be expressed
13610         in bytes.
13611
13612 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
13613
13614         * reload.c (find_reloads_subreg_address): Do not require validity
13615         of address in original mode before reloading address.
13616
13617 2008-07-07  Tianwei Sheng  <tianweis@google.com>
13618
13619         * df-core.c (df_remove_problem): Adjust the access to avoid out of
13620         bounds array access.
13621
13622 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
13623
13624         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
13625
13626 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
13627
13628         Fix PR tree-optimization/23455
13629         Fix PR tree-optimization/35286
13630         Fix PR tree-optimization/35287
13631         * Makefile.in (OBJS-common): Remove tree-vn.o.
13632         (tree-vn.o): Remove.
13633         * dbgcnt.def: Add treepre_insert debug counter.
13634         * gcc/tree-flow.h (add_to_value): Updated for other changes.
13635         (debug_value_expressions): Ditto.
13636         (print_value_expressions): Ditto.
13637         * tree-pretty-print.c (dump_generic_node): Updated for
13638         VALUE_HANDLE removal.
13639         * tree-ssa-dom.c (record_equality): Ditto.
13640         (cprop_operand): Ditto.
13641         (lookup_avail_expr): Ditto.
13642         * tree-ssa-threadedge.c
13643         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
13644         (simplify_control_stmt_condition): Ditto.
13645         * tree.c (tree_code_size): Ditto.
13646         (tree_node_structure): Ditto.
13647         (iterative_hash_expr): Ditto.
13648         * tree.def: Ditto.
13649         * tree.h (VALUE_HANDLE_ID): Ditto.
13650         (VALUE_HANDLE_EXPR_SET): Ditto.
13651         (struct tree_value_handle): Ditto.
13652         (union tree_node): Ditto.
13653         * treestruct.def: Ditto.
13654         * tree-vn.c: Removed.
13655         * tree-ssa-pre.c: Rewritten entirely.
13656         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
13657         (constant_value_ids): Ditto.
13658         (vn_nary_op_t): Moved to header.
13659         (vn_phi_t): Ditto.
13660         (vn_reference_op_t): Ditto
13661         (vn_reference_t): Ditto.
13662         (next_value_id): New variable.
13663         (VN_INFO): Add an assert.
13664         (vn_constant_eq): New function.
13665         (vn_constant_hash): Ditto.
13666         (get_or_alloc_constant_value_id): Ditto.
13667         (value_id_constant_p): Ditto.
13668         (vn_reference_compute_hash): De-staticify.
13669         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
13670         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
13671         (valueize_refs): Update opcode if it changes from ssa name to constant.
13672         (vn_reference_lookup_1): Add new argument.
13673         (vn_reference_lookup):  Ditto.
13674         (vn_reference_lookup_pieces): New function.
13675         (vn_reference_insert): Add return type. Modify to deal with value ids.
13676         (vn_reference_insert_pieces):  New function.
13677         (vn_nary_op_compute_hash): De-staticify.
13678         (vn_nary_op_eq): Ditto.
13679         (vn_nary_op_lookup_pieces): New function.
13680         (vn_nary_op_lookup): Add new argument.
13681         (vn_nary_op_insert_pieces): New function.
13682         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
13683         (vn_phi_insert): Ditto.
13684         (visit_unary_op): Update for callee changes.
13685         (visit_binary_op): Ditto.
13686         (visit_reference_op_load): Ditto.
13687         (visit_reference_op_store): Ditto.
13688         (init_scc_vn): Init next_value_id, constant_to_value_id and
13689         constant_value_ids.
13690         (free_scc_vn): Free them.
13691         (set_hashtable_value_ids): New function.
13692         (run_scc_vn): Use it.
13693         (get_max_value_id): New function.
13694         (get_next_value_id): Ditto.
13695         (expressions_equal_p): Moved from tree-vn.c
13696         (sort_vuses): Ditto.
13697         (sort_vuses_heap): Ditto.
13698         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
13699         above).
13700         * tree.c (iterative_hash_hashval_t): Made non-static
13701         * tree.h (iterative_hash_hashval_t): Declare it.
13702
13703 2008-07-08  Martin Jambor  <mjambor@suse.cz>
13704
13705         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
13706         instead of ipa_create_node_params.
13707         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
13708         ipa_check_create_edge_args, free them with
13709         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
13710
13711         * ipa-prop.c: Include flags.h and tree-inline.h.
13712         (ipa_node_params_vector): New variable.
13713         (ipa_edge_args_vector): New variable.
13714         (edge_removal_hook_holder): New variable.
13715         (node_removal_hook_holder): New variable.
13716         (edge_duplication_hook_holder): New variable.
13717         (node_duplication_hook_holder): New variable.
13718         (ipa_detect_param_modifications): Check for presence of modified flags.
13719         (ipa_compute_jump_functions): Check for presence of jump functions.
13720         (ipa_free_edge_args_substructures): New function.
13721         (ipa_create_node_params): Removed.
13722         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
13723         (ipa_free_node_params_substructures): New function.
13724         (ipa_free_all_node_params): Changed to deallocate the on-the-side
13725         vector.
13726         (ipa_edge_removal_hook): New function.
13727         (ipa_node_removal_hook): New function.
13728         (duplicate_array): New function.
13729         (ipa_edge_duplication_hook): New function.
13730         (ipa_node_duplication_hook): New function.
13731         (ipa_register_cgraph_hooks): New function.
13732         (ipa_unregister_cgraph_hooks): New function.
13733         (free_all_ipa_structures_after_ipa_cp): New function.
13734
13735         * ipa-prop.h: Include vec.h.
13736         (ipa_node_params_t): New typedef with vector types for it.
13737         (ipa_edge_args_t):  New typedef with vector types for it.
13738         (IPA_NODE_REF): Changed to access an on-the-side vector.
13739         (IPA_EDGE_REF): Changed to access an on-the-side vector.
13740         (ipa_check_create_node_params): New function.
13741         (ipa_check_create_edge_args): New function.
13742
13743         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
13744         all users.
13745
13746 2008-07-07  Tom Tromey  <tromey@redhat.com>
13747
13748         * configure, config.in: Rebuilt.
13749         * configure.ac: Don't check for scandir or alphasort.
13750
13751 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
13752
13753         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
13754         types immediately after creating them.
13755
13756 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
13757
13758         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
13759
13760 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
13761
13762         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
13763         dump_constraint_graph.
13764         (dump_constraint_edge): New function.
13765         (dump_constraint_graph): New function.
13766         (debug_constraint_graph): New function.
13767         (dump_constraint): Removed useless comparison.
13768         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
13769         (dump_constraint_graph): Declare.
13770         (debug_constraint_graph): Declare.
13771         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
13772
13773 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
13774
13775         * config/i386/i386.c (is_va_list_char_pointer): New.
13776         (ix86_va_start): Replace compare with ms_va_list_type_node
13777         by is_va_list_char_pointer.
13778         (ix86_gimplify_va_arg): Likewise.
13779
13780 2008-07-07  Martin Jambor  <mjambor@suse.cz>
13781
13782         * cgraph.c (cgraph_edge_max_uid): New variable.
13783         (struct cgraph_edge_hook_list): New type.
13784         (struct cgraph_node_hook_list): New type.
13785         (struct cgraph_2edge_hook_list): New type.
13786         (struct cgraph_2node_hook_list): New type.
13787         (first_cgraph_edge_removal_hook): New variable.
13788         (first_cgraph_node_removal_hook): New variable.
13789         (first_cgraph_edge_duplicated_hook): New variable.
13790         (first_cgraph_node_duplicated_hook): New variable.
13791         (cgraph_add_edge_removal_hook): New function.
13792         (cgraph_remove_edge_removal_hook): New function.
13793         (cgraph_call_edge_removal_hooks):  New function.
13794         (cgraph_add_node_removal_hook):  New function.
13795         (cgraph_remove_node_removal_hook):  New function.
13796         (cgraph_call_node_removal_hooks):  New function.
13797         (cgraph_add_edge_duplication_hook):  New function.
13798         (cgraph_remove_edge_duplication_hook):  New function.
13799         (cgraph_call_edge_duplication_hooks):  New function.
13800         (cgraph_add_node_duplication_hook):  New function.
13801         (cgraph_remove_node_duplication_hook):  New function.
13802         (cgraph_call_node_duplication_hooks):  New function.
13803         (cgraph_create_edge): Assign to edge uid.
13804         (cgraph_remove_edge): Call edge removal hooks.
13805         (cgraph_node_remove_callees): Call edge removal hooks.
13806         (cgraph_node_remove_callers): Call edge removal hooks.
13807         (cgraph_remove_node): Call node removal hooks.
13808         (cgraph_clone_edge): Call edge duplication hooks.
13809         (cgraph_clone_node): Call node duplication hooks.
13810
13811         * cgraph.h (cgraph_edge): New field uid.
13812         (cgraph_edge_hook): New type.
13813         (cgraph_node_hook): New type.
13814         (cgraph_2edge_hook): New type.
13815         (cgraph_2node_hook): New type.
13816
13817 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
13818
13819         * config.in: Regenerate.
13820
13821 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
13822
13823         * gcc.c (print_sysroot): New.
13824         (option_map, display_help, process_command): Handle the
13825         -print-sysroot option.
13826         (main): Print the sysroot if requested.
13827         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
13828
13829 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13830
13831         PR target/34780
13832         * unwind-pe.h (size_of_encoded_value): add attribute unused.
13833
13834 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
13835
13836         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
13837         (assign_parm_setup_block_p): Also check mode of entry_parm.
13838
13839 2008-07-07  Richard Guenther  <rguenther@suse.de>
13840
13841         * tree-ssa-structalias.h (set_used_smts): Remove.
13842         * tree-ssa-structalias.c (used_smts): Likewise.
13843         (set_used_smts): Likewise.
13844         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
13845         call to set_used_smts.
13846
13847 2008-07-07  Richard Guenther  <rguenther@suse.de>
13848
13849         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
13850         (new_var_info): Set it to false.
13851         (solution_set_add): Correctly handle pointers outside a var and
13852         inside a field.
13853         (type_safe): Treat variables with is_full_var properly.
13854         (do_sd_constraint): Likewise.
13855         (do_ds_constraint): Likewise.
13856         (process_constraint): Remove zeroing offset for !use_field_sensitive.
13857         (get_constraint_for_ptr_offset): New function.
13858         (get_constraint_for_component_ref): For addresses at least include
13859         the last field of the variable.  Handle is_full_vars properly.
13860         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
13861         (handle_ptr_arith): Remove.
13862         (find_func_aliases): Simplify assignment handling.
13863         (create_function_info_for): For parameter and result varinfos set
13864         is_full_var flag.
13865         (create_variable_info_for): Set is_full_var flag whenever we
13866         just created a single varinfo for a decl.
13867         (init_alias_vars): Initialize use_field_sensitive from
13868         max-fields-for-field-sensitive parameter.
13869
13870 2008-07-07  Richard Guenther  <rguenther@suse.de>
13871
13872         PR tree-optimization/36713
13873         * tree-flow-inline.h (is_call_used): New function.
13874         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
13875         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
13876         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
13877
13878 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
13879
13880         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
13881
13882 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
13883
13884         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
13885
13886 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
13887             Nathan Sidwell  <nathan@codesourcery.com>
13888
13889         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
13890         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
13891         tmake_file.
13892         * config/m68k/t-linux: New.
13893         * doc/install.texi: Document m68k-*-linux is now multilibbed by
13894         default.
13895
13896 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
13897
13898         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
13899         * config/m68k/m68k-devices.def: Remove multilibs that only differ
13900         by MAC/EMAC.
13901
13902 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13903
13904         * gcc.c (execute): Fix -Wc++-compat warning.
13905
13906 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
13907
13908         PR target/36720
13909         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
13910         constant for little endian.
13911
13912 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
13913
13914         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
13915         mips_base_mips16 instead of TARGET_MIPS16.
13916         (mips_base_mips16): Declare.
13917         * config/mips/mips.c (mips_base_mips16): Make global.
13918         (was_mips16_p): Remove GTY marker.
13919         (was_mips16_pch_p): New variable.
13920         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
13921         (mips_override_options): Force to non-MIPS16 mode initially.
13922         Do not complain about MIPS16 PIC incompatibilities here.
13923         Only allow -mgpopt if -mexplicit-relocs is in force for
13924         non-MIPS16 code.
13925
13926 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
13927
13928         * configure.ac: Check for caddr_t, define to char * if not defined.
13929         * configure: Regenerate.
13930         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
13931         (mmap_gt_pch_use_address): Likewise.
13932         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
13933
13934 2008-07-06  Richard Guenther  <rguenther@suse.de>
13935
13936         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
13937         (new_var_info): Deal with it.
13938         (solution_set_add): Likewise.
13939         (bitpos_of_field): Make signed, fix.
13940         (struct fieldoff): Remove type and decl fields.  Make size field
13941         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
13942         flags.
13943         (fieldoff_compare): Deal with it.
13944         (push_fields_onto_fieldstack): Remove has_union argument, glob
13945         adjacent non-pointer fields together.
13946         (create_function_info_for): Do not set has_union.
13947         (create_variable_info_for): Simplify.
13948
13949 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
13950
13951         * config.gcc (extra_headers): Add cross-stdarg.h for target
13952         x86_64-*-* and i?86-*-*.
13953         * config/i386/cross-stdarg.h: New.
13954         * builtins.c (std_fn_abi_va_list): New.
13955         (std_canonical_va_list_type): New.
13956         (stabilize_va_list): Replace va_list_type_node use by
13957         mtarget.canonical_va_list_type.
13958         (gimplify_va_arg_expr): Likewise.
13959         (expand_builtin_va_copy): Replace va_list_type_node use by
13960         mtarget.fn_abi_va_list.
13961         * tree-sra.c (is_va_list_type): New helper.
13962         (decl_can_be_decomposed_p): Replace
13963         va_list_type_node use by is_va_list_type.
13964         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
13965         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13966         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
13967         * config/i386/i386-protos.h (ix86_get_valist_type): New.
13968         (ix86_enum_va_list): New.
13969         * config/i386/i386.c (sysv_va_list_type_node): New.
13970         (ms_va_list_type_node): New.
13971         (ix86_function_type_abi): Remove sorry.
13972         (ix86_build_builtin_va_list_abi): New.
13973         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
13974         for 64-bit targets.
13975         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
13976         (ix86_init_builtins_va_builtins_abi): New.
13977         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
13978         for 64-bit targets.
13979         (ix86_handle_abi_attribute): New.
13980         (attribute_spec): Add sysv_abi and ms_abi.
13981         (ix86_fn_abi_va_list): New.
13982         (ix86_canonical_va_list_type): New.
13983         (ix86_enum_va_list): New.
13984         (TARGET_FN_ABI_VA_LIST): New.
13985         (TARGET_CANONICAL_VA_LIST_TYPE): New.
13986         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
13987         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
13988         (TARGET_CANONICAL_VA_LIST_TYPE): New.
13989         (TARGET_ENUM_VA_LIST): New.
13990         * expr.h (std_fn_abi_va_list): New.
13991         (std_canonical_va_list_type): New.
13992         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
13993         (TARGET_CANONICAL_VA_LIST_TYPE): New.
13994         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
13995         TARGET_CANONICAL_VA_LIST_TYPE.
13996         * target.h (struct gcc_target): Add fn_abi_va_list hook
13997         and canonical_va_list_type hook.
13998
13999 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14000
14001         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
14002         integral and pointer types.
14003
14004 2008-07-04  Roger Sayle  <roger@eyesopen.com>
14005
14006         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
14007         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
14008
14009 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
14010
14011         PR target/36684
14012         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
14013
14014 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
14015
14016         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
14017         build_gimple_modify_stmt.
14018         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
14019         gimple operand.  Use fold_build* instead of build*.
14020
14021 2008-07-04  Richard Guenther  <rguenther@suse.de>
14022
14023         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
14024         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
14025         properly to compute the reachability set if we do field-sensitive PTA.
14026         * invoke.texi (max-fields-for-field-sensitive): Document default.
14027         * opts.c (decode_options): Set max-fields-for-field-sensitive to
14028         100 for optimize >= 2.
14029
14030 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14031
14032         * ggc-zone.c (lookup_page_table_if_allocated,
14033         set_page_table_entry, zone_find_object_size, alloc_small_page,
14034         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
14035         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
14036         -Wc++-compat and/or -Wcast-qual warnings.
14037
14038 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
14039
14040         PR target/36634
14041         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
14042         pic_offset_table_rtx to be marked as used here.
14043         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
14044         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
14045         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
14046         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
14047         !TARGET_SECURE_PLT.
14048
14049 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14050
14051         * alloc-pool.c (hash_descriptor, eq_descriptor,
14052         alloc_pool_descriptor): Fix -Wc++-compat warnings.
14053         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
14054         Likewise.
14055         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
14056         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
14057         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
14058         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
14059         Likewise.
14060
14061 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
14062
14063         * tree-flow.h (loop_only_exit_p): Declare.
14064         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
14065         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
14066         the number of iterations if it is constant.  Otherwise, if this is the
14067         only possible exit of the loop, use the conservative estimate on the
14068         number of iterations of the entire loop if available.
14069
14070 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
14071
14072         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
14073         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
14074         Add synchronization functions.
14075         * config/sync.c: New file.
14076         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
14077         (LIBGCC_SYNC_CFLAGS): Likewise.
14078
14079 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
14080
14081         PR target/36710
14082         * config/i386/i386.md (mode): Add TF to "mode" attribute.
14083         (*pushtf_sse): New insn pattern.
14084         (pushtf splitters): New splitters.
14085
14086 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
14087
14088         PR middle-end/35736
14089         * predict.c (build_predict_expr): Use void_type_node for the tree
14090         type, instead of NULL_TREE.
14091
14092 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
14093
14094         * config/i386/i386.c (contains_aligned_value_p): Return true
14095         for TCmode.
14096         (ix86_data_alignment): Align TCmode to 128bits.
14097         (ix86_local_alignment): Likewise.
14098
14099 2008-07-03  Andrew Haley  <aph@redhat.com>
14100
14101         PR bootstrap/33304
14102         * vec.h (VEC_TA): New.
14103         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
14104         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
14105         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
14106         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
14107         (C_COMMON_FIXED_TYPES): Remove first arg.
14108         (C_COMMON_FIXED_MODE_TYPES): Likewise.
14109         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
14110         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
14111         not to use empty macro arguments.
14112
14113 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
14114
14115         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
14116         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
14117         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
14118         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
14119         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
14120         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
14121         config/ia64/crtn.asm, config/m68hc11/larith.asm,
14122         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
14123         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
14124         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
14125         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
14126         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
14127         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
14128         config/rs6000/e500crtres64gpr.asm,
14129         config/rs6000/e500crtres64gprctr.asm,
14130         config/rs6000/e500crtrest32gpr.asm,
14131         config/rs6000/e500crtrest64gpr.asm,
14132         config/rs6000/e500crtresx32gpr.asm,
14133         config/rs6000/e500crtresx64gpr.asm,
14134         config/rs6000/e500crtsav32gpr.asm,
14135         config/rs6000/e500crtsav64gpr.asm,
14136         config/rs6000/e500crtsav64gprctr.asm,
14137         config/rs6000/e500crtsavg32gpr.asm,
14138         config/rs6000/e500crtsavg64gpr.asm,
14139         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
14140         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
14141         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
14142         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
14143         config/sparc/sol2-cn.asm: Remove .file directives.
14144
14145 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
14146
14147         * resource.c (mark_referenced_resources): Look inside
14148         UNSPEC_VOLATILEs and ASM_INPUTs.
14149
14150 2008-07-02  Ian Lance Taylor  <iant@google.com>
14151
14152         * rtlanal.c (add_reg_note): New function.
14153         * rtl.h (add_reg_note): Declare.
14154         * auto-inc-dec.c (attempt_change): Use add_reg_note.
14155         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
14156         * builtins.c (expand_builtin_longjmp): Likewise.
14157         (expand_builtin_nonlocal_goto): Likewise.
14158         * calls.c (emit_call_1, expand_call): Likewise.
14159         * cfgexpand.c (add_reg_br_prob_note): Likewise.
14160         * cfglayout.c (fixup_reorder_chain): Likewise.
14161         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
14162         (commit_one_edge_insertion): Likewise.
14163         * combine.c (move_deaths, distribute_notes): Likewise.
14164         * df-problems.c (df_set_note): Likewise.
14165         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
14166         (set_unique_reg_note): Likewise.
14167         (emit_copy_of_insn_after): Likewise.
14168         * expr.c (expand_expr_real): Likewise.
14169         * gcse.c (add_label_notes): Likewise.
14170         * haifa-sched.c (create_check_block_twin): Likewise.
14171         * jump.c (mark_jump_label_1): Likewise.
14172         * loop-doloop.c (add_test, doloop_modify): Likewise.
14173         * loop-unswitch.c (compare_and_jump_seq): Likewise.
14174         * lower-subreg.c (move_eh_region_note): Likewise.
14175         * optabs.c (emit_libcall_block): Likewise.
14176         * predict.c (predict_insn): Likewise.
14177         (combine_predictions_for_insn): Likewise.
14178         * recog.c (peephole2_optimize): Likewise.
14179         * regmove.c (try_auto_increment): Likewise.
14180         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
14181         * reload.c (find_reloads): Likewise.
14182         * reload1.c (fixup_eh_region_note): Likewise.
14183         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
14184         * reorg.c (delete_prior_computation): Likewise.
14185         (delete_computation, dbr_schedule): Likewise.
14186         * config/pa/pa.c (legitimize_pic_address): Likewise.
14187         * config/sh/sh.c (sh_reorg): Likewise.
14188
14189 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
14190
14191         PR target/36669
14192         * config/libgcc-glibc.ver: Add %exclude.
14193         * config/m32r/libgcc-glibc.ver: Likwise.
14194         * config/s390/libgcc-glibc.ver: Likwise.
14195         * config/sh/libgcc-glibc.ver: Likwise.
14196         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
14197
14198         * config/i386/libgcc-glibc.ver: New.
14199
14200         * config/i386/libgcc-x86_64-glibc.ver: Removed.
14201
14202 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
14203
14204         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
14205         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
14206         i[34567]86-*-linux*, x86_64-*-linux*.  Add
14207         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
14208         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
14209         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
14210         i[34567]86-*-linux*, x86_64-*-linux*.
14211
14212         * libgcc-std.ver: Add empty GCC_4.4.0.
14213
14214         * mkmap-symver.awk: Support multiple versions per symbol.
14215
14216         * config/i386/i386.c (ix86_init_builtins): Always define
14217         __builtin_fabsq and __builtin_copysignq with fallbacks.
14218         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
14219         and __builtin_copysignq if SSE2 isn't available.
14220
14221         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
14222         (LIBGCC2_TF_CEXT): Likwise.
14223         (TF_SIZE): Likwise.
14224
14225         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
14226
14227         * config/i386/sfp-machine.h: Moved to libgcc.
14228
14229         * config/i386/sfp-machine.h: New.
14230         * config/i386/t-linux: Likwise.
14231
14232         * config/i386/t-darwin: Remove softfp_wrap_start and
14233         softfp_wrap_end.
14234         * config/i386/t-darwin64: Likewise.
14235
14236         * config/i386/t-fprules-softfp64: Renamed to ...
14237         * config/i386/t-fprules-softfp: This.
14238
14239         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
14240         and softfp_wrap_end.
14241
14242 2008-07-02  Jason Merrill  <jason@redhat.com>
14243
14244         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
14245
14246         * tree.c (ctor_to_list): New fn.
14247         * tree.h: Declare it.
14248         (CONSTRUCTOR_ELT): New macro.
14249         (CONSTRUCTOR_NELTS): New macro.
14250
14251 2008-07-02  Richard Guenther  <rguenther@suse.de>
14252
14253         * tree-ssa-structalias.c (struct variable_info): Reorder
14254         to fill padding on 64bit hosts.  Make collapsed_to an int.
14255         (get_varinfo_fc): Deal with that.
14256         (new_var_info): Likewise.
14257         (collapse_rest_of_var): Likewise.
14258
14259 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
14260
14261         * doc/install.texi (--enable-java-home): Document.
14262         (--enable-aot-compile-rpm): Likewise.
14263         (--with-arch-directory): Likewise.
14264         (--with-os-directory): Likewise.
14265         (--with-origin-name): Likewise.
14266         (--with-arch-suffix): Likewise.
14267         (--with-jvm-root-dir): Likewise.
14268         (--with-jvm-jar-dir): Likewise.
14269         (--with-python-dir): Likewise.
14270
14271 2008-07-02  Richard Guenther  <rguenther@suse.de>
14272
14273         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
14274         from decls explicitly.  Merge operand checking from tuples.
14275
14276 2008-07-02  Martin Jambor  <mjambor@suse.cz>
14277
14278         * tree-switch-conversion.c: Included timevar.h which I forgot before.
14279
14280 2008-07-02  Martin Jambor  <mjambor@suse.cz>
14281
14282         * tree-switch-conversion.c: Included timevar.h
14283         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
14284
14285         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
14286
14287 2008-07-02  Martin Jambor  <mjambor@suse.cz>
14288
14289         * tree-switch-conversion.c: Corrected various comments and
14290         whitespace issues
14291         (build_constructors): Fixed minor formatting mistakes.
14292
14293         * invoke.texi (Optimize Options): Corrected the
14294         switch-conversion-max-branch-ratio parameter.
14295
14296 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
14297
14298         * final.c (asm_insn_count): Return zero for an empty asm body.
14299
14300 2008-07-02  Richard Guenther  <rguenther@suse.de>
14301
14302         * bitmap.h (bitmap_set_bit): Return bool.
14303         (bitmap_clear_bit): Likewise.
14304         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
14305         write to the bitmap if it would.
14306         (bitmap_clear_bit): Likewise.
14307         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
14308         bitmap_set_bit return value.
14309         (add_pred_graph_edge): Likewise.
14310         (add_graph_edge): Likewise.
14311         (do_sd_constraint): Likewise.
14312         (do_ds_constraint): Likewise.
14313
14314 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14315
14316         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
14317         Fix -Wc++-compat and/or -Wcast-qual warnings.
14318         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
14319         gen_regparm_prefix): Likewise.
14320         * vmsdbgout.c (write_modbeg, lookup_filename,
14321         vmsdbgout_source_line, vmsdbgout_init): Likewise.
14322
14323 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
14324
14325         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
14326         defaults.h definition apply.
14327
14328 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
14329
14330         * function.c (assign_parm_remove_parallels): New.
14331         (assign_parm_setup_block_p): Do not return true for non-BLKmode
14332         PARALLELs.
14333         (assign_parm_setup_block): Do not handle them.
14334         (assign_parm_setup_reg, assign_parm_setup_stack): Call
14335         assign_parm_remove_parallels.
14336
14337 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
14338
14339         * c-typeck.c (convert_for_assignment): Use
14340         vector_targets_convertible_p.
14341         * c-common.c (vector_targets_convertible_p): New.
14342         * c-common.h (vector_targets_convertible_p): New prototype.
14343         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
14344         opaque_p_V2SI_type_node.
14345
14346 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
14347
14348         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
14349         RFmode constants.
14350
14351 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
14352
14353         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
14354         TFmode constants via two element DImode vector for hosts with
14355         HOST_BITS_PER_WIDE_INT < 64.
14356         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
14357         also for HOST_BITS_PER_WIDE_INT < 64.
14358
14359 2008-07-01  Richard Guenther  <rguenther@suse.de>
14360
14361         PR tree-optimization/36666
14362         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
14363         (get_constraint_exp_from_ssa_var): Split into ...
14364         (get_constraint_exp_for_temp): ... this ...
14365         (get_constraint_for_ssa_var): ... and that.
14366         Return constraint expressions for all touched sub-fields
14367         if the results address is not taken.
14368         (process_constraint): Remove assertion that aggregate
14369         assignments do not happen at this place.
14370         (get_constraint_for_component_ref): Add address_p argument.
14371         Return constraint expressions for all touched sub-fields
14372         if the results address is not taken.
14373         (do_deref): Use get_constraint_exp_for_temp.
14374         (get_constraint_for_1): Rename from ...
14375         (get_constraint_for): ... this.  Add the old function as wrapper.
14376         (do_structure_copy): Use get_constraint_for_1.
14377
14378 2008-07-01  Martin Jambor  <mjambor@suse.cz>
14379
14380         * Makefile.in (tree-switch-conversion.o): Add.
14381         (OBJS-common): Add tree-swtch-conversion.o.
14382         * passes.c (init_optimization_passes): Add pass_convert_switch.
14383         * tree-pass.h: (pass_convert_switch): Add.
14384         * tree-switch-conversion.c: New file.
14385         * gcc.dg/tree-ssa/cswtch.c: New testcase.
14386         * common.opt (ftree-cswtch): New option.
14387         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
14388         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
14389         * opts.c (decode_options): Set flag_tree_switch_conversion when
14390         optimization level is >= 2.
14391         * doc/invoke.texi (Optimize Options): Added description of
14392         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
14393
14394 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14395
14396         * config/darwin-driver.c (darwin_default_min_version): Fix
14397         -Wc++-compat warnings.
14398
14399 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
14400
14401         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
14402         of operand 0.
14403
14404 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
14405
14406         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
14407
14408 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
14409
14410         PR rtl-optimization/34744
14411         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
14412         (df_scan_free_internal): Free data structures not
14413         allocated in storage pools.
14414         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
14415         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
14416         df_scan_free_mws_vec.
14417         * dse.c (dse_step6): Free offset_map_p and offset_map_n
14418         unconditionally.
14419
14420 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
14421
14422         * config/i386/i386.c (contains_aligned_value_p): Return true
14423         for __float128.
14424         (ix86_function_arg_boundary): Return its natural boundary
14425         for __float128.
14426         (return_in_memory_32): Don't check TDmode.
14427         (ix86_split_to_parts): Support splitting into 4 parts and
14428         support TFmode for 32bit target.
14429         (ix86_split_long_move): Support splitting into 4 parts.
14430         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
14431         for SSE2.
14432         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
14433         (ix86_init_builtins): Here.
14434         (ix86_scalar_mode_supported_p): Always return true for TFmode.
14435         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
14436         'q' and 'w', respectively.
14437
14438         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
14439         TARGET_64BIT.
14440         (movtf_internal): Likewise.
14441         (<code>tf2): Likewise.
14442         (*absnegtf2_sse): Likewise.
14443         (copysign<mode>3): Likewise.
14444         (copysign<mode>3_const): Likewise.
14445         (copysign<mode>3_var): Likewise.
14446         (define_split UNSPEC_COPYSIGN): Likewise.
14447         * config/i386/sse.md (*nandtf3): Likewise.
14448         (<code>tf3): Likewise.
14449         (*<code>tf3): Likewise.
14450
14451 2008-06-30  Joey Ye  <joey.ye@intel.com>
14452             H.J. Lu  <hongjiu.lu@intel.com>
14453
14454         * global.c (compute_regsets): Set frame_pointer_needed here.
14455         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
14456
14457 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
14458
14459         * doc/install.texi (specific): Expand Windows build notes.
14460
14461 2008-06-30  Ira Rosen  <irar@il.ibm.com>
14462
14463         PR tree-optimization/36648
14464         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
14465         number of prolog iterations by step. Fix the comment.
14466
14467 2008-06-30  Richard Guenther  <rguenther@suse.de>
14468
14469         PR middle-end/36671
14470         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
14471         handle calls from ECF_MALLOC functions.
14472         (handle_pure_call): ECF_MALLOC functions do not return
14473         call-used memory.
14474         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
14475
14476 2008-06-29  Andreas Schwab  <schwab@suse.de>
14477
14478         * config/m68k/m68k.c (print_operand): Always print a float
14479         constant in hex.
14480         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
14481         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
14482         Remove macros.
14483
14484         * config/rs6000/x-linux64: Remove never used file.
14485
14486 2008-06-29  Richard Guenther  <rguenther@suse.de>
14487
14488         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
14489         prototype.
14490         (struct alias_info): Move ...
14491         * tree-ssa-alias.c: ... here.
14492         (update_alias_info): Declare.
14493         (compute_may_aliases): Call it.
14494         (update_alias_info): New function.
14495         * tree-ssa-structalias.c (update_alias_info): Move ...
14496         * tree-ssa-alias.c (update_alias_info_1): ... here.
14497         * tree-ssa-structalias.c (process_constraint_1): Remove
14498         unused from_call argument.  Rename to ...
14499         (process_constraint): ... this.  Delete old wrapper.
14500         (make_constraint_to): Adjust callers.
14501         (handle_const_call): Likewise.
14502         (handle_pure_call): Likewise.
14503         (init_base_vars): Likewise.
14504         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
14505         (find_func_aliases): We don't need structure copies for
14506         complex types.
14507         (make_constraint_from_anything): Remove.
14508         (create_variable_info_for): For globals make constraints
14509         from escaped, not from anything.
14510         (compute_points_to_sets): Do not call update_alias_info.
14511         (ipa_pta_execute): Use make_constraint_from.
14512
14513 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14514
14515         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
14516         (bitmap.o-warn, dominance.o-warn): New.
14517         * configure.ac (cxx_compat_warn): Delete.
14518         (loose_warn): Add -Wcast-qual and -Wc++-compat.
14519         * system.h: Remove #pragma diagnostic for -Wcast-qual and
14520         -Wc++-compat.
14521         * configure: Regenerate.
14522
14523         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
14524         warnings.
14525
14526 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14527
14528         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
14529         * df-scan.c (df_notes_rescan): Likewise.
14530         * ggc-page.c (set_page_table_entry): Likewise.
14531         * intl.c (gcc_gettext_width): Likewise.
14532         * varasm.c (get_unnamed_section, get_noswitch_section,
14533         get_section): Likewise.
14534
14535 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
14536
14537         * regrename.c (build_def_use): Don't copy RTX.
14538
14539 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
14540
14541         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
14542         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
14543         punctuation.  Use @ref instead of @xref.
14544         (Function Names): Remove stray @display/@end display.
14545         (C++ Attributes): Use @ref instead of @xref.
14546         (Deprecated Features): Fix punctuation around @xref.
14547         (Backwards Compatibility): Likewise.
14548         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
14549
14550 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
14551
14552         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
14553         constants for E500 double.
14554
14555 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14556
14557         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
14558         element type of const_vector.
14559
14560 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
14561
14562         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
14563         Remove FLAGS_REG clobber from expander pattern.
14564         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
14565         (anddi3, andsi3, andhi3, andqi3): Ditto.
14566         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
14567         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
14568         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
14569         (ashlsi3, ashlhi3, ashlqi3): Ditto.
14570         (ashrsi3, ashrhi3, ashrqi3): Ditto.
14571         (lshrsi3, lshrhi3, lshrqi3): Ditto.
14572         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
14573         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
14574
14575 2008-06-28  Richard Guenther  <rguenther@suse.de>
14576
14577         * tree-ssa-structalias.c (callused_id, var_callused,
14578         callused_tree): Add.
14579         (handle_pure_call): New function.
14580         (find_func_aliases): Call it.
14581         (find_what_p_points_to): Handle the call-used set.
14582         (clobber_what_escaped): Likewise.
14583         (compute_call_used_vars): New function.
14584         (init_base_vars): Init the call-used variable.
14585         (do_sd_constraint): Do not propagate the solution from CALLUSED
14586         but use CALLUSED as a placeholder.
14587         (solve_graph): Likewise.
14588         * tree-flow-inline.h (gimple_call_used_vars): New function.
14589         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
14590         (compute_call_used_vars): Declare.
14591         * tree-ssa-alias.c (set_initial_properties): Call
14592         compute_call_used_vars.
14593         (reset_alias_info): Clear call-used variables.
14594         (add_call_clobber_ops): Assert we are not called for const/pure
14595         functions.  Remove handling of them.
14596         (add_call_read_ops): Handle pure functions by adding the
14597         call-used set of variables as VUSEs.
14598         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
14599         (delete_tree_ssa): Free it.
14600         * tree-dfa.c (remove_referenced_var): Clear the var from the
14601         call-used bitmap.
14602
14603 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
14604
14605         * tree.c (build_varargs_function_type_list): New.
14606         (build_function_type_list_1): New.
14607         (build_function_type_list): Use build_function_type_list_1.
14608         * tree.h (build_varargs_function_type_list): New.
14609
14610 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14611
14612         PR target/34856
14613         * config/spu/spu.c (spu_builtin_splats): Do not generate
14614         invalid CONST_VECTOR expressions.
14615         (spu_expand_vector_init): Likewise.
14616
14617 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
14618
14619         * optabs.c (libfunc_decls): New variable.
14620         (libfunc_decl_hash, libfunc_decl_eq): New functions.
14621         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
14622         for the same function twice.
14623
14624 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
14625
14626         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
14627         ix86_expand_binary_operator directly.
14628         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
14629         for operand 2.
14630         (*ashrti3_1): Ditto.
14631         (*lshrti3_1): Ditto.
14632         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
14633         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
14634         using only one splitter.  Conditionaly execute splitter before or
14635         after peephole2 pass.
14636         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
14637         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
14638         Use only one alternative in asm template.
14639         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
14640         in asm template.
14641         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
14642         "J" operand constraint for operand 2.
14643         (*ashldi3_cconly_rex64): Ditto.
14644         (*ashrdi3_cmp_rex64): Ditto.
14645         (*ashrdi3_cconly_rex64): Ditto.
14646         (*lshrdi3_cmp_rex64): Ditto.
14647         (*lshrdi3_cconly_rex64): Ditto.
14648         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
14649         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
14650         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
14651         gen_x86_shrd_1.
14652
14653 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
14654
14655         * gimplify.c (omp_is_private): Don't return true if decl is not
14656         already private on #pragma omp for or #pragma omp parallel for.
14657
14658         PR debug/36617
14659         * tree-cfg.c (struct move_stmt_d): Replace block field with
14660         orig_block and new_block fields.
14661         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
14662         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
14663         (move_block_to_fn): Replace vars_map and new_label_map arguments
14664         with struct move_stmt_d pointer.
14665         (replace_block_vars_by_duplicates): New function.
14666         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
14667         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
14668         all subblocks of ORIG_BLOCK to the new function.  Call
14669         replace_block_vars_by_duplicates.
14670         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
14671         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
14672         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
14673         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
14674         (expand_omp): Temporarily set input_location to the location of
14675         region's controlling stmt.
14676         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
14677         BIND_EXPR, push ctx->block_vars and gimplification vars into
14678         the BIND_EXPR and its block's BLOCK_VARS instead of directly
14679         into dest function.
14680         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
14681         there are any BLOCK_VARS.
14682         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
14683         OMP_PARALLEL or OMP_TASK stmt.
14684         (lower_omp): Save and restore input_location around the lower_omp_1
14685         call.
14686
14687 2008-06-27  Richard Guenther  <rguenther@suse.de>
14688
14689         PR tree-optimization/36400
14690         PR tree-optimization/36373
14691         PR tree-optimization/36344
14692         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
14693         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
14694         (update_alias_info): Remove call clobbering code.
14695         (make_constraint_to): New helper function.
14696         (make_escape_constraint): Likewise.
14697         (handle_rhs_call): Use it on all pointer containing arguments.
14698         Also mark the static chain escaped.
14699         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
14700         instead of ANYTHING.
14701         (make_constraint_from): New helper split out from ...
14702         (make_constraint_from_anything): ... here.
14703         (find_func_aliases): Add constraints for escape sites.
14704         (intra_create_variable_infos): Make constraints from NONLOCAL
14705         for parameters.
14706         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
14707         as ANYTHING.
14708         (clobber_what_p_points_to): Remove.
14709         (clobber_what_escaped): New function.
14710         (init_base_vars): Init NONLOCAL and ESCAPED.
14711         (do_sd_constraint): Do not propagate the solution from ESCAPED
14712         but use ESCAPED as a placeholder.
14713         (solve_graph): Likewise.
14714         * tree-flow.h (clobber_what_p_points_to): Remove.
14715         (clobber_what_escaped): Declare.
14716         * tree-ssa-alias.c (set_initial_properties): Call it.
14717         Remove code clobbering escaped pointers.
14718
14719 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
14720
14721         * function.c (allocate_struct_function): Only allocate a unique
14722         funcdef_no if the decl is nonzero.
14723
14724 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
14725
14726         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
14727         * config/mips/mips.c (mips_split_const_insns): New function.
14728         * config/mips/mips.md (move_type): New attribute.
14729         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
14730         (dword_mode): New attribute.
14731         (type): Avoid long line.  Map "move_type"s to "type"s,
14732         choosing "multi" for doubleword moves if appropriate.
14733         Swap MTC/MFC comments to match their declaration order.
14734         (extended_mips16): Default to "yes" if "move_type" is "sll0",
14735         "type" is "branch" or "jal" is "direct".
14736         (length): Handle "extended_mips16" first.  Make the default
14737         "0" for "ghost" instructions.  Set the length from "move_type".
14738         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
14739         of "type", with "sll0" for the register alternative.  Remove the
14740         "extended_mips16" attribute.
14741         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
14742         of "type", with "shift_shift" for the register alternative.
14743         Remove the "length" attribute.
14744         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
14745         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
14746         of "type", with "andi" for the register alternative.
14747         (*zero_extendqihi2): Likewise.
14748         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
14749         of "andi" instead of a "type" of "arith".
14750         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
14751         instead of "type".
14752         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
14753         (mov_<store>r, *mov<mode>_ra): Likewise.
14754         (extendsidi2): Use "move_type" instead of "type", with "move"
14755         for the register alternative.
14756         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
14757         of "type", with "signext" for the register alternative.
14758         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
14759         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
14760         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
14761         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
14762         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
14763         (unnamed branch insn): Likewise.
14764         (*movdi_gp32_fp64): Fold into...
14765         (*movdi_32bit): ...here.
14766         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
14767         (*movdf_hardfloat): ...this new pattern.
14768         (*movdf_softfloat): Remove redundant FPR alternatives.
14769         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
14770         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
14771         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
14772         the "move" attribute.
14773         (*movdi_32bit): Use "move_type" instead of "type" and remove the
14774         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
14775         and "store" for COP loads and stores.
14776         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
14777         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
14778         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
14779         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
14780         (*movtf_mips16, *movv2sf): Likewise.
14781         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
14782         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
14783         (mfhc1<mode>): Use "move_type" instead of "move".
14784         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
14785         (loadgp_blockage): Remove the "length" attribute.
14786         (blockage, set_got_version, update_got_version): Likewise.
14787         (call_internal): Remove the "extended_mips16" attribute.
14788         (call_value_internal, call_value_multiple_internal): Likewise.
14789         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
14790         instead of "move".
14791         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
14792         the "length" attribute.
14793
14794 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14795
14796         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
14797         -Wcast-qual warnings.
14798         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
14799         handle_pragma_pop_macro): Likewise.
14800         * collect2.c (resolve_lib_name): Likewise.
14801         * config/arc/arc.c (arc_init): Likewise.
14802         * config/arm/arm.c (neon_builtin_compare,
14803         locate_neon_builtin_icode): Likewise.
14804         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
14805         * config/bfin/bfin.c (bfin_init_machine_status,
14806         bfin_optimize_loop): Likewise.
14807         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
14808         * config/cris/cris.c (cris_init_expanders): Likewise.
14809         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
14810         * config/darwin.c (machopic_indirection_eq,
14811         machopic_indirection_name, machopic_output_indirection): Likewise.
14812         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
14813         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
14814         frv_optimize_membar): Likewise.
14815         * config/i386/cygwin.h (mingw_scan,
14816         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
14817         * config/i386/cygwin1.c (mingw_scan): Likewise.
14818         * config/i386/i386.c (machopic_output_stub): Likewise.
14819         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
14820         i386_pe_unique_section): Likewise.
14821         * config/ia64/ia64.c (ia64_init_machine_status,
14822         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
14823         Likewise.
14824         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
14825         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
14826         * config/m68k/m68k.c (m68k_handle_option,
14827         m68k_sched_md_init_global): Likewise.
14828         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
14829         mcore_unique_section): Likewise.
14830         * config/mips/mips.c (mips_block_move_straight,
14831         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
14832         Likewise.
14833         * config/mmix/mmix.c (mmix_init_machine_status,
14834         mmix_encode_section_info): Likewise.
14835         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
14836         * config/rs6000/rs6000.c (rs6000_init_machine_status,
14837         print_operand_address, output_toc, redefine_groups,
14838         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
14839         * config/s390/s390.c (s390_init_machine_status): Likewise.
14840         * config/score/score.c (score_block_move_straight,
14841         score_block_move_loop_body): Likewise.
14842         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
14843         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
14844         * emit-rtl.c (find_auto_inc): Likewise.
14845         * gcc.c (translate_options, process_command): Likewise.
14846         * reorg.c (dbr_schedule): Likewise.
14847         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
14848         * xcoffout.c (xcoffout_declare_function): Likewise.
14849
14850 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
14851
14852         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
14853         ipa-pta working again.
14854
14855 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
14856
14857         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
14858         genautomata.
14859
14860 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
14861
14862         * config.gcc (powerpc*-*-*): Add new core e500mc.
14863         * config/rs6000/e500mc.md: New file.
14864         * config/rs6000/rs6000.c (processor_costs): Add new costs for
14865         e500mc.
14866         (rs6000_override_options): Add e500mc case to
14867         processor_target_table. Altivec and Spe options not allowed
14868         with e500mc. Add isel instruction to e500mc by
14869         default. Initialize rs6000_cost for e500mc.
14870         (rs6000_issue_rate): Set issue rate for e500mc.
14871         * config/rs6000/rs6000.h (processor_type): Add
14872         PROCESSOR_PPCE500MC.
14873         (ASM_CPU_SPEC): Add e500mc.
14874         Set TARGET_ISEL to rs6000_isel.
14875         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
14876         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
14877         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
14878         Include e500mc.md.
14879         * doc/invoke.texi: Add e500mc to list of cpus.
14880
14881 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14882
14883         PR c/34867
14884         * c-lex.c (lex_charconst): Initialize unsignedp.
14885
14886 2008-06-27  Olivier Hainque  <hainque@adacore.com>
14887
14888         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
14889         documented assumptions.
14890
14891 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
14892
14893         * dwarf2out.c: Remove trailing white spaces.  Break long line
14894         in comments.
14895
14896 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
14897
14898         * libfuncs.h (LTI_synchronize): New libfunc_index.
14899         (synchronize_libfunc): Declare.
14900         * builtins.c (expand_builtin_synchronize): Consider using
14901         synchronize_libfunc before falling back on an asm blockage.
14902         * config/mips/mips.c: Include libfuncs.h
14903         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
14904
14905 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
14906
14907         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
14908         parameter.  Copy stack_reg to r11 where appropriate.
14909         (no_global_regs_above): Add gpr parameter.
14910         (rs6000_stack_info): Only add padding for SPE save area if we
14911         are saving SPE GPRs and CR.
14912         (saveres_routine_syms): New variable.
14913         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
14914         Define.
14915         (rs6000_savres_routine_sym): New function.
14916         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
14917         split out of...
14918         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
14919         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
14920         Tweak FPR out-of-line saving.
14921         (rs6000_make_savres_rtx): New function.
14922         (rs6000_use_multiple_p): New function.
14923         (rs6000_savres_strategy): New function.
14924         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
14925         out-of-line if appropriate.
14926         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
14927         if we are optimizing for size.
14928         (GP_SAVE_INLINE): Define.
14929         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
14930         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
14931         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
14932         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
14933         (*save_fpregs_<mode>): Add use of r11.
14934         (*restore_gpregs_<mode>): New insn.
14935         (*return_and_restore_gpregs_<mode>): New insn.
14936         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
14937         use r11.
14938         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
14939         (*restore_gpregs_spe): New insn.
14940         (*return_and_restore_gpregs_spe): New insn.
14941         * config/rs6000/predicates.md (save_world_operation): Fix check.
14942
14943 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
14944
14945         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
14946         this point, so assert that.
14947
14948 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
14949
14950         * cfganal.c: Include vec.h and vecprim.h.
14951         (compute_idf): Import from...
14952         * tree-into-ssa (compute_idf): ...here.
14953         * basic-block.h (compute_idf): Export.
14954
14955 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
14956
14957         * c-decl.c (merge_decls): Use !current_function_decl to check for
14958         extern declaration of C99 inline function being at file scope.
14959
14960 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
14961
14962         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
14963
14964 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14965
14966         * alias.c (record_alias_subset, init_alias_analysis): Fix
14967         -Wc++-compat and/or -Wcast-qual warnings.
14968         * attribs.c (lookup_attribute_spec): Likewise.
14969         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
14970         copy_bb, connect_traces,
14971         find_rarely_executed_basic_blocks_and_cr): Likewise.
14972         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
14973         note_btr_set, migrate_btr_defs): Likewise.
14974         * builtins.c (result_vector, expand_builtin_memcpy,
14975         expand_builtin_mempcpy_args, expand_builtin_strncpy,
14976         builtin_memset_read_str, expand_builtin_printf,
14977         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
14978         Likewise.
14979         * caller-save.c (mark_set_regs): Likewise.
14980         * calls.c (expand_call, emit_library_call_value_1): Likewise.
14981         * cgraph.c (cgraph_edge): Likewise.
14982         * combine.c (likely_spilled_retval_1): Likewise.
14983         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
14984         htab_counts_entry_del, get_coverage_counts): Likewise.
14985         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
14986         new_cselib_val): Likewise.
14987         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
14988         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
14989         Likewise.
14990         * df-core.c (df_compact_blocks): Likewise.
14991         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
14992         * df-scan.c (df_grow_reg_info, df_ref_create,
14993         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
14994         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
14995         df_record_entry_block_defs, df_record_exit_block_uses,
14996         df_bb_verify): Likewise.
14997         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
14998         DF_REF_EXTRACT_MODE_CONST): New.
14999         * dominance.c (get_immediate_dominator, get_dominated_by,
15000         nearest_common_dominator, root_of_dom_tree,
15001         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
15002         -Wc++-compat and/or -Wcast-qual warnings.
15003         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
15004         record_store, replace_read, check_mem_read_rtx, scan_insn,
15005         dse_step1, dse_record_singleton_alias_set): Likewise.
15006         * dwarf2asm.c (dw2_force_const_mem): Likewise.
15007
15008 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15009
15010         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
15011         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
15012         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
15013         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
15014         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
15015         add_ranges_num, add_ranges_by_labels, file_info_cmp,
15016         file_name_acquire, output_file_names, add_const_value_attribute,
15017         premark_used_types_helper, file_table_eq, file_table_hash,
15018         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
15019         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
15020         -Wcast-qual warnings.
15021         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
15022         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
15023         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
15024         gen_reg_rtx, start_sequence, init_emit): Likewise.
15025         * et-forest.c (et_new_occ, et_new_tree): Likewise.
15026         * except.c (init_eh_for_function, gen_eh_region,
15027         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
15028         arh_to_landing_pad, arh_to_label, add_action_record,
15029         add_call_site, switch_to_exception_section): Likewise.
15030         * expmed.c (synth_mult): Likewise.
15031         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
15032         store_expr): Likewise.
15033         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
15034         Likewise.
15035         * function.c (assign_stack_temp_for_type,
15036         allocate_struct_function, match_asm_constraints_1): Likewise.
15037         * gcov-io.c (gcov_allocate): Likewise.
15038         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
15039         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
15040         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
15041         record_one_set, insert_expr_in_table, insert_set_in_table,
15042         dump_hash_table, compute_hash_table_work, alloc_hash_table,
15043         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
15044         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
15045         -Wcast-qual warnings.
15046
15047 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15048
15049         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
15050         -Wcast-qual warnings.
15051         * gcc.c (process_command): Likewise.
15052         * genattrtab.c (oballoc): Use XOBNEW.
15053         (oballocvec): Define.
15054         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
15055         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
15056         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
15057         -Wc++-compat and/or -Wcast-qual warnings.
15058         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
15059         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
15060         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
15061         gen_presence_absence_set, gen_automaton, gen_regexp_el,
15062         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
15063         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
15064         add_excls, process_presence_absence_names,
15065         process_presence_absence_patterns, add_presence_absence,
15066         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
15067         get_free_state, add_arc, get_free_automata_list_el,
15068         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
15069         transform_3, cache_presence, create_ainsns, create_automata,
15070         create_state_ainsn_table, dfa_insn_code_enlarge,
15071         output_trans_func, output_min_issue_delay_func,
15072         output_dead_lock_func, output_reset_func,
15073         output_get_cpu_unit_code_func, output_dfa_start_func,
15074         expand_automata): Likewise.
15075         * genextract.c (gen_insn): Likewise.
15076         * gengtype-lex.l: Likewise.
15077         * gengtype.c (read_input_list, adjust_field_type,
15078         process_gc_options): Likewise.
15079         * genoutput.c (note_constraint): Likewise.
15080         * genpreds.c (mangle, add_constraint): Likewise.
15081         * genrecog.c (process_define_predicate, new_decision,
15082         add_to_sequence): Likewise.
15083         * gensupport.c (record_insn_name): Likewise.
15084
15085 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15086
15087         * config/i386/driver-i386.c (detect_caches_amd,
15088         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
15089         and/or -Wcast-qual warnings.
15090         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
15091         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
15092         gt_pch_save): Likewise.
15093         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
15094         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
15095         * global.c (compute_regsets): Likewise.
15096         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
15097         finish_graph_dump_file): Likewise.
15098         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
15099         unlink_bb_notes): Likewise.
15100         * integrate.c (get_hard_reg_initial_val): Likewise.
15101         * ipa-prop.c (ipa_push_func_to_list): Likewise.
15102         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
15103         * local-alloc.c (update_equiv_regs): Likewise.
15104         * loop-invariant.c (check_invariant_table_size,
15105         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
15106         Likewise.
15107         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
15108         altered_reg_used, mark_altered): Likewise.
15109         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
15110         insert_var_expansion_initialization,
15111         combine_var_copies_in_loop_exit, apply_opt_in_copies,
15112         release_var_copies): Likewise.
15113         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
15114         analyze_matrix_decl, add_allocation_site, analyze_transpose,
15115         analyze_accesses_for_phi_node, check_var_notmodified_p,
15116         check_allocation_function, find_sites_in_func,
15117         record_all_accesses_in_func, transform_access_sites,
15118         transform_allocation_sites): Likewise.
15119         * omp-low.c (new_omp_region, create_omp_child_function_name,
15120         check_omp_nesting_restrictions, check_combined_parallel,
15121         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
15122         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
15123         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
15124         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
15125         Likewise.
15126         * opts-common.c (prune_options): Likewise.
15127         * opts.c (add_input_filename, print_filtered_help,
15128         get_option_state): Likewise.
15129         * params.c (add_params): Likewise.
15130         * passes.c (set_pass_for_id, next_pass_1,
15131         do_per_function_toporder, pass_fini_dump_file): Likewise.
15132         * postreload.c (reload_cse_simplify_operands): Likewise.
15133         * predict.c (tree_predicted_by_p, tree_predict_edge,
15134         clear_bb_predictions, combine_predictions_for_bb): Likewise.
15135
15136 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15137
15138         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
15139         warnings.
15140         * recog.c (check_asm_operands, validate_change_1): Likewise.
15141         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
15142         subst_asm_stack_regs): Likewise.
15143         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
15144         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
15145         * regmove.c (reg_is_remote_constant_p): Likewise.
15146         * regrename.c (regrename_optimize, scan_rtx_reg,
15147         kill_clobbered_value, kill_set_value, kill_autoinc_value):
15148         Likewise.
15149         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
15150         regstat_compute_calls_crossed): Likewise.
15151         * reload1.c (init_reload, new_insn_chain,
15152         has_nonexceptional_receiver, reload, copy_reloads,
15153         calculate_needs_all_insns, init_elim_table): Likewise.
15154         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
15155         * rtl.c (shallow_copy_rtx_stat): Likewise.
15156         * rtlanal.c (parms_set): Likewise.
15157         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
15158         sbitmap_resize, sbitmap_vector_alloc): Likewise.
15159         * sched-ebb.c (earliest_block_with_similiar_load,
15160         add_deps_for_risky_insns): Likewise.
15161         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
15162         schedule_region): Likewise.
15163         * see.c (eq_descriptor_pre_extension,
15164         hash_descriptor_pre_extension, hash_del_pre_extension,
15165         eq_descriptor_properties, hash_descriptor_properties,
15166         hash_del_properties, see_seek_pre_extension_expr,
15167         see_initialize_data_structures, see_print_register_properties,
15168         see_print_pre_extension_expr, see_delete_merged_def_extension,
15169         see_delete_unmerged_def_extension, see_emit_use_extension,
15170         see_pre_delete_extension, see_map_extension, see_commit_changes,
15171         see_analyze_merged_def_local_prop,
15172         see_analyze_merged_def_local_prop,
15173         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
15174         see_set_prop_merged_def, see_set_prop_unmerged_def,
15175         see_set_prop_unmerged_use, see_print_one_extension,
15176         see_merge_one_use_extension, see_merge_one_def_extension,
15177         see_store_reference_and_extension, see_update_uses_relevancy,
15178         see_update_defs_relevancy): Likewise.
15179         * statistics.c (hash_statistics_hash, hash_statistics_eq,
15180         hash_statistics_free, curr_statistics_hash): Likewise.
15181         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
15182         expand_asm_operands, expand_return, case_bit_test_cmp,
15183         expand_case): Likewise.
15184         * stor-layout.c (start_record_layout): Likewise.
15185         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
15186         gt_pch_save_stringpool): Likewise.
15187         * tree-data-ref.c (hash_stmt_vertex_info,
15188         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
15189         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
15190
15191 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
15192
15193         PR target/36627
15194         * config/i386/i386.md : Change constraints of HImode and QImode
15195         immediate operands from "i" to "n".  Change SImode "ni" constraint to
15196         "i" and SImode "rmi" constraint to "g".  Remove all constraints
15197         from const0_operand and const1_operand predicated operands.
15198         (i): Change QImode and HImode attribute from "i" to "n".
15199         (*subqi_2): Change HImode operands to QImode.
15200         (*subqi_3): Ditto.
15201
15202 2008-06-25  Olivier Hainque  <hainque@adacore.com>
15203
15204         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
15205         sed substitutions.
15206
15207 2008-06-25  Richard Guenther  <rguenther@suse.de>
15208
15209         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
15210         not overflow the result type.
15211
15212 2008-06-25  Richard Guenther  <rguenther@suse.de>
15213
15214         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
15215         (vn_lookup): Likewise.
15216
15217 2008-06-25  Richard Guenther  <rguenther@suse.de>
15218
15219         PR tree-optimization/35518
15220         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
15221         * tree-sra.c (instantiate_element): Use fold_build3 to build
15222         BIT_FIELD_REFs.
15223         (try_instantiate_multiple_fields): Likewise.
15224
15225 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15226
15227         * config/rs6000/rs6000.md: Change all string instruction's clobber to
15228         be early clobbers.
15229
15230 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15231
15232         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
15233         use_backchain_to_restore_sp to true
15234         if the offset of the link register save area would go over the 32k - 1
15235         offset limit of the load
15236         instructions.
15237
15238 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
15239
15240         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
15241         anchor for the type-punning blurb.  Cross-reference "Structures
15242         unions enumerations and bit-fields implementation".  Provide a
15243         cast-through-pointer example.  Make final sentence self-contained.
15244         * doc/implement-c.texi (Structures unions enumerations and
15245         bit-fields implementation): Cross-reference the type-punning blurb
15246         in the -fstrict-aliasing documentation.
15247
15248 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15249
15250         PR middle-end/36594
15251         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
15252         the memory instead of the memory itself for the save area.
15253
15254 2008-06-24  Olivier Hainque  <hainque@adacore.com>
15255             Nicolas Roche  <roche@adacore.com>
15256
15257         * gengtype.c (srcdir_len): size_t instead of int.
15258         (get_file_realbasename): New function.  For F a filename, the real
15259         basename of F, with all the path components stripped.
15260         (get_file_srcdir_relative_path): New function.  For F a filename, the
15261         relative path to F from $(srcdir).
15262         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
15263         get_file_realbasename.  Adjust the head comment.
15264         (get_prefix_langdir_index): New function. For F a filename, return the
15265         lang_dir_names[] relative index of the language directory that is
15266         a prefix in F.
15267         (get_file_langdir): For F a filename, return the name of the language
15268         directory where F is located.
15269         (get_file_gtfilename): New function. The gt- output file name for an
15270         input filename F.
15271         (get_output_file_with_visibility): Replace in-line computations with
15272         uses of get_file_gtfilename and get_prefix_langdir_index.
15273         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
15274
15275 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
15276
15277         PR tree-optimization/36504
15278         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
15279         references without base address.
15280
15281 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
15282
15283         PR middle-end/36584
15284         * calls.c (expand_call): Increase alignment for recursive functions.
15285
15286 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
15287
15288         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
15289         (TARGET_FUNCTION_VALUE): New define.
15290         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
15291         * config/avr/avr.h (FUNCTION_VALUE): Remove.
15292
15293 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
15294
15295         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
15296         (fmod<mode>3): Ditto.
15297         (remainderxf3): Ditto.
15298         (remainder<mode>3): Ditto.
15299
15300 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
15301
15302         PR target/36533
15303         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
15304         REG is a hard register.
15305
15306         PR tree-optimization/36508
15307         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
15308         499, don't check it at all in release compilers.
15309
15310 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
15311
15312         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
15313         together with SSE_TARGET_MATH to disable insn pattern.
15314         (*fop_<MODEF:mode>_2_i387): Ditto.
15315         (*fop_<MODEF:mode>_3_i387): Ditto.
15316
15317 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
15318
15319         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
15320
15321 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15322
15323         PR middle-end/34906
15324         * gimplify.c (gimplify_asm_expr): Check the return code of
15325         parse_output_constraint call, set function return and is_inout
15326         value if it failed.
15327
15328 2008-06-22  Ian Lance Taylor  <iant@google.com>
15329
15330         * c-lex.c (narrowest_unsigned_type): Change itk to int.
15331         (narrowest_signed_type): Likewise.
15332         * c-typeck.c (c_common_type): Change local variable mclass to enum
15333         mode_class, twice.
15334         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
15335         tcc_comparison, not the tree code itself.
15336         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
15337         (c_expand_expr): Cast modifier to enum expand_modifier.
15338         * c-common.h (C_RID_CODE): Add casts.
15339         (C_SET_RID_CODE): Define.
15340         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
15341         (c_lex_one_token): Add cast to avoid warning.
15342         (c_parser_objc_type_name): Rename local typename to type_name.
15343         (check_no_duplicate_clause): Change code parameter to enum
15344         omp_clause_code.
15345         (c_parser_omp_var_list_parens): Change kind parameter to enum
15346         omp_clause_code.
15347         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
15348         c_parser_omp_list_var_parens.
15349         (c_parser_omp_threadprivate): Likewise.
15350         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
15351         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
15352         * c-format.c (NO_FMT): Define.
15353         (printf_length_specs): Use NO_FMT.
15354         (asm_fprintf_length_specs): Likewise.
15355         (gcc_diag_length_specs): Likewise.
15356         (scanf_length_specs): Likewise.
15357         (strfmon_length_specs): Likewise.
15358         (gcc_gfc_length_specs): Likewise.
15359         (printf_flag_specs): Change 0 to STD_C89.
15360         (asm_fprintf_flag_specs): Likewise.
15361         (gcc_diag_flag_specs): Likewise.
15362         (gcc_cxxdiag_flag_specs): Likewise.
15363         (scanf_flag_specs): Likewise.
15364         (strftime_flag_specs): Likewise.
15365         (strfmon_flag_specs): Likewise.
15366         (print_char_table): Likewise.
15367         (asm_fprintf_char_table): Likewise.
15368         (gcc_diag_char_table): Likewise.
15369         (gcc_tdiag_char_table): Likewise.
15370         (gcc_cdiag_char_table): Likewise.
15371         (gcc_cxxdiag_char_table): Likewise.
15372         (gcc_gfc_char_table): Likewise.
15373         (scan_char_table): Likewise.
15374         (time_char_table): Likewis.
15375         (monetary_char_table): Likewise.
15376         * c-format.h (BADLEN): Likewise.
15377
15378 2008-06-21  Ian Lance Taylor  <iant@google.com>
15379
15380         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
15381         Define END_OF_BASE_TREE_CODES around inclusion.
15382         * tree.c (tree_code_type): New global array.
15383         (tree_code_length, tree_code_name): Likewise.
15384         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
15385         $(lang_tree_files).
15386         (all-tree.def, s-alltree): New targets.
15387         (gencheck.h, s-gencheck): Remove.
15388         (tree.o): Depend upon all-tree.def.
15389         (build/gencheck.o): Remove gencheck.h dependency.
15390         (mostlyclean): Don't remove gencheck.h.
15391         * c-common.h (enum c_tree_code): Remove.
15392         * c-lang.c (tree_code_type): Remove.
15393         (tree_code_length, tree_code_name): Remove.
15394         * gencheck.c (tree_codes): Include all-tree.def, rather than
15395         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
15396         after it is used.
15397         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
15398         than tree.def.
15399         * cp/cp-tree.h (enum cplus_tree_code): Remove.
15400         (operator_name_info): Size to MAX_TREE_CODES.
15401         (assignment_operator_name_info): Likewise.
15402         * cp/cp-lang.c (tree_code_type): Remove.
15403         (tree_code_length, tree_code_name): Remove.
15404         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
15405         (assignment_operator_name_info): Likewise.
15406         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
15407         MAX_TREE_CODES.
15408         * cp/mangle.c (write_expression): Likewise.
15409         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
15410         * fortran/f95-lang.c (tree_code_type): Remove.
15411         (tree_code_length, tree_code_name): Remove.
15412         * java/java-tree.h (enum java_tree_code): Remove.
15413         * java/lang.c (tree_code_type): Remove.
15414         (tree_code_length, tree_code_name): Remove.
15415         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
15416         * objc/objc-act.h (enum objc_tree_code): Remove.
15417         * objc/objc-lang.c (tree_code_type): Remove.
15418         (tree_code_length, tree_code_name): Remove.
15419         * objcp/objcp-lang.c (tree_code_type): Remove.
15420         (tree_code_length, tree_code_name): Remove.
15421         * ada/ada-tree.h (enum gnat_tree_code): Remove.
15422         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
15423         * ada/misc.c (tree_code_type): Remove.
15424         (tree_code_length, tree_code_name): Remove.
15425
15426 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
15427
15428         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
15429         the grand_bitmap_obstack.
15430
15431 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15432
15433         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
15434         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
15435         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
15436         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
15437         move_stmt_r, new_label_mapper): Likewise.
15438         * tree-complex.c (cvc_lookup): Likewise.
15439         * tree-dfa.c (create_function_ann): Likewise.
15440         * tree-dump.c (dump_register): Likewise.
15441         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
15442         find_phi_replacement_condition): Likewise.
15443         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
15444         tree_function_versioning): Likewise.
15445         * tree-into-ssa.c (cmp_dfsnum): Likewise.
15446         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
15447         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
15448         get_nonlocal_debug_decl, convert_nonlocal_reference,
15449         convert_nonlocal_omp_clauses, get_local_debug_decl,
15450         convert_local_reference, convert_local_omp_clauses,
15451         convert_nl_goto_reference, convert_nl_goto_receiver,
15452         convert_tramp_reference, convert_call_expr): Likewise.
15453         * tree-outof-ssa.c (contains_tree_r): Likewise.
15454         * tree-parloops.c (reduction_phi, initialize_reductions,
15455         eliminate_local_variables_1, add_field_for_reduction,
15456         add_field_for_name, create_phi_for_local_result,
15457         create_call_for_reduction_1, create_loads_for_reductions,
15458         create_stores_for_reduction, create_loads_and_stores_for_name):
15459         Likewise.
15460         * tree-phinodes.c (allocate_phi_node): Likewise.
15461         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
15462         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
15463         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
15464         * tree-ssa-coalesce.c (compare_pairs): Likewise.
15465         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
15466         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
15467         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
15468         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
15469         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
15470         vn_nary_op_insert): Likewise.
15471         * tree-ssa.c (redirect_edge_var_map_add,
15472         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
15473         * tree-vectorizer.c (vectorize_loops): Likewise.
15474         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
15475         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
15476         tree_cons_stat, build1_stat, build_variant_type_copy,
15477         decl_init_priority_lookup, decl_fini_priority_lookup,
15478         decl_priority_info, decl_restrict_base_lookup,
15479         decl_restrict_base_insert, decl_debug_expr_lookup,
15480         decl_debug_expr_insert, decl_value_expr_lookup,
15481         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
15482         type_hash_add, get_file_function_name, tree_check_failed,
15483         tree_not_check_failed, tree_range_check_failed,
15484         omp_clause_range_check_failed, build_omp_clause,
15485         build_vl_exp_stat): Likewise.
15486         * value-prof.c (gimple_histogram_value,
15487         gimple_duplicate_stmt_histograms): Likewise.
15488         * var-tracking.c (attrs_list_insert, attrs_list_copy,
15489         unshare_variable, variable_union_info_cmp_pos, variable_union,
15490         dataflow_set_different_1, dataflow_set_different_2,
15491         vt_find_locations, variable_was_changed, set_variable_part,
15492         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
15493         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
15494         section_entry_hash, object_block_entry_eq,
15495         object_block_entry_hash, create_block_symbol,
15496         initialize_cold_section_name, default_function_rodata_section,
15497         strip_reg_name, set_user_assembler_name, const_desc_eq,
15498         build_constant_desc, output_constant_def, lookup_constant_def,
15499         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
15500         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
15501         default_internal_label): Likewise.
15502         * varray.c (varray_init, varray_grow): Likewise.
15503         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
15504
15505 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
15506
15507         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
15508         operators for "test" insn.  Macroize insn using SWI mode macro.
15509         (*jcc_fused_2): Ditto.
15510         (*jcc_fused_3): Macroize insn using SWI mode macro.
15511         (*jcc_fused_4): Ditto.
15512
15513 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
15514
15515         * tree-ssa-pre.c: Fix typo in comment.
15516         (init_antic, fini_antic): Add explicit funtions for
15517         initializing and deinitializing ANTIC and AVAIL sets.
15518         (create_expression_by_pieces): Fix typo in comment.
15519         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
15520         (execute_pre): Eventually dump details about ANTIC_IN.
15521
15522 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15523
15524         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
15525         * gcc.c (translate_options, init_spec, store_arg, read_specs,
15526         add_to_obstack, file_at_path, find_a_file, execute,
15527         add_preprocessor_option, add_assembler_option, add_linker_option,
15528         process_command, insert_wrapper, do_option_spec, do_self_spec,
15529         spec_path, do_spec_1, is_directory, main, used_arg,
15530         getenv_spec_function): Likewise.
15531         * tlink.c (symbol_hash_lookup, file_hash_lookup,
15532         demangled_hash_lookup, symbol_push, file_push, frob_extension):
15533         Likewise.
15534
15535 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
15536
15537         * doc/rtl.texi: Updated subreg section.
15538
15539 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
15540
15541         PR c++/36523
15542         * cgraphunit.c (cgraph_process_new_functions): Don't clear
15543         node->needed and node->reachable.
15544         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
15545         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
15546         (expand_task_call): Don't call expand_task_copyfn.
15547         (expand_task_copyfn): Renamed to...
15548         (finalize_task_copyfn): ... this.
15549
15550 2008-06-19  Jan Hubicka  <jh@suse.cz>
15551
15552         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
15553         clobbering framepointer.
15554
15555 2008-06-19  Jan Hubicka  <jh@suse.cz>
15556
15557         * tree-optimize.c (execute_early_local_optimizations): Set
15558         cgraph_state only at first invocation.
15559
15560 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15561
15562         * system.h (-Wc++-compat): Activate as a warning, no an error.
15563
15564 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
15565
15566         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
15567         instead of "#" in insn asm template.
15568         (*jcc_fused_2): Ditto.
15569
15570 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
15571
15572         * config/i386/i386.h (ix86_tune_indices)
15573         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
15574         (TARGET_FUSE_CMP_AND_BRANCH): New define.
15575         * config/i386/i386.md (*jcc_fused_1): New insn pattern
15576         (*jcc_fused_2): Ditto.
15577         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
15578         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
15579         (print operand): Handle 'E' and 'e' code.
15580
15581 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
15582
15583         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
15584         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
15585         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
15586
15587 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
15588
15589         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
15590         node->decl.
15591         (cgraph_expand_function): Use local copy of decl.
15592         (cgraph_expand_all_functions): Remove redundant initialization of
15593         order_pos.
15594         (cgraph_optimize): Reword internal_error message.
15595
15596 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
15597
15598         * arm-protos.h (arm_return_in_memory): Remove public
15599         arm_return_in_memory() prototype.
15600         * arm.c (arm_return_in_memory): Add static prototype, add target
15601         hook macro, change definition and comments.
15602         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
15603
15604 2008-06-19  Ben Elliston  <bje@au.ibm.com>
15605
15606         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
15607         real.c: Remove references to IEEE 754R.
15608         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
15609         * doc/libgcc.texi (Decimal float library routines): Likewise.
15610
15611 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15612
15613         * targhooks.h (struct gcc_target): New member unwind_word_mode.
15614         (default_unwind_word_mode): Add prototype.
15615         * targhooks.c (default_unwind_word_mode): New function.
15616         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
15617         instead of word_mode.
15618         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
15619         (TARGET_INITIALIZER): Use it.
15620
15621         * c-common.c (handle_mode_attribute): Support "unwind_word"
15622         mode attribute.
15623         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
15624
15625         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
15626         word_mode to access SjLj_Function_Context member "data".
15627         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
15628         conversion from targetm.eh_return_filter_mode () to
15629         targetm.unwind_word_mode () if they differ.
15630
15631         * builtin-types.def (BT_UNWINDWORD): New primitive type.
15632         (BT_FN_UNWINDWORD_PTR): New function type.
15633         (BT_FN_WORD_PTR): Remove.
15634         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
15635         * except.c (expand_builtin_extend_pointer): Convert pointer to
15636         targetm.unwind_word_mode () instead of word_mode.
15637
15638         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
15639         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
15640         (spu_unwind_word_mode): New function.
15641         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
15642         (TARGET_UNWIND_WORD_MODE): Define.
15643         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
15644
15645 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15646
15647         * config/spu/spu.c (reg_align): Remove.
15648         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
15649         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
15650         (spu_split_store): Likewise.
15651
15652 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
15653
15654         * gcc/tree-vn.c: Fix typo in comment.
15655
15656 2008-06-18  Jan Hubicka  <jh@suse.cz>
15657
15658         * cgraphunit.c (cgraph_optimize): Output debug info when doing
15659         toplevel reorder too.
15660
15661 2008-06-18  Jan Hubicka  <jh@suse.cz>
15662
15663         * c-opts.c (c_common_post_options): PCH is not compatible with
15664         no-unit-at-a-time.
15665         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
15666         -fno-toplevel-reorder by default now.
15667
15668 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15669
15670         PR documentation/30739
15671         * doc/install.texi (Prerequisites): Document dependency on awk.
15672
15673 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
15674             Ian Lance Taylor  <iant@google.com>
15675
15676         PR rtl-optimization/35604
15677         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
15678         only want to change jump destinations, not eventual label comparisons.
15679
15680 2008-06-16  Jan Hubicka  <jh@suse.cz>
15681
15682         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
15683         syntax errors.
15684         (cgraph_analyze_function): Likewise.
15685
15686 2008-06-16  Jan Hubicka  <jh@suse.cz>
15687
15688         * cgraph.h (cgraph_mark_if_needed): New function.
15689         * cgraphunit.c (cgraph_mark_if_needed): New function.
15690         * c-decl.c (duplicate_decl): Use it.
15691
15692 2008-06-16  Jan Hubicka  <jh@suse.cz>
15693
15694         * cgraph.c (cgraph_add_new_function): When in expansion state, do
15695         lowering.
15696
15697 2008-06-16  Jan Hubicka  <jh@suse.cz>
15698
15699         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
15700
15701 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
15702             Kazu Hirata  <kazu@codesourcery.com>
15703             Maxim Kuvyrkov  <maxim@codesourcery.com
15704
15705         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
15706         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
15707         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
15708         EXTRA_SPEC_FUNCTIONS.
15709         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
15710         (DRIVER_SELF_SPECS): Adjust.
15711         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
15712         * config/mips/st.h, config/mips/t-st: New.
15713         * config/mips/driver-native.c, config/mips/x-native: New.
15714         * doc/invoke.texi (MIPS): Document 'native' value for -march and
15715         -mtune options.
15716
15717 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
15718
15719         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
15720         from it.
15721         (ISA_HAS_FP_CONDMOVE): New macro.
15722         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
15723         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
15724         (ISA_HAS_NMADD3_NMSUB3): New macro.
15725         * config/mips/mips.c (mips_rtx_costs): Update.
15726         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
15727         compiling for ST Loongson 2E/2F.
15728         (madd<mode>): Rename to madd4<mode>.  Update.
15729         (madd3<mode>): New pattern.
15730         (msub<mode>): Rename to msub4<mode>.  Update.
15731         (msub3<mode>): New pattern.
15732         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
15733         (nmadd3<mode>): New pattern.
15734         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
15735         (nmadd3<mode>_fastmath): New pattern.
15736         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
15737         (nmsub3<mode>): New pattern.
15738         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
15739         (nmsub3<mode>_fastmath): New pattern.
15740         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
15741
15742 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
15743
15744         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
15745         (DF_REF_INSN_INFO): New.
15746         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
15747         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
15748         with a NULL DF_REF_INSN_INFO.
15749         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
15750         DF_INSN_SET.
15751         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
15752         DF_INSN_INFO_EQ_USES): New.
15753         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
15754         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
15755         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
15756         * df-core.c: Update comment for above changes.
15757         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
15758         DF_INSN_UID_* macros.
15759         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
15760         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
15761         insn rtx.  Update all callers.
15762         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
15763         df_ref_create_structure, df_insn_refs_collect): Likewise.
15764         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
15765         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
15766         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
15767         macros to access the insn refs.
15768         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
15769         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
15770         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
15771         for accessing the refs.
15772         (try_fwprop_subst): Likewise.
15773         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
15774         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
15775         for accessing the refs.
15776         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
15777         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
15778         to look at the insn refs.
15779         (record_uses): Likewise.
15780         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
15781         function anymore.
15782         (mark_artificial_uses): Don't mark_insn for artificial refs.
15783         (mark_reg_rependencies): Likewise.
15784
15785         * doc/rtl.texi: Remove documentation of ADDRESSOF.
15786
15787 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15788
15789         * configure: Regenerate.
15790
15791 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
15792
15793         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
15794         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15795         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15796
15797 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
15798
15799         * config/avr/avr.c (avr_mcu_t): Add attiny167.
15800         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15801         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15802
15803 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
15804
15805         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
15806         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15807         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15808
15809 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
15810
15811         * tree-ssa-sccvn.c: Fix format of comments.
15812
15813 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
15814
15815         * cgraph.c: Remove unneeded forward declarations of eq_node()
15816         and hash_node().
15817
15818 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
15819
15820         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
15821         REG_RETVAL notes.
15822         (see_update_relevancy): Likewise.
15823         * fwprop.c (try_fwprop_subst): Likewise.
15824         * rtlanal.c (noop_move_p): Likewise.
15825         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
15826         notes to non-existing libcall blocks.
15827         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
15828         Remove orig_set.
15829         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
15830         (dead_libcall_p): Remove.
15831         (delete_trivially_dead_insns): Don't use it.
15832         * web.c (union_defs): Remove comment about keeping nops.
15833         * gcse.c (hash_scan_insn): Don't take libcall pointers.
15834         (compute_hash_table_work): Don't track libcall notes.
15835         (do_local_cprop): Don't take libcall pointers.  Don't update
15836         libcall notes.
15837         (adjust_libcall_notes): Deleted.
15838         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
15839         ever have existed in the first place).
15840         (replace_store_insn): Don't try to remove libcall notes.
15841         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
15842         (resolve_reg_notes): Don't call them.
15843         (resolve_simple_move): Likewise.
15844         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
15845         Don't remove REG_RETVAL notes.
15846         * emit-rtl.c (try_split): Don't update libcall notes.
15847         (emit_copy_of_insn_after): Dito.
15848         * cselib.c (cselib_current_insn_in_libcall): Remove.
15849         (cselib_process_insn): Don't set/clear it.
15850         (new_elt_loc_list): Don't record it.
15851         (cselib_init): Don't initialize it.
15852         * cselib.c (struct elt_loc_list): Remove in_libcall field.
15853         * loop-invariant.c (find_invariant_insn): Don't look for libcall
15854         notes.
15855         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
15856         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
15857         (init_deps): Don't initialize it.
15858         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
15859         * combine.c (delete_noop_moves): Don't update libcall notes.
15860         (can_combine_p): Remove now pointless #if 0 block.
15861         (try_combine): Remove another obsolete #if 0 block.
15862         (distribute_notes): Don't distribute libcall notes.
15863         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
15864         * dce.c (libcall_dead_p): Remove.
15865         (delete_unmarked_insns): Don't handle libcall blocks.
15866         (preserve_libcall_for_dce): Remove.
15867         (prescan_insns_for_dce): Don't special-case libcall block insns.
15868         * reload1 (reload): Don't handle libcall notes.
15869         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
15870         documentation.
15871
15872 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
15873
15874         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
15875         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15876         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15877
15878 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
15879
15880         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
15881         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15882         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15883
15884 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15885
15886         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
15887
15888 2008-06-16  Ira Rosen  <irar@il.ibm.com>
15889
15890         PR tree-optimization/36493
15891         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
15892         the arguments list. Use VECTYPE to create vector pointer.
15893         (vectorizable_store): Fail if accesses through a pointer to vectype
15894         do not alias the original memory reference operands.
15895         Call vect_create_data_ref_ptr without the removed argument.
15896         (vectorizable_load): Likewise.
15897         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
15898         removed argument.
15899
15900 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
15901
15902         PR target/36336
15903         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
15904         reg_equiv_constant.
15905
15906 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
15907
15908         * config/mips/loongson2ef.md: New file.
15909         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
15910         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
15911         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
15912         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
15913         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
15914         and loongson_2f.
15915         (loongson2ef.md): New include.
15916         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
15917         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
15918         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
15919         (loongson_gt_<mode>, loongson_extract_halfword)
15920         (loongson_insert_halfword_0, loongson_insert_halfword_2)
15921         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
15922         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
15923         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
15924         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
15925         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
15926         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
15927         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
15928         (vec_interleave_low<mode>): Define type attribute.
15929         * config/mips/mips.c (mips_ls2): New static variable.
15930         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
15931         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
15932         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
15933         Implement target scheduling hooks.
15934         (mips_multipass_dfa_lookahead): Update to handle tuning for
15935         Loongson 2E/2F.
15936         (mips_sched_init): Initialize data for Loongson scheduling.
15937         (mips_ls2_variable_issue): New static function.
15938         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
15939         Add sanity check.
15940         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
15941         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
15942         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
15943         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
15944         Handle ST Loongson 2E/2F cores.
15945         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
15946
15947 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15948
15949         * omp-low.c (extract_omp_for_data): Fix comment typo.
15950         * c.opt: Fix typo.
15951
15952 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15953
15954         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
15955         FIXME note about gcc/config.guess.
15956         * doc/options.texi (Option file format): Remove non-ASCII bytes.
15957         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
15958         * doc/cppopts.texi: Likewise.
15959         * doc/extend.texi: Likewise.
15960         * doc/gcc.texi: Likewise.
15961         * doc/gccint.texi: Likewise.
15962         * doc/gcov.texi: Likewise.
15963         * doc/gty.texi: Likewise.
15964         * doc/hostconfig.texi: Likewise.
15965         * doc/install.texi: Likewise.
15966         * doc/invoke.texi: Likewise.
15967         * doc/loop.texi: Likewise.
15968         * doc/makefile.texi: Likewise.
15969         * doc/md.texi: Likewise.
15970         * doc/passes.texi: Likewise.
15971         * doc/tm.texi: Likewise.
15972         * doc/tree-ssa.texi: Likewise.
15973         * doc/trouble.texi: Likewise.
15974
15975 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
15976             Nathan Sidwell  <nathan@codesourcery.com>
15977             Maxim Kuvyrkov  <maxim@codesourcery.com>
15978             Richard Sandiford  <rdsandiford@googlemail.com>
15979
15980         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
15981         * config/mips/mips-protos.h (mips_expand_vector_init): New.
15982         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
15983         builtins.
15984         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
15985         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
15986         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
15987         V8QImode cases.
15988         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
15989         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
15990         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
15991         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
15992         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
15993         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
15994         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
15995         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
15996         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
15997         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
15998         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
15999         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
16000         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
16001         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
16002         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
16003         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
16004         (mips_builtins): Add Loongson builtins.
16005         (mips_loongson_2ef_bdesc): New.
16006         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
16007         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
16008         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
16009         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
16010         New.
16011         (mips_expand_vector_init): New.
16012         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
16013         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
16014         if appropriate.
16015         * config/mips/mips.md: Add unspec numbers for Loongson
16016         builtins.  Include loongson.md.
16017         (MOVE64): Include Loongson vector modes.
16018         (SPLITF): Include Loongson vector modes.
16019         (HALFMODE): Handle Loongson vector modes.
16020         * config/mips/loongson.md: New.
16021         * config/mips/loongson.h: New.
16022         * config.gcc: Add loongson.h header for mips*-*-* targets.
16023         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
16024
16025 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
16026
16027         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
16028         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
16029         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
16030         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
16031         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
16032         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
16033         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
16034         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
16035         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
16036         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
16037         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
16038         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
16039         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
16040         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
16041         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
16042         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
16043         Remove use_fixproto=yes.
16044         (ia64*-*-hpux*): Remove comment about using fixproto.
16045         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
16046
16047 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16048
16049         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
16050         library rebuilds.
16051         * configure: Regenerate.
16052
16053 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
16054
16055         PR middle-end/36520
16056         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
16057         before evaluating it.
16058
16059 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
16060
16061         PR c/36507
16062         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
16063         nested inline functions.
16064         (start_decl, start_function): Don't invert DECL_EXTERNAL
16065         for nested inline functions.
16066
16067 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
16068
16069         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
16070         splits that must be made for correctness.
16071
16072 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
16073
16074         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
16075         (AVAIL_NON_MIPS16): Likewise.
16076         (mips_builtin_description): Replace target_flags with a predicate.
16077         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
16078         (dspr2_32): New availability predicates.
16079         (MIPS_BUILTIN): New macro.
16080         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
16081         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
16082         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
16083         Replace the TARGET_FLAGS parameters with AVAIL parameters.
16084         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
16085         (mips_dsp_32only_bdesc): Merge into...
16086         (mips_builtins): ...this new array.
16087         (mips_bdesc_map, mips_bdesc_arrays): Delete.
16088         (mips_init_builtins): Update after above changes.
16089         (mips_expand_builtin_1): Merge into...
16090         (mips_expand_builtin): ...here and update after above changes.
16091
16092 2008-06-12  Paul Brook  <paul@codesourcery.com>
16093
16094         * longlong.h (__arm__): Define count_leading_zeros.
16095         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
16096         (clzsi2, clzdi2): New functions.
16097         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
16098         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
16099         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
16100         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
16101         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
16102         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
16103         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
16104         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
16105         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
16106         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
16107
16108 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
16109
16110         * config/m68k/m68k.c (m68k_tune_flags): New.
16111         (override_options): Compute m68k_tune_flags.
16112         (MULL_COST, MULW_COST): Update for various variants of CFV2.
16113         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
16114
16115 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
16116
16117         PR middle-end/36506
16118         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
16119
16120 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
16121
16122         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
16123         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
16124
16125 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
16126
16127         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
16128         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
16129
16130 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
16131
16132         PR middle-end/36506
16133         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
16134         reductions.
16135
16136 2008-06-12  Richard Guenther  <rguenther@suse.de>
16137
16138         PR tree-optimization/36345
16139         * tree-flow.h (struct ptr_info_def): Align escape_mask,
16140         add memory_tag_needed flag.
16141         (may_alias_p): Declare.
16142         * tree-ssa-alias.c (may_alias_p): Export.
16143         (set_initial_properties): Use memory_tag_needed flag.
16144         (update_reference_counts): Likewise.
16145         (reset_alias_info): Reset memory_tag_needed flag.
16146         (create_name_tags): Check memory_tag_needed flag.
16147         (dump_points_to_info_for): Dump it.
16148         * tree-ssa-structalias.c (struct variable_info): Remove
16149         directly_dereferenced flag.
16150         (new_var_info): Do not initialize it.
16151         (process_constraint_1): Do not set it.
16152         (update_alias_info): Set is_dereferenced flag.
16153         (set_uids_in_ptset): Use may_alias_p.
16154         (set_used_smts): Check memory_tag_needed flag.
16155         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
16156         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
16157         memory_tag_needed flag.
16158         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
16159         from broken design.
16160
16161 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
16162
16163         * config/i386/i386.c (ix86_compute_frame_layout): Disable
16164         red zone for w64 abi.
16165         (ix86_expand_prologue): Likewise.
16166         (ix86_force_to_memory): Likewise.
16167         (ix86_free_from_memory): Likewise.
16168
16169 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
16170
16171         PR target/36425
16172         * config/rs6000/rs6000.c (rs6000_override_options): Set
16173         rs6000_isel conditionally to the absence of comand line override.
16174         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
16175         Remove duplicate rs6000_isel setting.
16176         * config/rs6000/eabispe.h: Ditto.
16177
16178 2008-06-11  Richard Guenther  <rguenther@suse.de>
16179
16180         * alias.c (get_alias_set): Use the element alias-set for arrays.
16181         (record_component_aliases): For arrays and vectors do nothing.
16182         * c-common.c (strict_aliasing_warning): Handle the cases
16183         of alias set zero explicitly.
16184         * Makefile.in (dfp.o-warn): Add -Wno-error.
16185
16186 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
16187
16188         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
16189         tune_32 tune_64.
16190         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
16191         tune_32 tune_64 to supported_defaults.  Allow values not
16192         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
16193         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
16194         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
16195         with_cpu_64 to generic for 64-bit-supporting configurations, not
16196         with_cpu.  Remove FIXMEs.
16197         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
16198         --with-arch-64, --with-tune-32, --with-tune-64): Document.
16199         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
16200         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
16201         arch_32 and arch_64.
16202
16203 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
16204             Olivier Hainque  <hainque@adacore.com>
16205
16206         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
16207         Use DECL_SIZE_UNIT to retrieve the size of the field.
16208
16209 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
16210
16211         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
16212         with function calls after declarations.  Lay out
16213         neon_float_type_node before further use.
16214
16215 2008-06-11  Richard Guenther  <rguenther@suse.de>
16216
16217         * tree-flow.h (may_point_to_global_var): Declare.
16218         * tree-ssa-alias.c (may_point_to_global_var): New function.
16219         * tree-ssa-sink.c (is_hidden_global_store): Use it.
16220
16221 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
16222
16223         * configure.ac: Teach that fido supports .debug_line.
16224         * configure: Regenerate.
16225
16226 2008-06-10  Tom Tromey  <tromey@redhat.com>
16227
16228         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
16229         debug hook.
16230
16231 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
16232
16233         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
16234         (encode_decimal64, decode_decimal64, encode_decimal128,
16235         decode_decimal128): Reverse order of 32-bit parts of value if host
16236         and target endianness differ.
16237
16238 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
16239
16240         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
16241         Avoid division by 0.
16242         (tree_mod_pow2_value_transform): Likewise.
16243         (tree_ic_transform): Likewise.
16244         (tree_stringops_transform): Likewise.
16245         (tree_mod_subtract_transform): Likewise.
16246         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
16247         (copy_edges_for_bb): Likewise.
16248         (initialize_cfun): Likewise.
16249
16250 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
16251
16252         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
16253         nonmemory_operand. Add "N" operand constraint.
16254         (*btsi): Ditto.
16255         (*jcc_btdi_mask_rex64): New instruction and split pattern.
16256         (*jcc_btsi_mask): Ditto.
16257         (*jcc_btsi_mask_1): Ditto.
16258
16259 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
16260
16261         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
16262         TYPE_CANONICAL for copied element type.
16263
16264 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
16265
16266         PR target/36473
16267         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
16268         Add m_CORE2 and m_GENERIC.
16269         * config/i386/predicates.md (bt_comparison_operator): New predicate.
16270         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
16271         (*btsi): Ditto.
16272         (*jcc_btdi_rex64): New instruction and split pattern.
16273         (*jcc_btsi): Ditto.
16274         (*jcc_btsi_1): Ditto.
16275         (*btsq): Fix Intel asm dialect operand order.
16276         (*btrq): Ditto.
16277         (*btcq): Ditto.
16278
16279 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
16280
16281         PR middle-end/36447
16282         * simplify-rtx.c (simplify_subreg): Add check for shift count
16283         greater than size.
16284
16285 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
16286
16287         * doc/md.texi: Synchronize with later constraints.md change.
16288         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
16289         with a C implementation.
16290         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
16291         MFLO handling.
16292         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
16293         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
16294         when moving to and from MD_REGNUM.
16295         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
16296         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
16297         Handle byte and halfword moves.
16298         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
16299         separately.
16300         * config/mips/constraints.md (h): Turn into NO_REGS.
16301         (l, x): Update documentation.
16302         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
16303         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
16304         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
16305         (HILO): New mode iterator.
16306         (MOVE128): Add TI.
16307         (any_div): New code iterator.
16308         (u): Extend code attribute to div and udiv.
16309         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
16310         d_operand in the splitters.  Remove redundant CONST_INT checks.
16311         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
16312         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
16313         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
16314         accordingly, using normal moves instead of unspecs to move LO into
16315         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
16316         (<u>mulsidi3): Handle expansion in C code.
16317         (<u>mulsidi3_32bit_internal): Rename to...
16318         (<u>mulsidi3_32bit): ...this.
16319         (<u>mulsidi3_32bit_r4000): Fix insn separator.
16320         (*<u>mulsidi3_64bit): Rename to...
16321         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
16322         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
16323         to set LO and HI to the multiplication result.  Use a normal move
16324         for MFLO and an unspec for MFHI.
16325         (*<u>mulsidi3_64bit_parts): Replace with...
16326         (<u>mulsidi3_64bit_hilo): ...this new instruction.
16327         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
16328         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
16329         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
16330         instead of HI.  Split the instruction into a separate multiplication
16331         and MFHI if !TARGET_FIX_R4000.
16332         (<su>muldi3_highpart): Likewise.
16333         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
16334         and the "=h" clobber.
16335         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
16336         (<u>mulditi3): New expander.
16337         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
16338         (madsi): Remove "=h" clobber.
16339         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
16340         Force the modulus result to be a GPR and split the instruction into
16341         a division followed by an MFHI after reload.
16342         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
16343         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
16344         the MIPS16 HIGH define_split.
16345         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
16346         of acc<->gpr moves to "multi".
16347         (*movdi_64bit): Replace the single "x" alternative with
16348         alternatives for moving into and out of "a".
16349         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
16350         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
16351         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
16352         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
16353         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
16354         (movti): New expander.
16355         (*movti, *movti_mips16): New insns.
16356         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
16357         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
16358         (mthi<GPR:mode>_<HILO:mode>): Likewise.
16359         * config/mips/predicates.md (fpr_operand): Delete.
16360         (d_operand): New predicate.
16361
16362 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
16363
16364         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
16365         failure on some Bourne shells.
16366         (x86_64-*-*): Ditto.
16367
16368 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
16369
16370         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
16371
16372 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
16373
16374         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
16375         (sparc-sun-solaris2*): Likewise.
16376
16377 2008-06-09  Arnaud Charlet  <charlet@adacore.com
16378
16379         * doc/install.texi: Update requirements to build the Ada compiler.
16380
16381 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
16382
16383         * df-scan.c (struct df_scan_problem_data): Remove the
16384         mw_link_pool alloc pool.
16385         (df_scan_free_internal): Don't free it.
16386         (df_scan_alloc): Don't allocate it.
16387         * df.h (struct df_link): Update comment.
16388
16389 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
16390
16391         * except.h: Correct checks for when SJLJ exceptions must be used.
16392
16393 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16394
16395         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
16396         default.
16397
16398 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
16399
16400         PR tree-optimization/36218
16401         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
16402         configure for the build system.
16403         (BUILD_LDFLAGS): Define.
16404         * configure: Regenerate.
16405         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
16406
16407 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
16408
16409         PR target/36424
16410         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
16411         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
16412         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
16413
16414 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
16415
16416         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
16417
16418 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
16419
16420         * config.gcc (Obsolete configurations): Remove list of
16421         configurations.
16422         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
16423         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
16424         targets matched by those patterns.
16425         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
16426         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
16427         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
16428         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
16429         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
16430         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
16431         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
16432         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
16433         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
16434         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
16435         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
16436         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
16437         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
16438         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
16439         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
16440         Make code for Solaris 7 and greater unconditional for Solaris.
16441         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
16442         Remove --with-* handling.
16443         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
16444         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
16445         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
16446         LINK_OS_WINDISS_SPEC): Remove.
16447         * config/rs6000/sysv4.opt (mwindiss): Remove.
16448         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
16449         * configure: Regenerate.
16450         * doc/cpp.texi: Don't mention BeOS.
16451         * doc/extend.texi (interrupt): Don't mention MS1.
16452         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
16453         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
16454         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
16455         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
16456         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
16457         Remove.
16458         * doc/invoke.texi (MT Options): Remove.
16459         (-mwindiss): Remove.
16460         (CRIS Options): Remove cris-axis-aout references.
16461         (HPPA Options): Don't mention hppa1.1-*-pro.
16462         * doc/md.texi: (MorphoTech family): Remove.
16463         * libgcc2.c: Don't handle UWIN.
16464         * config/alpha/t-unicosmk: Remove.
16465         * config/alpha/unicosmk.h: Remove.
16466         * config/arm/kaos-arm.h: Remove.
16467         * config/arm/kaos-strongarm.h: Remove.
16468         * config/arm/strongarm-coff.h: Remove.
16469         * config/arm/strongarm-elf.h: Remove.
16470         * config/arm/strongarm-pe.h: Remove.
16471         * config/arm/t-strongarm-pe: Remove.
16472         * config/arm/t-xscale-coff: Remove.
16473         * config/arm/t-xscale-elf: Remove.
16474         * config/arm/xscale-coff.h: Remove.
16475         * config/arm/xscale-elf.h: Remove.
16476         * config/chorus.h: Remove.
16477         * config/cris/aout.h: Remove.
16478         * config/cris/aout.opt: Remove.
16479         * config/cris/t-aout: Remove.
16480         * config/i386/beos-elf.h: Remove.
16481         * config/i386/kaos-i386.h: Remove.
16482         * config/i386/ptx4-i.h: Remove.
16483         * config/i386/sco5.h: Remove.
16484         * config/i386/sco5.opt: Remove.
16485         * config/i386/sysv4-cpp.h: Remove.
16486         * config/i386/sysv5.h: Remove.
16487         * config/i386/t-beos: Remove.
16488         * config/i386/t-sco5: Remove.
16489         * config/i386/t-uwin: Remove.
16490         * config/i386/uwin.asm: Remove.
16491         * config/i386/uwin.h: Remove.
16492         * config/kaos.h: Remove.
16493         * config/mips/windiss.h: Remove.
16494         * config/mt: Remove directory.
16495         * config/pa/pa-osf.h: Remove.
16496         * config/pa/pa-pro-end.h: Remove.
16497         * config/pa/t-pro: Remove.
16498         * config/ptx4.h: Remove.
16499         * config/rs6000/beos.h: Remove.
16500         * config/rs6000/kaos-ppc.h: Remove.
16501         * config/rs6000/t-beos: Remove.
16502         * config/rs6000/windiss.h: Remove.
16503         * config/sh/kaos-sh.h: Remove.
16504         * config/sol2-6.h: Remove.
16505         * config/sparc/sol26-sld.h: Remove.
16506         * config/sparc/sysv4-only.h: Remove.
16507         * config/vax/bsd.h: Remove.
16508         * config/vax/t-memfuncs: Remove.
16509         * config/vax/ultrix.h: Remove.
16510         * config/vax/vaxv.h: Remove.
16511         * config/windiss.h: Remove.
16512
16513 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
16514
16515         PR rtl-optimization/36438
16516         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
16517         for vector shifts with constant scalar shift operands.
16518
16519 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
16520
16521         * doc/invoke.texi: Document -march=xlr.
16522         * config/mips/xlr.md: New file.
16523         * config/mips/mips.md: Include it.
16524         (cpu): Add "xlr".
16525         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
16526         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
16527         (mips_rtx_cost_data): Likewise.
16528
16529 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
16530
16531         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
16532         PRE_INC and PRE_DEC cases.
16533
16534 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
16535
16536         PR rtl-optimization/36419
16537         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
16538         the emitting jump insn.
16539
16540         PR target/36362
16541         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
16542         is not bool, boolify the whole *expr_p and convert to the desired type.
16543
16544 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
16545
16546         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
16547         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
16548         Add omp_private_outer_ref hook, add another argument to
16549         omp_clause_default_ctor hook.
16550         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
16551         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
16552         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
16553         hook_tree_tree_tree_tree_null.
16554         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
16555         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
16556         * hooks.c (hook_tree_tree_tree_tree_null): New function.
16557         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
16558         * tree.def (OMP_TASK): New tree code.
16559         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
16560         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
16561         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
16562         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
16563         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
16564         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
16565         OMP_CLAUSE_COLLAPSE_EXPR): Define.
16566         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
16567         (OMP_DIRECTIVE_P): Add OMP_TASK.
16568         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
16569         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
16570         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
16571         and OMP_CLAUSE_UNTIED entries.
16572         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
16573         num_ops to 2.
16574         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
16575         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
16576         * tree-pretty-print.c (dump_omp_clause): Handle
16577         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
16578         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
16579         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
16580         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
16581         warning about unsigned iterators.  Change decl/init/cond/incr
16582         arguments to TREE_VECs, check arguments for all collapsed loops.
16583         (c_finish_omp_taskwait): New function.
16584         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
16585         ws_clauses.
16586         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
16587         default_function_array_conversion on init.  Add par_clauses argument.
16588         If decl is present in parallel's lastprivate clause, change it to
16589         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
16590         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
16591         collapse count in clauses.
16592         (c_parser_omp_for, c_parser_omp_parallel): Adjust
16593         c_parser_omp_for_loop callers.
16594         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
16595         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
16596         (c_parser_omp_clause_name): Handle collapse and untied clauses.
16597         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
16598         functions.
16599         (c_parser_omp_clause_schedule): Handle schedule(auto).
16600         Include correct location in the error message.
16601         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
16602         and PRAGMA_OMP_CLAUSE_UNTIED.
16603         (OMP_TASK_CLAUSE_MASK): Define.
16604         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
16605         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
16606         * tree-nested.c (convert_nonlocal_omp_clauses,
16607         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
16608         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
16609         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
16610         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
16611         OMP_CLAUSE_DECL.
16612         (conver_nonlocal_reference, convert_local_reference,
16613         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
16614         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
16615         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
16616         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
16617         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
16618         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
16619         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
16620         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
16621         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
16622         OMP_CLAUSE_UNTIED.
16623         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
16624         * c-common.h (c_finish_omp_taskwait): New prototype.
16625         * gimple-low.c (lower_stmt): Handle OMP_TASK.
16626         * tree-parloops.c (create_parallel_loop): Create 1 entry
16627         vectors for OMP_FOR_{INIT,COND,INCR}.
16628         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
16629         (make_edges): Handle OMP_TASK.
16630         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
16631         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
16632         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
16633         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
16634         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
16635         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
16636         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
16637         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
16638         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
16639         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
16640         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
16641         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
16642         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
16643         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
16644         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
16645         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
16646         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
16647         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
16648         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
16649         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
16650         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
16651         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
16652         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
16653         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
16654         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
16655         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
16656         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
16657         original iterator is present in lastprivate clause or if
16658         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
16659         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
16660         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
16661         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
16662         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
16663         if it is set, lookup var in outer contexts too.  Handle
16664         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
16665         to be implicitly determined firstprivate for task regions.
16666         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
16667         if it is set, lookup var in outer contexts too.  Set
16668         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
16669         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
16670         OMP_CLAUSE_UNTIED.  Take region_type as last argument
16671         instead of in_parallel and in_combined_parallel.
16672         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
16673         Adjust callers.
16674         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
16675         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
16676         (new_omp_context): Set default_kind to
16677         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
16678         (omp_region_type): New enum.
16679         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
16680         fields, add region_type.
16681         (new_omp_context): Take region_type as argument instead of is_parallel
16682         and is_combined_parallel.
16683         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
16684         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
16685         ctx->is_combined_parallel checks.
16686         (gimplify_omp_task): New function.
16687         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
16688         OMP_CLAUSE_UNTIED.
16689         * omp-low.c (extract_omp_for_data): Use schedule(static)
16690         for schedule(auto).  Handle pointer and unsigned iterators.
16691         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
16692         Add loops argument.  Extract data for collapsed OMP_FOR loops.
16693         (expand_parallel_call): Assert sched_kind isn't auto,
16694         map runtime schedule to index 3.
16695         (struct omp_for_data_loop): New type.
16696         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
16697         Add loop, loops, collapse and iter_type fields.
16698         (workshare_safe_to_combine_p): Disallow combined for if
16699         iter_type is unsigned long long.  Don't combine collapse > 1 loops
16700         unless all bounds and steps are constant.  Adjust extract_omp_for_data
16701         caller.
16702         (expand_omp_for_generic): Handle pointer, unsigned and long long
16703         iterators.  Handle collapsed OMP_FOR loops.  Adjust
16704         for struct omp_for_data changes.  If libgomp function doesn't return
16705         boolean_type_node, add comparison of the return value with 0.
16706         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
16707         pointer, unsigned and long long iterators.  Adjust for struct
16708         omp_for_data changes.
16709         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
16710         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
16711         unsigned long long.  Allocate loops array, pass it to
16712         extract_omp_for_data.  For collapse > 1 loops use always
16713         expand_omp_for_generic.
16714         (omp_context): Add sfield_map and srecord_type fields.
16715         (is_task_ctx, lookup_sfield): New functions.
16716         (use_pointer_for_field): Use is_task_ctx helper.  Change first
16717         argument's type from const_tree to tree.  Clarify comment.
16718         In OMP_TASK disallow copy-in/out sharing.
16719         (build_sender_ref): Call lookup_sfield instead of lookup_field.
16720         (install_var_field): Add mask argument.  Populate both record_type
16721         and srecord_type if needed.
16722         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
16723         in srecord_type.
16724         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
16725         and DECL_FIELD_OFFSET.
16726         (scan_sharing_clauses): Adjust install_var_field callers.  For
16727         firstprivate clauses on explicit tasks allocate the var by value in
16728         record_type unconditionally, rather than by reference.
16729         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
16730         Use is_taskreg_ctx instead of is_parallel_ctx.
16731         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
16732         (create_omp_child_function_name): Add task_copy argument, use
16733         *_omp_cpyfn* names if it is true.
16734         (create_omp_child_function): Add task_copy argument, if true create
16735         *_omp_cpyfn* helper function.
16736         (scan_omp_parallel): Adjust create_omp_child_function callers.
16737         Rename parallel_nesting_level to taskreg_nesting_level.
16738         (scan_omp_task): New function.
16739         (lower_rec_input_clauses): Don't run constructors for firstprivate
16740         explicit task vars which are initialized by *_omp_cpyfn*.
16741         Pass outer var ref to omp_clause_default_ctor hook if
16742         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
16743         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
16744         OMP_CLAUSE_REDUCTION_INIT.
16745         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
16746         avoid duplicate setting of fields.  Handle
16747         OMP_CLAUSE_PRIVATE_OUTER_REF.
16748         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
16749         copy-out if TREE_READONLY, only copy-in.
16750         (expand_task_copyfn): New function.
16751         (expand_task_call): New function.
16752         (struct omp_taskcopy_context): New type.
16753         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
16754         New functions.
16755         (lower_omp_parallel): Rename to...
16756         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
16757         Call create_task_copyfn if srecord_type is needed.  Adjust
16758         sender_decl type.
16759         (task_shared_vars): New variable.
16760         (check_omp_nesting_restrictions): Warn if work-sharing,
16761         barrier, master or ordered region is closely nested inside OMP_TASK.
16762         Add warnings for barrier if closely nested inside of work-sharing,
16763         ordered, or master region.
16764         (scan_omp_1): Call check_omp_nesting_restrictions even for
16765         GOMP_barrier calls.  Rename parallel_nesting_level to
16766         taskreg_nesting_level.  Handle OMP_TASK.
16767         (lower_lastprivate_clauses): Even if some lastprivate is found on a
16768         work-sharing construct, continue looking for them on parent parallel
16769         construct.
16770         (lower_omp_for_lastprivate): Add lastprivate clauses
16771         to the beginning of dlist rather than end.  Adjust for struct
16772         omp_for_data changes.
16773         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
16774         not after it.  Handle collapsed OMP_FOR loops, adjust for
16775         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
16776         (get_ws_args_for): Adjust extract_omp_for_data caller.
16777         (scan_omp_for): Handle collapsed OMP_FOR
16778         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
16779         (lower_omp_single_simple): If libgomp function doesn't return
16780         boolean_type_node, add comparison of the return value with 0.
16781         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
16782         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
16783         (parallel_nesting_level): Rename to...
16784         (taskreg_nesting_level): ... this.
16785         (is_taskreg_ctx): New function.
16786         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
16787         of is_parallel_ctx.
16788         (execute_lower_omp): Rename parallel_nesting_level to
16789         taskreg_nesting_level.
16790         (expand_omp_parallel): Rename to...
16791         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
16792         Call omp_task_call for OMP_TASK regions.
16793         (expand_omp): Adjust caller, handle OMP_TASK.
16794         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
16795
16796         * bitmap.c (bitmap_default_obstack_depth): New variable.
16797         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
16798         if argument is NULL and bitmap_default_obstack is already initialized.
16799         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
16800         at the end.
16801         * matrix-reorg.c (matrix_reorg): Likewise.
16802
16803 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
16804
16805         * config/i386/i386.md (*indirect_jump): Macroize using P
16806         mode iterator.  Remove !TARGET_64BIT from insn constraints.
16807         (*tablejump_1): Ditto.
16808         (*indirect_jump_rex64): Remove insn pattern.
16809         (*tablejump_1_rex64): Ditto.
16810         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
16811         and eh_return_si insn patterns.
16812
16813 2008-06-06  Richard Guenther  <rguenther@suse.de>
16814
16815         * tree-ssa-structalias.c (merge_smts_into): Remove.
16816         (find_what_p_points_to): Do not bother to compute the
16817         points-to set for pt_anything pointers.
16818         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
16819         for pt_anything pointers is ok.
16820
16821 2008-06-06  Jan Hubicka  <jh@suse.cz>
16822
16823         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
16824
16825 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16826
16827         * cgraph.c: Fix typos in comments.
16828         (cgraph_availability_names): Fix string typo.
16829         * fold-const.c: Fix typos in comments.
16830         (fold_binary): Fix typo in warning.
16831         * genautomata.c: Fix typos in comments.
16832         (check_presence_pattern_sets): Fix typo in local variable.
16833         (output_description): Fix typo in output.
16834         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
16835         * hwint.h: Likewise.
16836         * matrix-reorg.c (check_allocation_function): Likewise.
16837         * omega.c (smooth_weird_equations): Likewise.
16838         * auto-inc-dec.c: Fix typos in comments.
16839         * bb-reorder.c: Likewise.
16840         * builtins.c: Likewise.
16841         * c-common.c: Likewise.
16842         * c-cppbuiltin.c: Likewise.
16843         * c-parser.c: Likewise.
16844         * c-pretty-print.c: Likewise.
16845         * cfgcleanup.c: Likewise.
16846         * cfgexpand.c: Likewise.
16847         * cfghooks.c: Likewise.
16848         * cfglayout.c: Likewise.
16849         * cfgloopmanip.c: Likewise.
16850         * cgraphunit.c: Likewise.
16851         * coverage.c: Likewise.
16852         * dbxout.c: Likewise.
16853         * df-byte-scan.c: Likewise.
16854         * df-core.c: Likewise.
16855         * df-problems.c: Likewise.
16856         * df-scan.c: Likewise.
16857         * dfp.c: Likewise.
16858         * dominance.c: Likewise.
16859         * domwalk.c: Likewise.
16860         * dse.c: Likewise.
16861         * dwarf2out.c: Likewise.
16862         * emit-rtl.c: Likewise.
16863         * et-forest.c: Likewise.
16864         * function.c: Likewise.
16865         * function.h: Likewise.
16866         * gcc.c: Likewise.
16867         * gcov-io.c: Likewise.
16868         * gcov.c: Likewise.
16869         * gcse.c: Likewise.
16870         * genattrtab.c: Likewise.
16871         * ggc-page.c: Likewise.
16872         * gimplify.c: Likewise.
16873         * gthr-lynx.h: Likewise.
16874         * haifa-sched.c: Likewise.
16875         * ipa-cp.c: Likewise.
16876         * ipa-inline.c: Likewise.
16877         * ipa-prop.h: Likewise.
16878         * ipa-pure-const.c: Likewise.
16879         * ipa-struct-reorg.c: Likewise.
16880         * ipa-struct-reorg.h: Likewise.
16881         * ipa-type-escape.c: Likewise.
16882         * ipa.c: Likewise.
16883         * loop-doloop.c: Likewise.
16884         * mips-tfile.c: Likewise.
16885         * mkmap-flat.awk: Likewise.
16886         * mkmap-symver.awk: Likewise.
16887         * modulo-sched.c: Likewise.
16888         * omp-low.c: Likewise.
16889         * optabs.c: Likewise.
16890         * optabs.h: Likewise.
16891         * opts.c: Likewise.
16892         * passes.c: Likewise.
16893         * postreload-gcse.c: Likewise.
16894         * postreload.c: Likewise.
16895         * predict.c: Likewise.
16896         * pretty-print.h: Likewise.
16897         * profile.c: Likewise.
16898         * protoize.c: Likewise.
16899         * ra-conflict.c: Likewise.
16900         * real.c: Likewise.
16901         * recog.c: Likewise.
16902         * regclass.c: Likewise.
16903         * regs.h: Likewise.
16904         * reload.c: Likewise.
16905         * rtl-error.c: Likewise.
16906         * rtlanal.c: Likewise.
16907         * scan.h: Likewise.
16908         * sched-rgn.c: Likewise.
16909         * see.c: Likewise.
16910         * stmt.c: Likewise.
16911         * target.h: Likewise.
16912         * tree-dfa.c: Likewise.
16913         * tree-eh.c: Likewise.
16914         * tree-flow-inline.h: Likewise.
16915         * tree-inline.c: Likewise.
16916         * tree-into-ssa.c: Likewise.
16917         * tree-loop-distribution.c: Likewise.
16918         * tree-nested.c: Likewise.
16919         * tree-parloops.c: Likewise.
16920         * tree-pass.h: Likewise.
16921         * tree-pretty-print.c: Likewise.
16922         * tree-profile.c: Likewise.
16923         * tree-scalar-evolution.c: Likewise.
16924         * tree-sra.c: Likewise.
16925         * tree-ssa-alias-warnings.c: Likewise.
16926         * tree-ssa-ccp.c: Likewise.
16927         * tree-ssa-coalesce.c: Likewise.
16928         * tree-ssa-dom.c: Likewise.
16929         * tree-ssa-dse.c: Likewise.
16930         * tree-ssa-forwprop.c: Likewise.
16931         * tree-ssa-live.c: Likewise.
16932         * tree-ssa-live.h: Likewise.
16933         * tree-ssa-loop-im.c: Likewise.
16934         * tree-ssa-loop-ivopts.c: Likewise.
16935         * tree-ssa-loop-niter.c: Likewise.
16936         * tree-ssa-loop-prefetch.c: Likewise.
16937         * tree-ssa-phiopt.c: Likewise.
16938         * tree-ssa-phiprop.c: Likewise.
16939         * tree-ssa-sccvn.c: Likewise.
16940         * tree-ssa-ter.c: Likewise.
16941         * tree-ssa-threadupdate.c: Likewise.
16942         * tree-ssa.c: Likewise.
16943         * tree-vect-analyze.c: Likewise.
16944         * tree-vect-transform.c: Likewise.
16945         * tree-vectorizer.c: Likewise.
16946         * tree-vn.c: Likewise.
16947         * tree-vrp.c: Likewise.
16948         * tree.c: Likewise.
16949         * tree.def: Likewise.
16950         * tree.h: Likewise.
16951         * unwind-dw2-fde.c: Likewise.
16952         * unwind.inc: Likewise.
16953         * value-prof.c: Likewise.
16954         * vmsdbgout.c: Likewise.
16955
16956 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
16957
16958         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
16959         always place FP constants in the TOC for TARGET_POWERPC64.
16960         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
16961
16962 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
16963
16964         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
16965         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
16966         enable for TARGET_E500_DOUBLE.
16967         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
16968         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
16969         floating-point modes like integer modes for E500 double.
16970         (rs6000_legitimate_offset_address_p): Likewise.
16971         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
16972         addressing for DDmode for E500 double.
16973         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
16974         modes as using 64-bits of registers for E500 double.
16975         (spe_build_register_parallel): Do not handle DDmode or TDmode.
16976         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
16977         specially for E500 double.
16978         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
16979         TDmode for E500 double.
16980         (rs6000_gimplify_va_arg): Only handle SDmode in registers
16981         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
16982         (rs6000_split_multireg_move): Do not handle TDmode specially for
16983         E500 double.
16984         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
16985         using 64-bit registers for E500 double.
16986         (emit_frame_save): Do not handle DDmode specially for E500 double.
16987         (gen_frame_mem_offset): Likewise.
16988         (rs6000_function_value): Do not call spe_build_register_parallel
16989         for DDmode or TDmode.
16990         (rs6000_libcall_value): Likewise.
16991         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
16992         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
16993         for E500 double.
16994
16995 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
16996
16997         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
16998         in comments.
16999
17000 2008-06-04  Junjie Gu <jgu@tensilica.com>
17001
17002         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
17003         comparison for frame pointers.
17004
17005 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
17006
17007         PR target/27386
17008         * config/avr/avr.h (PUSH_ROUNDING): Remove.
17009
17010 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
17011
17012         PR target/30243
17013         * builtins.c (expand_builtin_signbit): Don't take lowpart when
17014         register is already smaller or equal to required mode.
17015
17016 2008-06-04  Xinliang David Li  <davidxl@google.com>
17017
17018         * tree-call-cdce.c: New file.
17019         (cond_dead_built_in_calls): New static variable.
17020         (input_domain): New struct.
17021         (check_pow): New function.
17022         (check_builtin_call): Ditto.
17023         (check_target_format): Ditto.
17024         (is_call_dce_candidate): Ditto.
17025         (gen_one_condition): Ditto.
17026         (gen_conditions_for_domain): Ditto.
17027         (get_domain): Ditto.
17028         (gen_conditions_for_pow_cst_base): Ditto.
17029         (gen_conditions_for_pow_int_base): Ditto.
17030         (gen_conditions_for_pow): Ditto.
17031         (get_no_error_domain): Ditto.
17032         (gen_shrink_wrap_conditions): Ditto.
17033         (shrink_wrap_one_built_in_call): Ditto.
17034         (shink_wrap_conditional_dead_built_in_calls): Ditto.
17035         (tree_call_cdce): Ditto.
17036         (gate_call_cdce): Ditto.
17037         (pass_call_cdce): New gimple pass.
17038         * passes.c: (init_optimization_passes): New pass.
17039         * tree-pass.h: New pass declaration.
17040         * opts.c (decode_options): New flag setting.
17041         * common.opt: Add -ftree-builtin-call-dce flag.
17042         * Makefile.in: Add new source file.
17043         * tempvar.def: New tv_id.
17044         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
17045
17046 2008-06-04  Richard Guenther  <rguenther@suse.de>
17047
17048         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
17049         (is_call_clobbered): Always check var_ann->call_clobbered.
17050         (mark_call_clobbered): Always set var_ann->call_clobbered.
17051         (clear_call_clobbered): Always clear var_ann->call_clobbered.
17052         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
17053         (reset_alias_info): Clear call clobbering info on MTAGs and
17054         globals as well.
17055         (set_pt_anything): Set pt_global_mem.
17056         (create_tag_raw): Adjust comment.
17057         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
17058
17059 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
17060             Maxim Kuvyrkov  <maxim@codesourcery.com>
17061
17062         * config/m68k/m68k.opt (mxgot): New option.
17063         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
17064         (m68k_output_addr_const_extra): New.
17065         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
17066         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
17067         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
17068         * doc/invoke.texi (M680x0 Options): Document -mxgot.
17069
17070 2008-06-04  Richard Guenther  <rguenther@suse.de>
17071
17072         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
17073         negative or non-representable offsets.
17074
17075 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
17076
17077         * config/i386/i386.c (ix86_gen_leave): New.
17078         (ix86_gen_pop1): Likewise.
17079         (ix86_gen_add3): Likewise.
17080         (ix86_gen_sub3): Likewise.
17081         (ix86_gen_sub3_carry): Likewise.
17082         (ix86_gen_one_cmpl2): Likewise.
17083         (ix86_gen_monitor): Likewise.
17084         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
17085         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17086         ix86_gen_one_cmpl2 and ix86_gen_monitor.
17087         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
17088         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
17089         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
17090         (ix86_expand_epilogue): Updated.
17091         (print_operand): Handle integer register operand for 'z'.
17092         (ix86_expand_strlensi_unroll_1): Likewise.
17093         (ix86_expand_strlen): Likewise.
17094         (ix86_expand_builtin): Likewise.
17095         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
17096         mov{q}/mov{l} and add{q}/add{l}.
17097
17098 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
17099
17100         * config/i386/i386.md (P): New mode iterator.
17101         (SFmode push_operand splitter): Macroize DImode and SImode pushes
17102         using P mode iterator.
17103         (DFmode push_operand splitter): Ditto.
17104         (XFmode push_operand splitter): Ditto.
17105         (DFmode float_extend SFmode push_operand splitter): Ditto.
17106         (XFmode float_extend SFmode push_operand splitter): Do not generate
17107         SImode pushes for 64bit target.  Macroize Dimode and SImode
17108         pushes using P mode iterator.
17109         (XFmode float_extend DFmode push_operand splitter): Ditto.
17110
17111 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
17112
17113         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
17114         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
17115         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
17116         return type to int.
17117         (ix86_call_abi_override): Remove check for call_used_regs.
17118
17119 2008-06-03  Richard Guenther  <rguenther@suse.de>
17120
17121         * tree-ssa-structalias.c (find_func_aliases): Add constraints
17122         for the lhs of calls if the return type contains pointers.
17123
17124 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
17125
17126         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
17127         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
17128         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
17129         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
17130         of cfun and DEFAULT_ABI to deceide abi mode.
17131         (DEFAULT_ABI): New.
17132         (REG_PARM_STACK_SPACE): Removed.
17133         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
17134         (STACK_BOUNDARY): Use default target to deceide stack boundary.
17135         * config/i386/i386-protos.h (ix86_cfun_abi): New.
17136         (ix86_function_abi): Likewise.
17137         (ix86_function_type_abi): Likewise.
17138         (ix86_call_abi_override): Likewise.
17139         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
17140         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
17141         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
17142         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
17143         specific defines.
17144         (X86_64_REGPARM_MAX): New.
17145         (X86_64_SSE_REGPARM_MAX): New.
17146         (X64_REGPARM_MAX): New.
17147         (X64_SSE_REGPARM_MAX): New.
17148         (X86_32_REGPARM_MAX): New.
17149         (X86_32_SSE_REGPARM_MAX): New.
17150         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
17151         (ix86_function_regparm): Handle user calling abi.
17152         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
17153         by DEFAULT_ABI versus SYSV_ABI check.
17154         (ix86_reg_parm_stack_space): New.
17155         (ix86_function_type_abi): New.
17156         (ix86_call_abi_override): New.
17157         (ix86_function_abi): New.
17158         (ix86_cfun_abi): New.
17159         (init_cumulative_args): Call abi specific initialization.
17160         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
17161         (function_arg_64): Extend SSE_REGPARM_MAX check.
17162         (function_arg (): Remove TARGET_64BIT_MS_ABI.
17163         (ix86_pass_by_reference): Likewise.
17164         (ix86_function_value_regno_p): Likewise.
17165         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
17166         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
17167         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
17168         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
17169         (setup_incoming_varargs_64): Adjust regparm for call abi.
17170         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
17171         (ix86_va_start): Likewise.
17172         (ix86_gimplify_va_arg): Likewise.
17173         (ix86_expand_prologue): Likewise.
17174         (output_pic_addr_const): Likewise.
17175         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
17176         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
17177         (x86_output_mi_thunk): Likewise.
17178         (x86_function_profiler): Likewise.
17179         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
17180         (SYSV_ABI, MS_ABI): New constants.
17181         (DEFAULT_ABI): New.
17182         (init_regs): Add prototype of function in regclass.c file.
17183         (OVERRIDE_ABI_FORMAT): New.
17184         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
17185         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
17186         (OUTGOING_REG_PARM_STACK_SPACE): New.
17187         (ix86_reg_parm_stack_space): New prototype.
17188         (CUMULATIVE_ARGS): Add call_abi member.
17189         (machine_function): Add call_abi member.
17190         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
17191         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
17192
17193 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
17194
17195         PR target/34879
17196         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
17197         (avr_builtin_setjmp_frame_value): New function.
17198         * config/avr/avr.md (nonlocal_goto_receiver): Define.
17199         (nonlocal_goto): Define.
17200
17201 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
17202
17203         * config/mips/mips.c (mips_emit_loadgp): Return early if
17204         there is nothing do to, otherwise emit a blockage if
17205         !TARGET_EXPLICIT_RELOCS || crtl->profile.
17206         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
17207
17208 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17209
17210         * configure.ac: Drop unneeded backslash ending up in config.in.
17211         * acinclude.m4: Likewise.
17212         * config.in: Regenerate.
17213
17214 2008-05-26  Jan Hubicka  <jh@suse.cz>
17215
17216         * predict.c (maybe_hot_frequency_p): Break out of...
17217         (maybe_hot_bb_p): ... here.
17218         (maybe_hot_edge_p): New.
17219         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
17220         * basic-block.h (maybe_hot_edge_p): Declare.
17221
17222 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
17223
17224         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
17225         (*cmpfp_<mode>_cc): Ditto.
17226         (*fp_jcc_8<mode>_387): Ditto.
17227         (*fop_<MODEF:mode>_2_i387): Ditto.
17228         (*fop_<MODEF:mode>_3_i387): Ditto.
17229         (*fop_xf_2_i387): Ditto.
17230         (*fop_xf_3_i387): Ditto.
17231
17232 2008-06-02  Tomas Bily  <tbily@suse.cz>
17233
17234         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
17235
17236 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
17237
17238         * config/mips/mips.c (mips_valid_offset_p): New function.
17239         (mips_valid_lo_sum_p): Likewise.
17240         (mips_classify_address): Use them.
17241         (mips_force_address): New function.
17242         (mips_legitimize_address): Use it.
17243         * config/mips/mips.md (MOVE128): New mode iterator.
17244         (movtf): Require TARGET_64BIT.  Remove empty strings.
17245         (*movtf_internal): Rename to...
17246         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
17247         of "R" and use {,fp}{load,store} attributes instead of "multi".
17248         Use a separate define_split.
17249         (*movtf_mips16): New pattern.
17250
17251 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
17252
17253         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
17254         * config/mips/mips.c (mips_expand_before_return): New function.
17255         (mips_expand_epilogue): Call it.
17256         * config/mips/mips.md (return): Turn into a define_expand.
17257         (*return): New insn.
17258
17259 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
17260
17261         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
17262         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
17263         functions.  Do not emit uses and clobbers of CONCATs; individually
17264         use and clobber their operands.
17265         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
17266         gen_clobber, emit_use and gen_use.
17267         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
17268         (expand_builtin_return): Likewise.
17269         * cfgbuild.c (count_basic_blocks): Likewise.
17270         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
17271         * explow.c (emit_stack_restore): Likewise.
17272         * expmed.c (extract_bit_field_1): Likewise.
17273         * expr.c (convert_move, emit_move_complex_parts): Likewise.
17274         (emit_move_multi_word, store_constructor): Likewise.
17275         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
17276         (thread_prologue_and_epilogue_insns): Likewise.
17277         * lower-subreg.c (resolve_simple_move): Likewise.
17278         * optabs.c (widen_operand, expand_binop): Likewise.
17279         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
17280         * reload.c (find_reloads): Likewise.
17281         * reload1.c (eliminate_regs_in_insn): Likewise.
17282         * stmt.c (expand_nl_goto_receiver): Likewise.
17283         * config/alpha/alpha.md (builtin_longjmp): Likewise.
17284         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
17285         * config/arm/arm.c (arm_load_pic_register): Likewise.
17286         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
17287         * config/arm/arm.md (untyped_return): Likewise.
17288         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
17289         * config/avr/avr.c (expand_prologue): Likewise.
17290         * config/bfin/bfin.c (do_unlink): Likewise.
17291         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
17292         * config/cris/cris.c (cris_expand_prologue): Likewise.
17293         * config/darwin.c (machopic_indirect_data_reference): Likewise.
17294         (machopic_legitimize_pic_address): Likewise.
17295         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
17296         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
17297         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
17298         (ix86_expand_convert_uns_didf_sse): Likewise.
17299         (ix86_expand_vector_init_general): Likewise.
17300         * config/ia64/ia64.md (eh_epilogue): Likewise.
17301         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
17302         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
17303         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
17304         (config/iq2000/iq2000.c): Likewise.
17305         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
17306         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
17307         (builtin_longjmp): Likewise.
17308         * config/mn10300/mn10300.md (call, call_value): Likewise.
17309         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
17310         * config/pdp11/pdp11.md (abshi2): Likewise.
17311         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
17312         * config/s390/s390.c (s390_emit_prologue): Likewise.
17313         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
17314         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
17315         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
17316         * config/sh/sh.c (prepare_move_operands): Likewise.
17317         (output_stack_adjust, sh_expand_epilogue): Likewise.
17318         (sh_set_return_address, sh_expand_t_scc): Likewise.
17319         * config/sparc/sparc.c (load_pic_register): Likewise.
17320         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
17321         * config/spu/spu.c (spu_expand_epilogue): Likewise.
17322         * config/v850/v850.c (expand_epilogue): Likewise.
17323
17324 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
17325
17326         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
17327         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
17328         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
17329         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
17330         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
17331         stack pointer register.
17332         (output_movhi): Remove code for interrupt specific writing to the
17333         stack pointer register.
17334
17335 2008-05-31  Richard Guenther  <rguenther@suse.de>
17336
17337         PR tree-optimization/34244
17338         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
17339         (tree_expr_nonzero_warnv_p): Likewise.
17340         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
17341         ssa_name_nonnegative_p.
17342         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
17343         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
17344         not tree_expr_nonzero_warnv_p.
17345
17346         PR tree-optimization/36262
17347         Revert
17348         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
17349
17350         PR tree-optimization/34244
17351         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
17352         (record_numbers_of_iterations): New function.
17353         (execute_vrp): Cache the numbers of iterations of loops.
17354         * tree-scalar-evolution.c (scev_reset_except_niters):
17355         New function.
17356         (scev_reset): Use scev_reset_except_niters.
17357         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
17358
17359 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
17360
17361         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
17362         __WORKAROUND_RETS when appropriate.
17363
17364 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
17365
17366         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
17367         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
17368         mode iterator.
17369         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
17370         *fop_df_comm_sse insn patterns using MODEF mode iterator.
17371         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
17372         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
17373         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
17374         *fop_df_1_mixed insn patterns using MODEF mode iterator.
17375         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
17376         *fop_df_1_sse insn patterns using MODEF mode iterator.
17377         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
17378         *fop_df_1_i387 insn patterns using MODEF mode iterator.
17379         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
17380         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
17381         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
17382         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
17383         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
17384         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
17385         (*fop_xf_4_i387): Use <MODE> for mode attribute.
17386         (*fop_xf_5_i387): Ditto.
17387         (*fop_xf_6_i387): Ditto.
17388
17389 2008-05-30  Richard Guenther  <rguenther@suse.de>
17390
17391         * builtins.c (build_string_literal): Avoid generating
17392         a non-gimple_val result.
17393
17394 2008-05-30  DJ Delorie  <dj@redhat.com>
17395
17396         * exec-tool.in: Use an environment variable (private) instead of a
17397         file (shared) as a semaphore, so as to not break parallel builds.
17398
17399 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
17400
17401         * optabs.c (maybe_encapsulate_block): Remove.
17402         (emit_libcall_block): Adjust accordingly.
17403         * optabs.h (maybe_encapsulate_block): Remove prototype.
17404
17405         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
17406         Don't use maybe_encapsulate_block.
17407
17408 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
17409
17410         * config/rs6000/rs6000.c (rs6000_legitimize_address,
17411         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
17412         rtx is a SYMBOL_REF before calling get_pool_constant.
17413
17414 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
17415
17416         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
17417
17418 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
17419
17420         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
17421         rather than OS names to choose INO_T_EQ definition.
17422         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
17423         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
17424
17425 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
17426
17427         PR target/36348
17428         * config/darwin-f.c: New.
17429         * config/t-darwin: Added rule to build darwin-f.o.
17430         * config.gcc: Defined new variable, fortran_target_objs.
17431         (*-*-darwin*): Set fortran_target_objs.
17432         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
17433         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
17434         * configure: Regenerated.
17435
17436 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
17437
17438         PR target/35771
17439         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
17440         canonical type if needed.
17441
17442 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
17443
17444         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
17445
17446 2008-05-29  Richard Guenther  <rguenther@suse.de>
17447
17448         PR tree-optimization/36343
17449         PR tree-optimization/36346
17450         PR tree-optimization/36347
17451         * tree-flow.h (clobber_what_p_points_to): Declare.
17452         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
17453         pointed-to variable is dereferenced is irrelevant to whether
17454         the pointer can access the pointed-to variable.
17455         (clobber_what_p_points_to): New function.
17456         * tree-ssa-alias.c (set_initial_properties): Use it.
17457         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
17458         call clobber check for NMTs.
17459
17460 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
17461
17462         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
17463         for printing gcov_type.
17464
17465 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
17466
17467         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
17468         and the eh region information.
17469         * value-prof.c (gimple_move_stmt_histograms): New function.
17470         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
17471
17472 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
17473
17474         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
17475
17476 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
17477
17478         * value-prof.c (tree_ic_transform): Print counts.
17479         * tree-profile.c (tree_gen_ic_func_profiler):
17480         Clear __gcov_indreict_call_callee variable to avoid misattribution
17481         of the profile.
17482
17483 2008-05-28  Rafael Espíndola  <espindola@google.com>
17484
17485         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
17486         invalid sharing.
17487
17488 2008-05-28  Richard Guenther  <rguenther@suse.de>
17489
17490         PR tree-optimization/36339
17491         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
17492         and clobbering code out of the loop.
17493
17494 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
17495
17496         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
17497         letters defined.
17498
17499         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
17500         s390_contiguous_bitmask_p, s390_symref_operand_p,
17501         s390_check_symref_alignment, s390_reload_larl_operand,
17502         s390_reload_symref_address): New functions.
17503         (s390_branch_condition_mnemonic): Support compare and branch
17504         instructions.
17505         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
17506         and 'W' constraints.
17507         (s390_secondary_reload): Add secondary reloads for unaligned
17508         symbol refs or symbol refs to floating point or QI/TI mode
17509         integer values.
17510         (legitimate_address_p): Accept symbol references as addresses.
17511         (s390_expand_insv): Use rotate and insert selected bits
17512         instruction for insv when building for z10.
17513         (print_operand_address): Handle symbol ref addresses.
17514         (print_operand): Output modifier 'c' added for signed byte values.
17515         (s390_encode_section_info): Mark symbol refs with
17516         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
17517
17518         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
17519         (length attribute): RRF, RRR have 4 byte length.
17520         (FPALL, INTALL): New mode iterators added.
17521         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
17522         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
17523         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
17524         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
17525         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
17526         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
17527         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
17528         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
17529         instructions.
17530         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
17531         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
17532         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
17533         reload<INTALL:mode><P:mode>_toreg_z10,
17534         reload<FPALL:mode><P:mode>_tomem_z10,
17535         reload<FPALL:mode><P:mode>_toreg_z10,
17536         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
17537         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
17538         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
17539         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
17540         definition.
17541         (movmem, clrmem, cmpmem): New splitters added.
17542
17543         * config/s390/predicates.md (larl_operand): Use
17544         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
17545         SYMBOL_REF_ALIGN1_P.
17546         (s390_signed_integer_comparison,
17547         s390_unsigned_integer_comparison): New predicates.
17548
17549         * config/s390/s390-protos.h (s390_check_symref_alignment,
17550         s390_contiguous_bitmask_p, s390_reload_larl_operand,
17551         s390_reload_symref_address,
17552         s390_compare_and_branch_condition_mask): Prototypes added.
17553
17554         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
17555         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
17556         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
17557
17558 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
17559
17560         * config/s390/s390.c (z10_cost): New cost function for z10.
17561         (s390_handle_arch_option, override_options): Support -march=z10 switch.
17562         (s390_issue_rate): Adjust issue rate for z10.
17563         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
17564         (processor_flags): Add PF_Z10.
17565         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
17566         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
17567         * gcc/config.gcc: Add z10.
17568
17569 2008-05-28  Richard Guenther  <rguenther@suse.de>
17570
17571         PR tree-optimization/36291
17572         * tree-flow. h (struct gimple_df): Remove var_anns member.
17573         * tree-flow-inline.h (gimple_var_anns): Remove.
17574         (var_ann): Simplify.
17575         * tree-dfa.c (create_var_ann): Simplify.
17576         (remove_referenced_var): Clear alias info from var_anns of globals.
17577         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
17578         (delete_tree_ssa): Clear alias info from var_anns of globals.
17579         Do not free var_anns.
17580         (var_ann_eq): Remove.
17581         (var_ann_hash): Likewise.
17582
17583 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
17584
17585         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
17586         and loongson2f entries.
17587         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
17588         * config/mips/mips.h (processor_type): Add Loongson-2E
17589         and Loongson-2F entries.
17590         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
17591         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
17592         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
17593         * doc/invoke.texi (MIPS Options): Document loongson2e
17594         and loongson2f processor names.
17595
17596 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
17597
17598         PR target/35767
17599         PR target/35771
17600         * config/i386/i386.c (ix86_function_arg_boundary): Use
17601         alignment of canonical type.
17602         (ix86_expand_vector_move): Check unaligned memory access for
17603         all SSE modes.
17604
17605 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
17606
17607         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
17608         Moved to the front of file.
17609
17610 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
17611             H.J. Lu  <hongjiu.lu@intel.com>
17612
17613         * dwarf2out.c (current_fde): New.
17614         (add_cfi): Use it.
17615         (lookup_cfa:): Likewise.
17616         (dwarf2out_end_epilogue): Likewise.
17617         (dwarf2out_note_section_used): Likewise.
17618
17619 2008-05-27  Michael Matz  <matz@suse.de>
17620
17621         PR c++/27975
17622         * c.opt (Wenum-compare): New warning option.
17623         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
17624
17625 2008-05-27  Michael Matz  <matz@suse.de>
17626
17627         PR middle-end/36326
17628         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
17629         non-BLKmode types.
17630         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
17631         into memory as tail calls.
17632
17633 2008-05-27  Richard Guenther  <rguenther@suse.de>
17634
17635         PR tree-optimization/36339
17636         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
17637         pointers cause all addressable variables to be call clobbered.
17638
17639 2008-05-27  Richard Guenther  <rguenther@suse.de>
17640
17641         PR tree-optimization/36245
17642         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
17643
17644 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
17645
17646         * config/s390/s390.md: Replace all occurences of the 'm'
17647         constraint with 'RT'.
17648
17649 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
17650
17651         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
17652         definitions added.
17653         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
17654         "*movdi_64".
17655         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
17656         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
17657         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
17658
17659 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
17660
17661         * reload.c: (find_reloads): Skip alternatives according to the
17662         "enabled" attribute. Constify the constraint variable.
17663         * recog.c (get_attr_enabled): Add default implementation.
17664         (extract_insn): Set the alternative_enabled_p array
17665         in the recog_data struct.
17666         (preprocess_constraints, constrain_operands): Skip
17667         alternatives according to the "enabled" attribute
17668         * recog.h (struct recog_data): New field alternative_enabled_p.
17669         (skip_alternative): New inline function.
17670         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
17671         (record_reg_classes): Skip alternative according to the
17672         "enabled" attribute.
17673
17674         * doc/md.texi: Add documention for the "enabled" attribute.
17675
17676 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
17677
17678         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
17679         * postreload.c (reload_cse_simplify_operands): Replace 'm'
17680         constraint with TARGET_MEM_CONSTRAINT.
17681         * recog.c (asm_operand_ok, preprocess_constraints,
17682         constrain_operands): Likewise.
17683         * regclass.c (record_reg_classes): Likewise.
17684         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
17685         * reload1.c (maybe_fix_stack_asms): Likewise.
17686         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
17687         * recog.h: Adjust comment.
17688         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
17689         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
17690         * doc/md.texi: Add a note to description of 'm' constraint.
17691         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
17692
17693 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
17694
17695         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
17696         that the bitfield is of integral type before testing its precision.
17697
17698 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
17699             Sa Liu  <saliu@de.ibm.com>
17700
17701         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
17702         __modti3, __udivti3, __umodti3 and __udivmodti4.
17703         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
17704         that implement TImode mul and div functions.
17705         * config/spu/multi3.c: New. Implement __multi3.
17706         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
17707         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
17708         functions on SPU.
17709
17710 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
17711
17712         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
17713         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
17714         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
17715         tls_sysv_suffix): New mode and mode attribute iterators.
17716         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
17717         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
17718         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
17719         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
17720         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
17721         iterators.
17722
17723 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
17724
17725         PR tree-optimization/36329
17726         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
17727         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
17728         * cgraphbuild.c (initialize_inline_failed): Use the latter
17729         macro in lieu of the former.
17730         * ipa-inline.c (cgraph_mark_inline): Likewise.
17731         (cgraph_decide_inlining_of_small_function): Likewise.
17732         (cgraph_decide_inlining): Likewise.
17733         (cgraph_decide_inlining_incrementally): Likewise.
17734
17735 2008-05-26  Tristan Gingold  <gingold@adacore.com>
17736             Anatoly Sokolov  <aesok@post.ru>
17737
17738         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
17739         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
17740         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
17741         optimization for 'avr6' architecture.
17742
17743 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
17744
17745         PR target/34932
17746         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
17747
17748 2008-05-26  Richard Guenther  <rguenther@suse.de>
17749
17750         * tree-ssa-sccvn.c (expr_has_constants): Declare.
17751         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
17752
17753 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
17754
17755         PR middle-end/36253
17756         * caller-save.c (insert_restore): Verify alignment of spill space.
17757         (insert_save): Likewise.
17758         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
17759         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
17760         (STACK_SLOT_ALIGNMENT): Likewise.
17761         * function.c (LOCAL_ALIGNMENT): Removed.
17762         (get_stack_local_alignment): New.
17763         (assign_stack_local): Use it.  Set alignment on stack slot.
17764         (assign_stack_temp_for_type): Use get_stack_local_alignment.
17765         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
17766         (STACK_SLOT_ALIGNMENT): New.
17767         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
17768         stack slot in XFmode.
17769
17770         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
17771
17772 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
17773
17774         PR/36321
17775         * config/i386/i386.md (allocate_stack_worker_64): Make sure
17776         argument operand in rax isn't removed.
17777
17778 2008-05-26  Richard Guenther  <rguenther@suse.de>
17779
17780         PR middle-end/36300
17781         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
17782         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
17783
17784 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
17785
17786         PR bootstrap/36331
17787         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
17788
17789 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
17790
17791         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
17792         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
17793
17794 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
17795
17796         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
17797         build a trampoline if we don't want one.
17798         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
17799         return zero for nested functions if we don't want a trampoline.
17800
17801 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
17802
17803         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
17804
17805 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
17806
17807         PR fortran/18428
17808         * c.opt: Removed undocumented option '-lang-fortran'.
17809         * c-common.h: Removed global variable 'lang_fortran'.
17810         * c-opts.c (c_common_handle_option): Removed code to handle
17811         option '-lang-fortran'. Updated includes.
17812         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
17813         definition of '__GFORTRAN__'.
17814         (define__GNUC__): Reimplemented to use BASEVER and
17815         cpp_define_formatted.
17816         (builtin_define_with_value_n): Removed.
17817         * c-incpath.h: Renamed to ...
17818         * incpath.h: ... this.
17819         * c-incpath.c: Renamed to ...
17820         * incpath.c: ... this. Updated includes.
17821         * fix-header.c: Updated includes.
17822         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
17823         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
17824         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
17825
17826 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
17827
17828         * tree.h: Update the table of flags used on tree nodes.
17829         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
17830         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
17831         (FORCED_LABEL): Add access check.
17832         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
17833         (ASM_INPUT_P): Likewise.
17834         (ASM_VOLATILE_P): Likewise.
17835         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
17836         (OMP_SECTION_LAST): Access private_flag directly.
17837         (OMP_RETURN_NOWAIT): Likewise.
17838         (OMP_PARALLEL_COMBINED): Likewise.
17839         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
17840         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
17841         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
17842         deprecated_flag directly.
17843
17844 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
17845
17846         * final.c (frame_pointer_needed): Removed.
17847         * flags.h (frame_pointer_needed): Likewise.
17848
17849         * function.h (rtl_data): Add frame_pointer_needed.
17850         (frame_pointer_needed): New.
17851
17852 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
17853
17854         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
17855
17856 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
17857
17858         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
17859         SRC is a REG.
17860
17861 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
17862
17863         * c-common.c (strip_array_types): Move function to..
17864         * tree.c: ..here.
17865         (get_inner_array_type): Delete.
17866         * c-common.h (strip_array_types): Move declaration to..
17867         * tree.h: ..here.
17868         (get_inner_array_type): Delete.
17869         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
17870         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
17871         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17872         * config/pa/pa.c (emit_move_sequence): Likewise.
17873
17874 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
17875
17876         * config/i386/i386.md (*sse_prologue_save_insn): Set length
17877         attribute to 34.
17878
17879 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
17880
17881         * function.c: Include target hook for nonlocal_goto frame value.
17882
17883 2008-05-24  Richard Guenther  <rguenther@suse.de>
17884
17885         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
17886         variable can be only accessed through a pointer or a union.
17887
17888 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17889
17890         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
17891         * doc/extend.texi: Likewise.
17892
17893 2008-05-23  DJ Delorie  <dj@redhat.com>
17894
17895         * config/m32c/jump.md (untyped_call): Add.
17896
17897         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
17898         for A24 to PSImode.
17899         (m32c_address_cost): Detail costs for indirect offsets.
17900
17901 2008-05-23  Rafael Espíndola  <espindola@google.com>
17902
17903         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
17904         if a node is a SUBREG.
17905         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
17906         is a SUBREG.
17907
17908 2008-05-23  Paul Brook  <paul@codesourcery.com>
17909             Carlos O'Donell  <carlos@codesourcery.com>
17910
17911         * doc/extend.texi: Clarify use of __attribute__((naked)).
17912         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
17913         * target.h (gcc_target): Add allocate_stack_slots_for_args.
17914         * function.c (use_register_for_decl): Use
17915         targetm.calls.allocate_stack_slots_for_args.
17916         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
17917         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
17918         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
17919
17920 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
17921
17922         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
17923
17924 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
17925
17926         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
17927         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
17928         is only rounded once.
17929
17930 2008-05-23  Richard Guenther  <rguenther@suse.de>
17931
17932         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
17933
17934 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
17935             Jakub Jelinek  <jakub@redhat.com>
17936
17937         PR target/36079
17938         * configure.ac: Handle --enable-cld.
17939         * configure: Regenerated.
17940         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
17941         * config/i386/i386.h (struct machine_function): Add needs_cld field.
17942         (ix86_current_function_needs_cld): New define.
17943         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
17944         (cld): New isns pattern.
17945         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
17946         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
17947         * config/i386/i386.opt (mcld): New option.
17948         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
17949         TARGET_CLD and ix86_current_function_needs_cld.
17950         (override_options): Use -mcld by default for 32-bit code if
17951         USE_IX86_CLD.
17952
17953         * doc/install.texi (Options specification): Document --enable-cld.
17954         * doc/invoke.texi (Machine Dependent Options)
17955         [i386 and x86-64 Options]: Add -mcld option.
17956         (Intel 386 and AMD x86-64 Options): Document -mcld option.
17957
17958 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
17959         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
17960         (return_in_memory_64): Likewise.
17961         (return_in_memory_ms_64): Likewise.
17962
17963 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17964
17965         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
17966         * builtins.c (fold_builtin_fpclassify): New.
17967         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
17968         * builtins.def (BUILT_IN_FPCLASSIFY): New.
17969         * c-common.c (handle_type_generic_attribute): Adjust to accept
17970         fixed arguments before an elipsis.
17971         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
17972         * doc/extend.texi: Document __builtin_fpclassify.
17973
17974 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
17975
17976         * omp-low.c (gate_expand_omp_ssa): Remove.
17977         (pass_expand_omp_ssa): Remove.
17978         (gate_expand_omp): Do not check for flag_openmp_ssa.
17979         * common.opt (-fopenmp-ssa): Remove.
17980         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
17981
17982 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
17983
17984         * config/sh/sh.opt (mfixed-range): New option.
17985         * config/sh/sh-protos.h (sh_fix_range): Declare.
17986         * config/sh/sh.c (sh_fix_range): New function.
17987         * config/sh/sh.h (sh_fixed_range_str): Declare.
17988         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
17989         is not empty.
17990         * doc/invoke.texi (SH Options): Document -mfixed-range.
17991
17992 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
17993
17994         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
17995         it before the redeclaration.
17996
17997 2008-05-22  Anatoly Sokolov <aesok@post.ru>
17998
17999         * config/avr/avr.c (get_sequence_length): Add new function.
18000         (expand_prologue, expand_epilogue): Remove duplicate code.
18001
18002 2008-05-22  Rafael Espíndola  <espindola@google.com>
18003
18004         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
18005         sharing.
18006
18007 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18008
18009         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
18010         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
18011
18012         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
18013         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
18014         (vect_update_misalignment_for_peel): Likewise.
18015         (vector_alignment_reachable_p): Likewise.
18016         * tree-vect-transform.c (vectorizable_load): Likewise.
18017         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
18018         (get_vectype_for_scalar_type): Pass mode of scalar_type
18019         to UNITS_PER_SIMD_WORD.
18020
18021         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
18022         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
18023         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
18024         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
18025         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
18026
18027 2008-05-22  Ira Rosen  <irar@il.ibm.com>
18028
18029         PR tree-optimization/36293
18030         * tree-vect-transform.c (vect_transform_strided_load): Don't check
18031         if the first load must be skipped because of a gap.
18032
18033 2008-05-22  Richard Guenther  <rguenther@suse.de>
18034
18035         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
18036         more cases of offset disambiguation that is possible if
18037         strict-aliasing rules apply.
18038         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
18039         for basic offset and type-based disambiguation.
18040
18041 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18042
18043         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
18044         ix86_expand_vector_set on V16QImode for SSE4.1.
18045
18046 2008-05-21  Tom Tromey  <tromey@redhat.com>
18047
18048         * c.opt (Wimport): Mark as undocumented.
18049         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
18050         -Wno-import.
18051         (Warning Options): Likewise.
18052         * doc/cppopts.texi: Don't mention -Wimport.
18053
18054 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
18055
18056         PR tree-optimization/36287
18057         PR tree-optimization/36286
18058         * lambda-code.c (build_access_matrix): Do not use the loop->num
18059         for computing the number of induction variables: use the loop depth
18060         instead.
18061
18062 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
18063
18064         PR/36280
18065         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
18066         option -f(no-)leading-underscore.
18067
18068 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18069
18070         * config/i386/i386.c (ix86_expand_vector_init_general): Use
18071         GET_MODE_NUNITS (mode).
18072
18073 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
18074
18075         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
18076         (-mmulhw): Add 464 to description.
18077         (-mdlmzb): Likewise.
18078         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
18079         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
18080         464fp entries.
18081         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
18082         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
18083         * config/rs6000/rs6000.md: Update comments for 464.
18084
18085 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
18086
18087         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
18088
18089 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18090
18091         * config/i386/sse.md (vec_extractv4sf): Removed.
18092         (vec_extractv2df): Likewise.
18093         (vec_extractv2di): Likewise.
18094         (vec_extractv4si): Likewise.
18095         (vec_extractv8hi): Likewise.
18096         (vec_extractv16qi): Likewise.
18097         (vec_extract<mode>): New.
18098
18099 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18100
18101         * config/i386/sse.md (vec_setv4sf): Removed.
18102         (vec_setv2df): Likewise.
18103         (vec_setv2di): Likewise.
18104         (vec_setv4si): Likewise.
18105         (vec_setv8hi): Likewise.
18106         (vec_setv16qi): Likewise.
18107         (vec_set<mode>): New.
18108
18109 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18110
18111         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
18112         goto for vec_concat and vec_interleave.
18113
18114 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18115
18116         * config/i386/sse.md (vec_initv4sf): Removed.
18117         (vec_initv2df): Likewise.
18118         (vec_initv2di): Likewise.
18119         (vec_initv4si): Likewise.
18120         (vec_initv8hi): Likewise.
18121         (vec_initv16qi): Likewise.
18122         (vec_init<mode>): New.
18123
18124 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
18125
18126         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
18127
18128 2008-05-21  Tom Tromey  <tromey@redhat.com>
18129
18130         * ggc-zone.c (lookup_page_table_if_allocated): New function.
18131         (zone_find_object_offset): Likewise.
18132         (gt_ggc_m_S): Likewise.
18133         (highest_bit): Likewise.
18134         * ggc-page.c (gt_ggc_m_S): New function.
18135         * stringpool.c (string_stack): Remove.
18136         (init_stringpool): Update.
18137         (ggc_alloc_string): Use ggc_alloc.
18138         (maybe_delete_ident): New function.
18139         (ggc_purge_stringpool): Likewise.
18140         (gt_ggc_m_S): Remove.
18141         * ggc-common.c (ggc_protect_identifiers): New global.
18142         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
18143         ggc_protect_identifiers.
18144         * ggc.h (ggc_protect_identifiers): Declare.
18145         (gt_ggc_m_S): Update.
18146         (ggc_purge_stringpool): Declare.
18147         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
18148         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
18149         special case.
18150         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
18151
18152 2008-05-21  David S. Miller  <davem@davemloft.net>
18153
18154         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
18155         tmake_file.
18156
18157 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
18158
18159         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
18160         once finished.
18161
18162 2008-05-20  David Daney  <ddaney@avtrex.com>
18163
18164         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
18165         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
18166         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
18167         UNSPEC_UPDATE_GOT_VERSION): Renumber.
18168         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
18169         (atomic_hiqi_op): New define_code_iterator.
18170         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
18171         mips_expand_compare_and_swap_12.
18172         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
18173         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
18174         (sync_<optab><mode>, sync_old_<optab><mode>,
18175         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
18176         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
18177         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
18178         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
18179         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
18180         (test_and_set_12): New insn.
18181         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
18182         sync_new_<optab><mode>, sync_old_nand<mode>,
18183         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
18184         clobber to operand 0 for SI and DI mode insns.
18185         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
18186         mips_gen_fn_4): New typedefs.
18187         (mips_gen_fn_ptrs): Define new union type.
18188         (mips_expand_compare_and_swap_12): Remove declaration.
18189         (mips_expand_atomic_qihi): Declare function.
18190         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
18191         (mips_expand_atomic_qihi): ... this.  Use new generator function
18192         parameter.
18193         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
18194         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
18195         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
18196         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
18197         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
18198         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
18199         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
18200         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
18201         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
18202         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
18203         New macros.
18204
18205 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
18206
18207         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
18208         the missing break.
18209
18210 2008-05-20  Anatoly Sokolov <aesok@post.ru>
18211
18212         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
18213         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
18214         (avr_attribute_table): Add 'OS_main' function attribute.
18215         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
18216         functions with 'OS_main' attribute.
18217
18218 2008-05-20  Richard Guenther  <rguenther@suse.de>
18219
18220         PR tree-optimization/35204
18221         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
18222         helper, split out from ...
18223         (DFS): ... here.  Make the DFS walk non-recursive.
18224
18225 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
18226             Jan Sjodin  <jan.sjodin@amd.com>
18227
18228         PR tree-optimization/36181
18229         * tree-parloops.c (loop_has_vector_phi_nodes): New.
18230         (parallelize_loops): Don't parallelize when the loop has vector
18231         phi nodes.
18232
18233 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
18234             Sebastian Pop  <sebastian.pop@amd.com>
18235
18236         * tree-loop-linear.c (gather_interchange_stats): Look in the access
18237         matrix, and never look at the tree representation of the memory
18238         accesses.
18239         (linear_transform_loops): Computes parameters and access matrices.
18240         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
18241         when fails.
18242         (access_matrix_get_index_for_parameter): New.
18243         * tree-data-ref.h (struct access_matrix): New.
18244         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
18245         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
18246         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
18247         am_vector_index_for_loop): New.
18248         (struct data_reference): Add field access_matrix.
18249         (DR_ACCESS_MATRIX): New.
18250         (compute_data_dependences_for_loop): Update declaration.
18251         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
18252         * lambda.h (lambda_vector_vec_p): Declared.
18253         * lambda-code.c: Depend on pointer-set.h.
18254         (lambda_collect_parameters_from_af, lambda_collect_parameters,
18255         av_for_af_base, av_for_af, build_access_matrix,
18256         lambda_compute_access_matrices): New.
18257         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
18258
18259 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
18260
18261         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
18262         $SOURCEDIR/include.
18263
18264 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
18265             Sebastian Pop  <sebastian.pop@amd.com>
18266
18267         PR tree-optimization/36206
18268         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
18269         FOLD_CONVERSIONS.
18270         (instantiate_scev_1): Rename flags to fold_conversions.
18271         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
18272         outeside instantiation_loop.
18273         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
18274         (evolution_function_is_affine_or_constant_p): Removed.
18275         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
18276         instantiate_scev.
18277         (analyze_siv_subscript): Pass in the loop nest number.
18278         Call evolution_function_is_affine_in_loop instead of
18279         evolution_function_is_affine_p.
18280         (analyze_overlapping_iterations): Pass in the loop nest number.
18281
18282 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
18283             Sebastian Pop  <sebastian.pop@amd.com>
18284
18285         PR tree-optimization/36206
18286         * tree-chrec.h (chrec_fold_op): New.
18287         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
18288         and other trees.
18289
18290 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
18291
18292         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
18293         (DIRS_EQ): New.
18294         (remove_duplicates): Do not set inode on non-inode systems.
18295         Use DIRS_EQ.
18296
18297 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
18298
18299         * config.gcc (tm_file): Update comments about relative pathnames.
18300
18301 2008-05-20  Richard Guenther  <rguenther@suse.de>
18302
18303         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
18304         * tree-ssa-sccvn.c (process_scc): Likewise.
18305         * tree-ssa-sink.c (execute_sink_code): Likewise.
18306         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
18307         * tree-vrp.c (process_assert_insertions): Likewise.
18308         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
18309         (perform_tree_ssa_dce): Likewise.
18310         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
18311         (dump_dominator_optimization_stats): Likewise.
18312         * tree-vectorizer.c (vectorize_loops): Likewise.
18313
18314 2008-05-20  Richard Guenther  <rguenther@suse.de>
18315
18316         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
18317
18318 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
18319
18320         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
18321         (ix86_i386elf_return_in_memory): Likewise.
18322         (ix86_i386interix_return_in_memory): Likewise.
18323         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
18324         (SUBTARGET_RETURN_IN_MEMORY): New.
18325         * config/i386/i386elf.h: Likewise.
18326         * config/i386/ptx4-i.h: Likewise.
18327         * config/i386/sol2-10.h: Likewise.
18328         * config/i386/sysv4.h: Likewise.
18329         * config/i386/vx-common.h: Likewise.
18330         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
18331         * config/i386/i386.c (ix86_return_in_memory): Made static and
18332         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
18333         (ix86_i386elf_return_in_memory): Removed.
18334         (ix86_i386interix_return_in_memory): Removed.
18335         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
18336         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
18337
18338 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
18339
18340         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
18341
18342 2008-05-19  Xinliang David Li  <davidxl@google.com>
18343
18344         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
18345         * opts.c: Ditto.
18346         * common.opt: Ditto.
18347         * doc/invoke.texi: Ditto.
18348
18349 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
18350
18351         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
18352         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
18353
18354 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
18355
18356         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
18357         sizes of operand array from 8/4 to 4/2.
18358         (ix86_expand_vector_init_general): Change size of operand array
18359         from 32 to 16.  Remove op0, op1 and half_mode.
18360
18361 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
18362
18363         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
18364         (ix86_expand_vector_init_interleave): Likewise.
18365         (ix86_expand_vector_init_general): Use them.  Assert
18366         word_mode == SImode when n_words == 4.
18367
18368 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
18369
18370         * config/i386/i386.c (ix86_secondary_reload): New static function.
18371         (TARGET_SECONDARY_RELOAD): New define.
18372         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
18373         * config/i386/i386.md (reload_outqi): Remove.
18374
18375 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18376
18377         PR middle-end/35509
18378         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
18379         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
18380         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
18381         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
18382         (fold_builtin_1): Likewise.
18383         * builtins.def (BUILT_IN_ISINF_SIGN): New.
18384         c-common.c (check_builtin_function_arguments): Handle
18385         BUILT_IN_ISINF_SIGN.
18386         * doc/extend.texi: Document __builtin_isinf_sign.
18387         * fold-const.c (operand_equal_p): Handle COND_EXPR.
18388
18389 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
18390
18391         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
18392         EH cleanup at the end of the pass, search for those that have been
18393         turned into forwarder blocks and do the cleanup on their successor.
18394
18395 2008-05-18  Richard Guenther  <rguenther@suse.de>
18396
18397         * tree-cfg.c (verify_gimple_expr): Allow conversions from
18398         pointers to sizetype and vice versa.
18399
18400 2008-05-18 Xinliang David Li   <davidxl@google.com>
18401
18402         * gcc/tree-ssa-dce.c: Coding style fix.
18403         (check_pow): Documentation comment.
18404         (check_log): Documenation comment. Coding style fix.
18405         (is_unnecessary_except_errno_call): Ditto.
18406         (gen_conditions_for_pow): Ditto.
18407         (gen_conditions_for_log): Ditto.
18408         (gen_shrink_wrap_conditions): Ditto.
18409         (shrink_wrap_one_built_in_calls): Ditto.
18410         * gcc/doc/invoke.texi: Better documentation string.
18411         * ChangeLog: Fix wrong change log entries from
18412         May 17 checkin on function call DCE.
18413
18414 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
18415
18416         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
18417
18418 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
18419
18420         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
18421         * df-problems.c (simulation routines): Fixed block comment to
18422         properly say how to add forwards scanning functions.
18423
18424 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
18425
18426         * tree-inline.c (setup_one_parameter): Remove dead code.
18427
18428 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
18429
18430         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
18431         a BIT_AND_EXPR only for an INTEGER_TYPE.
18432
18433 2008-05-17 Xinliang David Li   <davidxl@google.com>
18434
18435         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
18436         (check_pow, check_log, is_unnecessary_except_errno_call): New
18437         functions to check for eliminating math functions that are pure
18438         except for setting errno.
18439         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
18440         general condition expressions for shrink-wrapping pow/log calls.
18441         (gen_shrink_wrap_conditions): Ditto.
18442         (shrink_wrap_one_built_in_call): Ditto.
18443         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
18444         (mark_operand_necessary): If debugging, output if OP is necessary.
18445         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
18446         unnecessary.
18447         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
18448         opt level >= 2.
18449         * gcc/common.opt: New user flag -ftree-builtin-dce.
18450         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
18451
18452 2008-05-16  David S. Miller  <davem@davemloft.net>
18453
18454         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
18455         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
18456
18457 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
18458
18459         PR target/36246
18460         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
18461
18462 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
18463
18464         * ifcvt.c (dead_or_predicable): Rename
18465         df_simulate_one_insn_backwards to df_simulate_one_insn.
18466         * recog.c (peephole2_optimize): Ditto.
18467         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
18468         Ditto.
18469         * df.h: Rename df_simulate_one_insn_backwards to
18470         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
18471         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
18472         scanning of defs and uses.
18473         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
18474         (df_simulate_one_insn_forwards): Removed.
18475
18476 2008-05-16  Doug Kwan  <dougkwan@google.com>
18477
18478         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
18479         QNaN & SNaN.
18480         (real_from_string): Handle NaNs and Inf as approriate.
18481
18482 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
18483
18484         * doc/gty.texi (Source Files Containing Type Information): Note
18485         that headers should appear first in the gtfiles list.
18486
18487 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
18488
18489         * tree.def (COND_EXEC): Properly documented this code.
18490
18491 2008-05-16  Diego Novillo  <dnovillo@google.com>
18492
18493         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
18494         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
18495         the new field.
18496
18497 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
18498
18499         * tree-ssa-dse (max_stmt_uid): Removed.
18500         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
18501         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
18502         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
18503         * function.h (cfun.last_stmt_uid): New field.
18504         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
18505         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
18506         New functions.
18507         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
18508         (create_stmt_ann): Initialize the ann->uid field.
18509         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
18510         with new calls.
18511         * tree-flow.h (renumber_gimple_stmt_uids): New function.
18512
18513 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
18514
18515         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
18516         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
18517         (init_empty_tree_cfg): Call it.
18518
18519 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
18520
18521         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
18522         Update all users.
18523
18524 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
18525
18526         * doc/invoke.text (-fdump-tree-*-verbose): New option.
18527         * tree-dump.c (dump_options): New verbose option.
18528         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
18529         Add verbose dump.
18530         * tree-pass.h (TDF_VERBOSE): New dump flag.
18531         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
18532         (tree-flow.h): Added include.
18533         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
18534
18535 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
18536
18537         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
18538
18539         From Jie Zhang  <jie.zhang@analog.com>
18540         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
18541         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
18542         mcpu=bf561-none and mcpu=bf561-0.2.
18543         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
18544         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
18545         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
18546         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
18547         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
18548         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
18549         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
18550         option.
18551         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
18552         (cputype_selected): Remove.
18553         (bfin_handle_option): Don't use cputype_selected.
18554         (override_options): When no mcpu option, enable all workarounds.
18555         Don't use bfin_workarounds.
18556         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
18557         processor type.
18558         (DEFAULT_CPU_TYPE): Don't define.
18559
18560 2008-05-16  Richard Guenther  <rguenther@suse.de>
18561
18562         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
18563         on deletion of the last stmt.
18564
18565 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18566
18567         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
18568         V8HImode for SSE2 and V16QImode for SSE4.1.
18569
18570 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
18571
18572         * cgraph.h (compute_inline_parameters): Made public.
18573         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
18574         variable_generate_summary, function_write_summary,
18575         variable_write_summary, variable_read_summary.  Added generate_summary,
18576         write_summary, read_summary.
18577         * cgraphunit.c (cgraph_process_new_functions): Changed call from
18578         pass_ipa_inline.function_generate_summary, to
18579         compute_inline_parameters.
18580         * ipa-inline.c (compute_inline_parameters): Made public and added
18581         node parameter.
18582         (compute_inline_parameters_for_current): New function.
18583         (pass_inline_param): Now calls compute_inline_parameters_for_current.
18584         (inline_generate_summary): Removed parameter and made to loop over
18585         all cgraph nodes.
18586         (pass_ipa_inline): Updated for new IPA_PASS structure.
18587         * passes.c (execute_ipa_summary_passes): Now is called once per
18588         pass rather than once per node*pass.
18589
18590 2008-05-15  Anatoly Sokolov <aesok@post.ru>
18591
18592         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
18593         avr_have_mul_p, avr_asm_only_p): Remove variables.
18594         (avr_override_options): Remove initialization of removed variables.
18595         (avr_file_start):  Convert removed variables to fields of
18596         'struct base_arch_s *avr_current_arch'.
18597         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
18598         (AVR_HAVE_MUL): (Ditto.).
18599         (AVR_HAVE_MOVW): (Ditto.).
18600         (AVR_HAVE_LPMX): (Ditto.).
18601         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
18602         avr_asm_only_p): Remove declaration.
18603
18604 2008-05-15  Diego Novillo  <dnovillo@google.com>
18605
18606         * config/arm/arm.c (arm_return_in_memory): Fix return type.
18607         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
18608
18609 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
18610
18611         PR middle-end/36194
18612         * combine.c (check_conversion): Rename back to check_promoted_subreg.
18613         Don't call record_truncated_value from here.
18614         (record_truncated_value): Turn it into a for_each_rtx callback.
18615         (record_truncated_values): New function.
18616         (combine_instructions): Call note_uses with record_truncated_values.
18617         Change name of check_conversion to check_promoted_subreg.
18618
18619 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
18620
18621         * doc/sourcebuild.texi: Document support for torture tests.
18622
18623 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
18624
18625         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
18626         to alternative 4 of operand 2.
18627
18628 2008-05-15  Richard Guenther  <rguenther@suse.de>
18629
18630         * tree-pass.h (current_pass): Declare.
18631         (get_pass_for_id): Likewise.
18632         * passes.c (passes_by_id, passes_by_id_size): New globals.
18633         (set_pass_for_id): New function.
18634         (get_pass_for_id): Likewise.
18635         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
18636         (execute_function_todo): Flush per function statistics.
18637         * toplev.c (compile_file): Init statistics.
18638         (general_init): Do early statistics initialization.
18639         (finalize): Finish statistics.
18640         * statistics.h (statistics_early_init): Declare.
18641         (statistics_init): Likewise.
18642         (statistics_fini): Likewise.
18643         (statistics_fini_pass): Likewise.
18644         (statistics_counter_event): Likewise.
18645         (statistics_histogram_event): Likewise.
18646         * statistics.c: New file.
18647         * Makefile.in (OBJS-common): Add statistics.o.
18648         (statistics.o): Add dependencies.
18649         * doc/invoke.texi (-fdump-statistics): Document.
18650
18651         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
18652         (insert): Likewise.
18653         (execute_pre): Use statistics_counter_event.
18654         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
18655         (substitute_and_fold): Increment it.  Use statistics_counter_event.
18656
18657 2008-05-15  Diego Novillo  <dnovillo@google.com>
18658
18659         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
18660
18661         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
18662         * tree-ssa-alias.c (new_type_alias): Remove references to
18663         sub-variables from comment.
18664         * tree-ssa-operands.c (swap_tree_operands): Likewise.
18665
18666 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18667
18668         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
18669         attribute to 1 only for insertps alternative.
18670
18671 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
18672
18673         * config/bfin/bfin.md (loadbytes): New pattern.
18674         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
18675         (bfin_init_builtins): Initialize it.
18676         (bdesc_1arg): Add it.
18677
18678 2008-05-15  Sa Liu  <saliu@de.ibm.com>
18679
18680         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
18681         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
18682         * testsuite/lib/target-supports.exp: Add
18683         check_effective_target_fortran_integer_16.
18684
18685 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
18686
18687         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
18688         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
18689         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
18690         (TARGET_RETURN_IN_MEMORY): Define.
18691
18692 2008-05-15  Richard Guenther  <rguenther@suse.de>
18693
18694         PR middle-end/36244
18695         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
18696         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
18697         represent unmodifiable vars.
18698
18699 2008-05-15  Richard Guenther  <rguenther@suse.de>
18700
18701         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
18702         INDIRECT_REF and TARGET_MEM_REF.
18703         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
18704         TARGET_MEM_REF.
18705
18706 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
18707             H.J. Lu  <hongjiu.lu@intel.com>
18708
18709         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
18710         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
18711         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
18712         insn alternatives.  Add missing alternatives.
18713         (*vec_concatv2di_rex64_sse4_1): Likewise.
18714         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
18715         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
18716         Require TARGET_SSE.
18717
18718 2008-05-15  Richard Guenther  <rguenther@suse.de>
18719
18720         PR tree-optimization/36009
18721         PR tree-optimization/36204
18722         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
18723         (determine_invariantness_stmt): Record the loop a store is
18724         always executed in.
18725         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
18726         dependency.
18727
18728 2008-05-15  Richard Guenther  <rguenther@suse.de>
18729
18730         PR tree-optimization/34330
18731         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
18732         through the pointer will alias the SMT.
18733
18734 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
18735
18736         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
18737
18738 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18739
18740         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
18741
18742 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
18743             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
18744
18745         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
18746         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
18747         (vashl_optab): New optab for vector/vector shifts.
18748         (vashr_optab): Ditto.
18749         (vlshr_optab): Ditto.
18750         (vrotl_optab): Ditto.
18751         (vrotr_optab): Ditto.
18752         (optab_subtype): New enum for optab_for_tree_code call.
18753         (optab_for_tree_code): Add enum optab_subtype argument.
18754
18755         * optabs.c (optab_for_tree_code): Take an additional argument to
18756         distinguish between a vector shift by a scalar and vector shift by
18757         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
18758         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
18759         vector shift by a vector.
18760         (expand_widen_pattern_expr): Pass additional argument to
18761         optab_for_tree_code.
18762
18763         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
18764         vrotl_optab, vrotr_optab.
18765
18766         * expr.c (expand_expr_real_1): Update calls to
18767         optab_for_tree_code to distinguish between vector shifted by a
18768         scalar and vector shifted by a vector.
18769         * tree-vectorizer.c (supportable_widening_operation): Ditto.
18770         (supportable_narrowing_operation): Ditto.
18771         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
18772         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
18773         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
18774         (vect_create_epilog_for_reduction): Ditto.
18775         (vectorizable_reduction): Ditto.
18776         (vectorizable_operation): Ditto.
18777         (vect_strided_store_supported): Ditto.
18778         (vect_strided_load_supported): Ditto.
18779         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
18780         * expmed.c (expand_shift): Ditto.
18781
18782         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
18783         scalar type.
18784         (ashr@var{m}3): Ditto.
18785         (vashl@var{m}3): Document new vector/vector shift standard name.
18786         (vashr@var{m}3): Ditto.
18787         (vlshr@var{m}3): Ditto.
18788         (vrotl@var{m}3): Ditto.
18789         (vrotr@var{m}3): Ditto.
18790
18791         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
18792         (PPERM_INVERT): Ditto.
18793         (PPERM_REVERSE): Ditto.
18794         (PPERM_REV_INV): Ditto.
18795         (PPERM_ZERO): Ditto.
18796         (PPERM_ONES): Ditto.
18797         (PPERM_SIGN): Ditto.
18798         (PPERM_INV_SIGN): Ditto.
18799         (PPERM_SRC1): Ditto.
18800         (PPERM_SRC2): Ditto.
18801
18802         * config/i386/sse.md (mulv2di3): Add SSE5 support.
18803         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
18804         allows a memory operand to be the value being added, and split it
18805         to improve vectorization.
18806         (sse5_pmacsdqh_mem): Ditto.
18807         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
18808         (sse5_mulv2div2di3_high): Ditto.
18809         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
18810         (vec_pack_trunc_v4si): Ditto.
18811         (vec_pack_trunc_v2di): Ditto.
18812         (sse5_pcmov_<mode>): Remove code that tried to use use
18813         andps/andnps instead of pcmov.
18814         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
18815         pmacsdqh instructions.
18816         (vec_widen_smult_lo_v4si): Ditto.
18817
18818         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
18819         (PPERM_INVERT): Ditto.
18820         (PPERM_REVERSE): Ditto.
18821         (PPERM_REV_INV): Ditto.
18822         (PPERM_ZERO): Ditto.
18823         (PPERM_ONES): Ditto.
18824         (PPERM_SIGN): Ditto.
18825         (PPERM_INV_SIGN): Ditto.
18826         (PPERM_SRC1): Ditto.
18827         (PPERM_SRC2): Ditto.
18828         (ix86_expand_sse_movcc): Move the SSE5 test after the if
18829         true/false tests.
18830         (ix86_expand_int_vcond): If SSE5 generate all possible integer
18831         comparisons.
18832         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
18833         says ignore whether the last reference is a memory operand.
18834
18835 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
18836             Paolo Bonzini <bonzini at gnu dot org>
18837
18838         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
18839         shift patterns.
18840
18841         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
18842         (vlshr<mode>3): Rename from vlshr<mode>3.
18843         (vashr<mode>3): Rename from vashr<mode>3.
18844         (mulv4sf3): Change the names of vector shift patterns.
18845         (mulv4si3): Ditto.
18846         (negv4sf2): Ditt.
18847
18848         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
18849         shift insns.
18850
18851         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
18852         (SI_SHLHI): Ditto.
18853         (SI_SHL): Ditto.
18854         (SI_SHLI): Ditto.
18855         (SI_ROTH): Ditto.
18856         (SI_ROTHI): Ditto.
18857         (SI_ROT): Ditto.
18858         (SI_ROTI): Ditto.
18859         (SPU_RL_0): Ditto.
18860         (SPU_RL_1): Ditto.
18861         (SPU_RL_2): Ditto.
18862         (SPU_RL_3): Ditto.
18863         (SPU_RL_4): Ditto.
18864         (SPU_RL_5): Ditto.
18865         (SPU_RL_6): Ditto.
18866         (SPU_RL_7): Ditto.
18867         (SPU_SL_0): Ditto.
18868         (SPU_SL_1): Ditto.
18869         (SPU_SL_2): Ditto.
18870         (SPU_SL_3): Ditto.
18871         (SPU_SL_4): Ditto.
18872         (SPU_SL_5): Ditto.
18873         (SPU_SL_6): Ditto.
18874         (SPU_SL_7): Ditto.
18875
18876         * config/spu/spu.md (v): New iterator macro to add v for vector types.
18877         (floatunssidf2_internal): Change vector/vector shift names.
18878         (floatunsdidf2_internal): Ditto.
18879         (mulv8hi3): Ditto.
18880         (ashrdi3): Ditto.
18881         (ashrti3): Ditto.
18882         (cgt_df): Ditto.
18883         (cgt_v2df): Ditto.
18884         (dftsv): Ditto.
18885         (vashl<mode>3): Rename from ashl<mode>3.
18886         (vashr<mode>3): Rename from ashr<mode>3.
18887         (vlshr<mode>3): Rename from lshr<mode>3.
18888         (vrotl<mode>3): Rename from rotl<mode>3.
18889
18890 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
18891
18892         PR target/36224
18893         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
18894         multiply gives the wrong value when doing widening multiplies.
18895         (vec_widen_smult_lo_v4si): Ditto.
18896
18897 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
18898
18899         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
18900         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
18901         emit_library_call_value.
18902         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
18903         * tree.h (ECF_LIBCALL_BLOCK): Removed.
18904         * calls.c (initialize_argument_information, precompute_arguments,
18905         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
18906         (precompute_arguments): Removed flags parameter.
18907         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
18908
18909 2008-05-14  Richard Guenther  <rguenther@suse.de>
18910
18911         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
18912         Make sure to register the store if the use is a PHI_NODE.
18913
18914 2008-05-14  Olivier Hainque  <hainque@adacore.com>
18915
18916         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
18917         memory if the component is to be referenced in BLKmode according
18918         to get_inner_reference.
18919
18920 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
18921
18922         * calls.c (emit_library_call_value_1): Restore code clearing
18923         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
18924
18925 2008-05-14  Olivier Hainque  <hainque@adacore.com>
18926             Nicolas Roche  <roche@adacore.com>
18927
18928         * configure.ac: Add support for a "gcc_subdir" variable in
18929         config-lang.in, to denote a subdirectory where the language/GCC
18930         integration files are to be found.
18931         * configure: Regenerate.
18932
18933 2008-05-14  Ira Rosen  <irar@il.ibm.com>
18934
18935         PR tree-optimization/36098
18936         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
18937         value for the first load in the group in case of a gap.
18938         (vect_build_slp_tree): Check that there are no gaps in loads.
18939
18940 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
18941
18942         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
18943         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
18944         expand_copysign_bit, ): Change call to emit_no_conflict_block to
18945         emit_insn and remove unneeded code to construct extra args.
18946         (emit_no_conflict_block): Removed.
18947         * optabls.h: (emit_no_conflict_block): Removed.
18948         * cse.c (cse_extended_basic_block): Remove search for
18949         REG_NO_CONFLICT note.
18950         * global.c: Removed incorrect comment added in revision 117.
18951         * expr.c (convert_move): Change call to emit_no_conflict_block to
18952         emit_insn.
18953         * recog.c: Change comments so that they do not mention
18954         REG_NO_CONFLICT.
18955         * local_alloc.c (combine_regs): Removed last parameter.
18956         (no_conflict_p): Removed.
18957         (block_alloc): Removed note, no_conflict_combined_regno and set
18958         local vars. Removed all code to process REG_NO_CONFLICT blocks.
18959         (combine_regs): Removed already_dead and code to look for
18960         REG_NO_CONFLICT notes.
18961         * lower_subreg (remove_retval_note): Removed code to look for
18962         REG_NO_CONFLICT block.
18963         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
18964         (resolve_clobber): Remove code to process libcalls that have
18965         REG_NO_CONFLICT notes.
18966         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
18967         case.
18968         * combine.c (can_combine_p, distribute_notes):  Removed
18969         REG_NO_CONFLICT case.
18970         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
18971         to emit_insns.
18972         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
18973         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
18974         Ditto.
18975         * reg-notes.def (NO_CONFLICT): Removed.
18976
18977 2008-05-14  David S. Miller  <davem@davemloft.net>
18978
18979         * config/sparc/sparc.c (sparc_profile_hook): If
18980         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
18981         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
18982         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
18983
18984 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
18985
18986         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
18987
18988 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
18989
18990         PR target/36222
18991         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
18992         and op1 expansion before vector concat to have less live pseudos.
18993
18994 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18995
18996         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
18997         ix86_expand_vector_set if supported.
18998
18999 2008-05-13  Diego Novillo  <dnovillo@google.com>
19000             Kenneth Zadeck  <zadeck@naturalbridge.com>
19001
19002         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
19003
19004         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
19005         phinodes_print_statistics, init_ssanames, fini_ssanames,
19006         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
19007         release_ssa_name, release_defs, replace_ssa_name_symbol,
19008         ssanames_print_statistics): Move ...
19009         * tree-flow.h: ... here.
19010         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
19011         Use FN instead of cfun.
19012         (make_ssa_name_fn): Rename from make_ssa_name.
19013         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
19014         * tree-flow-inline.h (make_ssa_name): Move from
19015         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
19016         * omp-low.c (expand_omp_parallel):
19017         * tree-flow-inline.h (redirect_edge_var_map_result):
19018         * tree-ssa.c (init_tree_ssa): Add argument FN.
19019         Use it instead of cfun.  Update all users.
19020
19021 2008-05-13  Tom Tromey  <tromey@redhat.com>
19022
19023         PR preprocessor/22168:
19024         * doc/cpp.texi (Top): Update menu.
19025         (Alternatives to Wrapper #ifndef): New node.
19026         (Other Directives): Document deprecation.
19027         (Obsolete Features): Remove menu.
19028         (Assertions): Merge node into Obsolete Features.
19029         (Obsolete once-only headers): Move earlier; rename to Alternatives
19030         to Wrapper #ifndef.
19031         * doc/cppopts.texi: Update.
19032         * c.opt (Wdeprecated): Enable for C and ObjC.
19033         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
19034         (C++ Dialect Options): Move -Wno-deprecated from here to...
19035         (Warning Options): ... here.
19036
19037 2008-05-13  Richard Guenther  <rguenther@suse.de>
19038
19039         PR middle-end/36227
19040         * fold-const.c (fold_sign_changed_comparison): Do not allow
19041         changes in pointer-ness.
19042
19043 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19044
19045         PR target/24713
19046         * config/sh/sh.c (sh_expand_prologue): Don't clear
19047         RTX_FRAME_RELATED_P for push insns.
19048
19049 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
19050
19051         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
19052
19053 2008-05-12  Anatoly Sokolov <aesok@post.ru>
19054
19055         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
19056         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
19057         Use 'machine->is_leaf' instead of 'leaf_func_p'.
19058
19059 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
19060
19061         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
19062         (*vec_concatv4sf_sse): This.
19063         (*sse2_concatv2si): Renamed to ...
19064         (*vec_concatv2si_sse2): This.
19065         (*sse1_concatv2si): Renamed to ...
19066         (*vec_concatv2si_sse): This.
19067         (*vec_concatv2di_rex): Renamed to ...
19068         (*vec_concatv2di_rex64): This.
19069         (*vec_concatv2si_sse4_1): New.
19070         (*vec_concatv2di_rex64_sse4_1): Likewise.
19071
19072 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
19073
19074         PR rtl-optimization/36111
19075         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
19076         that was created for swappable operands.
19077
19078 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
19079
19080         PR ada/36001
19081         * Makefile.in: Substitute GNATMAKE and GNATBIND.
19082         * configure.ac: Add call to ACX_PROG_GNAT.
19083
19084 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
19085
19086         * optc-gen.awk: Fix comment typo.
19087
19088 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
19089
19090         * pretty-print.c (pp_integer_with_precision): Use
19091         HOST_LONG_LONG_FORMAT.
19092
19093 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
19094
19095         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
19096
19097 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
19098
19099         * config/i386/i386.c (bdesc_ptest): Removed.
19100         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
19101         (bdesc_args): Add __builtin_ia32_ptestz128,
19102         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
19103         (ix86_init_mmx_sse_builtins): Updated.
19104         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
19105         (ix86_expand_builtin): Updated.
19106
19107 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
19108
19109         * tree-cfg.c (valid_fixed_convert_types_p): New function.
19110         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
19111
19112 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
19113
19114         * value-prof.c (interesting_stringop_to_profile): Do not
19115         return early for BUILT_IN_MEMPCPY.
19116
19117 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
19118
19119         * calls.c (expand_call): Don't use callgraph to increase
19120         preferred_stack_boundary.
19121
19122         * cgraph.h (cgraph_rtl_info): Use unsigned on
19123         preferred_incoming_stack_boundary.
19124
19125         * final.c (rest_of_clean_state): Use unsigned on
19126         preferred_stack_boundary.
19127
19128 2008-05-09  Tom Tromey  <tromey@redhat.com>
19129
19130         PR preprocessor/22231:
19131         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
19132         proceeding.
19133
19134 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
19135
19136         PR tree-optimization/36129
19137         * tree-ssa-ccp.c: Include value-prof.h.
19138         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
19139         built-in function was folded to a constant.
19140         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
19141
19142 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
19143             Sebastian Pop  <sebastian.pop@amd.com>
19144
19145         * tree-scalar-evolution.c: Document instantiate_scev.
19146         (instantiate_parameters_1): Renamed instantiate_scev_1.
19147         Don't use the same loop for instantiation_loop and evolution_loop.
19148         (instantiate_scev): New.
19149         (instantiate_parameters): Moved...
19150         (resolve_mixers): Update call to instantiate_scev_1 to pass the
19151         same loop twice.  Maintains the semantics for this function.
19152         * tree-scalar-evolution.h (instantiate_scev): Declare.
19153         (instantiate_parameters): ...here.  Now static inline.
19154         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
19155         instead of resolve_mixers.
19156
19157 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
19158
19159         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
19160
19161 2008-05-09  Tomas Bily  <tbily@suse.cz>
19162
19163         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
19164         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
19165         * tree-ssa-structalias.c (get_constraint_for): Likewise.
19166         * c-common.c (c_common_truthvalue_conversion): Likewise.
19167         * tree-object-size.c (compute_object_offset): Likewise.
19168         * tree-inline.c (estimate_num_insns_1): Likewise.
19169         * varasm.c (const_hash_1, compare_constant, copy_constant)
19170         (compute_reloc_for_constant, output_addressed_constants)
19171         (initializer_constant_valid_p): Likewise.
19172         * c-omp.c (check_omp_for_incr_expr): Likewise.
19173         * gimplify.c (gimplify_expr): Likewise.
19174         * c-typeck.c (c_finish_return): Likewise.
19175         * tree-vectorizer.c (supportable_widening_operation)
19176         (supportable_narrowing_operation): Likewise.
19177         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
19178         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
19179         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
19180         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
19181         (descr_info_loc): Likewise.
19182         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
19183         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
19184         (fold_unary): Likewise.
19185         * builtins.c (get_pointer_alignment): Likewise.
19186         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
19187         (instantiate_parameters_1): Likewise.
19188         * tree.c (expr_align, stabilize_reference): Likewise.
19189         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
19190         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
19191         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
19192         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
19193         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
19194         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
19195         Likewise.
19196         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
19197         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
19198         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
19199         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
19200         (forward_propagate_comparison)
19201         (tree_ssa_forward_propagate_single_use_vars): Likewise.
19202         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
19203         * emit-rtl.c (component_ref_for_mem_expr)
19204         (set_mem_attributes_minus_bitpos): Likewise.
19205         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
19206         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
19207         Likewise.
19208         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
19209         (build_function_call, pointer_diff, build_compound_expr)
19210         (c_finish_return): Likewise.
19211         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
19212         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
19213         Likewise.
19214         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
19215         * expr.c (is_aligning_offset): Likewise.
19216         * tree-ssa-alias.c (is_escape_site): Likewise.
19217         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
19218         (check_all_va_list_escapes): Likewise.
19219         * tree-ssa-loop-ivopts.c (determine_base_object)
19220         (determine_common_wider_type): Likewise.
19221         * dojump.c (do_jump): Likewise.
19222         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
19223         * tree-gimple.c (is_gimple_cast): Likewise.
19224         * fold-const.c (decode_field_reference, )
19225         (fold_sign_changed_comparison, fold_unary, fold_comparison)
19226         (fold_binary): Likewise.
19227         * tree-ssa-alias-warnings.c (find_alias_site_helper)
19228         (already_warned_in_frontend_p): Likewise.
19229         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
19230         * tree.c (really_constant_p, get_unwidened): Likewise.
19231         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
19232         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
19233         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
19234         Likewise.
19235         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
19236         CONVERT_EXPR_P.
19237         (CONVERT_EXPR_P): Define.
19238         (CASE_CONVERT): Define.
19239
19240 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
19241
19242         PR middle-end/36117
19243         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
19244         (delete_unmarked_insns): When deleting a call, call
19245         delete_unreachable_blocks.
19246         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
19247         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
19248
19249 2008-05-08  Richard Guenther  <rguenther@suse.de>
19250
19251         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
19252         (-ftree-salias): Likewise.
19253         (salias-max-implicit-fields): Remove param documentation.
19254         (salias-max-array-elements): Likewise.
19255         * tree-pass.h (pass_create_structure_vars): Remove.
19256         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
19257         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
19258         * tree-ssa-alias.c (create_structure_vars): Remove.
19259         (gate_structure_vars): Likewise.
19260         (pass_create_structure_vars): Likewise.
19261         (gate_build_alias): Likewise.
19262         (pass_build_alias): Adjust to run always and dump the function.
19263         * common.opt (ftree-salias): Hide.
19264         * passes.c (init_optimization_passes): Remove
19265         pass_create_structure_vars, adjust comment.
19266         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
19267         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
19268         * opts.c (decode_options): Do not set flag_tree_salias.
19269         (common_handle_option): Add OPT_ftree_salias to the backward
19270         compatibility section.
19271
19272 2008-05-08  Richard Guenther  <rguenther@suse.de>
19273
19274         * tree-flow-inline.h (var_can_have_subvars): Move ...
19275         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
19276         * tree-flow.h (var_can_have_subvars): Remove.
19277         (push_fields_onto_fieldstack): Remove.
19278         (sort_fieldstack): Likewise.
19279         (struct fieldoff): Move ...
19280         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
19281         alias_set and base_for_components fields.
19282         (sort_fieldstack): Make static.
19283         (push_fields_onto_fieldstack): Likewise.  Remove code that
19284         handles anything but RECORD_TYPEs.  Remove alias_set and
19285         base_for_components handling.
19286         (create_variable_info_for): Adjust.
19287
19288 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
19289
19290         * common.opt (Wframe-larger-than=): Shorten the help message
19291         to one line.
19292         * doc/invoke.texi (Wframe-larger-than=): Add more description.
19293
19294 2008-05-08  Rafael Espíndola  <espindola@google.com>
19295
19296         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
19297         trap.
19298         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
19299         trap and that both operands are gimple values.
19300         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
19301         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
19302         is a fp operation.
19303
19304 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
19305
19306         * read-rtl.c (join_c_conditions): Return the first string if the
19307         two strings are equal.
19308
19309 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
19310
19311         * gensupport.h (pred_data): Add a "num_codes" field.
19312         (add_predicate_code): Declare.
19313         * gensupport.c (add_predicate_code): New function.
19314         (std_pred_table): Add an "allows_const_p" field.
19315         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
19316         Remove the (incomplete) list of such codes from the codes field.
19317         (init_predicate_table): Use add_predicate_code.  Add all
19318         RTX_CONST_OBJs if allows_const_p is true.
19319         * genrecog.c (process_define_predicate): Use add_predicate_code.
19320
19321 2008-05-08  David Daney  <ddaney@avtrex.com>
19322             Richard Sandiford  <rsandifo@nildram.co.uk>
19323
19324         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
19325         special case of constant zero operands.
19326         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
19327         old and new values.  Special case constant zero values.
19328         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
19329         fails.
19330         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
19331         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
19332
19333 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
19334
19335         PR target/36090
19336         * simplify-rtx.c (simplify_plus_minus): Create CONST of
19337         similar RTX_CONST_OBJ before CONST_INT.
19338
19339 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
19340
19341         * stmt.c (expand_stack_restore): Change sa mode if needed.
19342
19343 2008-05-08  Richard Guenther  <rguenther@suse.de>
19344
19345         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
19346         return type to bool.
19347         (ix86_sol10_return_in_memory): Likewise.
19348         (ix86_i386elf_return_in_memory): Likewise.
19349         (ix86_i386interix_return_in_memory): Likewise.
19350         * config/i386/i386.c (ix86_return_in_memory): Likewise.
19351         (ix86_sol10_return_in_memory): Likewise.
19352         (ix86_i386elf_return_in_memory): Likewise.
19353         (ix86_i386interix_return_in_memory): Likewise.
19354
19355 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
19356
19357         PR bootstrap/36180
19358         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
19359         fndecl argument.
19360         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
19361         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
19362         declared in front.
19363
19364 2008-05-08  Richard Guenther  <rguenther@suse.de>
19365
19366         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
19367         * tree-data-ref.h (struct dr_alias): Remove subvars field.
19368         (DR_SUBVARS): Remove.
19369         * tree-dfa.c (dump_subvars_for): Remove.
19370         (debug_subvars_for): Likewise.
19371         (dump_variable): Do not dump subvars.
19372         (remove_referenced_var): Do not remove subvars.
19373         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
19374         (lookup_subvars_for_var): Remove.
19375         (get_subvars_for_var): Likewise.
19376         (get_subvars_at): Likewise.
19377         (get_first_overlapping_subvar): Likewise.
19378         (overlap_subvar): Likewise.
19379         * tree-flow.h (subvar_t): Remove.
19380         (struct var_ann_d): Remove subvars field.
19381         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
19382         argument.  Remove special handling of SFTs.
19383         (compute_tag_properties): Likewise.
19384         (set_initial_properties): Likewise.
19385         (compute_call_clobbered): Likewise.
19386         (count_mem_refs): Likewise.
19387         (compute_memory_partitions): Likewise.
19388         (compute_flow_insensitive_aliasing): Likewise.
19389         (setup_pointers_and_addressables): Likewise.
19390         (new_type_alias): Likewise.
19391         (struct used_part): Remove.
19392         (used_portions): Likewise.
19393         (struct used_part_map): Likewise.
19394         (used_part_map_eq): Likewise.
19395         (used_part_map_hash): Likewise.
19396         (free_used_part_map): Likewise.
19397         (up_lookup): Likewise.
19398         (up_insert): Likewise.
19399         (get_or_create_used_part_for): Likewise.
19400         (create_sft): Likewise.
19401         (create_overlap_variables_for): Likewise.
19402         (find_used_portions): Likewise.
19403         (create_structure_vars): Likewise.
19404         * tree.def (STRUCT_FIELD_TAG): Remove.
19405         * tree.h (MTAG_P): Adjust.
19406         (struct tree_memory_tag): Remove base_for_components and
19407         unpartitionable flags.
19408         (struct tree_struct_field_tag): Remove.
19409         (SFT_PARENT_VAR): Likewise.
19410         (SFT_OFFSET): Likewise.
19411         (SFT_SIZE): Likewise.
19412         (SFT_NONADDRESSABLE_P): Likewise.
19413         (SFT_ALIAS_SET): Likewise.
19414         (SFT_UNPARTITIONABLE_P): Likewise.
19415         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
19416         (union tree_node): Remove sft field.
19417         * alias.c (get_alias_set): Remove special handling of SFTs.
19418         * print-tree.c (print_node): Remove handling of SFTs.
19419         * tree-dump.c (dequeue_and_dump): Likewise.
19420         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
19421         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
19422         * tree-predcom.c (set_alias_info): Do not set subvars.
19423         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
19424         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
19425         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
19426         (add_vars_for_offset): Remove.
19427         (add_virtual_operand): Remove special handling of SFTs.
19428         (add_call_clobber_ops): Likewise.
19429         (add_call_read_ops): Likewise.
19430         (get_asm_expr_operands): Likewise.
19431         (get_modify_stmt_operands): Likewise.
19432         (get_expr_operands): Likewise.
19433         (add_to_addressable_set): Likewise.
19434         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
19435         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
19436         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
19437         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
19438         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
19439         (tree_node_structure): Likewise.
19440         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
19441         handling of SFTs.
19442         (find_what_p_points_to): Likewise.
19443
19444 2008-05-08  Sa Liu  <saliu@de.ibm.com>
19445
19446         * config/spu/spu.md: Fixed subti3 pattern.
19447
19448 2008-05-08  Richard Guenther  <rguenther@suse.de>
19449
19450         PR middle-end/36154
19451         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
19452         sure to create a representative for trailing arrays for PTA.
19453
19454 2008-05-08  Richard Guenther  <rguenther@suse.de>
19455
19456         PR middle-end/36172
19457         * fold-const.c (operand_equal_p): Two objects which types
19458         differ in pointerness are not equal.
19459
19460 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
19461
19462         * calls.c (compute_argument_block_size): Add argument tree fndecl.
19463         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
19464         (emit_library_call_value_1): Add new variable fndecl initialized by
19465         NULL_TREE. It should be the decl type of orgfun, but this information
19466         seems not to be available here, so it uses the default calling abi.
19467         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
19468         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
19469         by TARGET_RETURN_IN_MEMORY.
19470         * config/i386/i386-interix.h: Likewise.
19471         * config/i386/i386.h: Likewise.
19472         * config/i386/i386elf.h: Likewise.
19473         * config/i386/ptx4-i.h: Likewise.
19474         * config/i386/sol2-10.h: Likewise.
19475         * config/i386/sysv4.h: Likewise.
19476         * config/i386/vx-common.h: Likewise.
19477         * config/cris/cris.h: Removed #if 0 clause.
19478         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
19479         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
19480         argument.
19481         (ix86_sol10_return_in_memory): Likewise.
19482         (ix86_i386elf_return_in_memory): New.
19483         (ix86_i386interix_return_in_memory): New.
19484         * config/mt/mt-protos.h (mt_return_in_memory): New.
19485         * config/mt/mt.c: Likewise.
19486         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
19487         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
19488         * config/bfin/bfin.h: Likewise.
19489         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
19490         argument.
19491         * config/bfin/bfin.c: Likewise.
19492         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
19493         * config/alpha/unicosmk.h: Likewise.
19494         * config/i386/cygming.h: Likewise.
19495         * config/iq2000/iq2000.h: Likewise.
19496         * config/mips/mips.h: Likewise.
19497         * config/mn10300/mn10300.h: Likewise.
19498         * config/rs6000/rs6000.h: Likewise.
19499         * config/score/score.h: Likewise.
19500         * config/spu/spu.h: Likewise.
19501         * config/v850/v850.h: Likewise.
19502         * defaults.h: Likewise.
19503         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
19504         * expr.c (emit_block_move): Adjust use of
19505         OUTGOING_REG_PARM_STACK_SPACE.
19506         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
19507         OUTGOING_REG_PARM_STACK_SPACE.
19508         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
19509
19510 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
19511
19512         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
19513         on OMP_RETURN for OMP_FOR.
19514
19515         PR debug/35896
19516         * dwarf2out.c (dw_expand_expr, common_check): Removed.
19517         (fortran_common): New function.
19518         (gen_variable_die): Call fortran_common instead of common_check,
19519         adjust for it returning tree instead of rtx.  Formatting.
19520
19521 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
19522
19523         PR rtl/7335
19524         PR rtl/33826
19525         * see.c (see_copy_insn): Copy new pure const attributes for new call.
19526         * c-decl.c (merge_decls): Ditto.
19527         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
19528         to RTL_CONST_OR_PURE_CALL_P.
19529         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
19530         Initialized DECL_LOOPING_CONST_PURE.
19531         (process_call_operands): Set tree_side_effects properly.
19532         * tree.h (TREE_READONLY_DECL_P): Removed.
19533         (DECL_IS_PURE): Renamed to DECL_PURE_P.
19534         (DECL_LOOPING_OR_CONST_P): New macro.
19535         (struct tree_function_decl): Added looping_const_or_pure_p.
19536         (ECF_*) Renumbered.
19537         (ECF_LOOPING_OR_CONST_P): New macro.
19538         * rtlanal.c (pure_const_p): Removed.
19539         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
19540         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
19541         to RTL_CONST_CALL_P.
19542         * ipa-pure-const.c (pure_const_state_e): Added looping field.
19543         (check_decl, check_tree, check_call, scan_function): Initialize
19544         looping.
19545         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
19546         (static_execute): Set looping true for recursive functions.
19547         Undo setting state to IPA_NEITHER for recursive functions.
19548         * cse.c (cse_insn):
19549         * ifcvt.c (noce_can_store_speculate_p): Changed
19550         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
19551         RTL_CONST_OR_PURE_CALL_P.
19552         * dse.c (scan_insn): Ditto.
19553         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
19554         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
19555         RTL_CONST_OR_PURE_CALL_P.
19556         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
19557         pure_call_p to RTL_CONST_CALL_P.
19558         * gimplify.c (gimplify_call_expr): Clear side effects for
19559         non-looping pure and constant calls.
19560         * calls.c (emit_call_1): Set rtl flags from ecf flags.
19561         (flags_from_decl_or_type): Set ecf flags from decl flags.
19562         (initialize_argument_information): Turn off
19563         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
19564         Change const to pure if callee_copies is true rather than just
19565         turning off const.
19566         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
19567         way of marking pure calls.
19568         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
19569         Remove hack that was supposed to fix pr7335 and remove old
19570         way of marking pure calls.
19571         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
19572         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
19573         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
19574         RTL_CONST_OR_PURE_CALL_P.
19575         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
19576         * loop-invariant.c (find_exits, find_invariant_bb): Changed
19577         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
19578         * sched-deps.c (schedule_analyze): Ditto.
19579         * rtl.h (struct rtx_def): Use call field, unchanging field, and
19580         return_val field of calls to represent pure and const function info.
19581         (CONST_OR_PURE_CALL_P): Deleted macro.
19582         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
19583         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
19584         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
19585         TREE_READONLY.
19586         * tree-optimize.c (execute_fixup_cfg): Added test for
19587         ECF_LOOPING_CONST_OR_PURE.
19588         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
19589         DECL_PURE_P.
19590         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
19591         effects for looping pure or const calls.
19592         (verify_gimple_expr): Added verification code.
19593         * config/alpha/alpha.c (alpha_legitimize_address,
19594         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
19595         RTL_CONST_CALL_P.
19596         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
19597         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
19598         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
19599         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
19600         RTL_CONST_OR_PURE_CALL_P.
19601         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
19602         and const calls to be deleted.
19603
19604 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
19605
19606         PR target/35714
19607         * config/i386/mmx.md (mmx_subv2sf3): New expander.
19608         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
19609         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
19610         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
19611         to handle nonimmediate operands.
19612         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
19613         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
19614         to handle nonimmediate operands.
19615         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
19616         (mmx_pmulhrwv4hi3): New expander.  Use
19617         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19618         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
19619         (sse2_umulv1siv1di3): New expander.  Use
19620         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19621         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
19622         (mmx_eq<mode>3): New expander.  Use
19623         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19624         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
19625         (mmx_uavgv8qi3): New expander.  Use
19626         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19627         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
19628         (mmx_uavgv4hi3): New expander.  Use
19629         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19630
19631         * config/i386/sse.md
19632         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
19633         to handle nonimmediate operands.
19634         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
19635         to handle nonimmediate operands.
19636         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
19637         to handle nonimmediate operands.
19638         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
19639         to handle nonimmediate operands.
19640         (sse2_unpckhpd_exp): New expander.  Use
19641         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19642         (sse2_unpcklpd_exp): New expander.  Use
19643         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19644         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
19645         to handle nonimmediate operands.
19646         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
19647         to handle nonimmediate operands.
19648         (*sse2_<plusminus_insn><mode>3): Rename from
19649         sse2_<plusminus_insn><mode>3 insn pattern.
19650         (sse2_<plusminus_insn><mode>3): New expander.  Use
19651         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19652         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
19653         (sse2_umulv2siv2di3): New expander.  Use
19654         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19655         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
19656         (sse4_1_mulv2siv2di3): New expander.  Use
19657         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19658         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
19659         (sse2_pmaddwd): New expander.  Use
19660         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19661         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
19662         (sse2_eq<mode>3): New expander.  Use
19663         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19664         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
19665         (sse4_1_eqv2di3): New expander.  Use
19666         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19667         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
19668         (sse2_uavgv16qi3): New expander.  Use
19669         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19670         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
19671         (sse2_uavgv16qi3): New expander.  Use
19672         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19673         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
19674         (sse2_uavgv8hi3): New expander.  Use
19675         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19676         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
19677         (ssse3_pmulhrswv8hi3): New expander.  Use
19678         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19679         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
19680         (ssse3_pmulhrswv4hi3): New expander.  Use
19681         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19682
19683         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
19684         (<sse>_vmmul<mode>3): Ditto.
19685         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
19686         (divv2df3): Ditto.
19687         (ssse3_pmaddubsw128): Use register_operand for operand 1.
19688         (ssse3_pmaddubsw): Ditto.
19689
19690         * config/i386/i386.c (struct_builtin_description)
19691         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
19692         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
19693         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
19694         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
19695         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
19696         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
19697         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
19698         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
19699         (ix86_fixup_binary_operands): Assert that src1
19700         and src2 must have the same mode when swapped.
19701         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
19702         and ix86_binary_operator_ok.  Do not force operands in registers
19703         when optimizing.
19704
19705 2008-05-07  Jan Hubicka  <jh@suse.cz>
19706
19707         * cgraph.c (dump_cgraph_node): Update.
19708         * cgraph.h (cgraph_local_info): Break out inline summary.
19709         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
19710         hook.
19711         * ipa-inline (inline_summary): New accestor function.
19712         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
19713         cgraph_decide_inlining, compute_inline_parameters): Update.
19714         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
19715
19716 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
19717
19718         Cleanup ColdFire scheduling support and add V4 pipeline model.
19719
19720         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
19721         (define_attr cpu): Add cfv4 value.
19722         (define_attr type, define_attr type1): Merge into a single 'type'
19723         attribute.  Update all uses.
19724         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
19725         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
19726         Update all uses.
19727         (define_attr opx_mem, define_attr opy_mem): Remove.
19728         (define_attr op_mem): Clean up, update comment.
19729         (define_attr size): Use specific values instead of general int.
19730         (define_attr guess, define_attr split): Remove.  Update all uses.
19731         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
19732         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
19733         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
19734         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
19735         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
19736         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
19737         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
19738         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
19739         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
19740         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
19741         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
19742         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
19743         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
19744         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
19745         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
19746         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
19747         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
19748         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
19749         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
19750         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
19751         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
19752         Update or set attributes.
19753         (stack_tie): New fake instruction.
19754
19755         * config/m68k/m68k.h (TUNE_CFV4): New macro.
19756         (m68k_sched_attr_size): Update declaration.
19757         (m68k_sched_attr_type2): Remove.
19758         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
19759         Declare new bypass predicates.
19760
19761         * config/m68k/m68k.c (m68k_sched_issue_rate,
19762         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
19763         implementations.
19764         (TARGET_SCHED_ISSUE_RATE,
19765         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
19766         (override_options): Handle scheduling for ColdFire V4 core.
19767         (m68k_expand_prologue): Emit stack_tie.
19768         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
19769         'OP_TYPE_FPN'.  Update all uses.
19770         (sched_guess_p): Remove.
19771         (sched_address_type): Handle symbolic addresses.
19772         (sched_get_operand): New static function.
19773         (sched_operand_type): Merge into sched_attr_op_type.
19774         (sched_attr_op_type): Handle FP registers, handle quick constants,
19775         update.
19776         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
19777         (m68k_sched_attr_size): Update.  Move logic to ...
19778         (sched_get_attr_size_int): New static function.
19779         (sched_get_opxy_mem_type): New static function.
19780         (m68k_sched_attr_op_mem): Update.
19781         (m68k_sched_attr_type2): Remove.
19782         (sched_cfv4_bypass_data): New static variable.
19783         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
19784         (m68k_sched_issue_rate): Implement scheduler hook.
19785         (struct _sched_ib: enabled_p): New field.
19786         (m68k_sched_variable_issue): Update.  Handle V4.
19787         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
19788         sched_dump_class_func_t, sched_dump_split_class,
19789         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
19790         sched_dump_dfa_class, m68k_sched_dump): Remove.
19791         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
19792         hook.
19793         (m68k_sched_init_global): Remove statisctics dumping, introduce
19794         sanity check that all instructions have pipeline reservations.  Handle
19795         ColdFire V4 core.
19796         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
19797         Handle ColdFire V4 core.
19798         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
19799         New static functions.
19800         (m68k_sched_address_bypass_p): New bypass predicate.
19801         (sched_get_indexed_address_scale): New static function.
19802         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
19803
19804         * cf.md: Update comments.
19805         (define_attr type2): Remove.  Use 'type' attribute instead.
19806         Update all uses.
19807         (cf_ib): Rename to cfv123_ib.  Update all uses.
19808         (cf_oep): Rename to cfv123_oep.  Update all uses.
19809         (cf_chr): Rename to cfv123_chr.  Update all uses.
19810         (cf_mem): Rename to cfv123_mem.  Update all uses.
19811         (cf_mac): Move to more appropriate place.
19812         (cfv123_guess): New automaton and cpu_unit.
19813         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
19814         Update uses of 'size' attribute.  Handle before reload scheduling.
19815         (cfv123_guess): New dummy reservation for unhandled instructions.
19816         (cfv4_*): Pipeline description of ColdFire V4 core.
19817         (ignore): New reservation to handle 'ignore' type.
19818
19819 2008-05-07  Ian Lance Taylor  <iant@google.com>
19820
19821         PR middle-end/36013
19822         * gimplify.c (find_single_pointer_decl_1): Don't look through
19823         indirections.
19824         (find_single_pointer_decl): Adjust comments.
19825
19826 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
19827
19828         PR middle-end/36137
19829         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
19830         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
19831
19832         PR middle-end/36106
19833         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
19834         integral type rather than floating point, then VIEW_CONVERT_EXPR
19835         to the floating point type.
19836
19837 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
19838
19839         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
19840         TFmode op0 to register.
19841
19842 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
19843
19844         * c-decl.c (grokdeclarator): Comment typo.
19845
19846 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
19847
19848         * tree-flow.h: Remove prototype for computed_goto_p.
19849         * tree-cfg.c (computed_goto_p): Make static.
19850
19851 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
19852
19853         PR target/35657
19854         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
19855         (contains_aligned_value_p): This.  Handle _Decimal128.
19856         (ix86_function_arg_boundary): Only align _Decimal128 to its
19857         natural boundary and handle it properly.
19858
19859 2008-05-06  Martin Jambor  <mjambor@suse.cz>
19860
19861         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
19862         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
19863         (ipcp_method_set_orig_node): Removed.
19864         (ipcp_cval_get_cvalue_type): Removed.
19865         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
19866         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
19867         (ipcp_cval_set_cvalue_type): Removed.
19868         (ipcp_cval_get_cvalue): Removed.
19869         (ipcp_cval_set_cvalue): Removed.
19870         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
19871         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
19872         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
19873         (ipcp_cval_meet): Renamed to ipa_lattice_meet
19874         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
19875         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
19876         (ipcp_get_ith_lattice): Changed parameters.
19877         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
19878         (ipcp_lattice_from_jfunc): Changed parameters.
19879         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
19880         (ipcp_method_cval_print): Added temporary variable info.
19881         (ipcp_redirect): Removed already unused local variable caller.
19882         (ipcp_redirect): New temporary variable orig_callee_info
19883         (ipcp_redirect): Removed newly unused local variable callee.
19884         (ipcp_redirect): Removed (a bit confusing) local variable type.
19885         (ipcp_insert_stage): Added local variable info.
19886         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
19887         renamed too
19888         (ipcp_formal_create): Removed.
19889         (ipcp_method_cval_set): Removed.
19890         (ipcp_propagate_stage): Renamed lattice variables.
19891         (ipcp_method_cval_set_cvalue_type): Removed.
19892         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
19893         (ipcp_print_all_lattices): Changed printed strings to refer to
19894         lattices rather than cvals.
19895         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
19896         (ipcp_propagate_const): Changed formal parameters.
19897         (build_const_val): Changed formal parameters.
19898         (ipcp_insert_stage): Removed useless variable cvalue
19899         (build_const_val): Changed formal parameters.
19900         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
19901         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
19902         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
19903         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
19904         (ipcp_print_func_profile_counts): Changed string from "method" to
19905         "function"
19906         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
19907         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
19908         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
19909         (ipcp_structures_print): Renamed to ipcp_print_all_structures
19910         (ipcp_profile_print): Renamed to ipcp_print_profile_data
19911         (ipcp_lat_is_const): Changed parameters and made inline.
19912         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
19913         (ipcp_redirect): Renamed to ipcp_need_redirect_p
19914         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
19915         the predicate condition directly
19916         (ipcp_propagate_stage): Added local variable args. Removed local
19917         variable callee.  (Both are mere code simplifications.)
19918         (ipcp_method_dont_insert_const): Renamed to
19919         ipcp_node_not_modifiable_p.
19920         (ipcp_node_not_modifiable_p): Made inline.
19921         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
19922         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
19923         (ipcp_print_all_lattices): Removed variable cvalue
19924         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
19925         Updated comments.
19926
19927 2008-05-06  Olivier Hainque  <hainque@adacore.com>
19928
19929         * tree-sra.c (try_instantiate_multiple_fields): Early return
19930         if field has POINTER_TYPE.
19931
19932 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
19933
19934         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
19935         by using 'q' specifier for instruction.
19936         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
19937
19938 2008-05-06  Anatoly Sokolov <aesok@post.ru>
19939
19940         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
19941         Change mode of zero_extract from QImode to HImode.
19942         (sign bit tests peepholes): (Ditto.).
19943
19944 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
19945
19946         * config/i386/mmx.md: Remove double backslashes from asm templates.
19947         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
19948         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
19949         to handle nonimmediate operands.
19950         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
19951         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
19952         to handle nonimmediate operands.
19953         (*mmx_<code>v2sf3_finite): New insn pattern.
19954         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
19955         (mmx_<code>v2sf3): New expander.  Use
19956         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19957         (mmx_<plusminus_insn><mode>3): New expander.  Use
19958         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19959         (*mmx_<plusminus_insn><mode>3): New insn pattern.
19960         (mmx_add<mode>3): Removed.
19961         (mmx_ssadd<mode>3): Ditto.
19962         (mmx_usadd<mode>3): Ditto.
19963         (mmx_sub<mode>3): Ditto.
19964         (mmx_sssub<mode>3): Ditto.
19965         (mmx_ussub<mode>3): Ditto.
19966         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
19967         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
19968         to handle nonimmediate operands.
19969         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
19970         insn pattern.
19971         (mmx_smulv4hi3_highpart): New expander.  Use
19972         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19973         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
19974         insn pattern.
19975         (mmx_umulv4hi3_highpart): New expander.  Use
19976         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19977         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
19978         (mmx_<code>v4hi3): New expander.  Use
19979         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19980         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
19981         (mmx_<code>v8qi3): New expander.  Use
19982         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19983         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
19984         (mmx_<code><mode>3): New expander.  Use
19985         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19986
19987 2008-05-05  Jan Hubicka  <jh@suse.cz>
19988
19989         PR tree-optimization/36118
19990         * passes.c (pass_init_dump_file): Fix dump header.
19991
19992 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19993
19994         PR middle-end/36141
19995         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
19996         VCE for function decls.
19997
19998 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
19999
20000         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
20001
20002 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
20003
20004         * config/i386/i386.md (sat_plusminus): New.
20005         (plusminus_insn): Likewise.
20006         (plusminus_mnemonic): Likewise.
20007         (addsub): Removed.
20008         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
20009         (*<addsub><mode>3_cc_overflow): Renamed to ...
20010         (*<plusminus_insn><mode>3_cc_overflow): This.
20011         (*<addsub>si3_zext_cc_overflow): Renamed to ...
20012         (*<plusminus_insn>si3_zext_cc_overflow): This.
20013
20014         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
20015         (<plusminus_insn><mode>3): This.
20016         (*<addsub><mode>3): Renamed to ...
20017         (*<plusminus_insn><mode>3): This.
20018         (<sse>_vm<addsub><mode>3): Renamed to ...
20019         (<sse>_vm<plusminus_insn><mode>3): This.
20020         (sse3_h<addsub>v4sf3): Renamed to ...
20021         (sse3_h<plusminus_insn>v4sf3): This.
20022         (sse3_h<addsub>v2df3): Renamed to ...
20023         (sse3_h<plusminus_insn>v2df3): This.
20024         (<plusminus_insn><mode>3): New.
20025         (*<plusminus_insn><mode>3): Likewise.
20026         (sse2_<plusminus_insn><mode>3): Likewise.
20027         (add<mode>): Removed.
20028         (*add<mode>3): Likewise.
20029         (sse2_ssadd<mode>3): Likewise.
20030         (sse2_usadd<mode>3): Likewise.
20031         (sub<mode>3): Likewise.
20032         (*sub<mode>3): Likewise.
20033         (sse2_sssub<mode>3): Likewise.
20034         (sse2_ussub<mode>3): Likewise.
20035
20036 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
20037
20038         * gthr-single.h: Add in required interface elements as per gthr.h.
20039         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
20040         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
20041         Generalize UNUSED macro.
20042         (__gthread_once): Add.
20043         (__gthread_key_create): Add.
20044         (__gthread_key_delete): Add.
20045         (__gthread_getspecific): Add.
20046         (__gthread_setspecific): Add.
20047
20048 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
20049
20050         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
20051         the same size types for the indirect reference on the rhs, then
20052         create a VCE.
20053
20054 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
20055
20056         * config/i386/i386.md
20057         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
20058         one insn template instead of template series.
20059         (*xordi_1_rex64): Ditto.
20060         (*xordi_2_rex64): Ditto.
20061
20062 2008-05-05  Ira Rosen  <irar@il.ibm.com>
20063
20064         PR tree-optimization/36119
20065         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
20066         in case of SLP.
20067
20068 2008-06-04  Jan Hubicka  <jh@suse.cz>
20069
20070         tree-optimization/36100
20071         * tree-pass.h (pass_O0_always_inline): Declare.
20072         * ipa-inline.c (inline_transform): Remove dead code.
20073         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
20074         pass_O0_always_inline): New.
20075         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
20076
20077 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
20078
20079         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
20080         mnemonic in this_param move for TARGET_64BIT.
20081
20082 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
20083
20084         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
20085         (*strmovsi_rex_1): Ditto.
20086         (*strsetsi_1): Ditto.
20087         (*strsetsi_rex_1): Ditto.
20088
20089         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
20090         adddicc expanders using SWI mode iterator.
20091
20092 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
20093
20094         PR target/36121
20095         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
20096         argument handling.
20097
20098 2008-05-04  David S. Miller  <davem@davemloft.net>
20099
20100         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
20101         (sparc*-*-linux*): Use linux.h in tm_file.
20102         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
20103         compiler defaulting to 32-bit.
20104         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
20105         no longer needed.
20106         * config/sparc/linux.h: Remove definitions now obtained
20107         properly from linux.h
20108         * config/sparc/linux64.h: Likewise.
20109         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
20110         don't want this setting for 32-bit builds in a biarch compiler.
20111         * doc/install.texi: Add sparc-linux to list of targets
20112         supporting --enable-targets=all.
20113
20114 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
20115
20116         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
20117
20118 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
20119
20120         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
20121         after V4SI_FTYPE_V8HI.
20122         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
20123         case V4SI_FTYPE_V2DF.
20124
20125 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
20126
20127         * doc/invoke.texi (max-flow-memory-locations): Removed.
20128         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
20129
20130 2008-05-03  Richard Guenther  <rguenther@suse.de>
20131
20132         PR middle-end/34973
20133         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
20134
20135 2008-05-02  David S. Miller  <davem@davemloft.net>
20136
20137         * config.gcc (need_64bit_hwint): Document libcpp dependency.
20138
20139 2008-05-02  Simon Baldwin <simonb@google.com>
20140
20141         PR bootstrap/36108
20142         * c-common.h (warn_array_subscript_range): Removed.
20143         * c-common.c (warn_array_subscript_range): Ditto.
20144         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
20145         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
20146
20147 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
20148
20149         * config/i386/i386.c (ix86_special_builtin_type): New.
20150         (bdesc_special_args): Likewise.
20151         (ix86_expand_special_args_builtin): Likewise.
20152         (ix86_init_mmx_sse_builtins): Updated.
20153         (ix86_expand_builtin): Updated.
20154         (ix86_expand_store_builtin): Removed.
20155         (ix86_expand_unop_builtin): Likewise.
20156
20157         * config/i386/mm3dnow.h (__v2sf): Moved to ...
20158         * config/i386/mmintrin.h (__v2sf): Here.
20159
20160         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
20161         const __v2sf.
20162         (_mm_loadl_pi): Likewise.
20163         (_mm_storeh_pi): Replace __v2si with __v2sf.
20164         (_mm_storel_pi): Likewise.
20165
20166         * doc/extend.texi: Correct __builtin_ia32_loadhps,
20167         __builtin_ia32_loadlps, __builtin_ia32_storehps,
20168         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
20169         __builtin_ia32_loadlpd.
20170
20171 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
20172
20173         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
20174         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
20175         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
20176         (ix86_init_mmx_sse_builtins): Updated.
20177         (ix86_expand_args_builtin): Likewise.
20178         (ix86_expand_builtin): Likewise.
20179         (ix86_expand_unop1_builtin): Renamed to ...
20180         (ix86_expand_unop_vec_merge_builtin): This.
20181
20182 2008-05-01  Jan Hubicka  <jh@suse.cz>
20183
20184         PR bootstrap/36100
20185         * ipa-inline.c (inline_generate_summary): Make static.
20186         (inline_transform): Do not call inlining at -O0; make static.
20187         * passes.c (execute_todo): Add sanity check.
20188         (execute_one_ipa_transform_pass): Execute proper flags.
20189
20190 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
20191
20192         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
20193         (DECL_NONADDRESSABLE_P): Likewise.
20194         * alias.c (record_component_aliases): Fix comment.
20195
20196 2008-05-01  Simon Baldwin <simonb@google.com>
20197
20198         * c-common.h (warn_array_subscript_range): New function.
20199         * c-common.c (warn_array_subscript_range): Ditto.
20200         * tree-vrp.c (check_array_ref): Corrected code to agree with
20201         comment, ignoring only arrays of size 0 or size 1.
20202         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
20203
20204 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
20205
20206         * config/i386/i386.c (ix86_builtin_type): Replace
20207         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
20208         (bdesc_args): Updated.
20209         (ix86_init_mmx_sse_builtins): Likewise.
20210         (ix86_expand_args_builtin): Likewise.
20211
20212         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
20213         with __v1di.
20214
20215         * doc/extend.texi: Correct __builtin_ia32_palignr.
20216
20217 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
20218
20219         PR target/36095
20220         * config/i386/i386.c (bdesc_crc32): Removed.
20221         (ix86_expand_crc32): Likewise.
20222         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
20223         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
20224         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
20225         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
20226         UINT_FTYPE_UINT_UCHAR.
20227         (bdesc_args): Updated. Add crc32 builtins.
20228         (ix86_init_mmx_sse_builtins): Updated.
20229         (ix86_expand_args_builtin): Updated to support subreg.
20230
20231         * doc/extend.texi: Correct __builtin_ia32_crc32di.
20232
20233 2008-05-01  Jan Hubicka  <jh@suse.cz>
20234
20235         * tree-pass.h (opt_pass): Add IPA_PASS.
20236         (varpool_node, cgraph_node): Forward declare.
20237         (ipa_opt_pass): Define.
20238         (pass_ipa_inline): Turn into ipa_opt_pass.
20239         (pass_apply_inline): Remove.
20240         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
20241         (apply_inline): Turn into ....
20242         (inline_transform): ... this one.
20243         (inline_generate_summary): New function.
20244         (pass_apply_inline): Remove.
20245         * function.h (ipa_opt_pass): Forward declare structure; typedef;
20246         vector.
20247         (struct function): Add ipa_transforms_to_apply.
20248         * passes.c (register_one_dump_file): Work on IPA_PASS.
20249         (init_optimization_passes): Remove pass_inline_parameters and
20250         pass_apply_inline.
20251         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
20252         (execute_one_pass) ... here; apply transforms when possible.
20253         (add_ipa_transform_pass, execute_ipa_summary_asses,
20254         execute_one_ipa_transform_pass): New.
20255         (execute_ipa_pass_list): Update for IPA_PASS type.
20256
20257 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
20258
20259         * config/i386/i386.c (ix86_builtin_type): Add
20260         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
20261         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
20262         (bdesc_args): Add SSE4a builtins.
20263         (ix86_init_mmx_sse_builtins): Updated.
20264         (ix86_expand_args_builtin): Likewise.
20265         (ix86_expand_builtin): Likewise.
20266
20267 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
20268
20269         * config/i386/i386.c (ix86_builtin_type): Add
20270         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
20271         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
20272         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
20273         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
20274         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
20275         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
20276         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
20277         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
20278         and DI_FTYPE_DI_DI_INT.
20279         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
20280         (ix86_init_mmx_sse_builtins): Updated.
20281         (ix86_expand_args_builtin): Likewise.
20282         (ix86_expand_builtin): Likewise.
20283         (ix86_expand_binop_imm_builtin): Removed.
20284
20285         * doc/extend.texi: Correct __builtin_ia32_palignr128.
20286
20287 2008-04-30  Richard Guenther  <rguenther@suse.de>
20288
20289         PR tree-optimization/32921
20290         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
20291
20292 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
20293
20294         * config/arm/arm.c (arm_unwind_emit): Use
20295         crtl->all_throwers_are_sibcalls instead of
20296         cfun->all_throwers_are_sibcalls.
20297         (arm_output_fn_unwind): Likewise.
20298         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
20299         instead of cfun->uses_pic_offset_table.
20300         (frv_expand_prologue): Likewise.
20301         (frv_frame_pointer_required): Likewise.
20302         (frv_expand_fdpic_call): Likewise.
20303         (frv_emit_movsi): Likewise.
20304         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
20305         cfun->returns_pcc_struct instead of
20306         current_function_returns_pcc_struct.
20307         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
20308         instead of cfun->calls_eh_return.
20309         (m32c_pushm_popm): Likewise.
20310         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
20311         "extern" declaration.
20312
20313 2008-04-30  Richard Guenther  <rguenther@suse.de>
20314
20315         PR tree-optimization/21636
20316         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
20317         constant address.
20318         (evaluate_stmt): Print the likely value.
20319         (ccp_visit_stmt): Avoid excessive vertical spacing.
20320
20321 2008-04-30  Rafael Espíndola  <espindola@google.com>
20322
20323         * builtins.c (fold_call_expr): Return realret.
20324         * tree-ssa-threadedge.c
20325         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
20326         __builtin_object_size.
20327
20328 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
20329
20330         * gcc.c (wrapper_string): New variable.
20331         (insert_wrapper): New function.
20332         (execute): New option -wrapper.
20333         * doc/invoke.texi (Overall Options): New driver option -wrapper.
20334
20335 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
20336
20337         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
20338         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
20339         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
20340         from...
20341         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
20342         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
20343         config/rs6000/e500crtres64gprctr.asm,
20344         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
20345         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
20346         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
20347         config/rs6000/e500crtsav64gprctr.asm,
20348         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
20349         config/rs6000/e500crtsavg64gprctr.asm: New files.
20350         * config/rs6000/t-ppccomm: Add build rules for new files.
20351         (LIB2FUNCS_STATIC_EXTRA): Add new files.
20352         * config/rs6000/t-netbsd: Add build rules for new files.
20353         (LIB2FUNCS_STATIC_EXTRA): New variable.
20354         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
20355         (CRTSAVRES_DEFAULT_SPEC): Likewise.
20356         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
20357
20358 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
20359
20360         * config/i386/i386.c (ix86_builtin_type): Add
20361         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
20362         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
20363         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
20364         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
20365         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
20366         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
20367         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
20368         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
20369         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
20370         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
20371         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
20372         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
20373         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
20374         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
20375         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
20376         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
20377         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
20378         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
20379         V1DI_FTYPE_V2SI_V2SI.
20380         (bdesc_2arg): Moved to ...
20381         (bdesc_args): Here.
20382         (ix86_init_mmx_sse_builtins): Updated.
20383         (ix86_expand_args_builtin): Updated.  Take a pointer
20384         to const struct builtin_description.  Handle comparison
20385         builtin functions.
20386         (ix86_expand_sse_compare): Take a new argument for swapping operands.
20387         (ix86_expand_builtin): Updated.
20388
20389         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
20390         (ssse3_pmaddubsw128): This.
20391         (ssse3_pmaddubswv4hi3): Renamed to ...
20392         (ssse3_pmaddubsw): This.
20393
20394         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
20395         (__builtin_ia32_packssdw128): Likewise.
20396         (__builtin_ia32_packuswb128): Likewise.
20397         (__builtin_ia32_pmaddubsw): Likewise.
20398         (__builtin_ia32_pmaddubsw128): Likewise.
20399
20400 2008-04-30  Richard Guenther  <rguenther@suse.de>
20401
20402         PR tree-optimization/14847
20403         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
20404         (recognize_bits_test): Use it.
20405         (recognize_single_bit_test): Likewise.
20406
20407 2008-04-30  Martin Jambor  <mjambor@suse.cz>
20408
20409         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
20410         instead of setting number of formal parameters to zero.
20411         (ipcp_init_stage): Do not set the number of actual parameters to zero
20412         either.
20413         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
20414         which are called with variable number of arguments.
20415         (ipcp_insert_stage): Explicitely skipping all nodes which are
20416         called with variable number of arguments.
20417         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
20418         number of parameters.
20419
20420         * ipa-prop.h (struct ipa_node_params): Added flag
20421         called_with_var_arguments
20422         (ipa_set_param_count): Added.  Changed sole setter to use it.
20423         (ipa_get_param_count): Added.  All readers of param_count
20424         converted to use it instead.
20425         (ipa_set_called_with_variable_arg): Added.
20426         (ipa_is_called_with_var_arguments): Added.
20427         (ipa_get_ith_param): Added.  All readers of param_decls converted
20428         to use it instead.
20429         (ipa_set_cs_argument_count): Added, sole writer to argument_count
20430         changed to use it.
20431         (ipa_get_cs_argument_count): Added, all readers of argument_count
20432         changed to cal it.
20433         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
20434         to use it.
20435
20436         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
20437         (struct ipcp_lattice): Renamed cval_type to type
20438         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
20439
20440         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
20441         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
20442         (ipcp_insert_stage): Changed the type of variable cvalue to tree
20443         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
20444         (build_const_val): Changed the type of parameter cvalue to tree
20445         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
20446         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
20447
20448         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
20449         constant
20450
20451         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
20452         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
20453         (ipa_add_method): Renamed to ipa_push_func_to_list
20454         (ipa_remove_method): Renamed to ipa_pop_func_from_list
20455         (ipa_callsite_param_count): Removed.
20456         (ipa_callsite_param_count_set): Removed.
20457         (ipa_callsite_param): Removed.
20458         (ipa_callsite_callee): Removed.
20459         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
20460         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
20461         (ipa_method_formal_count): Removed.
20462         (ipa_method_formal_count_set): Removed.
20463         (ipa_method_get_tree): Removed.
20464         (ipa_method_tree_map_create): Removed.
20465         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
20466         (ipa_create_param_decls_array): Creates the array itself
20467         (ipa_create_param_decls_array): Temporary variable info instead of
20468         a few dereferences.
20469         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
20470         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
20471         (get_type): Removed.
20472         (ipa_jf_get_info_type): Removed.
20473         (ipa_node_create): Renamed to ipa_create_node_params
20474         (ipa_free): Renamed to ipa_free_all_node_params
20475         (ipa_nodes_create): Renamed to ipa_create_all_node_params
20476         (ipa_edges_create): Renamed to ipa_create_all_edge_args
20477         (ipa_edges_free): Renamed to ipa_free_all_edge_args
20478         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
20479         (ipa_free_all_node_params): Deallocation to jump_functions moved to
20480         ipa_free_all_edge_args
20481         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
20482         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
20483         (ipa_create_methodlist_node): Removed.
20484         (ipa_methodlist_method): Removed.
20485         (ipa_methodlist_method_set): Removed.
20486         (ipa_methodlist_next_method): Removed.
20487         (ipa_methodlist_next_method_set): Removed.
20488         (ipa_method_is_modified): Removed.
20489         (ipa_method_modify_create): Removed.
20490         (ipa_method_modify_init): Temporary variable info instead of a few
20491         dereferences.
20492         (ipa_detect_param_modifications): Temporary variable info instead of
20493         a few dereferences.
20494         (ipa_compute_jump_functions): Temporary variable info instead of
20495         a few dereferences.
20496         (ipa_method_modify_set): Removed.
20497         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
20498         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
20499         than craph_node as the first parameter.
20500         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
20501         (ipa_method_modify_init): Removed.
20502         (ipa_compute_jump_functions): Added a temp variable instead of
20503         repeatadly dereferencing the cgraph_edge.aux pointer
20504         (ipa_callsite_param_set_type): Removed.
20505         (ipa_compute_jump_functions): i renamed to index and moved to
20506         an inner block
20507         (ipa_callsite_param_set_info_type_formal): Removed.
20508         (ipa_callsite_param_set_info_type): Removed.
20509         (ipa_callsite_param_map_create): Removed.
20510         (ipa_callsite_tree): Removed.
20511         (ipa_callsite_caller): Removed.
20512         (ipa_pop_func_from_list): return_method removed to return_func
20513
20514         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
20515         prefixed all values with IPA_. Changed all users.
20516         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
20517         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
20518         and FORMAL_IPATYPE IPA_PASS_THROUGH.
20519         (union parameter_info): Renamed to jump_func_value.
20520         (union jump_func_value): Renamed value to constant
20521         (struct ipa_jump_func): Renamed info_type to value
20522         (struct ipa_node): Renamed to ipa_node_params
20523         (struct ipa_node_params): Renamed ipa_arg_num to param_count
20524         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
20525         (struct ipa_node_params): Renamed ipa_mod to modified_flags
20526         (struct ipa_edge): Renamed to ipa_edge_args
20527         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
20528         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
20529         (struct ipa_methodlist): Renamed to ipa_func_list
20530         (struct ipa_func_list): method_p renamed to node, next_method
20531         renamed to next
20532         (ipa_methodlist_p): Removed, switched all users to struct pointer
20533         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
20534
20535 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
20536
20537         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
20538         (rs6000_emit_epilogue): Use backchain to restore only when we
20539         have a large frame.  Make use of frame pointer to restore if we
20540         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
20541
20542 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
20543
20544         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
20545         Add mode to zero_extract.
20546         (sign bit tests peepholes): (Ditto.).
20547
20548 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
20549
20550         * config/i386/i386.c (ix86_builtins): Replace Prescott New
20551         Instructions in comments with SSE3.
20552         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
20553         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
20554         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
20555         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
20556         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
20557         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
20558         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
20559         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
20560         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
20561         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
20562         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
20563         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
20564         (bdesc_sse_args): Renamed to ...
20565         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
20566         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
20567         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
20568         IX86_BUILTIN_FABSQ.
20569         (bdesc_1arg): Moved to ...
20570         (bdesc_args): Here.
20571         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
20572         Instructions in comments with SSE3.
20573         (ix86_expand_sse_operands_builtin): Renamed to ...
20574         (ix86_expand_args_builtin): This.  Updated.
20575         (ix86_expand_unop1_builtin): Update comments.
20576         (ix86_expand_builtin): Updated.
20577
20578 2008-04-29  Richard Guenther  <rguenther@suse.de>
20579
20580         PR tree-optimization/36078
20581         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
20582         Update virtual SSA form after cleaning up the CFG.
20583
20584 2008-04-29  Richard Guenther  <rguenther@suse.de>
20585
20586         PR middle-end/15255
20587         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
20588
20589 2008-04-29  Richard Guenther  <rguenther@suse.de>
20590
20591         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
20592         (compute_may_aliases): Do not call finalize_ref_all_pointers.
20593         (compute_flow_insensitive_aliasing): Do not treat
20594         PTR_IS_REF_ALL pointers special.
20595         (get_smt_for): Likewise.
20596         (may_alias_p): Re-structure.
20597         (is_escape_site): A ref-all pointer conversion is not an escape site.
20598         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
20599         PTR_IS_REF_ALL pointers special.
20600         * tree-ssa-structalias.h (struct alias_info): Remove
20601         ref_all_symbol_mem_tag field.
20602         (PTR_IS_REF_ALL): Remove.
20603
20604 2008-04-29  Richard Guenther  <rguenther@suse.de>
20605
20606         PR middle-end/36077
20607         * fold-const.c (extract_muldiv_1): In combining division constants
20608         make sure to never overflow.
20609
20610 2008-04-29  Nick Clifton  <nickc@redhat.com>
20611
20612         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
20613
20614 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20615
20616         PR bootstrap/35169
20617         * optc-gen.awk: Work around HP-UX/IA awk bug.
20618
20619 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
20620
20621         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
20622         2008-04-25 commit.
20623
20624 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
20625
20626         PR target/36073
20627         * config/i386/i386.md
20628         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
20629         Change operand 1 predicate to nonimmediate_operand.
20630
20631 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
20632
20633         PR debug/36060
20634         * dwarf2out.c (struct die_struct): Mark as chain_circular through
20635         die_sub field.
20636         * gengtype.c (walk_type, write_func_for_structure): Handle
20637         chain_circular.
20638         * doc/gty.texi: Document chain_circular.
20639
20640 2008-04-28  Richard Guenther  <rguenther@suse.de>
20641
20642         PR tree-optimization/36066
20643         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
20644         SCEV and loop.
20645
20646 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
20647
20648         PR target/36064
20649         * config/i386/i386.md
20650         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
20651         Use match_scratch instead of match_operand for operands 3 and 4.
20652
20653 2008-04-27  Richard Guenther  <rguenther@suse.de>
20654
20655         PR tree-optimization/18754
20656         PR tree-optimization/34223
20657         * tree-pass.h (pass_complete_unrolli): Declare.
20658         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
20659         loop size before and after unconditionally of UL_NO_GROWTH in effect.
20660         Rewrite loop into loop closed SSA form if it is not already.
20661         (tree_unroll_loops_completely): Re-structure to iterate over
20662         innermost loops with intermediate CFG cleanups.
20663         Unroll outermost loops only if requested or the code does not grow
20664         doing so.
20665         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
20666         loops are available.
20667         (tree_vectorize): Instead do so here.
20668         (tree_complete_unroll): Also unroll outermost loops.
20669         (tree_complete_unroll_inner): New function.
20670         (gate_tree_complete_unroll_inner): Likewise.
20671         (pass_complete_unrolli): New pass.
20672         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
20673         uses outside of the loop.
20674         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
20675         form if it is available.
20676         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
20677         * passes.c (init_optimization_passes): Schedule complete inner
20678         loop unrolling pass before the first CCP pass after final inlining.
20679
20680 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
20681
20682         * targhooks.h (default_emutls_var_fields,
20683         default_emutls_var_init): Declare.
20684         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
20685         * target.h (struct gcc_target): Add struct emutls member.
20686         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
20687         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
20688         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
20689         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
20690         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
20691         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
20692         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
20693         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
20694         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
20695         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
20696         emit debug information.
20697         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
20698         * varasm.c: Include targhooks.h.
20699         (emutls_object_section, emutls_tmpl_section): New.
20700         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
20701         (EMUTLS_SEPARATOR): New.
20702         (prefix_name): New.
20703         (get_emutls_object_name): New.
20704         (default_emutls_var_fields): New, broken out of ...
20705         (get_emutls_object_type): ... here.  Adjust to use target hooks.
20706         (get_emutls_init_templ_addr): Adjust to use target hooks.
20707         (emutls_decl): Adjust to use target hooks.
20708         (emutls_finish): Likewise.
20709         (default_emutls_var_init): New, broken out of ...
20710         (assemble_variable): ... here.  Adjust to use target hooks.
20711         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
20712         SECCAT_EMUTLS_TMPL.
20713         * c-common.c (handle_section_attribute): Prevent overriding
20714         sections for emulated tls with special sections.
20715         * config/i386/i386.c (x86_64_elf_select_section): Add
20716         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
20717         (x86_64_elf_unique_section): Likewise.
20718         * config/vxworks.c: Include tree.h.
20719         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
20720         (vxworks_override_options): Set TLS scheme.
20721         * doc/tm.texi (Emulated TLS): New node.
20722
20723 2008-04-26  Simon Baldwin <simonb@google.com>
20724
20725         PR c/35652
20726         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
20727         with propagated string constants.
20728
20729 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
20730
20731         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
20732         constraint for operand 2 when operand 0 is memory operand.
20733         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
20734         operand 0 is memory operand.
20735         (fix_trunc<mode>_i387_with_temp): Ditto.
20736         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
20737         operand 2 when operand 1 is memory operand.
20738         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
20739         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
20740         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
20741         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
20742         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
20743         operands 2,3 and 4 when operand 1 is memory operand.
20744         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
20745         is memory operand.
20746         (fistdi2_floor_with_temp): Ditto.
20747         (fist<mode>2_floor_with_temp): Ditto.
20748         (fistdi2_ceil_with_temp): Ditto.
20749         (fist<mode>2_ceil_with_temp): Ditto.
20750         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
20751
20752 2008-04-26  David Daney  <ddaney@avtrex.com>
20753
20754         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
20755         unspec_volitile.
20756         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
20757         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
20758         UNSPEC_UPDATE_GOT_VERSION): Renumber.
20759         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
20760         (compare_and_swap_12): New insn.
20761         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
20762         * config/mips/mips.c (mips_force_binary): New function.
20763         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
20764         (mips_expand_compare_and_swap_12): New function.
20765         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
20766
20767 2008-04-25  Jan Hubicka  <jh@suse.cz>
20768
20769         PR testsuite/35843
20770         * cfgexpand.c (pass_expand): Turn into RTL pass.
20771         * passes.c (execute_one_pass): Do pass typechecking after execution.
20772         * tree-pass.h (pass_expand): Turn into RTL pass.
20773
20774         * function.h (struct rtl_data): Move here fields
20775         accesses_prior_frames, calls_eh_return, saves_all_registers,
20776         has_nonlocal_goto, has_asm_statement, is_thunk,
20777         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
20778         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
20779         arg_pointer_save_area_init from struct function; turn into bool.
20780         (struct function): Move
20781         calls_eh_return, saves_all_registers, has_nonlocal_goto,
20782         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
20783         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
20784         tail_call_emit, arg_pointer_save_area_init
20785         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
20786         (current_function_returns_struct, current_function_returns_pcc_struct,
20787         current_function_calls_setjmp, current_function_calls_alloca,
20788         current_function_accesses_prior_frames,
20789         current_function_calls_eh_return, current_function_is_thunk,
20790         current_function_stdarg, current_function_profile,
20791         current_function_limit_stack, current_function_uses_pic_offset_table,
20792         current_function_uses_const_pool, current_function_has_nonlocal_label,
20793         current_function_saves_all_registers,
20794         current_function_has_nonlocal_goto,
20795         current_function_has_asm_statement): Remove accesor macros.
20796         * ra-conflict.c (global_conflicts): Update.
20797         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
20798         (suitable_for_tail_call_opt_p): Update.
20799         * builtins.c (expand_builtin_return_addr): Update.
20800         (expand_builtin_setjmp_setup): Update.
20801         (expand_builtin_nonlocal_goto): Update.
20802         * final.c (final_start_function): Update.
20803         (profile_function): Update.
20804         (leaf_function_p): Update.
20805         (only_leaf_regs_used): Update.
20806         * df-scan.c (df_get_exit_block_use_set): Update.
20807         * dojump.c (clear_pending_stack_adjust): Update.
20808         * tree-stdarg.c (gate_optimize_stdarg): Update.
20809         * gimple-low.c (lower_function_body): Update.
20810         * global.c (compute_regsets): Update.
20811         (global_alloc): Update.
20812         * dwarf2out.c (dwarf2out_begin_prologue): Update.
20813         * expr.c (expand_assignment): Update.
20814         * dse.c (dse_step0): Update.
20815         (dse_step1): Update.
20816         * c-decl.c (store_parm_decls): Update.
20817         * local-alloc.c (combine_regs): Update.
20818         (find_free_reg): Update.
20819         * function.c (assign_parms_augmented_arg_list): Update.
20820         (assign_parm_find_data_types): Update.
20821         (assign_parms): Update.
20822         (allocate_struct_function): Update.
20823         (expand_function_start): Update.
20824         (expand_function_end): Update.
20825         (get_arg_pointer_save_area): Update.
20826         (thread_prologue_and_epilogue_insns): Update.
20827         (rest_of_match_asm_constraints): Update.
20828         * stor-layout.c (variable_size): Update.
20829         * gcse.c (gcse_main): Update.
20830         (bypass_jumps): Update.
20831         * gimplify.c (gimplify_function_tree): Update.
20832         * calls.c (emit_call_1): Update.
20833         (expand_call): Update.
20834         * bt-load.c (compute_defs_uses_and_gen): Update.
20835         * except.c (sjlj_assign_call_site_values): Update.
20836         (sjlj_emit_function_enter): Update.
20837         (can_throw_external): Update.
20838         (set_nothrow_function_flags): Update.
20839         (expand_builtin_unwind_init): Update.
20840         (expand_eh_return): Update.
20841         (convert_to_eh_region_ranges): Update.
20842         (output_function_exception_table): Update.
20843         * emit-rtl.c (gen_tmp_stack_mem): Update.
20844         * cfgexpand.c (expand_used_vars): Update.
20845         (tree_expand_cfg): Update.
20846         * cfgcleanup.c (rest_of_handle_jump): Update.
20847         * explow.c (allocate_dynamic_stack_space): Update.
20848         * varasm.c (assemble_start_function): Update.
20849         (force_const_mem): Update.
20850         (mark_constant_pool): Update.
20851         * tree-optimize.c (tree_rest_of_compilation): Update.
20852         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
20853         * tree-cfg.c (notice_special_calls): Update.
20854         (is_ctrl_altering_stmt): Update.
20855         (tree_can_make_abnormal_goto): Update.
20856         (tree_purge_dead_abnormal_call_edges): Update.
20857         * config/alpha/predicates.md: Update.
20858         * config/alpha/alpha.c (alpha_sa_mask): Update.
20859         (alpha_sa_size): Update.
20860         (alpha_does_function_need_gp): Update.
20861         (alpha_expand_prologue): Update.
20862         (alpha_start_function): Update.
20863         (alpha_output_function_end_prologue): Update.
20864         (alpha_expand_epilogue): Update.
20865         * config/frv/frv.c (frv_stack_info): Update.
20866         (frv_expand_epilogue): Update.
20867         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
20868         (s390_register_info): Update.
20869         (s390_frame_info): Update.
20870         (s390_init_frame_layout): Update.
20871         (s390_can_eliminate): Update.
20872         (save_gprs): Update.
20873         * config/spu/spu.c (spu_split_immediate): Update.
20874         (need_to_save_reg): Update.
20875         (spu_expand_prologue): Update.
20876         (spu_expand_epilogue): Update.
20877         * config/sparc/sparc.md: Update.
20878         * config/sparc/sparc.c (eligible_for_return_delay): Update.
20879         (sparc_tls_got): Update.
20880         (legitimize_pic_address): Update.
20881         (sparc_emit_call_insn): Update.
20882         (sparc_expand_prologue): Update.
20883         (output_return): Update.
20884         (print_operand): Update.
20885         (sparc_function_ok_for_sibcall): Update.
20886         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
20887         * config/m32r/m32r.md: Update.
20888         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
20889         (m32r_compute_frame_size): Update.
20890         (m32r_expand_prologue): Update.
20891         (m32r_expand_epilogue): Update.
20892         (m32r_legitimize_pic_address): Update.
20893         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
20894         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
20895         * config/i386/i386.c (ix86_frame_pointer_required): Update.
20896         (gen_push): Update.
20897         (ix86_save_reg): Update.
20898         (ix86_compute_frame_layout): Update.
20899         (ix86_expand_prologue): Update.
20900         (ix86_expand_epilogue): Update.
20901         * config/sh/sh.c (output_stack_adjust): Update.
20902         (calc_live_regs): Update.
20903         (sh5_schedule_saves): Update.
20904         (sh_expand_prologue): Update.
20905         (sh_expand_epilogue): Update.
20906         (sh_setup_incoming_varargs): Update.
20907         (sh_allocate_initial_value): Update.
20908         (sh_get_pr_initial_val): Update.
20909         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
20910         * config/sh/sh.md (label:): Update.
20911         * config/avr/avr.c (out_movhi_mr_r): Update.
20912         * config/crx/crx.h (enum): Update.
20913         * config/xtensa/xtensa.h (along): Update.
20914         * config/stormy16/stormy16.c Update.
20915         (xstormy16_compute_stack_layout): Update.
20916         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
20917         (fr30_expand_prologue): Update.
20918         * config/cris/cris.c (cris_conditional_register_usage): Update.
20919         (cris_reg_saved_in_regsave_area): Update.
20920         (cris_initial_frame_pointer_offset): Update.
20921         (cris_simple_epilogue): Update.
20922         (cris_expand_prologue): Update.
20923         (cris_expand_epilogue): Update.
20924         (cris_expand_pic_call_address): Update.
20925         (cris_asm_output_symbol_ref): Update.
20926         (cris_asm_output_label_ref): Update.
20927         * config/cris/cris.md Update.
20928         * config/iq2000/iq2000.c (compute_frame_size): Update.
20929         (iq2000_expand_epilogue): Update.
20930         * config/mt/mt.h (save_direction): Update.
20931         * config/mn10300/mn10300.c (mn10300_function_value): Update.
20932         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
20933         (ia64_secondary_reload_class): Update.
20934         * config/m68k/m68k.c (m68k_save_reg): Update.
20935         (m68k_expand_prologue): Update.
20936         (m68k_expand_epilogue): Update.
20937         (legitimize_pic_address): Update.
20938         * config/rs6000/rs6000.c (rs6000_got_register): Update.
20939         (first_reg_to_save): Update.
20940         (first_altivec_reg_to_save): Update.
20941         (compute_vrsave_mask): Update.
20942         (compute_save_world_info): Update.
20943         (rs6000_stack_info): Update.
20944         (spe_func_has_64bit_regs_p): Update.
20945         (rs6000_ra_ever_killed): Update.
20946         (rs6000_emit_eh_reg_restore): Update.
20947         (rs6000_emit_allocate_stack): Update.
20948         (rs6000_emit_prologue): Update.
20949         (rs6000_emit_epilogue): Update.
20950         (rs6000_output_function_epilogue): Update.
20951         (output_profile_hook): Update.
20952         (rs6000_elf_declare_function_name): Update.
20953         * config/rs6000/rs6000.h (rs6000_args): Update.
20954         * config/rs6000/rs6000.md: Update.
20955         * config/mcore/mcore.c (mcore_expand_prolog): Update.
20956         * config/arc/arc.c (arc_output_function_epilogue): Update.
20957         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
20958         * config/darwin.c (machopic_function_base_name): Update.
20959         * config/score/score3.c (score3_compute_frame_size): Update.
20960         (rpush): Update.
20961         (rpop): Update.
20962         (score3_epilogue): Update.
20963         * config/score/score7.c (score7_compute_frame_size): Update.
20964         (score7_prologue): Update.
20965         (score7_epilogue): Update.
20966         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
20967         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
20968         * config/arm/arm.c (use_return_insn): Update.
20969         (require_pic_register): Update.
20970         (arm_load_pic_register): Update.
20971         (arm_compute_save_reg0_reg12_mask): Update.
20972         (arm_compute_save_reg_mask): Update.
20973         (thumb1_compute_save_reg_mask): Update.
20974         (output_return_instruction): Update.
20975         (arm_output_function_prologue): Update.
20976         (arm_output_epilogue): Update.
20977         (arm_get_frame_offsets): Update.
20978         (arm_expand_prologue): Update.
20979         (thumb_pushpop): Update.
20980         (thumb_exit): Update.
20981         (thumb1_expand_prologue): Update.
20982         (thumb1_expand_epilogue): Update.
20983         (arm_unwind_emit): Update.
20984         (arm_output_fn_unwind): Update.
20985         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
20986         * config/arm/arm.md: Update.
20987         * config/pa/pa.md: Update.
20988         * config/pa/pa.c (legitimize_pic_address): Update.
20989         (compute_frame_size): Update.
20990         (hppa_expand_prologue): Update.
20991         (hppa_expand_epilogue): Update.
20992         (borx_reg_operand): Update.
20993         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
20994         (HARD_REGNO_RENAME_OK): Update.
20995         * config/mips/mips.c (mips_global_pointer): Update.
20996         (mips_save_reg_p): Update.
20997         (mips_compute_frame_info): Update.
20998         (mips_frame_pointer_required): Update.
20999         (mips_expand_prologue): Update.
21000         (mips_expand_epilogue): Update.
21001         (mips_can_use_return_insn): Update.
21002         (mips_reorg_process_insns): Update.
21003         * config/v850/v850.c (compute_register_save_size): Update.
21004         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
21005         * config/mmix/mmix.c (along): Update.
21006         (mmix_expand_epilogue): Update.
21007         * config/bfin/bfin.c (legitimize_pic_address): Update.
21008         (must_save_p): Update.
21009         (stack_frame_needed_p): Update.
21010         (add_to_reg): Update.
21011         (bfin_expand_prologue): Update.
21012         * stmt.c (expand_asm_operands): Update.
21013         * reload1.c (reload): Update.
21014         (init_elim_table): Update.
21015
21016 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
21017
21018         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
21019
21020 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
21021
21022         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
21023         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
21024         (mov<mode>): Removed.
21025         (*movv4sf_internal): Likewise.
21026         (*movv2df_internal): Likewise.
21027
21028 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
21029
21030         * config.gcc (crx-*-elf): Remove deprecation.
21031
21032 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
21033
21034         * config/i386/cygming-crtend.c (register_frame_ctor): Register
21035         __gcc_deregister_frame with atexit.
21036         (deregister_frame_dtor): Remove.
21037
21038 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
21039             Nathan Sidwell  <nathan@codesourcery.com>
21040
21041         * config/rs6000/rs6000.opt (mspe): Remove Var property.
21042         (misel): Likewise.
21043         * config/rs6000/rs6000.h (rs6000_spe): Declare.
21044         (rs6000_isel): Likewise.
21045         * config/rs6000/rs6000.c (rs6000_spe): New variable.
21046         (rs6000_isel): New variable.
21047         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
21048
21049 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
21050
21051         PR c++/35758
21052         * c-common.c (handle_vector_size_attribute): Call
21053         lang_hooks.types.reconstruct_complex_type instead of
21054         reconstruct_complex_type.
21055         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
21056         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
21057         * langhooks.h (struct lang_hooks_for_types): Add
21058         reconstruct_complex_type hook.
21059         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
21060         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
21061
21062 2008-04-24  Richard Guenther  <rguenther@suse.de>
21063
21064         * c-common.h (check_builtin_function_arguments): Declare.
21065         * c-common.c (validate_nargs): New function.
21066         (check_builtin_function_arguments): Likewise.
21067         * c-typeck.c (build_function_call): Call
21068         check_builtin_function_arguments.
21069         * builtins.c (fold_builtin_classify): Remove error reporting code.
21070         (fold_builtin_unordered_cmp): Likewise.
21071         (fold_builtin_1): Likewise.
21072         (fold_builtin_n): Likewise.
21073
21074 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
21075
21076         PR tree-optimization/36008
21077         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
21078         the original op1, rather than delta by step.
21079
21080 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
21081             Sebastian Pop  <sebastian.pop@amd.com>
21082
21083         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
21084         eliminate_local_variables_stmt, eliminate_local_variables,
21085         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
21086         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
21087         of code delimited by two edges in the CFG.
21088         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
21089         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
21090         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
21091         the case of parallelisation of reductions.
21092         (expr_invariant_in_region_p): New.
21093
21094         * tree-flow.h (gather_blocks_in_sese_region): Declared.
21095         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
21096
21097 2008-04-24  Ira Rosen  <irar@il.ibm.com>
21098             Richard Guenther  <rguenther@suse.de>
21099
21100         PR tree-optimization/36034
21101         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
21102         incapable of dealing with loads with gaps.
21103
21104 2008-04-24  Rafael Espíndola  <espindola@google.com>
21105
21106         * tree-flow.h (vrp_evaluate_conditional): Change signature.
21107         * tree-ssa-propagate.c (fold_predicate_in): Update call to
21108         vrp_evaluate_conditional.
21109         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
21110         (vrp_evaluate_conditional): Split the cond argument.
21111         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
21112         (simplify_stmt_for_jump_threading): Update call to
21113         vrp_evaluate_conditional.
21114
21115 2008-04-24  Ira Rosen  <irar@il.ibm.com>
21116
21117         PR tree-optimization/35982
21118         * tree-vect-analyze.c (vect_check_interleaving): Check that the
21119         interleaved data-refs are of the same type.
21120
21121 2008-04-24  Danny Smith  <dannysmith@users.net>
21122
21123         * c-format.c (check_format_info_main): Use strncmp rather than a
21124         magic prefix to handle multichar length specs.
21125         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
21126         Don't prefix "I64" and "I32" with '\0'.
21127
21128 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
21129
21130         PR target/36015
21131         * config/i386/i386.c (init_cumulative_args): Don't pass anything
21132         in registers for -m32 only if stdarg_p (fntype).
21133
21134 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
21135
21136         PR rtl-optimization/36006
21137         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
21138         temp to op0 in order to avoid invalid rtx sharing.
21139
21140 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
21141
21142         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
21143         check TREE_INVARIANT.
21144         * tree-gimple.c (is_gimple_address): New.
21145         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
21146         * tree-gimple.h (is_gimple_address): New.
21147         * tree.h (decl_address_invariant_p): New.
21148         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
21149         (build_string): Likewise.
21150         (decl_address_invariant_p): New, from is_gimple_invariant_address.
21151         (tree_invariant_p_1): Likewise.
21152         (save_expr): Use it.
21153         (tree_invariant_p): New.
21154         (skip_simple_arithmetic): Use it.
21155         (stabilize_reference_1): Use it.
21156         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
21157         simplify.
21158         (build1_stat): Drop code to compute TREE_INVARIANT.
21159         (build2_stat): Drop code to compute TREE_INVARIANT.
21160         (build3_stat): Drop code to compute TREE_INVARIANT.
21161         (build4_stat): Drop code to compute TREE_INVARIANT.
21162         (build5_stat): Drop code to compute TREE_INVARIANT.
21163         (build7_stat): Drop code to compute TREE_INVARIANT.
21164         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
21165         * tree.h (struct tree_base): Remove invariant_flag.
21166         (TREE_INVARIANT): Remove.
21167         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
21168         (fold_builtin_expect): Check TREE_CONSTANT.
21169         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
21170         * c-tree.h (c_expr_to_decl): Drop third parameter.
21171         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
21172         (build_c_cast): Don't set TREE_INVARIANT.
21173         (pop_init_level): Don't set TREE_INVARIANT.
21174         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
21175         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
21176         TREE_CONSTANT.
21177         (gimplify_init_constructor): Don't set TREE_INVARIANT.
21178         (gimplify_addr_expr): Adjust comment.
21179         * tree-mudflap.c (mf_build_string):
21180         * print-tree.c (print_node): Don't print TREE_INVARIANT.
21181         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
21182         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
21183         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
21184         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
21185         * langhooks.h (struct lang_hooks): Drop third parameter from
21186         expr_to_decl.
21187
21188 2008-04-23  Richard Guenther  <rguenther@suse.de>
21189
21190         PR tree-optimization/27799
21191         PR tree-optimization/32921
21192         PR tree-optimization/32624
21193         * tree-ssa-structalias.c (merge_smts_into): Only merge the
21194         SMTs aliases and the tag itself into the solution.
21195         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
21196         merge the points-to solution back into the SMT aliases.
21197         (may_alias_p): Use alias_set_subset_of instead of
21198         aliases_conflict_p.  A pointer which points to
21199         memory with alias set zero may access any variable.
21200
21201 2008-04-23  Richard Guenther  <rguenther@suse.de>
21202
21203         * alias.c (alias_set_subset_of): Correctly handle asking
21204         if zero is a subset of an alias set with zero child.
21205         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
21206         (compute_flow_insensitive_aliasing): Correctly walk all
21207         pointers.  Do not unnecessarily union sets.
21208
21209 2008-04-23  Richard Guenther  <rguenther@suse.de>
21210
21211         PR middle-end/36021
21212         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
21213
21214 2008-04-22  Tomas Bily  <tbily@suse.cz>
21215
21216         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
21217         unreachable case.
21218         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
21219         NON_LVALUE_EXPR.
21220         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
21221         * tree-ssa-structalias.c (get_constraint_for): Likewise.
21222         * tree-inline.c (estimate_num_insns_1): Likewise.
21223         * varasm.c (const_hash_1, compare_constant, copy_constant)
21224         (compute_reloc_for_constant, output_addressed_constants): Likewise.
21225         * emit-rtl.c (component_ref_for_mem_expr)
21226         (set_mem_attributes_minus_bitpos): Likewise.
21227         * expr.c (highest_pow2_factor, expand_expr_real_1, )
21228         (is_aligning_offset): Likewise.
21229         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
21230         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
21231         * dojump.c (do_jump): Likewise.
21232         * builtins.c (get_pointer_alignment, get_memory_rtx)
21233         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
21234         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
21235
21236 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
21237
21238         PR rtl-optimization/36017
21239         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
21240         expanding the library call.
21241
21242 2008-04-22  Ian Lance Taylor  <iant@google.com>
21243
21244         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
21245         than size_in_bytes.
21246
21247 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
21248
21249         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
21250         of LR/CTR moves for Power6.
21251
21252 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
21253
21254         PR middle-end/36003
21255         * passes.c (init_optimization_passes): Remove
21256         pass_fast_rtl_byte_dce.
21257
21258 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
21259
21260         PR target/29096
21261         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
21262         builtin functions to generate faster code.
21263         (_mm_cvtpu16_ps): Ditto.
21264         (_mm_cvtpi32x2_ps): Ditto.
21265
21266 2008-04-22  Nick Clifton  <nickc@redhat.com>
21267
21268         * common.opt (ftree-loop-distribution): Add Optimization
21269         attribute.
21270
21271         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
21272         (frv_expand_builtin_va_start): Likewise.
21273
21274         * config/arm/arm.c (thumb_find_work_register): Fix location of
21275         argument register count.
21276
21277 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
21278
21279         Support scheduling for ColdFire V1 and V3 microarchitecture.
21280         Improve scheduling of multiplication instructions.
21281
21282         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
21283         (mac): New instruction attribute.
21284         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
21285         (m68k_sched_mac): New variable.
21286         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
21287         Handle cfv1 and cfv3.
21288         (max_insn_size): New static variable.
21289         (struct _sched_ib): New type.
21290         (sched_ib): New static variable.
21291         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
21292         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
21293         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
21294         Update.
21295         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
21296         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
21297         new variables.  Update.
21298         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
21299         Add modeling of cfv3 instruction buffer.  Update.
21300         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
21301         * config/m68k/m68k.h (TUNE_CFV3): New macro.
21302         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
21303         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
21304         a particular reservation applies to.
21305         (type2): Reorganize attribute values.  Rename alu to alu_reg,
21306         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
21307         to mul_l and mul_w.
21308         (cf_ib_*): Simplify description of instruction buffer.
21309         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
21310         (cf_mem): Split into cf_mem1 and cf_mem2.
21311         (cf_v2_move_??): Rename to cfv12_alu_??.
21312         (cf_v2_move_l_??): Rename to cfv12_omove_??.
21313         (cf_v2_mul_??): Remove reservations.
21314         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
21315         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
21316         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
21317         appropriate place.
21318         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
21319         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
21320         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
21321         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
21322         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
21323         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
21324         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
21325         expansions of the above reservations for instructions of sizes
21326         1, 2 and 3 words.
21327
21328 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
21329
21330         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
21331
21332 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
21333
21334         * coverage.c: Include tree-pass.h.
21335         (coverage_counter_alloc): Print da_file_name to the dump file.
21336
21337 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
21338
21339         * sbitmap.c (sbitmap_range_empty_p): New function.
21340         * sbitmap.h (sbitmap_range_empty_p): New function.
21341         * bitmap.h: Now includes obstack.h.
21342
21343 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
21344             Kenneth Zadeck  <zadeck@naturalbridge.com>
21345
21346         * dbgcnt.def (ra_byte_scan): Added.
21347         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
21348         when the last hit happens for a counter.
21349         * timevar.def (TV_DF_BYTE_LR): New variable.
21350         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
21351         * passes.c (pass_fast_rtl_byte_dce): New pass.
21352         * fwprop.c (update_df): Added mode to call df_ref_create.
21353         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
21354         DF_REF_EXTRACT_OFFSET.
21355         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
21356         DF_BYTE_LR_OUT, df_byte_lr): New macro.
21357         (df_mm): New enum.
21358         (df_ref_extract): Added mode field.
21359         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
21360         DF_REF_EXTRACT_OFFSET.
21361         (DF_REF_EXTRACT_MODE): New macro.
21362         (df_byte_lr_bb_info): New structure.
21363         (df_print_byte_regset, df_compute_accessed_bytes,
21364         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
21365         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
21366         df_byte_lr_simulate_uses,
21367         df_byte_lr_simulate_artificial_refs_at_top,
21368         df_byte_lr_simulate_artificial_refs_at_end,
21369         df_compute_accessed_bytes): New function.
21370         (df_ref_create): Add parameter.
21371         (df_byte_lr_get_bb_info): New inline function.
21372         * df-scan.c (df_ref_record, df_uses_record,
21373         df_ref_create_structure): Added mode parameter.
21374         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
21375         df_defs_record, df_uses_record, df_get_conditional_uses,
21376         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
21377         df_entry_block_defs_collect, df_exit_block_uses_collect):
21378         Added mode parameter to calls to df_ref_record, df_uses_record,
21379         df_ref_create_structure.
21380         (df_ref_equal_p, df_ref_compare): Added test for modes.
21381         (df_ref_create_structure): Added code to set mode.  Renamed
21382         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
21383         DF_REF_EXTRACT_OFFSET.
21384         * df-core.c (df_print_byte_regset): New function.
21385         * df-byte-scan.c: New file.
21386         * df-problems.c (df_rd_transfer_function): Removed unnecessary
21387         calls to BITMAP_FREE.
21388         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
21389         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
21390         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
21391         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
21392         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
21393         df_byte_lr_local_compute, df_byte_lr_init,
21394         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
21395         df_byte_lr_transfer_function, df_byte_lr_free,
21396         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
21397         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
21398         df_byte_lr_simulate_uses,
21399         df_byte_lr_simulate_artificial_refs_at_top,
21400         df_byte_lr_simulate_artificial_refs_at_end): New function.
21401         * dce.c (byte_dce_process_block): New function.
21402         (dce_process_block): au is now passed in rather than computed
21403         locally.  Changed loops that look at artificial defs to not look
21404         for conditional or partial ones, because there never are any.
21405         (fast_dce): Now is able to drive byte_dce_process_block or
21406         dce_process_block depending on the kind of dce being done.
21407         (rest_of_handle_fast_dce): Add parameter to fast_dce.
21408         (rest_of_handle_fast_byte_dce): New function.
21409         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
21410         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
21411
21412 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
21413
21414         PR fortran/35019
21415         * gcc.h: Added fortran options that take arguments to
21416         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
21417         macros.
21418
21419 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
21420
21421         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
21422         scalarization if on the LHS and not a full access.
21423
21424 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21425
21426         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
21427
21428 2008-04-18  Rafael Espíndola  <espindola@google.com>
21429
21430         * tree-vrp.c (find_case_label_index): Fix the binary search.
21431         (find_case_label_range): New.
21432         (vrp_visit_switch_stmt): Use find_case_label_range.
21433         (simplify_switch_using_ranges): Use find_case_label_range.
21434
21435 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
21436
21437         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
21438         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
21439
21440 2008-04-18  Tom Tromey  <tromey@redhat.com>
21441
21442         PR libcpp/15500:
21443         * doc/cpp.texi (Implementation-defined behavior): Mention
21444         -finput-charset.
21445
21446 2008-04-18  Ian Lance Taylor  <iant@google.com>
21447
21448         * fold-const.c (pointer_may_wrap_p): New static function.
21449         (fold_comparison): Add another test for pointer overflow.  Use
21450         pointer_may_wrap_p to disable some false positives.
21451
21452 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
21453
21454         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
21455         (fname_as_string): Match updated cpp_interpret_string prototype.
21456         (fix_string_type): Support char16_t* and char32_t*.
21457         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
21458         derivative) nodes.  Register as builtin if C++0x.
21459         (c_parse_error): Support CPP_CHAR{16,32}.
21460         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
21461         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
21462         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
21463         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
21464         CTI_CHAR32_ARRAY_TYPE>: New elements.
21465         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
21466         char32_type_node, signed_char32_type_node, char16_array_type_node,
21467         char32_array_type_node): New defines.
21468         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
21469         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
21470         (lex_string): Support CPP_STRING{16,32}, match updated
21471         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
21472         (lex_charconst): Support CPP_CHAR{16,32}.
21473         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
21474         and CPP_STRING{16,32}.
21475
21476 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
21477
21478         PR bootstrap/35457
21479         * aclocal.m4: Regenerate.
21480         * configure: Regenerate.
21481
21482 2008-04-18  Jan Hubicka  <jh@suse.cz>
21483
21484         * except.c (dw2_size_of_call_site_table,
21485         sjlj_size_of_call_site_table): Use vector API for call_site_record.
21486
21487         * cgraphbuild.c (build_cgraph_edges): Update.
21488         * tree-pass.h: Update comment.
21489         * final.c (leaf_function_p): Update.
21490         (leaf_renumber_regs): Update.
21491         (rest_of_clean_state): Update.
21492         * omp-low.c (expand_omp_parallel): Update.
21493         * ipa-reference.c (analyze_function): Update.
21494         * reorg.c (find_end_label): Update.
21495         (optimize_skip): Update.
21496         (fill_simple_delay_slots): Update.
21497         (fill_simple_delay_slots): Update.
21498         (make_return_insns): Update.
21499         (dbr_schedule): Update.
21500         * gimple-low.c (record_vars_into): Update.
21501         * cfgbuild.c (make_edges): Update.
21502         * function.c (assign_stack_local): Update.
21503         (assign_parm_adjust_stack_rtl): Update.
21504         (locate_and_pad_parm): Update.
21505         (allocate_struct_function): Do not initialize stack_alignment_needed
21506         and preferred_stack_boundary here.
21507         (stack_protect_prologue): Update.
21508         (stack_protect_epilogue): Update.
21509         (expand_function_start): Initialize stack_alignment_needed,
21510         preferred_stack_boundary and max_jumptable_ents.
21511         (expand_function_end): Update.
21512         (free_after_compilation): Do not NULLify epilogue_delay_list.
21513         * function.h (struct rtl_data): Add stack_protect_guard,
21514         stack_alignment_needed,
21515         preferred_stack_boundary, epilogue_delay_list.
21516         (struct function): Remove value_histograms, stack_alignment_needed,
21517         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
21518         last_label_uid,
21519         unexpanded_var_list, stack_protect_guard.
21520         (current_function_epilogue_delay_list): Remove.
21521         * ipa-type-escape.c (analyze_function): Update.
21522         * gimplify.c (pop_gimplify_context): Update comment.
21523         * calls.c (expand_call): Update.
21524         (emit_library_call_value_1): Update.
21525         * except.c (set_nothrow_function_flags): Update.
21526         * cfgexpand.c (get_decl_align_unit): Update.
21527         (create_stack_guard): Update.
21528         (estimated_stack_frame_size): Update.
21529         (expand_used_vars): Update.
21530         (tree_expand_cfg): Free histogram earliers, init expansion variables.
21531         * explow.c (allocate_dynamic_stack_space): Update.
21532         * tree-ssa-live.c (remove_unused_locals): Update.
21533         * varasm.c (mark_constant_pool): Update.
21534         * tree-inline.c (remap_decls): Update.
21535         (initialize_cfun): Update.
21536         (declare_return_variable): Update.
21537         (inline_forbidden_p): Update.
21538         (expand_call_inline): Update.
21539         (declare_inline_vars): Update.
21540         (tree_function_versioning): Update.
21541         * tree-flow.h (value_histograms): New.
21542         (VALUE_HISTOGRAMS): New macro.
21543         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
21544         last_label_uid.
21545         * tree-cfg.c (set_bb_for_stmt): Update.
21546         (replace_by_duplicate_decl): Update.
21547         (move_block_to_fn): Update.
21548         (new_label_mapper): Update.
21549         (dump_function_to_file): Update.
21550         * ipa-struct-reorg.c (build_data_structure): Update.
21551         * cfgrtl.c (print_rtl_with_bb): Update.
21552         * reload1.c (reload): Update.
21553         (reload): Update.
21554         * config/i386/i386.c (setup_incoming_varargs_64,
21555         ix86_compute_frame_layout): Update.
21556         * config/arc/arc.c (arc_output_function_epilogue): Update.
21557
21558 2008-04-18  Marius Strobl <marius@FreeBSD.org>
21559
21560         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
21561         for FreeBSD as well.
21562         * gthr-posix95.h: Likewise.
21563
21564 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
21565
21566         PR rtl-optimization/35838
21567         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
21568         out the byte offset of the first subreg.
21569
21570 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
21571
21572         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
21573         to split_ti instead of three separate calls with single member arrays.
21574         (subti3 splitter): Ditto.
21575         (adddi3 splitter): Ditto with split_di.
21576         (subdi3 splitter): Ditto.
21577         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
21578         two separate calls with single member arrays.  Swap match_dup
21579         operands 1 and 2 to better fit into the array.
21580         (negdi2 splitter): Ditto with split_di.
21581         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
21582         two separate calls with single member arrays.  Swap match_dup operands
21583         6 and 7 to better fit into the array.
21584
21585 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
21586
21587         * config/i386/i386.c (sse_builtin_type): New.
21588         (bdesc_sse_args): Likewise.
21589         (bdesc_sse_3arg): Removed.
21590         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
21591         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
21592         IX86_BUILTIN_ROUNDPS.
21593         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
21594         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
21595         IX86_BUILTIN_ROUNDPS.
21596         (ix86_expand_sse_4_operands_builtin): Removed.
21597         (ix86_expand_sse_operands_builtin): New.
21598         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
21599         and CODE_FOR_sse4_1_roundps.
21600         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
21601         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
21602
21603 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
21604
21605         PR target/35907
21606         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
21607         regs before frame pop when needed.  If use_backchain_to_restore_sp
21608         then load backchain into a temp reg to restore vr and vrsave.  Add
21609         code to restore vr after frame pop if possible.
21610
21611 2008-04-17  Richard Guenther  <rguenther@suse.de>
21612
21613         * tree-vn.c (expressions_equal_p): Do not check type
21614         equality or compatibility before calling operand_equal_p.
21615         * fold-const.c (operand_equal_p): Check equivalence of
21616         integer constants before bailing out due to signedness or
21617         precision differences.
21618         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
21619         spurious differences in type qualification.  Ignore types
21620         for COMPONENT_REFs at all.
21621
21622 2008-04-17  Christian Bruel  <christian.bruel@st.com>
21623
21624         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
21625         msw_skip comparison.
21626
21627 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
21628
21629         PR c/35739
21630         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
21631         reg type.
21632
21633         PR tree-optimization/35899
21634         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
21635         rather than TREE_OPERAND.
21636
21637 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
21638
21639         PR target/35944
21640         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
21641         temporary registers.  Change operand predicate to general_operand.
21642         (remainderxf3): Ditto.
21643
21644 2008-04-16  Richard Guenther  <rguenther@suse.de>
21645
21646         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
21647         * tree-affine.c (aff_combination_expand): Look through some
21648         conversions.
21649
21650 2008-04-15  Doug Kwan  <dougkwan@google.com>
21651
21652         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
21653         for hex printing.
21654         * tree-pretty-print.c (dump_generic_node): Ditto.
21655         * final.c (output_addr_const): Ditto.
21656         * dwarf2out.c (output_cfi): Ditto.
21657         * c-pretty-print.c (pp_c_integer_constant): Ditto.
21658         * print-rtl.c (print_rtx): Ditto.
21659         * print-tree.c (print_node_brief, print_node): Ditto.
21660         * c-common.c (match_case_to_enum_1): Ditto.
21661         * sched-vis.c (print_value): Ditto.
21662         * config/i386/i386.c (print_operand): Cast to long unsigned int
21663         for hex printing.
21664
21665 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
21666         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
21667         MS Windows VirtualProtect function.
21668
21669 2008-04-15  Jan Hubicka  <jh@suse.cz>
21670
21671         * gengtype.c (write_root): Param_is argument is OK.
21672         * expr.c (expand_expr_real_1): Update call of get_exception_*.
21673         * function.h: Include varray.h
21674         (rtl_eh): New stucture based on except.c one.
21675         (call_site_record): New forward declaration and vector type.
21676         * calls.c (emit_call_1): Do not call
21677         note_current_region_may_contain_throw.
21678         * except.c (eh_status): Remove cur_region, try_region since they are
21679         unused.
21680         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
21681         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
21682         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
21683         Remove call_site_data_used, call_site_data_size.
21684         Turn call_site_record into vector in function.h.
21685         (note_current_region_may_contain_throw): Remove.
21686         (get_exception_pointer, get_exception_filter): Do not take struct
21687         function argument; update.
21688         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
21689         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
21690         build_post_landing_pads, dw2_build_landing_pads,
21691         sjlj_assign_call_site_values, sjlj_mark_call_sites,
21692         sjlj_emit_function_enter, sjlj_emit_function_enter,
21693         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
21694         sjlj_build_landing_pads, finish_eh_generation,
21695         remove_exception_handler_label, remove_eh_handler,
21696         maybe_remove_eh_handler, add_reachable_handler,
21697         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
21698         add_action_record, collect_one_action_chain, add_call_site,
21699         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
21700         sjlj_output_call_site_table, output_function_exception_table,
21701         * except.h (note_current_region_may_contain_throw): Remove
21702         (get_exception_pointer, get_exception_filter): Do not take struct
21703         function argument.
21704         * Makefile.in (GTFILES): Put varargs before struct function.
21705
21706 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
21707
21708         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
21709         punt for STRING_CST.
21710         (get_constraint_for): Deal with STRING_CST here instead.
21711
21712 2008-04-15  Richard Guenther  <rguenther@suse.de>
21713
21714         * tree-ssa-propagate.c (substitute_and_fold): Substitute
21715         statements in a basic-block with a backward walk.  Do not
21716         substitute into dead statements but instead remove those.
21717
21718 2008-04-15  Richard Guenther  <rguenther@suse.de>
21719
21720         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
21721         to zero, thus disable creation of SFTs.
21722
21723 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
21724
21725         * tree-predcom.c (suitable_reference_p): Return false if the
21726         reference can throw.
21727
21728 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
21729
21730         PR c/35751
21731         * c-decl.c (finish_decl): If extern or static var has variable
21732         size, set TREE_TYPE (decl) to error_mark_node.
21733
21734 2008-04-15  Rafael Espíndola  <espindola@google.com>
21735
21736         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
21737         variable arg1.
21738
21739 2008-04-15  Richard Guenther  <rguenther@suse.de>
21740
21741         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
21742         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
21743         (visit_reference_op_load): Do walk vuse-vdef chains on
21744         vn_reference_lookup.
21745         (visit_reference_op_store): But do not here.
21746         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
21747         vn_reference_lookup.
21748         (vn_lookup_with_vuses): But do so here.
21749
21750 2008-04-14  Ian Lance Taylor  <iant@google.com>
21751
21752         * fold-const.c (fold_overflow_warning): Remove assertion.
21753
21754 2008-04-15  Ben Elliston  <bje@au.ibm.com>
21755
21756         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
21757         temp1 local variables.
21758
21759 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
21760
21761         PR target/35661
21762         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
21763         ".text.unlikely" section as executable.
21764
21765 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
21766
21767         * config/ia64/ia64.c (rtx_needs_barrier): Handle
21768         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
21769         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
21770         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
21771         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
21772         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
21773         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
21774
21775 2008-04-14  Ian Lance Taylor  <iant@google.com>
21776
21777         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
21778         * fold-const.c (fold_comparison): If appropriate, test
21779         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
21780         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
21781         reassociating a pointer type.
21782         * doc/invoke.texi (Optimize Options): Document that
21783         -fstrict-overflow applies to pointer wraparound.
21784
21785 2008-04-13  Jan Hubicka  <jh@suse.cz>
21786
21787         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
21788
21789 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
21790
21791         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
21792         we are going to "save the world".
21793
21794 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
21795
21796         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
21797         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
21798         operand 0 constraint, not "=".
21799
21800 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
21801
21802         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
21803
21804 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
21805
21806         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
21807         of size of positions_needed * CHAR_BIT.
21808
21809 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
21810
21811         PR middle-end/35897
21812         * dse.c (store_info): Change positions_needed to unsigned
21813         HOST_WIDE_INT.
21814         (lowpart_bitmask): New.
21815         (record_store): Cast to unsigned HOST_WIDE_INT for
21816         positions_needed.  Assert width <= size of positions_needed *
21817         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
21818         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
21819         lowpart_bitmask to set mask.
21820
21821 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
21822
21823         * config/bfin/constraints.md: New file.
21824         * config/bfin/bfin.md: Include it.
21825         (adddi3): Use satisfies_constraint functions instead of the old macros.
21826         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
21827         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
21828         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
21829         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
21830         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
21831         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
21832         EXTRA_CONSTRAINT): Delete.
21833         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
21834         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
21835         of the old macros.
21836         * config/bfin/bfin.c: Include "tm-constrs.h".
21837         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
21838         Use satisfies_constraint functions instead of the old macros.
21839         * doc/md.texi (Blackfin Constraints): Update file name reference.
21840
21841 2008-04-11  Richard Guenther  <rguenther@suse.de>
21842
21843         PR tree-optimization/35869
21844         * tree-vrp.c (execute_vrp): Move switch statement update after
21845         jump threading.  Schedule another cfg cleanup run.
21846
21847 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
21848
21849         PR c/35744
21850         * attribs.c (decl_attributes): Return early on errorneous node.
21851
21852 2008-04-10  Oleg Ryjkov  <olegr@google.com>
21853
21854         * tree.h (struct tree_base): Added a new flag default_def_flag.
21855         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
21856
21857 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
21858
21859         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
21860
21861 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21862
21863         PR target/35768
21864         * pa.md: Define mode iterator P.  Define mode attribute dwc.
21865         (dcacheflush): Update pattern to use iterator P and attribute dwc.
21866         (icacheflush): Likewise.
21867         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
21868         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
21869
21870 2008-04-11  Ben Elliston  <bje@au.ibm.com>
21871
21872         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
21873
21874 2008-04-10  Rafael Espíndola  <espindola@google.com>
21875
21876         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
21877         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
21878         (extract_range_from_expr): The same.
21879
21880 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
21881
21882         * config/mips/mips.md (GPR2): New mode iterator.
21883         (seq): Add comment.
21884         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
21885         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
21886         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
21887         Rewrite these to take two modes, the mode of comparison and the
21888         mode of the destination.
21889         * config/mips/mips.c (mips_expand_scc): Instead of having
21890         paradoxical subreg as destination, expand "narrowing" scc if mode
21891         of comparison is SI and target is requested in DI mode.
21892         (mips_emit_int_order_test): Update comment.  Make mode of
21893         comparison match CMP0 rather than TARGET.  When creating inverse
21894         target use mode of TARGET.
21895
21896 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
21897
21898         * gcov-dump.c (tag_summary): Only print summaries for the first
21899         GCOV_COUNTERS_SUMMABLE counters.
21900
21901 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
21902
21903         * config/i386/i386.md (absneg): New code iterator.
21904         (absnegprefix): New code attribute.
21905         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
21906         patterns using absneg code iterator.
21907         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
21908         using absneg code iterator.
21909         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
21910         *neg<mode>2 patterns using absneg code iterator.
21911         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
21912         *negextendsfdf2 patterns using absneg code iterator.
21913         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
21914         *negextendsfxf2 patterns using absneg code iterator.
21915         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
21916         *negextendsfdf2 patterns using absneg code iterator.
21917         * config/i386/sse.md (<code><mode>2): Macroize expander from
21918         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
21919
21920 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
21921
21922         * config/s390/s390.h: Remove the remains of the recent search
21923         & replace action of current_function_outgoing_args_size.
21924
21925 2008-04-10  Ira Rosen  <irar@il.ibm.com>
21926
21927         PR tree-optimization/35821
21928         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
21929         NEW_STMT_LIST is not NULL.
21930
21931 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
21932
21933         PR libstdc++/35597
21934         * toplev.c (process_options): Remove -ffunction-sections debugging
21935         warning.
21936
21937 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
21938
21939         PR middle-end/PR28690
21940         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
21941         than gen_rtx_fmt_ee to perform more canonicalizations.
21942
21943 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21944
21945         PR driver/35665
21946         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
21947
21948 2008-04-09  Richard Guenther  <rguenther@suse.de>
21949
21950         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
21951         (dump_function_to_file): Dump function arguments with types.
21952
21953 2008-04-08  Richard Guenther  <rguenther@suse.de>
21954
21955         * fold-const.c (fold_widened_comparison): Do not allow
21956         sign-changes that change the result.
21957
21958 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
21959
21960         PR target/35839
21961         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
21962         kinds of indirect references.
21963
21964 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
21965
21966         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
21967         GNU Fortran language string.
21968
21969 2008-04-08  Rafael Espíndola  <espindola@google.com>
21970
21971         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
21972         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
21973         * tree.h (tree_call_nonnegative_warnv_p): New.
21974
21975 2008-04-08  Jan Hubicka  <jh@suse.cz>
21976
21977         * function.c (free_after_compilation): Clear out regno_reg_rtx
21978         pointer.
21979
21980 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
21981
21982         Revert
21983         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
21984
21985         PR middle-end/PR28690
21986         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
21987         same precedence as REG_POINTER and MEM_POINTER operands.
21988
21989 2008-04-08  Richard Guenther  <rguenther@suse.de>
21990
21991         PR middle-end/35834
21992         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
21993         for adding index to base.
21994
21995 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
21996
21997         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
21998         (MINGW_ENABLE_EXECUTE_STACK): New.
21999         (IN_LIBGCC2): For libgcc include windows.h file for
22000         function declarations.
22001
22002 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
22003
22004         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
22005         and tem2 if tem1 is not a REG or MULT.
22006
22007 2008-04-08  Jan Hubicka  <jh@suse.cz>
22008
22009         * function.h (incomming_args): Break out of struct function.
22010         (function_subsections): Break out of struct function.
22011         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
22012         return_rtx and hard_reg_initial_vals from struct function.
22013         Kill inl_max_label_num.
22014         (current_function_pops_args, current_function_args_info,
22015         current_function_args_size, current_function_args_size,
22016         current_function_pretend_args_size,
22017         current_function_outgoing_args_size,
22018         current_function_internal_arg_pointer, current_function_return_rtx):
22019         Kill compatibility accestor macros.
22020         * builtins.c (expand_builtin_apply_args_1): Update.
22021         (expand_builtin_next_arg): Update.
22022         * df-scan.c (df_get_call_refs): Update.
22023         * dbxout.c (dbxout_function_end): Update.
22024         * dwarf2out.c (dwarf2out_switch_text_section): Update.
22025         (output_line_info): Update.
22026         (secname_for_decl): Update.
22027         (dwarf2out_var_location): Update.
22028         * function.c (free_after_compilation): Update.
22029         (assign_parm_find_stack_rtl): Update.
22030         (assign_parms): Update.
22031         (expand_dummy_function_end): Update.
22032         (expand_function_end): Update.
22033         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
22034         (expand_call): Update.
22035         (emit_library_call_value_1): Update.
22036         (store_one_arg): Update.
22037         * varasm.c (initialize_cold_section_name): Update.
22038         (unlikely_text_section): Update.
22039         (unlikely_text_section_p): Update.
22040         (assemble_start_function): Update.
22041         (assemble_end_function): Update.
22042         (default_section_type_flags): Update.
22043         (switch_to_section): Update.
22044         * integrate.c (set_decl_abstract_flags): Update.
22045         (get_hard_reg_initial_val): Update.
22046         (has_hard_reg_initial_val): Update.
22047         (allocate_initial_values): Update.
22048         * resource.c (init_resource_info): Update.
22049         * config/alpha/alpha.c (NUM_ARGS): Update.
22050         (direct_return): Update.
22051         (alpha_va_start): Update.
22052         (alpha_sa_size): Update.
22053         (alpha_initial_elimination_offset): Update.
22054         (alpha_expand_prologue): Update.
22055         (alpha_start_function): Update.
22056         (alpha_expand_epilogue): Update.
22057         (unicosmk_initial_elimination_offset):
22058         * config/alpha/alpha.md (call expander): Update.
22059         * config/s390/s390.c (s390_register_info): Update.
22060         (s390_register_info): Update.
22061         (s390_frame_info): Update.
22062         (s390_initial_elimination_offset): Update.
22063         (s390_build_builtin_va_list): Update.
22064         (s390_va_start): Update.
22065         * config/spu/spu.c (direct_return): Update.
22066         (spu_expand_prologue): Update.
22067         (spu_initial_elimination_offset): Update.
22068         (spu_build_builtin_va_list): Update.
22069         (spu_va_start): Update.
22070         * config/sparc/sparc.c (sparc_init_modes): Update.
22071         (sparc_compute_frame_size): Update.
22072         (function_value): Update.
22073         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
22074         * config/i386/i386.md (return expander): Update.
22075         * config/i386/i386.c (ix86_va_start): Update.
22076         (ix86_can_use_return_insn_p): Update.
22077         (ix86_compute_frame_layout): Update.
22078         (ix86_expand_epilogue): Update.
22079         * config/sh/sh.c (output_stack_adjust): Update.
22080         (calc_live_regs): Update.
22081         (sh_expand_prologue): Update.
22082         (sh_builtin_saveregs): Update.
22083         (sh_va_start): Update.
22084         (initial_elimination_offset): Update.
22085         (sh_allocate_initial_value): Update.
22086         (sh_function_ok_for_sibcall): Update.
22087         (sh_get_pr_initial_val): Update.
22088         * config/sh/sh.md (return expander): Update.
22089         * config/avr/avr.c (frame_pointer_required_p): UPdate.
22090         * config/crx/crx.c (crx_compute_frame): UPdate.
22091         (crx_initial_elimination_offset): UPdate.
22092         * config/xtensa/xtensa.c (compute_frame_size): Update
22093         (xtensa_builtin_saveregs): Update.
22094         (xtensa_va_start): Update.
22095         (order_regs_for_local_alloc): Update.
22096         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
22097         (xstormy16_expand_builtin_va_start): Update.
22098         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
22099         * config/m68hc11/m68hc11.md (return expanders): Update.
22100         * config/m68hc11/m68hc11.c (expand_prologue): Update.
22101         (expand_epilogue): Update.
22102         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
22103         (cris_simple_epilogue): Update.
22104         (cris_expand_prologue): Update.
22105         (cris_expand_epilogue): Update.
22106         * config/iq2000/iq2000.c (iq2000_va_start): Update.
22107         (compute_frame_size): Update.
22108         * config/mt/mt.c (mt_compute_frame_size): Update.
22109         * config/mn10300/mn10300.c (expand_prologue): Update.
22110         (expand_epilogue): Update.
22111         (initial_offset): Update.
22112         (mn10300_builtin_saveregs):
22113         * config/mn10300/mn10300.md (return expander): Update.
22114         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
22115         (ia64_initial_elimination_offset): Update.
22116         (ia64_initial_elimination_offset): Update.
22117         (ia64_expand_prologue): Update.
22118         * config/m68k/m68k.md (return expander): Update.
22119         * config/rs6000/rs6000.c (rs6000_va_start): Update.
22120         (rs6000_stack_info): Update.
22121         * config/mcore/mcore.c (layout_mcore_frame): Update.
22122         (mcore_expand_prolog): Update.
22123         * config/arc/arc.c (arc_compute_frame_size): Update.
22124         * config/score/score3.c (score3_compute_frame_size): Update.
22125         * config/score/score7.c (score7_compute_frame_size): Update.
22126         * config/arm/arm.c (use_return_insn): Update.
22127         (thumb_find_work_register): Update.
22128         (arm_compute_save_reg_mask): Update.
22129         (arm_output_function_prologue): Update.
22130         (arm_output_epilogue): Update.
22131         (arm_size_return_regs): Update.
22132         (arm_get_frame_offsets): Update.
22133         (arm_expand_prologue): Update.
22134         (thumb_exit): Update.
22135         (thumb_unexpanded_epilogue): Update.
22136         (thumb1_output_function_prologue): Update.
22137         * config/pa/pa.md (return expander): Update.
22138         * config/pa/pa.c (compute_frame_size): Update.
22139         (hppa_builtin_saveregs): Update.
22140         * config/mips/mips.c (mips_va_start): Update.
22141         (mips16_build_function_stub): Update.
22142         (mips_compute_frame_info): Update.
22143         (mips_restore_gp): Update.
22144         (mips_output_function_prologue): Update.
22145         (mips_expand_prologue): Update.
22146         * config/v850/v850.c (compute_frame_size): Update.
22147         (expand_prologue): * config/mmix/mmix.c (along): update.
22148         (mmix_initial_elimination_offset): update.
22149         (mmix_reorg): update.
22150         (mmix_use_simple_return): update.
22151         (mmix_expand_prologue): update.
22152         (mmix_expand_epilogue): Update.
22153         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
22154         (emit_link_insn): Update.
22155
22156 2008-04-08  Anatoly Sokolov <aesok@post.ru>
22157
22158         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
22159         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
22160         instructions.
22161         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
22162         atmega103 device.
22163
22164 2008-04-07  Jan Hubicka  <jh@suse.cz>
22165
22166         * function.h (rtl): Rename to x_rtl.
22167         (crtl): New define.
22168         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
22169         frame_offset, stack_check_probe_note, arg_pointer_save_area,
22170         used_temp_slots avail_temp_slots, temp_slot_level,
22171         nonlocal_goto_handler_labels): Update accesstors.
22172         (rtl): New global variable.
22173         (struct function): Move some fileds to rtl_data.
22174         (get_arg_pointer_save_area): Update prototype.
22175         * builtins.c (expand_builtin_setjmp_receiver): Update call of
22176         get_arg_pointer_save_area.
22177         * expr.c (init_expr): Update
22178         * function.c (get_frame_size): Update
22179         (assign_stack_local): Update
22180         (expand_function_end): Update.
22181         (get_art_pointer_save_area): Update
22182         * function.h
22183         * emit-rtl.c (rtl): Declare.
22184         (regno_reg_rtx): Declare.
22185         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
22186         Update.
22187         (gen_reg_rtx): Update.
22188         * varasm.c (n_deferred_constatns): Update accestor.
22189         (init_varasm_status): Do not allocate varasm_status.
22190         (force_const_mem, get_pool_size, output_constant_pool): Update.
22191         * stmt.c (force_label_rtx): Do not use x_ prefixes.
22192         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
22193         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
22194         * sparc/sparc.h (INIT_EXPANDERS): Update.
22195         * ia64/ia64.h (INIT_EXPANDERS): Update.
22196
22197 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
22198
22199         * reload.c (push_secondary_reload): Add missing break to for loop.
22200
22201 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
22202
22203         PR middle-end/PR28690
22204         * rtlanal.c: Update copyright years.
22205         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
22206         as REG_POINTER and MEM_POINTER operands.
22207         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
22208         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
22209         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
22210         * gcse.c: Update copyright years.
22211         (pre_delete): Call gen_reg_rtx_and_attrs.
22212         (hoist_code): Likewise.
22213         (build_store_vectors): Likewise.
22214         (delete_store): Likewise.
22215         * loop-invariant.c (move_invariant_reg): Likewise.
22216         Update copyright years.
22217
22218 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
22219
22220         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
22221         control string instead of quoted.
22222
22223 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
22224
22225         * doc/rtl.texi: Rewrite of subreg section.
22226
22227 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
22228
22229         PR/35842
22230         * config/i386/i386.c (legitimize_pic_address): Add treating
22231         of dllimport SYM_REF's.
22232         (legitimize_dllimport_symbol): Add prototype.
22233
22234 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
22235
22236         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
22237         reference in constructor with non self-referential type.
22238
22239 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
22240
22241         Removal of Return with Depressed Stack Pointer support
22242         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
22243         (ECF_SP_DEPRESSED): Likewise.
22244         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
22245         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
22246         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
22247         (expand_call): Do not test ECF_SP_DEPRESSED.
22248         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
22249         * function.c (keep_stack_depressed): Delete.
22250         (handle_epilogue_set): Likewise.
22251         (update_epilogue_consts): Likewise.
22252         (emit_equiv_load): Likewise.
22253         (thread_prologue_and_epilogue_insns): Remove support for Return with
22254         Depressed Stack Pointer.
22255         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
22256
22257 2008-04-06  Richard Guenther  <rguenther@suse.de>
22258
22259         PR tree-optimization/35400
22260         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
22261         information from SSA_NAMEs.
22262
22263 2008-04-06  Anatoly Sokolov <aesok@post.ru>
22264
22265         * config/avr/avr.h (avr_mega_p): Remove declaration.
22266         (AVR_MEGA): Remove macro.
22267         * config/avr/avr.c (avr_mega_p): Remove variable.
22268         (avr_override_options): Remove inicializion of avr_mega_p.
22269         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
22270         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
22271         (avr_jump_mode): (Ditto.).
22272         (avr_output_progmem_section_asm_op): (Ditto.).
22273         (avr_asm_init_sections): (Ditto.).
22274         (avr_asm_init_sections): (Ditto.).
22275         (avr_rtx_costs): (Ditto.).
22276         * config/avr/avr.md: (Ditto.).
22277         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
22278         '__AVR_MEGA__'.
22279
22280 2008-04-06  Richard Guenther  <rguenther@suse.de>
22281
22282         PR tree-optimization/35842
22283         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
22284         is_gimple_invariant_address.
22285
22286 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
22287
22288         * gcc.c (default_compilers): Sync Fortran extensions list with
22289         that in fortran/lang-specs.h.
22290         * doc/invoke.texi: Likewise.
22291         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
22292         * dwarf2out.c (gen_compile_unit_die): Likewise.
22293
22294 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
22295
22296         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
22297
22298 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
22299
22300         PR target/12329
22301         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
22302         attribute is used for nested functions.
22303
22304 2008-04-05  Jan Hubicka  <jh@suse.cz>
22305
22306         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
22307
22308         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
22309         letter argument.
22310         (dump_files): Update.
22311         (enable_rtl_dump_file): Do not accept letter argument.
22312         * tree-pass.h (dump_file_info): Remove letter argument.
22313         * toplev.c (decode_d_option): Update -da handling.
22314         * toplev.h (enable_rtl_dump_file): Update prototype.
22315         * passes.c (register_one_dump_file): Do not accept IPA argument; work
22316         it out based on pass type.
22317         (register_dump_files_1): Likewise.
22318         (init_optimization_passes): Update register_one_dump_file calls.
22319         (execute_one_pass): Sanity check that IPA passes are called at IPA
22320         level and RTL passes at RTL level.
22321         (execute_pass_list): IPA pass can not be after or subpass of
22322         GIMPLE/RTL pass.
22323         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
22324         disallov RTL subpasses of IPA subpasses.
22325
22326 2008-04-05  Ben Elliston  <bje@au.ibm.com>
22327
22328         * tree-cfg.c (need_fake_edge_p): Return false for calls to
22329         builtins that return exactly once and do not throw. Cache call to
22330         call_expr_flags.
22331
22332 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
22333
22334         PR rtl-optimization/34916
22335         PR middle-end/35519
22336         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
22337         between instruction pairs.
22338
22339 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
22340
22341         * doc/invoke.texi: Document -mbitops for SH.
22342         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
22343         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
22344         * config/sh/sh.c (print_operand): Add %t operand code.
22345         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
22346         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
22347         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
22348         (extendqihi2): Likewise.
22349         (movqi_i): Likewise.
22350         (insv): Use bset, bclr and bst instructions for SH2A if possible.
22351         (extv): Use bld instruction for SH2A if possible.
22352         (extzv): Likewise.
22353         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
22354         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
22355         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
22356         (bset.b, bclr.b): Define peepholes.
22357         * config/sh/sh.opt (mbitops): New option.
22358
22359 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
22360
22361         PR target/35620
22362         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
22363         and view convert expression.
22364
22365 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
22366
22367         PR target/35364
22368         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
22369
22370 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
22371
22372         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
22373
22374         * config/i386/cpuid.h (bit_AES): New.
22375         (bit_PCLMUL): Likewise.
22376
22377         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
22378         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
22379         SSE2 if AES or PCLMUL is enabled.
22380         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
22381         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
22382         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
22383         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
22384         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
22385         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
22386         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
22387         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
22388         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
22389         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
22390         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
22391         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
22392         __builtin_ia32_aeskeygenassist128 and
22393         __builtin_ia32_pclmulqdq128.
22394         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
22395         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
22396         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
22397
22398         * config/i386/i386.h (TARGET_AES): New.
22399         (TARGET_PCLMUL): Likewise.
22400         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
22401
22402         * config/i386/i386.md (UNSPEC_AESENC): New.
22403         (UNSPEC_AESENCLAST): Likewise.
22404         (UNSPEC_AESDEC): Likewise.
22405         (UNSPEC_AESDECLAST): Likewise.
22406         (UNSPEC_AESIMC): Likewise.
22407         (UNSPEC_AESKEYGENASSIST): Likewise.
22408         (UNSPEC_PCLMUL): Likewise.
22409
22410         * config/i386/i386.opt (maes): New.
22411         (mpclmul): Likewise.
22412
22413         * config/i386/sse.md (aesenc): New pattern.
22414         (aesenclast): Likewise.
22415         (aesdec): Likewise.
22416         (aesdeclast): Likewise.
22417         (aesimc): Likewise.
22418         (aeskeygenassist): Likewise.
22419         (pclmulqdq): Likewise.
22420
22421         * config/i386/wmmintrin.h: New.
22422
22423         * doc/extend.texi: Document AES and PCLMUL built-in function.
22424
22425         * doc/invoke.texi: Document -maes and -mpclmul.
22426
22427 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
22428
22429         * function.c (free_after_parsing): Replace with
22430         cxx_push_function_context from C++ front-end.
22431         (allocate_struct_function): Don't call langhook.
22432         * langhooks.h (struct lang_hooks_for_functions): Delete.
22433         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
22434         member "function".
22435         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
22436         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
22437         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
22438         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
22439         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
22440         remove LANG_HOOKS_FUNCTION_INITIALIZER.
22441         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
22442
22443         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
22444         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
22445
22446 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
22447
22448         PR c/35440
22449         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
22450         for all types.
22451
22452 2008-04-04  Richard Guenther  <rguenther@suse.de>
22453
22454         PR middle-end/35823
22455         * fold-const.c (optimize_minmax_comparison): Use the correct
22456         type for the constant in the simplified comparison.
22457
22458 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
22459
22460         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
22461         Pass L2 size as "--param l2-cache-size" to the compiler.
22462         (decode_l2_cache): New function to decode L2 cache parameters using
22463         0x8000006 extended cpuid function.
22464         (detect_caches_amd): Determine parameters of L2 cache using
22465         decode_l2_caches function.
22466         (decode_caches_intel): Decode L2 cache parameters.
22467         (detect_caches_intel): Determine L2 cache parameters using
22468         decode_caches_intel and decode_l2_caches functions.
22469
22470 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
22471
22472         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
22473         secondary input reload for subword loads from the constant pool.
22474
22475 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
22476
22477         PR target/35713
22478         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
22479           constants of the appropriate size for runtime calculations.
22480
22481         PR c/35712
22482         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
22483           decimal-float literal constant zero.
22484
22485 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
22486
22487         PR c/35738
22488         * c-parser.c (c_parser_omp_atomic): Call
22489         default_function_array_conversion on the RHS.
22490
22491         PR middle-end/35818
22492         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
22493         call is_variable_sized if decl has incomplete type.
22494
22495 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
22496
22497         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
22498
22499 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
22500
22501         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
22502         iterators.
22503         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
22504         (sgt<u>): Merge sgt and sgtu into new expander.
22505         (sgt, sgtu): Remove expanders.
22506         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
22507         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
22508         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
22509         *sgtu_<mode>_mips16 into new pattern.
22510         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
22511         (sge<u>): Merge sge and sgeu into new expander.
22512         (sge, sgeu): Remove expanders.
22513         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
22514         new pattern.
22515         (*sge_<mode>, second *sge_<mode>): Remove patterns.
22516         (slt<u>): Merge slt and sltu into new expander.
22517         (slt, sltu): Remove expanders.
22518         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
22519         (*slt_<mode>, *sltu_<mode>): Remove patterns.
22520         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
22521         *sltu_<mode>_mips16 into new pattern.
22522         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
22523         (sle<u>): Merge sle and sleu into new expander.
22524         (sle, sleu): Remove expanders.
22525         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
22526         (*sle_<mode>, *sleu_<mode>): Remove patterns.
22527         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
22528         *sleu_<mode>_mips16 into new pattern.
22529         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
22530
22531 2008-04-03  Jan Hubicka  <jh@suse.cz>
22532
22533         PR tree-optimization/35795
22534         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
22535         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
22536         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
22537         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
22538         * score/score3.c (score3_output_mi_thunk): Likewise.
22539         * score/score7.c (score7_output_mi_thunk): Likewise.
22540         * mips/mips.c (mips_output_mi_thunk): Likewise.
22541
22542 2008-04-03  Richard Guenther  <rguenther@suse.de>
22543
22544         * tree-vrp.c (extract_range_from_unary_expr): Handle all
22545         conversions.  Simplify code.
22546
22547 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
22548
22549         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
22550
22551 2008-04-03  Tom Tromey  <tromey@redhat.com>
22552             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22553
22554         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
22555         * config/bfin/t-bfin-linux (generated_files): Add
22556         linux-sysroot-suffix.h.
22557         * doc/install.texi (Prerequisites): Require make 3.80.
22558         * doc/sourcebuild.texi (Front End Directory): Document new
22559         variable.
22560         * Makefile.in (generated_files): New variable.
22561         (ALL_HOST_OBJS): New variable.
22562         ($(ALL_HOST_OBJS)): New target.
22563
22564 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
22565
22566         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
22567         (remap_block): Call id->transform_lang_insert_block instead
22568         of langhook.
22569         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
22570         Set id.transform_lang_insert_block to NULL.
22571         (clone_body): Move to cp/optimize.c
22572         * tree-inline.h (struct copy_body_data): Change
22573         transform_lang_insert_block to function pointer.
22574         (copy_generic_body, copy_decl_no_change): Export.
22575         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
22576         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
22577         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
22578
22579         * c-tree.h (insert_block): Kill.
22580         * c-decl.c (insert_block): Kill.
22581
22582 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
22583
22584         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
22585         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
22586         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
22587         argument.
22588         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
22589         argument, call {push,pop}_function_context from here.
22590         * c-parser.c: Use c_{push,pop}_function_context.
22591
22592         * function.c (push_function_context_to): Move meat ...
22593         (push_function_context): ... here.  Simplify.
22594         * function.c (pop_function_context_from): Move meat ...
22595         (pop_function_context): ... here.  Simplify.
22596         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
22597         leave_nested).
22598         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
22599         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
22600         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
22601         * tree.h (push_function_context_to, pop_function_context_from): Remove.
22602
22603 2008-04-03  Ben Elliston  <bje@au.ibm.com>
22604
22605         * expmed.c (extract_force_align_mem_bit_field): Remove.
22606
22607 2008-04-03  Richard Guenther  <rguenther@suse.de>
22608
22609         PR middle-end/35800
22610         * expr.h (try_casesi): Adjust prototype.
22611         * expr.c (try_casesi): Take fallback label as extra parameter.
22612         Use that for gen_casesi if default_label is NULL.
22613         * stmt.c (expand_case): Pass fallback label to try_casesi,
22614         make sure to fill gaps with a fallback label if default_label
22615         is not present.
22616
22617 2008-04-03  Dominique d'Humières <dominiq@lps.ens.fr>
22618
22619         PR target/35801
22620         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
22621
22622 2008-04-03  Ben Elliston  <bje@au.ibm.com>
22623
22624         * expmed.c (extract_split_bit_field): Remove if (0) code.
22625         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
22626         (do_ds_constraint): Likewise.
22627
22628 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
22629
22630         * doc/cppopts.texi (-dU): Document.
22631         * c-common.h (flag_dump_macros): Update comment.
22632         * c-opts.c (handle_OPT_d): Handle -dU.
22633         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
22634         dump_queued_macros, cb_used_define, cb_used_undef): New.
22635         (init_pp_output): Handle -dU.
22636         (cb_line_change): Call dump_queued_macros.
22637         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
22638
22639 2008-04-02  Anatoly Sokolov <aesok@post.ru>
22640
22641         * config/avr/predicates.md (io_address_operand): New predicate.
22642         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
22643         * config/avr/avr.c (avr_io_address_p): Remove function.
22644         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
22645         'avr_io_address_p' function.
22646         (out_movhi_r_mr): (Ditto.).
22647         (out_movqi_mr_r): (Ditto.).
22648         (out_movhi_mr_r): (Ditto.).
22649         (avr_address_cost): (Ditto.).
22650
22651 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
22652
22653         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
22654         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
22655         in 32bit mode when XMM registers are available to avoid store
22656         forwarding stalls.
22657         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
22658         corresponding post-reload splitters.
22659
22660 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
22661
22662         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
22663         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
22664         __builtin_ia32_roundss.
22665         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
22666         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
22667         __builtin_ia32_roundss.
22668         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
22669         IX86_BUILTIN_SHUFPD here.
22670
22671 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
22672
22673         * config/i386/i386.md (plogic): New.
22674         (plogicprefix): Likewise.
22675
22676         * config/i386/mmx.md (mmx_<code><mode>3): New.
22677         (mmx_and<mode>3): Removed.
22678         (mmx_ior<mode>3): Likewise.
22679         (mmx_xor<mode>3): Likewise.
22680
22681         * config/i386/sse.md (<code><mode>3): New.
22682         (*<code><mode>3): Likewise.
22683         (*<code><mode>3): Likewise.
22684         (<code><mode>3): Likewise.
22685         (*sse_<code><mode>3): Likewise.
22686         (*sse2_<code><mode>3): Likewise.
22687         (<code>tf3): Likewise.
22688         (*<code>tf3): Likewise.
22689         (and<mode>3): Likewise.
22690         (*and<mode>3): Likewise.
22691         (ior<mode>3): Removed.
22692         (*ior<mode>3): Likewise.
22693         (xor<mode>3): Likewise.
22694         (*xor<mode>3): Likewise.
22695         (*and<mode>3): Likewise.
22696         (*ior<mode>3): Likewise.
22697         (*xor<mode>3): Likewise.
22698         (and<mode>3): Likewise.
22699         (*sse_and<mode>3): Likewise.
22700         (*sse2_and<mode>3): Likewise.
22701         (andtf3): Likewise.
22702         (*andtf3): Likewise.
22703         (ior<mode>3): Likewise.
22704         (*sse_ior<mode>3): Likewise.
22705         (*sse2_ior<mode>3): Likewise.
22706         (iortf3): Likewise.
22707         (*iortf3): Likewise.
22708         (xor<mode>3): Likewise.
22709         (*sse_xor<mode>3): Likewise.
22710         (*sse2_xor<mode>3): Likewise.
22711         (xortf3): Likewise.
22712         (*xortf3): Likewise.
22713
22714 2008-04-02  Richard Guenther  <rguenther@suse.de>
22715
22716         PR tree-optimization/14495
22717         PR tree-optimization/34793
22718         * tree-vrp.c (struct switch_update): New structure.
22719         (to_remove_edges, to_update_switch_stmts): New VECs.
22720         (simplify_switch_using_ranges): New function.  Remove not taken
22721         case labels and edges.
22722         (simplify_stmt_using_ranges): Call it.
22723         (identify_jump_threads): Mark edges we have queued for removal
22724         so we don't thread them.
22725         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
22726         case label vector.
22727         * tree-cfg.c (group_case_labels): Deal with missing default label.
22728         (tree_verify_flow_info): Allow missing default label.
22729         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
22730         (emit_case_nodes): Likewise.
22731         (expand_case): Do not rely on the default label to be present.
22732         * expr.c (try_casesi): Deal with NULL default_label.
22733         (do_tablejump): Likewise.
22734
22735 2008-04-02  Richard Guenther  <rguenther@suse.de>
22736
22737         PR tree-optimization/14495
22738         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
22739         SWITCH_EXPR here ...
22740         (vrp_visit_switch_stmt): ... but here (new function).
22741         (find_case_label_index): New helper function.
22742         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
22743
22744 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
22745
22746         * fwprop.c: Fix ISO-C99ism.
22747
22748 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
22749
22750         PR bootstrap/35752
22751         * Makefile.in (objdir): Set it here.
22752         * configure.ac: Not here.  Find dynamic linker characteristics.
22753         * exec-tool.in: Use them.
22754         * aclocal.m4: Regenerate.
22755         * configure: Regenerate.
22756
22757 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
22758
22759         * expr.c (expand_var): Delete it.
22760         * expr.h (expand_var): Delete prototype.
22761         * function.c (expand_function_start): Use expand_decl instead.
22762         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
22763         langhook.
22764
22765 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
22766
22767         PR rtl-optimization/35542
22768         * fwprop.c (forward_propagate_and_simplify): Replace
22769         loc_reg_mentioned_in_p with reg_mentioned_p.
22770
22771 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
22772
22773         PR rtl-optimization/35281
22774         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
22775         (propagate_rtx_1): Handle PR_HANDLE_MEM.
22776         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
22777         (varying_mem_p): Move above propagate_rtx.
22778         (all_uses_available_at): Do not check MEMs.
22779
22780 2008-04-02  Rafael Espíndola  <espindola@google.com>
22781
22782         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
22783         (register_edge_assert_for_2): Split the cond argument.
22784         (register_edge_assert_for_1): Adjust for the change in
22785         register_edge_assert_for_2.
22786         (register_edge_assert_for): Split the cond argument.
22787         (find_switch_asserts): Adjust for the change in
22788         register_edge_assert_for.
22789
22790 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
22791
22792         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
22793         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
22794         offsets for 64-bit mingw.
22795         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
22796         abi for x86_64-pc-mingw.
22797
22798 2008-04-02  Richard Guenther  <rguenther@suse.de>
22799
22800         * tree-vrp.c (extract_range_from_assert): Make sure to not
22801         produce range min/max with TREE_OVERFOW set.
22802         If merging a anti-range and a range keep the anti-range if
22803         the range covers all values of the type.
22804         (register_edge_assert_for_2): Only allow sign-changing
22805         conversions in detecting canonical range checks.  Also
22806         register an assert for the unsigned name if useful.
22807
22808         PR tree-optimization/35787
22809         * tree-vrp.c (vrp_val_max): New function.
22810         (vrp_val_min): Likewise.
22811         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
22812         (vrp_val_is_min): Likewise.
22813         (supports_overflow_infinity): Use vrp_val_{min,max}.
22814         (negative_overflow_infinity): Likewise.
22815         (positive_overflow_infinity): Likewise.
22816         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
22817         (is_positive_overflow_infinity): Likewise.
22818         (is_overflow_infinity): Likewise.
22819         (avoid_overflow_infinity): Use vrp_val_{min,max} and
22820         vrp_val_is_{min,max}.
22821         (set_and_canonicalize_value_range): Canonicalize anti-ranges
22822         to ranges if possible.  Avoid empty ranges.
22823
22824 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22825
22826         PR middle-end/35705
22827         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
22828         the expression is a function address.
22829
22830 2008-04-01  George Helffrich  <george@gcc.gnu.org>
22831
22832         PR fortran/35154, fortran/23057
22833         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
22834         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
22835         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
22836         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
22837         in common.
22838         (dbxout_syms): Check for COMMON-based symbol and wrap in
22839         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
22840         in bracket for efficiency.
22841
22842         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
22843         using DW_TAG_common_block + member offset.
22844         (add_pubname_string): New function.
22845         (dw_expand_expr): New function to find block name and offset for
22846         COMMON var.
22847         (common_check): New function to check whether symbol in Fortran COMMON.
22848         (gen_variable_die): If COMMON, use DW_TAG_common_block.
22849
22850 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
22851
22852         PR c/35436
22853         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
22854
22855 2008-04-02  Ben Elliston  <bje@au.ibm.com>
22856
22857         * config/v850/v850.md (casesi): Remove if (0) code.
22858         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
22859         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
22860
22861 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
22862
22863         * config/i386/i386.md (rex64suffix): New mode attribute.
22864         (floathi<mode>2): Disable expander for SSE math.
22865         (*floathi<mode>2_1): New insn insn_and_split pattern.
22866         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
22867         corresponding post-reload splitters.
22868         (*floathi<mode>2_i387): New macroized insn pattern.
22869         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
22870         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
22871         insn_and_split pattern.
22872         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
22873         New macroized instruction patterns and corresponding post-reload
22874         splitters.
22875         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
22876         and corresponding post-reload splitters.
22877         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
22878         New macroized instruction patterns.
22879         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
22880         macroized instruction patterns and corresponding post-reload splitters.
22881         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
22882         corresponding post-reload splitters.
22883         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
22884         New macroized instruction patterns.
22885         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
22886         corresponding post-reload splitters.
22887         (*floatsi<mode>2_i387): New macroized instruction patterns.
22888
22889 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
22890
22891         * config/i386/i386.md (smaxmin): New.
22892         (umaxmin): Likewise.
22893         (maxminiprefix): Likewise.
22894         (maxminfprefix): Likewise.
22895         (<code><mode>3): Likewise.
22896         (smin<mode>3): Removed.
22897         (smax<mode>3): Likewise.
22898
22899         * config/i386/mmx.md (mmx_<code>v2sf3): New.
22900         (mmx_<code>v4hi3): Likewise.
22901         (mmx_<code>v8qi3): Likewise.
22902         (mmx_smaxv2sf3): Removed.
22903         (mmx_sminv2sf3): Likewise.
22904         (mmx_umaxv8qi3): Likewise.
22905         (mmx_smaxv4hi3): Likewise.
22906         (mmx_uminv8qi3): Likewise.
22907         (mmx_sminv4hi3): Likewise.
22908
22909         * config/i386/sse.md (<addsub><mode>3): New.
22910         (*<addsub><mode>3): Likewise.
22911         (<sse>_vm<addsub><mode>3): Likewise.
22912         (<maxmin><mode>3): Likewise.
22913         (*<maxmin><mode>3_finite): Likewise.
22914         (*<maxmin><mode>3): Likewise.
22915         (<sse>_vm<maxmin><mode>3): Likewise.
22916         (sse3_h<addsub>v4sf3): Likewise.
22917         (sse3_h<addsub>v2df3): Likewise.
22918         (<maxmin>v16qi3): Likewise.
22919         (*<maxmin>v16qi3): Likewise.
22920         (<maxmin>v8hi3): Likewise.
22921         (*<maxmin>v8hi3): Likewise.
22922         (*sse4_1_<maxmin><mode>3): Likewise.
22923         (*sse4_1_<maxmin><mode>3): Likewise.
22924         (add<mode>3): Removed.
22925         (*add<mode>3): Likewise.
22926         (<sse>_vmadd<mode>3): Likewise.
22927         (sub<mode>3): Likewise.
22928         (*sub<mode>3): Likewise.
22929         (<sse>_vmsub<mode>3): Likewise.
22930         (smin<mode>3): Likewise.
22931         (*smin<mode>3_finite): Likewise.
22932         (*smin<mode>3): Likewise.
22933         (<sse>_vmsmin<mode>3): Likewise.
22934         (smax<mode>3): Likewise.
22935         (*smax<mode>3_finite): Likewise.
22936         (*smax<mode>3): Likewise.
22937         (<sse>_vmsmax<mode>3): Likewise.
22938         (sse3_haddv4sf3): Likewise.
22939         (sse3_haddv2df3): Likewise.
22940         (sse3_hsubv4sf3): Likewise.
22941         (sse3_hsubv2df3): Likewise.
22942         (umaxv16qi3): Likewise.
22943         (*umaxv16qi3): Likewise.
22944         (smaxv8hi3): Likewise.
22945         (*smaxv8hi3): Likewise.
22946         (*sse4_1_smax<mode>3): Likewise.
22947         (*sse4_1_umax<mode>3): Likewise.
22948         (uminv16qi3): Likewise.
22949         (*uminv16qi3): Likewise.
22950         (sminv8hi3): Likewise.
22951         (*sminv8hi3): Likewise.
22952         (*sse4_1_smin<mode>3): Likewise.
22953         (*sse4_1_umin<mode>3): Likewise.
22954
22955 2008-04-01  Rafael Espíndola  <espindola@google.com>
22956
22957         * tree-cfg.c (verify_expr): remove in_phi.
22958         (verify_stmt): Don't call walk_tree with verify_expr. Use
22959         is_gimple_min_invariant instead of is_gimple_val.
22960
22961 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
22962
22963         * doc/include/gpl_v3.texi: Update for manpage generation.
22964         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
22965         gpl.texi.
22966         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
22967         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
22968         gpl_v3.texi instead of gpl.texi.
22969         (gpl.pod): New.
22970
22971 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
22972
22973         PR pch/13675
22974         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
22975
22976 2008-04-01  Rafael Espíndola  <espindola@google.com>
22977
22978         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
22979         (extract_code_and_val_from_cond): Use
22980         extract_code_and_val_from_cond_with_ops.
22981
22982 2008-04-01  Jan Hubicka  <jh@suse.cz>
22983
22984         * function.c (free_after_compilation): Free epilogue_delay_list.
22985         (prepare_function_start): Assert that previous compilation was freed.
22986
22987 2008-04-01  Jan Hubicka  <jh@suse.cz>
22988             Jim Wilson  <wilson@tuliptree.org>
22989             Andreas Tobler <andreast@gcc.gnu.org>
22990
22991         PR middle-end/35781
22992         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
22993         rtl.emit instead cfun->emit.
22994         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
22995         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
22996
22997 2008-04-01  Ben Elliston  <bje@au.ibm.com>
22998
22999         * doc/c-tree.texi (Function Basics): Fix grammatical error.
23000
23001 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
23002
23003         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
23004         New options
23005         (fprofile-use): Add var flag_profile_use
23006         * coverage.c (coverage_begin_output): Do not open a gcno file for
23007         output only if -ftest-coverage is set.
23008         Do not add getpwd() to gcda file path.
23009         (build_gcov_info): Check the new flag
23010         flag_profile_datafile_relative_path.
23011         (coverage_init): Use profile_data_prefix.
23012         Read profile counter only if flag_profile_use is set.
23013         * opts.c (common_handle_option): New option fprofile-use=,
23014         fprofile-dir=, fprofile-generate=.
23015         * toplev.c (profile_data_prefix): New variable definition.
23016         * toplev.h (profile_data_prefix): New declaration.
23017         * doc/invoke.tex (Option Summary, Optimization Options):
23018         Add new options.
23019
23020 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
23021
23022         * varasm.c (output_constant_pool_1): In LABEL_REF check,
23023         use tmp consistently.
23024
23025         PR target/35695
23026         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
23027         * config/ia64/ia64.c (rtx_needs_barrier): Handle
23028         UNSPEC_FR_RECIP_APPROX_RES.
23029         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
23030
23031 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
23032
23033         PR c/35750
23034         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
23035
23036 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23037
23038         PR middle-end/30186
23039         * fold-const.c (fold_indirect_ref_1): Support accessing non first
23040         element of the vector via a pointer.
23041
23042 2008-03-31  Ian Lance Taylor  <iant@google.com>
23043
23044         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
23045
23046 2008-03-31  Jan Hubicka  <jh@suse.cz>
23047
23048         * builtins.c (expand_builtin_setjmp_receiver): Update call of
23049         get_arg_pointer_save_area.
23050         * expr.c (init_expr): Just clear out rtl.expr.
23051         * function.c (free_after_compilation): Clear out whole RTL structure.
23052         (get_func_frame_size): Merge into ...
23053         (get_frame_size): ... this one.
23054         (assign_stack_local_1): Merge into ...
23055         (assign_stack_local): ... this one.
23056         (expand_function_end): Update call of get_arg_pointer_save_area.
23057         (get_art_pointer_save_area): Remove cfun argument.
23058         * function.h (emit_status): regno_pointer_align does not need length
23059         attribute. Move x_regno_reg_rtx to ...
23060         (regno_reg_rtx): ... new global array.
23061         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
23062         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
23063         apply_args_value, forced_labels, stack_pointer_delta):
23064         Update accestors.
23065         (struct varasm_status): Move here from varasm.c
23066         (struct rtl_data): New. Move here some fields from struct function.
23067         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
23068         frame_offset, stack_check_probe_note, arg_pointer_save_area,
23069         used_temp_slots avail_temp_slots, temp_slot_level,
23070         nonlocal_goto_handler_labels): Update accesstors.
23071         (rtl): New global variable.
23072         (struct function): Move some fileds to rtl_data.
23073         (get_arg_pointer_save_area): Update prototype.
23074         * emit-rtl.c (rtl): Declare.
23075         (regno_reg_rtx): Declare.
23076         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
23077         Update.
23078         (gen_reg_rtx): Update.
23079         (init_virtual_regs): Do not tate emit_status argument.
23080         (init_emit): Do not allocate emit.
23081         * varasm.c (varasm_statuc): Move to function.h.
23082         (n_deferred_constatns): Update accestor.
23083         (init_varasm_status): Do not allocate varasm_status.
23084         (force_const_mem, get_pool_size, output_constant_pool): Update.
23085         * stmt.c (force_label_rtx): Do not use x_ prefixes.
23086         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
23087
23088 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
23089
23090         PR rtl-optimization/35729
23091         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
23092         references.
23093
23094 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
23095
23096         PR target/32000
23097         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
23098         load/store if memory is unaligned.
23099         (*movti_rex64): Likewise.
23100
23101         * config/i386/predicates.md (misaligned_operand): New.
23102
23103 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
23104
23105         PR tree-opt/35431
23106         * tree-ssa-phiopt.c (conditional_replacement): Return early for
23107         complex types.
23108
23109 2008-03-31  Jan Beulich  <jbeulich@novell.com>
23110
23111         * config/ia64/constraints.md: Add 'j' constraint.
23112         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
23113         (movdi_internal): Likewise.
23114
23115 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
23116
23117         PR c/35748
23118         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
23119
23120 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
23121
23122         PR target/35757
23123         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
23124         proper error message for the third argument on blendpd and
23125         blendps.
23126
23127         * config/i386/sse.md (blendbits): New.
23128         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
23129
23130 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
23131
23132         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
23133
23134 2008-03-30  Richard Guenther  <rguenther@suse.de>
23135
23136         PR middle-end/31023
23137         * fold-const.c (fold_sign_changed_comparison): Do leave
23138         conversions to base-types alone.
23139
23140 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23141
23142         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
23143         the link register if one altivec register is be saved.
23144
23145 2008-03-30  Ben Elliston  <bje@au.ibm.com>
23146
23147         * final.c (final_scan_insn): Remove if (0) code.
23148
23149 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
23150
23151         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
23152
23153 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
23154
23155         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
23156         of V4SFmode to ix86_binary_operator_ok.
23157
23158 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
23159
23160         * config/i386/i386.c (override_options): Initialize
23161         ix86_veclib_handler to ix86_veclibabi_svml when
23162         -mveclibabi=svml is used.
23163         (ix86_veclibabi_svml): New function for SVML ABI style
23164         vectorization support.
23165         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
23166
23167 2008-03-28  Rafael Espíndola  <espindola@google.com>
23168
23169         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
23170         (tree_binary_nonnegative_warnv_p): Make it public.
23171         (tree_single_nonnegative_warnv_p): Make it public.
23172         (tree_invalid_nonnegative_warnv_p): Make it public.
23173         (tree_unary_nonzero_warnv_p): Make it public.
23174         (tree_binary_nonzero_warnv_p): Make it public
23175         (tree_single_nonzero_warnv_p): Make it public.
23176         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
23177         (extract_range_from_binary_expr): Split the expr argument.
23178         (extract_range_from_unary_expr): Split the expr argument.
23179         (extract_range_from_comparison): Split the expr argument.
23180         (extract_range_from_expr): Use the new aux functions.
23181         (vrp_evaluate_conditional_warnv): Use
23182         vrp_evaluate_conditional_warnv_with_ops.
23183         * tree.h (tree_unary_nonzero_warnv_p): Declare.
23184         (tree_binary_nonzero_warnv_p): Declare.
23185         (tree_single_nonzero_warnv_p): Declare.
23186         (tree_expr_nonzero_warnv_p): Declare.
23187         (tree_unary_nonnegative_warnv_p): Declare.
23188         (tree_binary_nonnegative_warnv_p): Declare.
23189         (tree_single_nonnegative_warnv_p): Declare.
23190         (tree_invalid_nonnegative_warnv_p): Declare.
23191
23192 2008-03-28  Richard Guenther  <rguenther@suse.de>
23193
23194         PR tree-optimization/30317
23195         PR tree-optimization/30911
23196         PR tree-optimization/34793
23197         * tree-vrp.c (set_and_canonicalize_value_range): New function.
23198         (struct assert_locus_d): New member EXPR.
23199         (register_new_assert_for): Add EXPR parameter to support
23200         ASSERT_EXPR <name, expr OP limit>.
23201         (register_edge_assert_for_1): Adjust callers.
23202         (find_assert_locations): Likewise.
23203         (process_assert_insertions_for): Build condition from expression.
23204         (extract_range_from_assert): Handle ASSERT_EXPRs
23205         of the form ASSERT_EXPR <name, expr OP limit>.
23206         (register_edge_assert_for_2): New helper registering
23207         asserts for comparisons.  Recognize range tests of the form
23208         (unsigned)i - CST1 OP CST2.
23209         (register_edge_assert_for_1): Use it.
23210         (register_edge_assert_for): Likewise.
23211         (needs_overflow_infinity): Integer sub-types
23212         do not need overflow infinities.
23213         (vrp_val_is_max): The extreme values of integer sub-types
23214         are those of the base type.
23215         (vrp_val_is_min): Likewise.
23216         * tree.def (ASSERT_EXPR): Document extra allowed conditional
23217         expressions.
23218
23219 2008-03-28  Nick Clifton  <nickc@redhat.com>
23220
23221         PR target/31110
23222         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
23223         Return GENERAL_REGS for stack adjustment reloads.
23224
23225 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23226
23227         PR target/31334
23228         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
23229         const_vector when all the vectors are constant.
23230
23231 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
23232
23233         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
23234         comparisons.
23235         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
23236         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
23237         (scc_sf): New.
23238         (s<code>_sf): Use new scc_sf attribute for opcode names.
23239
23240 2008-03-27  Tom Tromey  <tromey@redhat.com>
23241
23242         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
23243         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
23244         config/spu/t-spu-elf, config/i386/t-interix,
23245         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
23246         config/i386/x-darwin, config/i386/x-mingw32,
23247         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
23248         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
23249         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
23250         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
23251         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
23252         config/rs6000/x-darwin, config/rs6000/t-rs6000,
23253         config/score/t-score-elf, config/arm/t-strongarm-pe,
23254         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
23255         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
23256         Revert automatic dependency patch.
23257
23258 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23259
23260         PR target/35657
23261         * config/i386/i386.c (ix86_function_arg_boundary): Align
23262         decimal floating point to its natural boundary.
23263
23264 2008-03-27  Richard Guenther  <rguenther@suse.de>
23265
23266         PR middle-end/35716
23267         * fold-const.c (fold_comparison): Restrict distinct decl
23268         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
23269         solely rely on operand_equal_p.
23270
23271 2008-03-27  Richard Guenther  <rguenther@suse.de>
23272
23273         PR c/32511
23274         * c-common.c (handle_weak_attribute): Reject combination of
23275         weak and inline.
23276
23277 2008-03-27  Richard Guenther  <rguenther@suse.de>
23278
23279         PR tree-optimization/32810
23280         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
23281         conversions from DECL_INITIAL.
23282         (fold_const_aggregate_ref): Likewise from constructor elements.
23283
23284 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
23285
23286         * tree-affine.h (aff_combination_expand): Declare.
23287         (get_inner_reference_aff): Likewise.
23288         * tree-affine.c (aff_combination_expand): Split out from
23289         tree_to_aff_combination_expand.
23290         (get_inner_reference_aff): New function.
23291         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
23292         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
23293         (struct lim_aux_data): sm_done field removed.
23294         (mem_ref_loc_p, mem_ref_locs_p): New types.
23295         (struct mem_ref): Added id, stored, accesses_in_loop,
23296         indep_loop, dep_loop, indep_ref, dep_ref fields.
23297         Removed is_stored, locs and next fields.
23298         (memory_accesses): New variable.
23299         (movement_possibility): Do not allow moving statements
23300         that store to memory.
23301         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
23302         New functions.
23303         (determine_max_movement): For statements with memory references,
23304         find the outermost loop in that the reference is independent.
23305         (move_computations_stmt): Mark the virtual operands for renaming.
23306         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
23307         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
23308         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
23309         add_vop_ref_mapping, create_vop_ref_mapping_loop,
23310         create_vop_ref_mapping, analyze_memory_references,
23311         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
23312         get_all_locs_in_loop, ref_always_accessed_p,
23313         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
23314         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
23315         store_motion_loop, store_motion): New functions.
23316         (struct vop_to_refs_elt): New type.
23317         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
23318         memref_hash, memref_eq, hoist_memory_references): Rewritten.
23319         (schedule_sm): Replaced by...
23320         (execute_sm): ... this.
23321         (determine_lsm_ref, hoist_memory_references,
23322         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
23323         find_more_ref_vops, free_mem_ref, free_mem_refs,
23324         determine_lsm_loop, determine_lsm): Removed.
23325         (tree_ssa_lim_finalize): Free data structures used by store motion.
23326         (tree_ssa_lim): Call analyze_memory_references.  Use
23327         store_motion instead of determine_lsm.
23328
23329 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
23330
23331         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
23332         rename tmake_file to m68hc11/t-m68hc11.
23333         (mcore): Set inhibit_libc to true.
23334         * config.host (alpha*-dec-*vms*): Set extra_programs.
23335         (interix3*): Don't use host_xmake_file.
23336         * configure.ac: Let config.gcc override inhibit_libc.
23337         * configure: Regenerate.
23338
23339         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
23340         * config/t-openbsd-thread: Remove commented out lines.
23341
23342         * config/x-interix: Remove.
23343
23344         * config/m68hc11/t-m68hc11-gas: Rename to...
23345         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
23346
23347         * config/mcore/t-mcore: Remove T_CFLAGS.
23348         * config/mcore/t-mcore-pe: Likewise.
23349
23350 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
23351
23352         * configure.ac: Replace custom __GNU_SOURCE test with
23353         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
23354         * aclocal.m4: Regenerate.
23355         * configure: Regenerate.
23356         * config.in: Regenerate.
23357
23358 2008-03-27  Richard Guenther  <rguenther@suse.de>
23359
23360         * fold-const.c (target.h): Include.
23361         (fold_comparison): Fold comparison of addresses of decls
23362         that bind locally or of constants.  Consolidate address folding code.
23363         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
23364         results from fold_binary_to_constant.
23365         (compare_values_warnv): Likewise.
23366
23367 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
23368
23369         PR middle-end/35429
23370         * fold-const.c (fold_truthop): Check for integeral types when folding
23371         a == 0 && b == 0 and a != 0 || b != 0 .
23372
23373 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
23374
23375         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
23376
23377 2008-03-26  Andreas Schwab  <schwab@suse.de>
23378
23379         * doc/invoke.texi: Fix use of @item vs. @itemx.
23380
23381 2008-03-26  Tom Tromey  <tromey@redhat.com>
23382
23383         * Makefile.in (build/gensupport.o, build/print-rtl.o,
23384         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
23385         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
23386         build/gencodes.o, build/genconditions.o, build/genconfig.o,
23387         build/genconstants.o, build/genemit.o, build/genextract.o,
23388         build/genflags.o, build/genmddeps.o, build/genopinit.o,
23389         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
23390         options.h.
23391
23392 2008-03-26  Richard Guenther  <rguenther@suse.de>
23393
23394         Revert
23395         2008-03-26  Richard Guenther  <rguenther@suse.de>
23396
23397         * fold-const.c (target.h): Include.
23398         (fold_comparison): Fold comparison of addresses of two decls
23399         that bind locally.  Consolidate address folding code.
23400
23401 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23402
23403         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
23404         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
23405         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
23406         dconstsqrt2, dconstthird, dconste and/or dconst10.
23407         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
23408         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
23409         dconstsqrt2, dconste): Delete.
23410         (init_emit_once): Likewise.  Simplify initializing dconstm1.
23411         Constify variable.
23412         * real.c (get_real_const): New.
23413         * real.h (dconst3, dconst10, dconstm2, dconstthird,
23414         dconstsqrt2, dconste): Delete.
23415         (real_value_const, get_real_const): New.
23416
23417 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
23418
23419         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
23420
23421         * config/i386/i386.c (ix86_function_arg_boundary): Check
23422         BIGGEST_ALIGNMENT instead of 128.
23423         (setup_incoming_varargs_64): Likewise.
23424
23425 2008-03-26  Tom Tromey  <tromey@redhat.com>
23426
23427         * Makefile.in (DEPFILES): Add missing '/'.
23428
23429 2008-03-26  Richard Guenther  <rguenther@suse.de>
23430
23431         * fold-const.c (target.h): Include.
23432         (fold_comparison): Fold comparison of addresses of two decls
23433         that bind locally.  Consolidate address folding code.
23434
23435 2008-03-26  Nick Clifton  <nickc@redhat.com>
23436
23437         PR target/31232
23438         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
23439         not allow INT+INT as a legitimate addressing mode.
23440
23441 2008-03-26  Richard Guenther  <rguenther@suse.de>
23442
23443         * tree-flow.h (widen_bitfield): Remove declaration.
23444         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
23445         (widen_bitfield): Remove function.
23446         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
23447         code.
23448
23449 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23450
23451         PR target/31558
23452         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
23453         error_mark_node's.
23454
23455 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
23456
23457         PR rtl-optimization/35232
23458         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
23459         (forget_old_reloads_1, forget_marked_reloads): Don't clear
23460         reg_reloaded_call_part_clobbered here.
23461         (reload_regs_reach_end_p): New function.
23462         (reload_reg_rtx_for_input): New variable.
23463         (reload_reg_rtx_for_output): Likewise.
23464         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
23465         when reassigning a pseudo register.  Load reloadreg from
23466         reload_reg_rtx_for_input, moving the mode and register
23467         calculation to...
23468         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
23469         instead of the original when deciding whether an input reload
23470         would be a no-op or whether an output reload can be deleted.
23471         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
23472         when setting up new_spill_reg_store.  Load it from
23473         reload_reg_rtx_for_output, moving the mode and register
23474         calculation to...
23475         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
23476         instead of the original when deciding whether an output reload
23477         would be a no-op.  Do the same when modifying insn notes.
23478         Use rtx_equal_p instead of == to compare the registers.
23479         (inherit_piecemeal_p): Take a mode and two register numbers
23480         as argument.
23481         (emit_reload_insns): Clear new_spill_reg_store for every hard
23482         register in the reload register.  Remove spill registers
23483         from reg_reloaded_valid before considering whether to record
23484         inheritance information for them.  Use reload_reg_rtx_for_output
23485         instead of reg_rtx when recording output reloads.  Use
23486         reload_reg_rtx_for_input instead of reg_rtx when recording
23487         input reloads.  Set or clear reg_reloaded_call_part_clobbered
23488         at the same time as setting reg_reloaded_valid.
23489         (delete_output_reload): Add a new_reload_reg parameter and use it
23490         instead of rld[j].reg_rtx.
23491         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
23492         calls accordingly.
23493
23494 2008-03-25  Tom Tromey  <tromey@redhat.com>
23495
23496         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
23497         (build/genattr.o): Likewise.
23498         (build/genattrtab.o): Likewise.
23499         (build/gencodes.o): Likewise.
23500         (build/genconfig.o): Likewise.
23501         (build/genconstants.o): Likewise.
23502         (build/genemit.o): Likewise.
23503         (build/genextract.o): Likewise.
23504         (build/genflags.o): Likewise.
23505
23506 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
23507
23508         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
23509         instead of size_int for integer types.
23510         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
23511         to match type of MINUS_EXPR.
23512
23513 2008-03-25  Tom Tromey  <tromey@redhat.com>
23514
23515         * configure: Rebuilt.
23516         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
23517         Makefile.
23518
23519 2008-03-25  Tom Tromey  <tromey@redhat.com>
23520
23521         * config/x-solaris (host-solaris.o): Update.
23522         * config/x-linux (host-linux.o): Update.
23523         * config/x-hpux (host-hpux.o): Update.
23524         * config/x-darwin (host-darwin.o): Update.
23525         * config/v850/t-v850e (v850-c.o): Update.
23526         * config/v850/t-v850 (v850-c.o): Update.
23527         * config/t-vxworks (vxworks.o): Update.
23528         * config/t-sol2 (sol2-c.o, sol2.o): Update.
23529         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
23530         * config/spu/t-spu-elf (spu-c.o): Update.
23531         (spu.o): Remove.
23532         * config/sh/t-symbian (sh-c.o): Update.
23533         (symbian.o): Update.
23534         * config/sh/t-sh (sh-c.o): Update.
23535         * config/score/t-score-elf (score7.o, score3.o): Update.
23536         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
23537         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
23538         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
23539         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
23540         (rs6000.o): Remove.
23541         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
23542         * config/m32c/t-m32c (m32c-pragma.o): Update.
23543         * config/ia64/t-ia64 (ia64-c.o): Update.
23544         * config/i386/x-mingw32 (host-mingw32.o): Update.
23545         * config/i386/x-i386 (driver-i386.o): Update.
23546         * config/i386/x-darwin (host-i386-darwin.o): Update.
23547         * config/i386/x-cygwin (host-cygwin.o): Update.
23548         * config/i386/t-nwld (nwld.o): Update.
23549         * config/i386/t-netware (netware.o): Update.
23550         * config/i386/t-interix (winnt.o): Update.
23551         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
23552         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
23553         msformat-c.o): Update.
23554         * config/bfin/t-bfin-linux (generated_files): Add
23555         linux-sysroot-suffix.h.
23556         * config/arm/t-wince-pe (pe.o): Update.
23557         * config/arm/t-strongarm-pe (pe.o): Update.
23558         * config/arm/t-pe (pe.o): Update.
23559         * config/arm/t-arm (arm-c.o): Update.
23560         * doc/install.texi (Prerequisites): Require make 3.80.
23561         * Makefile.in: Remove .o targets.
23562         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
23563         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
23564         (simple_generated_h, simple_generated_c): Move earlier.
23565         (generated_files): New variable.
23566         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
23567         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
23568         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
23569         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
23570         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
23571         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
23572         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
23573         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
23574         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
23575         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
23576         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
23577         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
23578         (.c.o): Remove.
23579         (COMPILE.base, COMPILE): New variables.
23580         (%.o): New pattern rule.
23581         (ALL_HOST_OBJS): New variable.
23582         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
23583         (dummy-checksum.o, cc1-checksum.o): Remove.
23584         (DRIVER_SHLIB): New variable.
23585         (DRIVER_DEFINES): Use it.
23586         (gencondmd.c): Move out of build/.
23587         (s-conditions): Update.
23588         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
23589         (ALL_BUILD_OBJS): Likewise.
23590         (build/%.o): Use BUILDCOMPILE.
23591         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
23592         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
23593         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
23594         build/gencheck.o, build/gencodes.o, build/genconditions.o,
23595         build/genconfig.o, build/genconstants.o, build/genemit.o,
23596         build/genextract.o, build/genflags.o, build/genmddeps.o,
23597         build/genopinit.o, build/genoutput.o, build/genpeep.o,
23598         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
23599         build/gen-protos.o, build/scan.o, build/fix-header.o,
23600         build/scan-decls.o): Simplify.
23601         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
23602         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
23603         prefix.o, toplev.o): Reduce to variable setting.
23604         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
23605         ($(out_object_file), gcc-options.o): New targets.
23606         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
23607         * configure: Rebuilt.
23608         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
23609         * doc/sourcebuild.texi (Front End Directory): Document new variable.
23610
23611 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
23612
23613         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
23614         complain when we hit an error, return ERROR_MARK_NODE.
23615
23616 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
23617
23618         * config/sh/constraints.md (Pso, Psz): New constraints.
23619         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
23620         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
23621
23622 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
23623
23624         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
23625         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
23626
23627 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
23628
23629         * config/sh/sh.md (prefetch): Add condition for SH2A target.
23630         (prefetch_sh2a): New.
23631
23632 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
23633             Naveen.H.S  <naveen.hs@kpitcummins.com>
23634
23635         * config/sh/constraints.md (I28): New constraint.
23636         * config/sh/sh.c (broken_move): Add support for movi20s.
23637         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
23638
23639 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
23640             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
23641             Naveen.H.S  <naveen.hs@kpitcummins.com>
23642
23643         * config/sh/sh.c (SH_ATTRIBUTES): Define.
23644         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
23645         (print_operand): Handle resbank in %@ operand code.
23646         (sh_encode_section_info): New.
23647         (push_regs): Add conditions for resbank.
23648         (sh_expand_epilogue): Likewise.
23649         (sh_insert_attributes): Likewise.
23650         (sh_attribute_table): Likewise.
23651         (sh_handle_resbank_handler_attribute): New.
23652         (sh2a_handle_function_vector_handler_attribute): New.
23653         (sh2a_is_function_vector_call): New.
23654         (sh2a_get_function_vector_number): New.
23655         (sh2a_function_vector_p): New.
23656         (sh_cfun_resbank_handler_p): New.
23657         * config/sh/sh.md (calli): Emit jsr/n if possible.
23658         (calli_tbr_rel): New.
23659         (calli_pcrel): Emit jsr/n if possible.
23660         (return_i): Emit rts/n if possible.
23661         (call_valuei_tbr_rel): New.
23662         (call_valuei_pcrel): Add condition for SH2A target.
23663         (call_value): Likewise.
23664         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
23665         (sh2a_get_function_vector_number): Likewise.
23666         (sh2a_is_function_vector_call): Likewise.
23667         * doc/extend.texi: Document TBR relative addressing of SH2A.
23668         (resbank): Add description for SH2A.
23669
23670 2008-03-24  Richard Guenther  <rguenther@suse.de>
23671
23672         PR c/22371
23673         * gimplify.c (gimplify_modify_expr): For frontend type-correct
23674         pointer assignments change conversions according to middle-end rules.
23675         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
23676         * configure.ac: Include type checking in yes.
23677         * configure: Regenerate.
23678
23679 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23680
23681         * diagnostic.c (diagnostic_count_diagnostic): Delete.
23682         (diagnostic_report_diagnostic): Update. Handle ICEs here.
23683
23684 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
23685
23686         * gthr-vxworks.h (UNUSED): Define.
23687
23688 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
23689
23690         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
23691
23692 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
23693
23694         * doc/extend.texi (Function Attributes): Add missing comma in the
23695         example of the "alloc_size" attribute.
23696
23697 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
23698
23699         Revert:
23700         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
23701
23702         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
23703         32bit host.
23704
23705         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
23706
23707         PR target/35496
23708         * stor-layout.c (update_alignment_for_field): Set minimum alignment
23709         of the underlying type of a MS bitfield layout to the natural
23710         alignment of the type.
23711
23712         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
23713
23714         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
23715         to their natural alignment to avoid store forwarding stalls.
23716
23717 2008-03-22  Richard Guenther  <rguenther@suse.de>
23718
23719         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
23720         For PHI nodes verify the address is invariant.
23721         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
23722         (get_symbol_constant_value): Use is_gimple_min_invariant.
23723         (maybe_fold_stmt_indirect): Likewise.
23724
23725 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
23726
23727         PR rtl-optimization/33927
23728         * Makefile.in (dse.o): Depend on $(TM_P_H).
23729         * expr.h (extract_low_bits): Declare.
23730         * expmed.c (extract_low_bits): New function.
23731         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
23732         * dse.c: Include tm_p.h.
23733         (find_shift_sequence): Remove the read_reg argument and return the
23734         read value.  Emit the instructions instead of returning them.
23735         Iterate on new_mode rather than calculating it each time.
23736         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
23737         source to NEW_MODE and extract_low_bits to convert the shifted
23738         value to READ_MODE.
23739         (replace_read): Allow the load and store to have different mode
23740         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
23741         or extraction instructions before trying the replacement.  Update
23742         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
23743
23744 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
23745
23746         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
23747         to their natural alignment to avoid store forwarding stalls.
23748
23749 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23750
23751         PR target/27946
23752         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
23753         encouraging but not allowing gprs for input;
23754         change the input constraint to !f#r.
23755         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
23756         gprs for output;
23757         change the output constraint to !f#r.
23758
23759 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
23760
23761         PR target/13958
23762         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
23763         corresponding post-reload splitters.
23764         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
23765         when x87 FP math is selected.
23766         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
23767         New function prototype.
23768         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
23769         unreachable function to ease macroization of insn patterns.
23770
23771 2008-03-21  Martin Jambor  <mjambor@suse.cz>
23772
23773         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
23774         reference dumps if ddr is NULL or dependence is unknown.
23775
23776 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
23777
23778         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
23779         unsigned extension into account.
23780         (ATOMIC_COMPARE_AND_SWAP): Likewise.
23781         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
23782         Do computations on a scratch register.
23783
23784 2008-03-21  Richard Guenther  <rguenther@suse.de>
23785
23786         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
23787         Use is_gimple_min_invariant instead of TREE_INVARIANT.
23788         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
23789         * tree-ssa-dom.c (record_equality): Likewise.
23790         * tree-inline.c (copy_body_r): Likewise.
23791         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
23792         TREE_INVARIANT.
23793
23794 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
23795
23796         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
23797         as 'delete_unused' argument.
23798
23799 2008-03-20  Richard Guenther  <rguenther@suse.de>
23800
23801         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
23802         special casing of constant qualifiers.
23803         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
23804         care about them in general.
23805         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
23806         regardless of their type.
23807         (fold_stmt_r): Forcefully fold *& if we end up with that.
23808
23809 2008-03-20  Paul Brook  <paul@codesourcery.com>
23810
23811         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
23812         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
23813         linker flags.
23814         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
23815         definition.
23816         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
23817         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
23818
23819 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
23820
23821         * common.opt (Wmudflap): New option.
23822         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
23823         (mx_register_decls): Likewise.
23824         (mudflap_finish_file): Likewise.
23825         * doc/invoke.texi: Document -Wno-mudflap.
23826
23827 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
23828
23829         * c-format.c (replace_format_name_to_system_name): New.
23830         (cmp_attribs): New.
23831         (convert_format_name_to_system_name): New.
23832         (decode_format_attr): Add use of convert_format_name_to_system_name.
23833         (format_types_orig): Add gnu_ prefix to names.
23834         (check_format_info_main): Special treating of \0 escaped names for
23835         supporting multi-character format specifiers as I32, I64.
23836         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
23837         (gnu_target_overrides_format_attributes): New.
23838         * c-format.h: Add structure target_ovr_attr to hold
23839         system specific formatter names.
23840         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
23841         msformat-c.o file to c_target_objs and cxx_target_objs.
23842         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
23843         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
23844         (TARGET_N_FORMAT_TYPES): New.
23845         * config/i386/msformat-c.c: New.
23846         * config/i386/t-cygming: Add build rule for msformat-c.o.
23847         * doc/extend.texi: Add new format names gnu_* and ms_* and
23848         further details.
23849         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
23850
23851 2008-03-20  Ira Rosen  <irar@il.ibm.com>
23852
23853         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
23854         optimizations turned on under -O3.
23855         (ftree-vectorize): Add that the flag is turned on with -O3.
23856
23857 2008-03-20  Ben Elliston  <bje@au.ibm.com>
23858
23859         * regmove.c (try_auto_increment): Fix spelling error in comment.
23860         * final.c (final_scan_insn): Likewise.
23861
23862 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
23863
23864         PR target/14552
23865         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
23866         allocator preferences for "y" and "r" class registers.
23867         ("*mov<mode>_internal"): Ditto.
23868         ("*movv2sf_internal_rex64"): Ditto.
23869         ("*movv2sf_internal"): Ditto.
23870
23871 2008-03-19  Michael Matz  <matz@suse.de>
23872
23873         PR middle-end/35616
23874         * calls.c (expand_call): Check overlap of arguments with call
23875         address for sibcalls.
23876
23877 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
23878
23879         PR target/35496
23880         * stor-layout.c (update_alignment_for_field): Set minimum alignment
23881         of the underlying type of a MS bitfield layout to the natural
23882         alignment of the type.
23883
23884 2008-03-19  Jan Hubicka  <jh@suse.cz>
23885
23886         PR other/35094
23887         * toplev.c (decode_d_option): Handle all CPP flags.
23888         * tree-vrp.c: Update tree_pass descriptors.
23889         * regrename.c: Update tree_pass descriptors.
23890         * fwprop.c: Update tree_pass descriptors.
23891         * doc/invoke.texi: Remove documentation of dropped -d? flags.
23892         * tree-into-ssa.c: Update tree_pass descriptors.
23893         * tree-dump.c: Update tree_pass descriptors.
23894         * tree-complex.c: Update tree_pass descriptors.
23895         * tree-dump.h: Update tree_pass descriptors.
23896         * see.c: Update tree_pass descriptors.
23897         * cgraphbuild.c: Update tree_pass descriptors.
23898         * tracer.c: Update tree_pass descriptors.
23899         * tree-loop-distribution.c: Update tree_pass descriptors.
23900         * cgraph.c: Update tree_pass descriptors.
23901         * postreload-gcse.c: Update tree_pass descriptors.
23902         * postreload.c: Update tree_pass descriptors.
23903         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
23904         * tree-tailcall.c: Update tree_pass descriptors.
23905         * tree-pass.h (tree_opt_pass): Rename to ...
23906         (opt_pass) ... this one; add "type" field and remove letter field.
23907         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
23908         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
23909         all_lowering_passes): Update declaration.
23910         * ipa-cp.c: Update tree_pass descriptors.
23911         * final.c: Update tree_pass descriptors.
23912         * omp-low.c: Update tree_pass descriptors.
23913         * tree-ssa-dse.c: Update tree_pass descriptors.
23914         * ipa-reference.c: Update tree_pass descriptors.
23915         * tree-ssa-uncprop.c: Update tree_pass descriptors.
23916         * auto-inc-dec.c: Update tree_pass descriptors.
23917         * reorg.c: Update tree_pass descriptors.
23918         * cgraphunit.c: Update tree_pass descriptors.
23919         * tree-ssa-copyrename.c: Update tree_pass descriptors.
23920         * tree-ssa-ccp.c: Update tree_pass descriptors.
23921         * df-core.c: Update tree_pass descriptors.
23922         * mode-switching.c: Update tree_pass descriptors.
23923         * tree-nomudflap.c: Update tree_pass descriptors.
23924         * modulo-sched.c: Update tree_pass descriptors.
23925         * ipa-pure-const.c: Update tree_pass descriptors.
23926         * cse.c: Update tree_pass descriptors.
23927         * web.c: Update tree_pass descriptors.
23928         * tree-stdarg.c: Update tree_pass descriptors.
23929         * tree-ssa-math-opts.c: Update tree_pass descriptors.
23930         * tree-ssa-dom.c: Update tree_pass descriptors.
23931         * tree-nrv.c: Update tree_pass descriptors.
23932         * tree-ssa-alias.c: Update tree_pass descriptors.
23933         * loop-init.c: Update tree_pass descriptors.
23934         * gimple-low.c: Update tree_pass descriptors.
23935         * ipa-inline.c: Update tree_pass descriptors.
23936         * tree-ssa-sink.c: Update tree_pass descriptors.
23937         * global.c: Update tree_pass descriptors.
23938         * ifcvt.c: Update tree_pass descriptors.
23939         * jump.c: Update tree_pass descriptors.
23940         * predict.c: Update tree_pass descriptors.
23941         * tree-ssa-loop.c: Update tree_pass descriptors.
23942         * recog.c: Update tree_pass descriptors.
23943         * dse.c: Update tree_pass descriptors.
23944         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
23945         * tree-eh.c: Update tree_pass descriptors.
23946         * regmove.c: Update tree_pass descriptors.
23947         * local-alloc.c
23948         * function.c: Update tree_pass descriptors.
23949         * tree-vectorizer.c: Update tree_pass descriptors.
23950         * gcse.c: Update tree_pass descriptors.
23951         * ipa-type-escape.c: Update tree_pass descriptors.
23952         * tree-if-conv.c: Update tree_pass descriptors.
23953         * init-regs.c: Update tree_pass descriptors.
23954         * ipa.c: Update tree_pass descriptors.
23955         * tree-ssa-phiopt.c: Update tree_pass descriptors.
23956         * rtl-factoring.c: Update tree_pass descriptors.
23957         * lower-subreg.c: Update tree_pass descriptors.
23958         * bt-load.c: Update tree_pass descriptors.
23959         * tree-dfa.c: Update tree_pass descriptors.
23960         * except.c: Update tree_pass descriptors.
23961         * emit-rtl.c: Update tree_pass descriptors.
23962         * cfgexpand.c: Update tree_pass descriptors.
23963         * tree-cfgcleanup.c: Update tree_pass descriptors.
23964         * cfgcleanup.c: Update tree_pass descriptors.
23965         * tree-ssa-pre.c: Update tree_pass descriptors.
23966         * tree-sra.c: Update tree_pass descriptors.
23967         * tree-mudflap.c: Update tree_pass descriptors.
23968         * tree-ssa-copy.c: Update tree_pass descriptors.
23969         * cfglayout.c: Update tree_pass descriptors.
23970         * tree-ssa-forwprop.c: Update tree_pass descriptors.
23971         * tree-ssa-dce.c: Update tree_pass descriptors.
23972         * tree-ssa.c: Update tree_pass descriptors.
23973         * regclass.c: Update tree_pass descriptors.
23974         * integrate.c: Update tree_pass descriptors.
23975         * tree-optimize.c: Update tree_pass descriptors.
23976         * tree-ssa-phiprop.c: Update tree_pass descriptors.
23977         * tree-object-size.c: Update tree_pass descriptors.
23978         * combine.c: Update tree_pass descriptors.
23979         * tree-outof-ssa.c: Update tree_pass descriptors.
23980         * bb-reorder.c: Update tree_pass descriptors.
23981         * stack-ptr-mod.c: Update tree_pass descriptors.
23982         * var-tracking.c: Update tree_pass descriptors.
23983         * tree-profile.c: Update tree_pass descriptors.
23984         * tree-vect-generic.c: Update tree_pass descriptors.
23985         * reg-stack.c: Update tree_pass descriptors.
23986         * sched-rgn.c: Update tree_pass descriptors.
23987         * tree-ssa-structalias.c: Update tree_pass descriptors.
23988         * tree-cfg.c: Update tree_pass descriptors.
23989         * passes.c (current_pass): Update declaration.
23990         (finish_optimization_passes): Update.
23991         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
23992         (register_one_dump_file, register_dump_files_1, next_pass_1):
23993         Update arguments.
23994         (init_optimization_passes): Update handling of new types.
23995         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
23996         * ipa-struct-reorg.c: Update tree_pass descriptors.
23997         * tree-ssa-reassoc.c: Update tree_pass descriptors.
23998         * combine-stack-adj.c: Update tree_pass descriptors.
23999         * cfgrtl.c: Update tree_pass descriptors.
24000         * dce.c: Update tree_pass descriptors.
24001         * tree-ssanames.c: Update tree_pass descriptors.
24002
24003 2008-03-19  Richard Guenther  <rguenther@suse.de>
24004
24005         PR middle-end/35609
24006         * tree-ssa.c (walk_data): New structure.
24007         (warn_uninitialized_var): If not always_executed warn with "maybe"
24008         instead of "is".
24009         (execute_early_warn_uninitialized): Compute post-dominators.
24010         Initialize always_executed before processing each basic block.
24011
24012 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
24013
24014         PR target/35504
24015         * config/i386/i386.c (x86_this_parameter): Calculate correct location
24016         of "this" pointer when "regparm = N" or "fastcall" is in effect.
24017
24018 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24019
24020         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
24021
24022 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
24023
24024         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
24025         is true.
24026         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
24027         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
24028         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
24029         target after ignore has been set, and move there also the commputation
24030         of subtarget and original_target.
24031         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
24032         (LANG_HOOKS_INITIALIZER): Remove it.
24033         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
24034
24035 2008-03-18  Richard Guenther  <rguenther@suse.de>
24036
24037         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
24038         found an expression with constants, note that in the VN for the lhs.
24039         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
24040         fold them to constants if possible.  Run cleanup_cfg if done so.
24041         (execute_pre): Return todo.
24042         (do_pre): Likewise.
24043         (execute_fre): Likewise.
24044         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
24045         of constants.
24046         (get_prop_source_stmt): Look through pointer conversions.
24047
24048 2008-03-18  Jan Hubicka  <jh@suse.cz>
24049
24050         * tree-pretty-print.c: Include predict.h.
24051         (dump_generic_node): Dump predictor.
24052         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
24053         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
24054         * gimple-low.c (lower_stmt): Likewise.
24055         * expr.c (expand_expr_real): Likewise.
24056         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
24057         them.
24058         (build_predict_expr, build_predict_expr): New.
24059         * predict.h (predictor_name, build_predict_expr): Update.
24060         * c-typeck.c (c_finish_bc_stmt): Add prediction.
24061         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
24062         * predict.def (PRED_CONTINUE): Update hitrate.
24063         * tree.def (PREDICT_EXPR): Define.
24064         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
24065         do not handle BIND_EXPR.
24066         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
24067         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
24068         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
24069         operands.
24070
24071 2008-03-18  Michael Matz  <matz@suse.de>
24072
24073         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
24074
24075 2008-03-18  Richard Guenther  <rguenther@suse.de>
24076
24077         * tree-gimple.h (is_gimple_invariant_address): Declare.
24078         (is_gimple_constant): Likewise.
24079         * tree-gimple.c (is_gimple_constant): New function.
24080         (is_gimple_invariant_address): Likewise.
24081         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
24082         and is_gimple_invariant_address.
24083         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
24084         previous change.
24085         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
24086         an addressable base.
24087
24088 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
24089
24090         PR middle-end/35611
24091         * gimplify.c (gimplify_expr): Gimplify second operand of
24092         OMP_ATOMIC_LOAD.
24093
24094 2008-03-17  Richard Guenther  <rguenther@suse.de>
24095
24096         PR tree-optimization/19637
24097         * fold-const.c (fold_unary): Remove restrictions of removing
24098         intermediate pointer-conversions (P2)(P1)P0.
24099         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
24100         conversion to void pointer.
24101         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
24102
24103 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
24104
24105         PR debug/31510
24106         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
24107         emulated thread local variables.
24108
24109 2008-03-16  Richard Guenther  <rguenther@suse.de>
24110
24111         PR middle-end/35607
24112         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24113         expand TREE_INVARIANT operations that are not gimple invariant.
24114
24115 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
24116
24117         * doc/extend.texi (Alignment): Say that the ABI controls
24118         the __alignof__ for non-strict-alignment targets rather
24119         than being a recommendation.
24120
24121 2008-03-15  Paul Brook  <paul@codesourcery.com>
24122
24123         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
24124         annotations.
24125         (arm_output_fn_unwind): Mark functions that can not be unwound.
24126
24127 2008-03-15  Paul Brook  <paul@codesourcery.com>
24128
24129         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
24130         extension instructions.
24131
24132 2008-03-15  Richard Guenther  <rguenther@suse.de>
24133
24134         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
24135         and fold constant aggregate refs.
24136         (fold_const_aggregate_ref): Handle string constants
24137         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
24138         (evaluate_stmt): Simplify now that ccp_fold folds constant
24139         aggregate refs.
24140
24141 2008-03-15  Paul Brook  <paul@codesourcery.com>
24142
24143         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
24144         (extzv): Use gen_extzv_t2.
24145         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
24146
24147 2008-03-15  Richard Guenther  <rguenther@suse.de>
24148
24149         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
24150         (fold_const_aggregate_ref): Likewise.
24151         (get_value): Return NULL if we don't have any values.
24152         (ccp_finalize): Set const_val to NULL after freeing it.
24153         * tree-flow.h (get_symbol_constant_value): Declare.
24154         (fold_const_aggregate_ref): Likewise.
24155         * tree-ssa-sccvn.c (try_to_simplify): Use them.
24156
24157 2008-03-15  Richard Guenther  <rguenther@suse.de>
24158
24159         PR middle-end/35593
24160         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
24161         to not produce negative array indices if not allowed.  Add
24162         parameter to indicate that.
24163         (maybe_fold_offset_to_component_ref): Allow negative array
24164         indices only for the first member of a structure.
24165         (maybe_fold_offset_to_reference): Allow negative array indices.
24166         (maybe_fold_stmt_addition): Likewise.
24167
24168 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
24169             Anatoly Sokolov <aesok@post.ru>
24170
24171         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
24172         (avr_arch): Add ARCH_AVR6.
24173         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
24174         (initial_elimination_offset): Initialize and use 'avr_pc_size'
24175         instead of fixed value 2.
24176         (print_operand_address): Use gs() asm specifier instead of pm().
24177         (avr_assemble_integer): (Ditto.).
24178         (avr_output_addr_vec_elt): (Ditto.).
24179         (print_operand): Handle "!" code.
24180         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
24181         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
24182         (AVR_HAVE_EIJMP_EICALL): Define.
24183         (AVR_3_BYTE_PC): Redefine.
24184         (AVR_2_BYTE_PC): (Ditto.).
24185         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
24186         (LINK_SPEC): Add atmega2560 and atmega2561.
24187         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
24188         (crtm2561.o).
24189         * config/avr/avr.md (call_insn): Use eicall instead of icall
24190         for 3 byte PC devices.
24191         (call_value_insn): (Ditto.).
24192         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
24193         (indirect_jump): Use only for for 2 byte PC devices.
24194         (*tablejump): (Ditto.).
24195         (*indirect_jump_avr6): Add insn.
24196         (*tablejump_rjmp): Don't use for 3 byte PC devices.
24197         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
24198         instead of ijmp for 3 byte PC devices.
24199         (__tablejump2__): (Ditto.).
24200         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
24201         (MULITLIB_DIRNAMES): (Ditto.).
24202         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
24203
24204 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
24205
24206         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
24207         "sse2_umulsidi3".  Use V1DI mode for operand 0.
24208         ("mmx_psadbw"): Use V1DI mode for operand 0.
24209         * config/i386/i386-modes.def (V1SI): New vector mode.
24210         * config/i386/i386.c (struct builtin_description)
24211         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
24212         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
24213         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
24214         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
24215         v1di_ftype_v8qi_v8qi type.
24216         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
24217
24218         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
24219         __builtin_ia32_pmuludq]: Fix the mode of return value.
24220
24221 2008-03-15  Richard Guenther  <rguenther@suse.de>
24222
24223         PR middle-end/35595
24224         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
24225         being a PHI_NODE.
24226
24227 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
24228
24229         * doc/invoke.texi (Option Summary, Xtensa Options): Document
24230         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
24231         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
24232         unless TARGET_SERIALIZE_VOLATILE is enabled.
24233         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
24234         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
24235         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
24236
24237 2008-03-14  Richard Guenther  <rguenther@suse.de>
24238
24239         PR tree-optimization/34172
24240         * tree-flow.h (refs_may_alias_p): Declare.
24241         (get_single_def_stmt): Likewise.
24242         (get_single_def_stmt_from_phi): Likewise.
24243         (get_single_def_stmt_with_phi): Likewise.
24244         * tree-dfa.c (refs_may_alias_p): New function.
24245         (get_single_def_stmt): Likewise.
24246         (get_single_def_stmt_from_phi): Likewise.
24247         (get_single_def_stmt_with_phi): Likewise.
24248         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
24249         (vn_reference_lookup_1): New helper function.
24250         (vn_reference_lookup): Walk the virtual use-def chain to
24251         continue searching for a match if the def does not alias the
24252         reference we are looking for.
24253
24254 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
24255
24256         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
24257         archive and Perzl.  Update The Written Word listing.
24258
24259 2008-03-14  Richard Guenther  <rguenther@suse.de>
24260
24261         PR tree-optimization/34043
24262         PR tree-optimization/33989
24263         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
24264         when doing FRE.
24265         (bitmap_find_leader): Use extra argument to verify dominance
24266         relationship inside a basic-block.
24267         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
24268         (find_leader_in_sets): Adjust.
24269         (create_component_ref_by_pieces): Take extra argument for
24270         dominance check, handle lookup failures.
24271         (find_or_generate_expression): Likewise.
24272         (create_expression_by_pieces): Likewise.
24273         (insert_into_preds_of_block): Adjust.
24274         (create_value_expr_from): If asked for, verify all operands
24275         are in the blocks AVAIL_OUT set.
24276         (make_values_for_stmt): Check for SSA_NAMEs that are life
24277         over an abnormal edge.
24278         (compute_avail): Remove such check.
24279         (do_SCCVN_insertion): New function.
24280         (eliminate): If we do not find a leader suitable for replacement
24281         insert a replacement expression from SCCVN if available.
24282         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
24283         (struct vn_ssa_aux): Add needs_insertion flag.
24284         * tree-ssa-sccvn.c (may_insert): New global flag.
24285         (copy_reference_ops_from_ref): Value-number union member access
24286         based on its size, not type and member if insertion is allowed.
24287         (visit_reference_op_load): For a weak match from union type
24288         punning lookup a view-converted value and insert a SSA_NAME
24289         for that value if that is not found.
24290         (visit_use): Make dumps shorter.  Do not disallow value numbering
24291         SSA_NAMEs that are life over an abnormal edge to constants.
24292         (free_scc_vn): Release inserted SSA_NAMEs.
24293         (run_scc_vn): New flag to specify whether insertion is allowed.
24294         Process SSA_NAMEs in forward order.
24295         * tree-ssa-loop-im.c (for_each_index): Handle invariant
24296         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
24297         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
24298         pointer type to/from integral types that do not change the
24299         precision to regular conversions.
24300
24301 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
24302
24303         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
24304         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
24305         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
24306         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
24307         input arguments and the mode of return value.  Built-in functions
24308         that operate on whole 64-bit MMX register now use V1DI mode.
24309
24310 2008-03-13  Alon Dayan  <alond@il.ibm.com>
24311             Olga Golovanevsky  <olga@il.ibm.com>
24312
24313         PR tree-optimization/35041
24314         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
24315         to locate the right position in a statement.
24316
24317 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
24318
24319         PR target/34000
24320         PR target/35553
24321         * config/i386/xmmintrin.h:  Change all static inline functions to
24322         extern inline and add __gnu_inline__ attribute.
24323         * config/i386/bmintrin.h: Ditto.
24324         * config/i386/smmintrin.h: Ditto.
24325         * config/i386/tmmintrin.h: Ditto.
24326         * config/i386/mmintrin-common.h: Ditto.
24327         * config/i386/ammintrin.h: Ditto.
24328         * config/i386/emmintrin.h: Ditto.
24329         * config/i386/pmmintrin.h: Ditto.
24330         * config/i386/mmintrin.h: Ditto.
24331         * config/i386/mm3dnow.h: Ditto.
24332
24333 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
24334
24335         PR middle-end/35185
24336         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
24337         (lower_omp_2): New function.
24338         (lower_omp_1, lower_omp): Rewritten.
24339
24340 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
24341
24342         PR 35054
24343         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
24344         with the phrase "Microsoft Windows compilers".
24345         (Push/Pop Macro Pragmas): New subsection. Document
24346         #pragma push_macro and pragma pop_macro.
24347
24348 2008-03-12  Paul Brook  <paul@codesourcery.com>
24349
24350         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
24351
24352 2008-03-12  Paul Brook  <paul@codesourcery.com>
24353
24354         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
24355         (thumb2_alusi3_short): Exclude PLUS and MINUS.
24356         (thumb2_addsi_shortim): Rename ...
24357         (thumb2_addsi_short): ... to this.  Allow register operands.
24358         (thumb2_subsi_short): New pattern.
24359         (thumb2_one_cmplsi2_short,
24360         thumb2_negsi2_short): New patterns and peepholes.
24361
24362 2008-03-12  Paul Brook  <paul@codesourcery.com>
24363
24364         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
24365
24366 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
24367
24368         * config/i386/i386.md (int_cond): New code iterator.
24369         (fp_cond): Ditto.
24370         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
24371         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
24372         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
24373         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
24374         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
24375         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
24376         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
24377         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
24378
24379 2008-03-12  Paul Brook  <paul@codesourcery.com>
24380
24381         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
24382         instead of {arm,thumb}_compute_save_reg_mask.
24383         (output_return_instruction): Ditto.
24384         (thumb_unexpanded_epilogue): Ditto.
24385         (thumb1_expand_prologue): Ditto.
24386         (thumb1_output_function_prologue): Ditto.
24387         (arm_set_return_address): Ditto.
24388         (thumb_set_return_address): Ditto.
24389         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
24390         regs to achieve stack alignment.
24391         (thumb1_compute_save_reg_mask): Fix compiler warning.
24392         (arm_output_epilogue): Use offsets->saved_regs_mask.
24393         Adjust stack pointer by poping call clobered registers.
24394         (arm_expand_prologue): Use offsets->saved_regs_mask.
24395         Adjust stack pointer by pushing extra registers.
24396         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
24397
24398 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
24399
24400         PR tree-opt/35422
24401         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
24402         conversion to the operands of a multiplication.
24403
24404 2008-03-12  Richard Guenther  <rguenther@suse.de>
24405
24406         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
24407         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
24408         * timevar.def (TV_TREE_PHIPROP): Add.
24409         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
24410         pass description.  Use TV_TREE_PHIPROP.
24411         * tree-ssa-forwprop.c: Remove phiprop code.
24412
24413 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
24414
24415         PR middle-end/35549
24416         * omp-low.c (maybe_lookup_decl): Constify first argument.
24417         (use_pointer_for_field): Change last argument from bool to
24418         omp_context *.  Disallow shared copy-in/out in nested
24419         parallel if decl is shared in outer parallel too.
24420         (build_outer_var_ref, scan_sharing_clauses,
24421         lower_rec_input_clauses, lower_copyprivate_clauses,
24422         lower_send_clauses, lower_send_shared_vars): Adjust callers.
24423
24424 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
24425             Ira Rosen  <irar@il.ibm.com>
24426
24427         * tree-vectorizer.c (free_stmt_vec_info): New function.
24428         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
24429         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
24430         * tree-vectorizer.h (free_stmt_vec_info): Declare.
24431         * tree-vect-transform.c (vectorizable_conversion): Free
24432         vec_oprnds0 if it was allocated.
24433         (vect_permute_store_chain): Remove unused VECs.
24434         (vectorizable_store): Free VECs that are allocated in the..
24435         function.
24436         (vect_transform_strided_load, vectorizable_load): Likewise.
24437         (vect_remove_stores): Simplify the code.
24438         (vect_transform_loop): Move code to vect_remove_stores().
24439         Call vect_remove_stores() and free_stmt_vec_info().
24440
24441 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24442
24443         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
24444         TARGET_HPUX.  Revise comment.
24445         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
24446         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
24447         Use sr4 variant of `be' instruction when not generating PIC code.
24448         (attr_length_call): Adjust for above change.
24449
24450 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
24451
24452         * ipa-reference.c (static_execute): Remove module_statics_const and
24453         associated setting code.
24454
24455 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
24456
24457         PR target/35540
24458         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
24459         predicate for operand 1.
24460         (paritysi2_cmp): Use register_operand predicate for operand 2.
24461         Use earlyclobber modifier for operand 1.  Remove support for
24462         memory operands.
24463         (paritydi2_cmp): Use register_operand predicate for operand 3.
24464         Use earlyclobber modifier for operand 1.  Remove support for
24465         memory operands.
24466
24467 2008-03-11  Paul Brook  <paul@codesourcery.com>
24468             Vladimir Prus  <vladimir@codesourcery.com>
24469
24470         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
24471         (arm_compute_save_reg0_reg12_mask): Always
24472         check if register 11 must be saved.  Always safe hard frame pointer
24473         when frame_pointer_needeed.
24474         (arm_compute_save_reg_mask): Save IP and PC
24475         only with apcs frames.
24476         (arm_output_epilogue): Adjust Thumb2 codepath to
24477         be also invoked and work for ARM non-apcs frames.
24478         (arm_expand_prologue): Don't bother saving IP
24479         for non-apcs frame, since it's not clobbered by
24480         prologue code.  Implement non-apcs frame
24481         layout.
24482
24483 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
24484
24485         PR rtl-optimization/35281
24486         * expr.c (convert_move): Use a new pseudo for the intermediate
24487         from_mode->word_mode result.
24488
24489 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
24490
24491         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
24492         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
24493         * toplev.c (compile_file): Don't call it.
24494
24495 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
24496
24497         PR middle-end/35526
24498         * expr.c (store_expr): Call emit_block_move if the mode
24499         of "temp" RTX is BLKmode.
24500
24501 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
24502             Richard Guenther  <rguenther@suse.de>
24503
24504         PR tree-optimization/31358
24505         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
24506         the step with a NULL_TREE.
24507         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
24508         to sizetype if type is a pointer type.
24509         (add_candidate_1): Don't convert the base and step to
24510         the generic type if the orginal type is a pointer type.
24511         (add_iv_value_candidates): Use sizetype for the step
24512         if type is a pointer type.
24513         (cand_value_at): Likewise.
24514         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
24515         for pointer types.
24516         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
24517         Don't convert the tem affine to the type.
24518         (add_elt_to_tree): Use sizetype for the step if a pointer.
24519         Use POINTER_PLUS_EXPR for pointers.
24520         (aff_combination_to_tree): Use sizetype for the step if a
24521         pointer.
24522
24523 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
24524
24525         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
24526         Remove commutativity hint.
24527
24528 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
24529
24530         PR c/35438
24531         PR c/35439
24532         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
24533         errorneous type.  Check that v is a VAR_DECL.
24534
24535         PR middle-end/35099
24536         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
24537
24538 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
24539
24540         PR tree-optimization/35494
24541         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
24542         may be overriden at link and run time.
24543
24544 2008-03-10  Richard Guenther  <rguenther@suse.de>
24545
24546         PR tree-optimization/34677
24547         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
24548         (poolify_tree): Likewise.
24549         (modify_expr_template): Likewise.
24550         (poolify_modify_stmt): Likewise.
24551         (insert_fake_stores): Handle all component-ref style stores
24552         in addition to INDIRECT_REF.  Also handle complex types.
24553         Do not poolify the inserted load.
24554         (realify_fake_stores): Do not rebuild the tree but only
24555         make it a SSA_NAME copy.
24556         (init_pre): Remove initialzation of modify_expr_template.
24557         Do not allocate modify_expr_node_pool.
24558         (fini_pre): Do not free modify_expr_node_pool.
24559
24560 2008-03-10  Paul Brook  <paul@codesourcery.com>
24561
24562         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
24563         to avoid conflicts.
24564
24565 2008-03-10  Paul Brook  <paul@codesourcery.com>
24566             Mark Shinwell  <shinwell@codesourcery.com>
24567
24568         * config/arm/cortex-r4.md: New.
24569         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
24570         insn attributes.
24571         * config/arm/arm.md: Include cortex-r4.md.
24572         (insn): Add smmls, sdiv and udiv values.
24573         (generic_sched): Don't use generic scheduling for Cortex-R4.
24574         (arm_issue_rate): New function.
24575         (TARGET_SCHED_ISSUE_RATE): Define.
24576
24577 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
24578
24579         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
24580
24581 2008-03-10  Richard Guenther  <rguenther@suse.de>
24582
24583         * tree-ssa-pre.c (get_sccvn_value): Simplify.
24584         (compute_avail): Do not add stmt uses to AVAIL_OUT.
24585
24586 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
24587
24588         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
24589         Set default to true.
24590
24591 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24592
24593         * c.opt (Wsynth): Deprecate.
24594         * doc/invoke.texi (Option Summary, Warning Options): Document
24595         -Wno-format-contains-nul.
24596
24597 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
24598
24599         PR target/35496
24600         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
24601         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
24602
24603 2008-03-09  Ira Rosen  <irar@il.ibm.com>
24604
24605         * config/rs6000/rs6000.c (builtin_description): Rename vector
24606         left shift operations.
24607         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
24608         (altivec_vsl<VI_char>): Rename to ...
24609         (ashl<mode>3): ... new name.
24610         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
24611         gen_ashlv4si3.
24612         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
24613
24614 2008-03-08  Richard Guenther  <rguenther@suse.de>
24615
24616         * coverage.h (tree_coverage_counter_addr): Declare.
24617         * coverage.c (tree_coverage_counter_addr): New function.
24618         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
24619         before using again.
24620         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
24621         (tree_gen_one_value_profiler): Likewise.
24622         (tree_gen_ic_profiler): Likewise.
24623         (tree_gen_average_profiler): Likewise.
24624         (tree_gen_ior_profiler): Likewise.
24625
24626 2008-03-08  Richard Guenther  <rguenther@suse.de>
24627
24628         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
24629         (vn_binary_op_insert): Likewise.
24630         (vn_unary_op_lookup): Likewise.
24631         (vn_unary_op_insert): Likewise.
24632         (vn_nary_op_lookup): Declare.
24633         (vn_nary_op_insert): Likewise.
24634         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
24635         and binary hashes, use a single obstack for unary_op_pool
24636         and binary_op_pool.
24637         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
24638         a single struct vn_nary_op_s.  Store tree code length and
24639         a variable number of operands.
24640         (struct vn_reference_op_struct): Remove unused op2.
24641         (vn_reference_op_eq): Do not compare op2.
24642         (vn_reference_op_compute_hash): Do not compute hash of op2.
24643         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
24644         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
24645         with vn_nary_op_compute_hash.
24646         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
24647         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
24648         vn_nary_op_lookup.
24649         (vn_unary_op_insert, vn_binary_op_insert): Replace with
24650         vn_nary_op_insert.
24651         (visit_unary_op): Call nary functions.
24652         (visit_binary_op): Likewise.
24653         (process_scc): Adjust for struct vn_tables_s changes.
24654         (allocate_vn_table): Likewise.
24655         (free_vn_table): Likewise.
24656         * tree-vn.c (vn_add): Call nary functions.
24657         (vn_lookup): Likewise.
24658
24659 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
24660
24661         PR target/35498
24662         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
24663         wdst back after sync_compare_and_swapqhi_internal.
24664
24665 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
24666
24667         PR target/22152
24668         * config/i386/i386-modes.def (V1DI): New vector mode.
24669         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
24670         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
24671         (MMXMODE248): Ditto.
24672         (MMXMODE): Add V1DI mode.
24673         (mmxvecsize): Change DI mode to V1DI mode.
24674         ("mov<mode>): Use MMXMODEI8 mode iterator.
24675         ("*mov<mode>_internal_rex64"): Ditto.
24676         ("*mov<mode>_internal"): Ditto.
24677         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
24678         ("mmx_sub<mode>3"): Ditto.
24679         ("mmx_adddi3"): Remove insn pattern.
24680         ("mmx_subdi3"): Ditto.
24681         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
24682         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
24683         ("mmx_ashl<mode>3"): Ditto.
24684         ("mmx_lshrdi3"): Remove insn pattern.
24685         ("mmx_ashldi3"): Ditto.
24686         * config/i386/i386.c (classify_argument): Handle V1DImode.
24687         (function_arg_advance_32): Ditto.
24688         (function_arg_32): Ditto.
24689         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
24690         mmx_addv1di3 insn pattern.
24691         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
24692         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
24693         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
24694         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
24695         Remove definitions of built-in functions.
24696         (V1DI_type_node): New node.
24697         (v1di_ftype_v1di_int): Ditto.
24698         (v1di_ftype_v1di_v1di): Ditto.
24699         (v2si_ftype_v2si_si): Ditto.
24700         (v4hi_ftype_v4hi_di): Remove node.
24701         (v2si_ftype_v2si_di): Ditto.
24702         (ix86_init_mmx_sse_builtins): Handle V1DImode.
24703         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
24704         Redefine builtins using def_builtin_const with *_ftype_*_int node.
24705         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
24706         Add new builtins using def_builtin_const.
24707         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
24708         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
24709         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
24710         * config/i386/mmintrin.h (__v1di): New typedef.
24711         (_mm_add_si64): Cast arguments to __v1di type.
24712         (_mm_sub_si64): Ditto.
24713         (_mm_sll_pi16): Cast __count to __v4hi type.
24714         (_mm_sll_pi32): Cast __count to __v2si type.
24715         (_mm_sll_si64): Cast arguments to __v1di type.
24716         (_mm_srl_pi16): Cast __count to __v4hi type.
24717         (_mm_srl_pi32): Cast __count to __v2si type.
24718         (_mm_srl_si64): Cast arguments to __v1di type.
24719         (_mm_sra_pi16): Cast __count to __v4hi type.
24720         (_mm_sra_pi32): Cast __count to __v2si type.
24721         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
24722         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
24723         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
24724         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
24725         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
24726         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
24727         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
24728         (_mm_srai_pi32): Use __builtin_ia32_psradi.
24729         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
24730         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
24731         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
24732         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
24733
24734 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
24735
24736         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
24737
24738 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
24739
24740         PR target/35373
24741         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
24742         reg+const addressing for Altivec modes.  Don't generate reg+reg
24743         addressing for TFmode or TDmode quantities.
24744
24745 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
24746
24747         * c-common.c (vector_types_convertible_p): Call langhook
24748         instead of comptypes.
24749
24750 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
24751
24752         PR tree-opt/35402
24753         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
24754         integral and scalar float variables which have a
24755         NULL DECL_INITIAL.
24756
24757 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
24758
24759         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
24760         dwarf_register_span hook when emitting unwind information for
24761         register-to-memory saves.
24762         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
24763         (rs6000_frame_related): Remove call to spe_synthesize_frame.
24764
24765 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
24766
24767         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
24768         for the same VAR_DECL.
24769
24770 2008-03-06  Tom Tromey  <tromey@redhat.com>
24771
24772         * treelang: Delete.
24773         * doc/standards.texi (Standards): Don't mention treelang.
24774         * doc/invoke.texi (Overall Options): Don't mention treelang.
24775         * doc/install.texi (Prerequisites): Don't mention bison or
24776         treelang.
24777         (Configuration): Don't mention treelang.
24778         (Building): Likewise.
24779         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
24780
24781 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
24782
24783         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
24784         word-extractions out of a multi-word object.
24785
24786 2008-03-06  Richard Guenther  <rguenther@suse.de>
24787
24788         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
24789         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
24790         result type and precision.
24791         * expr.c (get_inner_reference): Set unsignedp based on the result
24792         type of BIT_FIELD_REF.
24793         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
24794         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
24795         (try_instantiate_multiple_fields): Likewise.  Use the correct type
24796         for BIT_FIELD_REF.
24797         (sra_build_assignment): Likewise.
24798         (sra_build_elt_assignment): Likewise.
24799         (sra_explode_bitfield_assignment): Likewise.
24800         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
24801         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
24802         set BIT_FIELD_REF_UNSIGNED.
24803         (vectorizable_load): Likewise.
24804
24805 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
24806
24807         * cse.c (cse_extended_basic_block): Invalidate artificial defs
24808         at bb start.
24809
24810 2008-03-06  Richard Guenther  <rguenther@suse.de>
24811
24812         * alias.c (struct alias_set_entry): Move has_zero_child field
24813         to pack with alias_set.
24814
24815 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
24816
24817         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
24818         32bit host.
24819
24820 2008-03-05  Ian Lance Taylor  <iant@google.com>
24821
24822         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
24823
24824 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
24825
24826         * fwprop.c (update_df): Support width and offset parameters of
24827         df_ref_create.
24828         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
24829         global_conflicts): Change DF_REF_EXTRACT to either
24830         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
24831         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
24832         * df-scan.c (df_ref_record, df_defs_record,
24833         df_ref_create_structure, df_def_record_1, df_uses_record,
24834         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
24835         df_bb_refs_collect, df_entry_block_defs_collect,
24836         df_exit_block_uses_collect): Support new width and offset fields.
24837         (ref_extract_pool): New storage pool.
24838         (df_free_ref): New function.
24839         (df_reg_chain_unlink, df_free_collection_rec,
24840         df_sort_and_compress_refs): Call df_free_ref.
24841         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
24842         of df_ref_extract.
24843         (df_ref_create_structure): Allocate df_ref_extract if offset and
24844         width fields are used.
24845         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
24846         (df_uses_record): Get offset and width from ZERO_EXTRACT
24847         and SIGN_EXTRACT.
24848         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
24849         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
24850         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
24851         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
24852         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
24853         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
24854         (df_ref_extract): New structure.
24855         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
24856         (df_ref_create): Add width and offset parameters.
24857
24858 2008-03-05  Richard Guenther  <rguenther@suse.de>
24859
24860         * tree-ssa-structalias.c (get_constraint_for_component_ref):
24861         Use ranges_overlap_p.
24862         (offset_overlaps_with_access): Rename
24863         to ranges_overlap_p and move ...
24864         * tree-flow-inline.h (ranges_overlap_p): ... here.
24865
24866         * tree.h (get_inner_reference, handled_component_p): Update
24867         comments.
24868
24869         * tree.h (record_component_aliases, get_alias_set,
24870         alias_sets_conflict_p, alias_sets_must_conflict_p,
24871         objects_must_conflict_p): Move declarations ...
24872         * alias.h (record_component_aliases, get_alias_set,
24873         alias_sets_conflict_p, alias_sets_must_conflict_p,
24874         objects_must_conflict_p): ... here.
24875         Include coretypes.h.
24876         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
24877
24878 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
24879
24880         * cfg.c: Include tree-flow.h.
24881         (remove_edge_raw): Call redirect_edge_var_map_clear.
24882         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
24883         * tree-flow-inline.h (redirect_edge_var_map_def): New.
24884         (redirect_edge_var_map_result): New.
24885         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
24886         PENDING_STMT use with redirect_edge_var_map_*.
24887         * tree-ssa.c (edge_var_maps): New definition.
24888         (redirect_edge_var_map_add): New.
24889         (redirect_edge_var_map_clear): New.
24890         (redirect_edge_var_map_dup): New.
24891         (redirect_edge_var_map_vector): New.
24892         (redirect_edge_var_map_destroy): New.
24893         (ssa_redirect_edge): Replace PENDING_STMT use with
24894         redirect_edge_var_map_*.
24895         (flush_pending_stmts): Same.
24896         (delete_tree_ssa): Destroy edge var map.
24897         * tree-flow.h (struct _edge_var_map): New.
24898         Define edge_var_map vector type.
24899         Declare redirect_edge_var_map_* prototypes.
24900         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
24901         * tree-cfg.c (reinstall_phi_args): Replace
24902         PENDING_STMT use with redirect_edge_var_map_*.
24903
24904 2008-03-05  Richard Guenther  <rguenther@suse.de>
24905
24906         PR tree-optimization/35472
24907         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
24908         whose single use_stmt has a overlapping set of loaded and
24909         stored symbols as that use_stmt might be a noop assignment then.
24910
24911 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
24912
24913         * gthr-rtems.h: Implement __gthread_mutex_destroy.
24914
24915 2008-03-05  Richard Guenther  <rguenther@suse.de>
24916
24917         PR c++/35336
24918         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
24919         should be constants.
24920         * tree-cfg.c (verify_expr): Verify it.
24921         * fold-const.c (fold_truthop): Remove code generating
24922         BIT_FIELD_REFs of structure bases.
24923         (fold_binary): Likewise.
24924         (fold_ternary): Position and size of BIT_FIELD_REFs are
24925         always host integers.
24926         (make_bit_field_ref): Remove.
24927         (optimize_bit_field_compare): Remove.
24928         (all_ones_mask_p): Remove.
24929
24930 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
24931
24932         PR gcc/33009
24933         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
24934         (split_block_and_df_analyze): New. Split basic block and rebuild
24935         dataflow.
24936         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
24937         SPLIT_BLOCK.
24938         (split_pattern_seq): Likewise.
24939         (erase_matching_seqs): Likewise.
24940         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
24941
24942 2008-03-04  Geoff Keating  <geoffk@apple.com>
24943
24944         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
24945         declaration and code.
24946         (tree_invalid_nonnegative_warnv_p): Likewise.
24947
24948 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
24949
24950         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
24951         examples.  Truncate option-names then causing overfull hbox.
24952
24953 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24954
24955         PR target/35222
24956         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
24957         on hpux10.
24958         * configure: Rebuilt.
24959
24960 2008-03-04  Rafael Espíndola  <espindola@google.com>
24961
24962         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
24963         (tree_unary_nonnegative_warnv_p): New.
24964         (tree_binary_nonnegative_warnv_p): New.
24965         (tree_single_nonnegative_warnv_p): New.
24966         (tree_invalid_nonnegative_warnv_p): New.
24967         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
24968
24969 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24970
24971         PR 28322
24972         * opts.c (handle_option): Postpone 'unknown option' errors only for
24973         warning options.
24974
24975 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
24976
24977         PR target/35453
24978         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
24979         (_SIDD_XXX): This.
24980
24981 2008-03-04  Rafael Espíndola  <espindola@google.com>
24982
24983         * fold-const.c (tree_unary_nonzero_warnv_p): New.
24984         (tree_binary_nonzero_warnv_p): New.
24985         (tree_single_nonzero_warnv_p): New.
24986         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
24987
24988 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
24989
24990         PR middle-end/35456
24991         * fold-const.c (fold_cond_expr_with_comparison): Prevent
24992         transformations for modes that have signed zeros.
24993         * ifcvt.c (noce_try_abs): Ditto.
24994
24995 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
24996
24997         * config/i386/i386.c (override_options): Force
24998         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
24999
25000 2008-03-04  Jan Hubicka  <jh@suse.cz>
25001
25002         PR c++/35262
25003         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
25004         in last commit.
25005
25006 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
25007
25008         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
25009         label to probe the stack.
25010
25011 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
25012
25013         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
25014         (__gthr_win32_mutex_destroy): Declare.
25015         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
25016         __gthr_win32_mutex_destroy.
25017         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
25018
25019 2008-03-03  Jan Hubicka  <jh@suse.cz>
25020
25021         PR c++/35262
25022         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
25023         aggressive on inlining cold calls.
25024
25025 2008-03-03  Richard Guenther  <rguenther@suse.de>
25026
25027         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
25028         struct copies into the expression table.
25029         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
25030         (try_to_simplify): Likewise.
25031         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
25032         integral and pointer arguments which do not change the
25033         precision to NOP_EXPRs.
25034         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
25035         VIEW_CONVERT_EXPR case.
25036
25037 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
25038
25039         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
25040         defined in a loop at depth 0 is invariant.
25041         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
25042         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
25043         be called at loop depth 0.
25044
25045 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
25046
25047         PR driver/35420
25048         * gcc.c (process_command): Update copyright notice dates.
25049         * gcov.c (print_version): Likewise.
25050         * gcov-dump.c (print_version): Likewise.
25051         * mips-tfile.c (main): Likewise.
25052         * mips-tdump.c (main): Likewise.
25053
25054 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25055
25056         PR 24924
25057         * c-common.c (flag_permissive): Delete.
25058         (constant_expression_warnings): Check flags first.
25059         (constant_expression_error): New.
25060         * c-common.h (flag_permissive): Delete.
25061         (constant_expression_error): Declare.
25062         * flags.h (flag_permissive): Declare. Update description.
25063         * diagnostic.c (pedwarn): Update.
25064         (permerror): New.
25065         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
25066         (permissive_error_kind): New.
25067         * toplev.c (flag_permissive): Define. Update description.
25068         * toplev.h (permissive_error_kind): Declare.
25069         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
25070         (pedwarn_c90): Use pedantic_warning_kind.
25071         * c-opts.c (c_common_post_options): flag_permissive does not affect
25072         flag_pedantic_errors.
25073
25074 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
25075
25076         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
25077         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
25078         __absvsi2, __absvDI2): Use unsigned arithmetic.
25079
25080 2008-03-02  Andi Kleen  <ak@suse.de>
25081             Richard Guenther  <rguenther@suse.de>
25082
25083         * struct-equiv.c: Remove file.
25084         * cfg_cleanup.c (condjump_equiv_p): Remove.
25085         * Makefile.in (OBJS-common): Remove struct-equiv.o.
25086         (struct-equiv.o): Remove rule.
25087         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
25088         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
25089         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
25090
25091 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
25092
25093         * ifcvt.c (noce_process_if_block): Try to handle only the then
25094         block if the else block exists but isn't suitable.
25095
25096 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
25097
25098         PR gcc/35063
25099         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
25100         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
25101         regression from previous patch.
25102
25103 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
25104
25105         PR gcc/35063
25106         * gthr.h: Add __gthread_mutex_destroy as a function that must be
25107         implemented.
25108         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
25109         * gthr-single.h (__gthread_mutex_destroy): Likewise.
25110         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
25111         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
25112         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
25113         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
25114         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
25115         (__gthread_mutex_destroy_function): Rename to
25116         __gthread_mutex_destroy.
25117         * gthr-dce.h (__gthread_mutex_destroy): Call
25118         pthread_mutex_destroy.
25119         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
25120         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
25121         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
25122
25123 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
25124
25125         * df-scan.c (df_ref_chain_change_bb): Simplify.
25126         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
25127         set_block_for_insn if there's any change.
25128         * df.h ((df_insn_change_bb): Fix prototype.
25129         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
25130         df_insn_change_bb, don't call set_block_for_insn.
25131         * emit-rtl.c (reorder_insns): Likewise.
25132         * haifa-sched.c (move_insn): Likewise.
25133
25134 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
25135
25136         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
25137
25138 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
25139
25140         * tree-flow-inline.h (next_readonly_imm_use): Return
25141         NULL_USE_OPERAND_P after the end.
25142
25143 2008-03-01  Richard Guenther  <rguenther@suse.de>
25144
25145         PR tree-optimization/35411
25146         * tree-sra.c (sra_build_assignment): Split conversion to
25147         final type to a separate statement if we are not assigning
25148         to a register.
25149
25150 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
25151
25152         * fold-const.c (fold_convertible_p): Correct the logic to follow
25153         that in fold_convert().
25154
25155 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
25156
25157         PR c++/35315
25158         * tree-inline.c (build_duplicate_type): When we make a
25159         duplicate type, make it unique in the canonical types system.
25160
25161 2008-02-29  Tom Tromey  <tromey@redhat.com>
25162
25163         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
25164         input_file_stack_history, input_file_stack_restored): Remove.
25165         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
25166         * input.h (struct file_stack): Remove.
25167         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
25168         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
25169         Likewise.
25170         * diagnostic.h (struct diagnostic_context) <last_module>: Change
25171         type.
25172         (diagnostic_last_module_changed): Add 'map' argument.
25173         (diagnostic_set_last_function): Likewise.
25174         * diagnostic.c (undiagnostic_report_current_module): Iterate using
25175         line map, not input_file_stack.
25176         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
25177
25178 2008-02-29  Paul Brook  <paul@codesourcery.com>
25179
25180         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
25181
25182 2008-02-29  Paul Brook  <paul@codesourcery.com>
25183
25184         * config/arm/ieee754-df.S (muldf3): Use RET macros.
25185
25186 2008-02-29  Richard Guenther  <rguenther@suse.de>
25187
25188         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
25189         vn_lookup_or_add.
25190         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
25191         value for comparing for a store match.
25192         (simplify_unary_expression): Do nothing for SSA_NAMEs.
25193         (try_to_simplify): Do not do a full-blown reference lookup.
25194
25195 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
25196
25197         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
25198         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
25199
25200         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
25201
25202 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
25203
25204         * tree-loop-linear.c (try_interchange_loops): Compare memory access
25205         strides against cache sizes.
25206
25207 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
25208
25209         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
25210         constant to fpul.
25211
25212 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
25213
25214         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
25215         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
25216         is smaller than the original promoted value.
25217         (simplify_subreg): If OP is a SUBREG, try to preserve its
25218         SUBREG_PROMOTED_VAR_P information.
25219
25220 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
25221
25222         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
25223         (VN_INFO_GET): Allocate new objects on the obstack.
25224         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
25225         for rpo_numbers_temp, for consistency.
25226         (free_scc_vn): Free the obstack.
25227
25228 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
25229
25230         * doc/invoke.texi: Document -ftree-loop-distribution.
25231         * tree-loop-distribution.c: New.
25232         * tree-pass.h (pass_loop_distribution): New.
25233         * graphds.h (struct graph): Add htab_t indices.
25234         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
25235         * tree-vectorizer.c (rename_variables_in_loop): Extern.
25236         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
25237         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
25238         * tree-data-ref.c (debug_data_dependence_relations): New.
25239         (dump_data_dependence_relation): Also print data references.
25240         (free_data_ref): Extern.
25241         (same_access_functions): Moved...
25242         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
25243         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
25244         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
25245         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
25246         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
25247         (stmts_from_loop): Skip LABEL_EXPR.
25248         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
25249         New.
25250         (build_rdg): Initialize rdg->indices htab.
25251         (free_rdg, stores_from_loop, ref_base_address,
25252         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
25253         have_similar_memory_accesses_1, ref_base_address_1,
25254         remove_similar_memory_refs): New.
25255         * tree-data-ref.h: Depend on tree-chrec.h.
25256         (debug_data_dependence_relations, free_data_ref): Declared.
25257         (same_access_functions): ... here.
25258         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
25259         New.
25260         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
25261         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
25262         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
25263         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
25264         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
25265         rdg_vertex_for_stmt): Declared.
25266         (struct rdg_edge): Add level.
25267         (RDGE_LEVEL): New.
25268         (free_rdg, stores_from_loop, remove_similar_memory_refs,
25269         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
25270         Declared.
25271         (rdg_has_similar_memory_accesses): New.
25272         * tree-vect-analyze.c: Remove unused static decls.
25273         * lambda.h (dependence_level): New.
25274         * common.opt (ftree-loop-distribution): New.
25275         * tree-flow.h (mark_virtual_ops_in_bb,
25276         slpeel_tree_duplicate_loop_to_edge_cfg,
25277         rename_variables_in_loop): Declared.
25278         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
25279         (OBJS-common): Add tree-loop-distribution.o.
25280         (tree-loop-distribution.o): New rule.
25281         * tree-cfg.c (mark_virtual_ops_in_bb): New.
25282         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
25283         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
25284
25285 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
25286
25287         PR target/33963
25288         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
25289         other than structures and unions.
25290
25291 2008-02-28  Richard Guenther  <rguenther@suse.de>
25292
25293         Revert:
25294         2008-02-26  Richard Guenther  <rguenther@suse.de>
25295
25296         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
25297         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
25298         (lookup_decl_from_uid): Declare.
25299         (remove_decl_from_map): Likewise.
25300         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
25301         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
25302         (decl_for_uid_map): New global hashtable mapping DECL_UID
25303         to the decl tree.
25304         (init_ttree): Allocate it.
25305         (insert_decl_to_uid_decl_map): New helper function.
25306         (make_node_stat): Insert new decls into the map.
25307         (copy_node_stat): Likewise.
25308         (lookup_decl_from_uid): New function.
25309         (remove_decl_from_map): Likewise.
25310         (print_decl_for_uid_map_statistics): New helper.
25311         (dump_tree_statistics): Call it.
25312
25313         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
25314         (referenced_var_iterator): Adjust.
25315         (FOR_EACH_REFERENCED_VAR): Adjust.
25316         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
25317         (num_referenced_vars): Adjust.
25318         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
25319         (first_referenced_var): Remove.
25320         (end_referenced_vars_p): Likewise.
25321         (next_referenced_var): Likewise.
25322         (referenced_var_iterator_set): New helper function.
25323         * tree-dfa.c (referenced_var_lookup): Adjust.
25324         (referenced_var_check_and_insert): Likewise.
25325         (remove_referenced_var): Likewise.
25326         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
25327         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25328         (verify_call_clobbering): Likewise.
25329         (verify_memory_partitions): Likewise.
25330         (init_tree_ssa): Allocate bitmap instead of hashtable for
25331         referenced_vars.
25332         (delete_tree_ssa): Adjust.
25333         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
25334         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25335         (compute_tag_properties): Likewise.
25336         (set_initial_properties): Likewise.
25337         (find_partition_for): Likewise.
25338         (update_reference_counts): Likewise.
25339         (dump_may_aliases_for): Likewise.
25340         * tree-ssa-operands.c (add_virtual_operand): Likewise.
25341         (add_call_clobber_ops): Likewise.
25342         (add_call_read_ops): Likewise.
25343         (get_asm_expr_operands): Likewise.
25344         * tree-into-ssa.c (dump_decl_set): Likewise.
25345         (update_ssa): Likewise.
25346         * tree-sra.c (scan_function): Likewise.
25347         (decide_instantiations): Likewise.
25348         (scalarize_parms): Likewise.
25349         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
25350         (dsa_named_for): Likewise.
25351         * tree-ssa-structalias.c (update_alias_info): Likewise.
25352         (merge_smts_into): Likewise.
25353
25354 2008-02-27  David Daney  <ddaney@avtrex.com>
25355
25356         PR target/34409
25357         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
25358         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
25359         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
25360         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
25361         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
25362
25363 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
25364
25365         PR target/25477
25366         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
25367         (BUILT_IN_NEXTTOWARD): Remove.
25368         (BUILT_IN_NEXTTOWARDF): Ditto.
25369         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
25370         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
25371
25372 2008-02-27  Tom Tromey  <tromey@redhat.com>
25373
25374         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
25375         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
25376
25377 2008-02-27  Jan Beulich  <jbeulich@novell.com>
25378
25379         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
25380         update the respective field on newdecl.
25381
25382 2008-02-27  Revital Eres  <eres@il.ibm.com>
25383
25384         PR rtl-optimization/34999
25385         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
25386         crossing edges that ends with a call insn.
25387         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
25388         call insn and clear the EDGE_CROSSING flag of the crossing edge
25389         when fixing fallthru edges.
25390
25391 2008-02-27  Richard Guenther  <rguenther@suse.de>
25392
25393         PR middle-end/35390
25394         * fold-const.c (fold_unary): Return the correct argument,
25395         converted to the result type.
25396
25397 2008-02-27  Richard Guenther  <rguenther@suse.de>
25398
25399         PR middle-end/34971
25400         * expr.c (expand_expr_real_1): Assert on rotates that operate
25401         on partial modes.
25402         * fold-const.c (fold_binary): Use the types precision, not the
25403         bitsize of the mode if folding rotate expressions.  Build rotates
25404         only for full modes.
25405
25406 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
25407
25408         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
25409         and CPP_PRAGMA_EOL.
25410         * c-pragma.c (pragma_ns_name): New typedef.
25411         (registered_pp_pragmas): New variable.
25412         (c_pp_lookup_pragma): New function.
25413         (c_register_pragma_1): If flag_preprocess_only, do nothing
25414         for non-expanded pragmas, for expanded ones push pragma's
25415         namespace and name into registered_pp_pragmas vector.
25416         (c_invoke_pragma_handler): Register OpenMP pragmas even when
25417         flag_preprocess_only, don't register GCC pch_preprocess
25418         pragma if flag_preprocess_only.
25419         * c-opts.c (c_common_init): Call init_pragma even if
25420         flag_preprocess_only.
25421         * c-pragma.c (c_pp_lookup_pragma): New prototype.
25422         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
25423         cpp_register_pragma if flag_preprocess_only.
25424
25425 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25426
25427         PR c/28800
25428         * c-parser.c (c_parser_translation_unit): Warn for empty
25429         translation unit, not empty source file.
25430
25431 2008-02-26  Paul Brook  <paul@codesourcery.com>
25432
25433         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
25434         operand for Thumb-2.
25435         * config/arm/arm.h (reg_class): Add CORE_REGS.
25436         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
25437         (BASE_REG_CLASS): Use CORE_REGS.
25438         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
25439         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
25440         (REGNO_OK_FOR_INDEX_P): Exclude SP.
25441         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
25442         ARM_REGNO_OK_FOR_INDEX_P.
25443         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
25444         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
25445         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
25446         (ldm/stm peepholes): Ditto.
25447         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
25448         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
25449         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
25450         * config/arm/constraints.md: Enable "k" constraint on ARM.
25451
25452 2008-02-27  Ben Elliston  <bje@au.ibm.com>
25453
25454         * config/rs6000/rs6000.c: Annotate cache line size field in all
25455         instances of struct processor_costs.
25456
25457 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
25458
25459         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
25460         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
25461         jump_bypass): New counters.
25462         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
25463         * dce.c (gate_ud_dce): Same.
25464         (gate_fast_dce): Same.
25465         * dse.c (gate_dse1): New function.
25466         (gate_dse2): New function.
25467         (gate_dse): Merge results of new gate functions.
25468         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
25469         (gate_handle_jump_bypass): Add dbg_cnt.
25470         (gate_handle_gcse): Add dbg_cnt.
25471         * ifcvt.c (gate_handle_if_conversion): Same.
25472         (gate_handle_if_after_combine): Same.
25473         (gate_handle_if_after_reload): Same.
25474         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
25475
25476 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
25477
25478         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
25479         line sizes.
25480         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
25481
25482 2008-02-26  Jason Merrill  <jason@redhat.com>
25483
25484         PR c++/35315
25485         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
25486         alone if it's the naming decl for the type's main variant.
25487
25488 2008-02-26  Tom Tromey  <tromey@redhat.com>
25489
25490         * system.h (USE_MAPPED_LOCATION): Poison.
25491         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
25492         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
25493         (make_goto_expr_edges): Likewise.
25494         (remove_bb): Likewise.
25495         (execute_warn_function_return): Likewise.
25496         * basic-block.h (struct edge_def) <goto_locus>: Change type to
25497         location_t.
25498         * c-common.c (fname_decl): Remove old location code.
25499         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
25500         location code.
25501         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
25502         variant.
25503         (ASM_INPUT_SOURCE_LOCATION): Likewise.
25504         (gen_rtx_ASM_INPUT): Likewise.
25505         (gen_rtx_ASM_INPUT_loc): Likewise.
25506         (get_rtx_asm_OPERANDS): Remove.
25507         * cfglayout.c (insn_locators_alloc): Remove old location code.
25508         (set_curr_insn_source_location): Likewise.
25509         (curr_insn_locator): Likewise.
25510         * print-tree.c (print_node): Remove old location code.
25511         * tree-mudflap.c (mf_varname_tree): Remove old location code.
25512         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
25513         * cfgexpand.c (expand_gimple_cond_expr): Don't use
25514         location_from_locus.
25515         (construct_exit_block): Remove old location code.
25516         * emit-rtl.c (force_next_line_note): Remove old location code.
25517         * profile.c (branch_prob): Remove old location code.
25518         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
25519         LOC_LINE): Remove old-location variants.
25520         * langhooks.c (lhd_print_error_function): Remove old location
25521         code.
25522         * configure, config.in: Rebuilt.
25523         * configure.ac (--enable-mapped-location): Remove.
25524         * c-decl.c (c_init_decl_processing): Remove old location code.
25525         (finish_function): Likewise.
25526         * recog.c (decode_asm_operands): Remove old location code.
25527         * c-pch.c (c_common_read_pch): Remove old location code.
25528         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
25529         variants.
25530         * gimple-low.c (lower_function_body): Remove old location code.
25531         * toplev.c (unknown_location): Remove.
25532         (push_srcloc): Remove old-location variant.
25533         (process_options): Remove old location code.
25534         (lang_dependent_init): Likewise.
25535         * input.h (UNKNOWN_LOCATION): Move definition.
25536         (location_t): Undeprecate.
25537         (source_locus): Remove.
25538         (location_from_locus): Remove.
25539         (struct location_s): Remove.
25540         Remove all old-location code.
25541         (input_line, input_filename): Remove.
25542         * final.c (final_scan_insn): Remove old location code.
25543         * diagnostic.c (diagnostic_build_prefix): Remove
25544         USE_MAPPED_LOCATION test.
25545         * tree.h (gimple_stmt) <locus>: Now a location_t.
25546         (tree_exp) <locus>: Likewise.
25547         (DECL_IS_BUILTIN): Remove old-location variant.
25548         (annotate_with_file_line, annotate_with_locus): Likewise.
25549         (expr_locus, set_expr_locus): Update.
25550         * tree.c (build1_stat): Remove old location code.
25551         (last_annotated_node): Remove.
25552         (annotate_with_file_line): Remove old-location variant.
25553         (annotate_with_locus): Likewise.
25554         (expr_location): Remove old location code.
25555         (set_expr_location): Likewise.
25556         (expr_has_location): Likewise.
25557         (expr_locus): Likewise.
25558         (set_expr_locus): Likewise.
25559         (expr_filename): Don't use location_from_locus.
25560         (expr_lineno): Likewise.
25561         * rtl-error.c (location_for_asm): Remove old location code.
25562         * c-lex.c (cb_line_change): Remove old location code.
25563         (fe_file_change): Likewise.
25564         (cb_def_pragma): Likewise.
25565         (c_lex_with_flags): Likewise.
25566         * gengtype.c (do_typedef): Don't special-case location types.
25567         (define_location_structures): Remove.
25568         (main): Don't call define_location_structures.
25569         * tree-pretty-print.c (dump_implicit_edges): Remove old location
25570         code.
25571
25572 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25573
25574         PR 26264
25575         * builtins.def (BUILT_IN_STDARG_START): Remove.
25576         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
25577         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
25578         * tree-inline.c (inline_forbidden_p_1): Likewise.
25579
25580 2008-02-26  Richard Guenther  <rguenther@suse.de>
25581
25582         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
25583         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
25584         (lookup_decl_from_uid): Declare.
25585         (remove_decl_from_map): Likewise.
25586         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
25587         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
25588         (decl_for_uid_map): New global hashtable mapping DECL_UID
25589         to the decl tree.
25590         (init_ttree): Allocate it.
25591         (insert_decl_to_uid_decl_map): New helper function.
25592         (make_node_stat): Insert new decls into the map.
25593         (copy_node_stat): Likewise.
25594         (lookup_decl_from_uid): New function.
25595         (remove_decl_from_map): Likewise.
25596         (print_decl_for_uid_map_statistics): New helper.
25597         (dump_tree_statistics): Call it.
25598
25599         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
25600         (referenced_var_iterator): Adjust.
25601         (FOR_EACH_REFERENCED_VAR): Adjust.
25602         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
25603         (num_referenced_vars): Adjust.
25604         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
25605         (first_referenced_var): Remove.
25606         (end_referenced_vars_p): Likewise.
25607         (next_referenced_var): Likewise.
25608         (referenced_var_iterator_set): New helper function.
25609         * tree-dfa.c (referenced_var_lookup): Adjust.
25610         (referenced_var_check_and_insert): Likewise.
25611         (remove_referenced_var): Likewise.
25612         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
25613         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25614         (verify_call_clobbering): Likewise.
25615         (verify_memory_partitions): Likewise.
25616         (init_tree_ssa): Allocate bitmap instead of hashtable for
25617         referenced_vars.
25618         (delete_tree_ssa): Adjust.
25619         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
25620         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25621         (compute_tag_properties): Likewise.
25622         (set_initial_properties): Likewise.
25623         (find_partition_for): Likewise.
25624         (update_reference_counts): Likewise.
25625         (dump_may_aliases_for): Likewise.
25626         * tree-ssa-operands.c (add_virtual_operand): Likewise.
25627         (add_call_clobber_ops): Likewise.
25628         (add_call_read_ops): Likewise.
25629         (get_asm_expr_operands): Likewise.
25630         * tree-into-ssa.c (dump_decl_set): Likewise.
25631         (update_ssa): Likewise.
25632         * tree-sra.c (scan_function): Likewise.
25633         (decide_instantiations): Likewise.
25634         (scalarize_parms): Likewise.
25635         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
25636         (dsa_named_for): Likewise.
25637         * tree-ssa-structalias.c (update_alias_info): Likewise.
25638         (merge_smts_into): Likewise.
25639
25640 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25641
25642         PR 34351
25643         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
25644         * c-opts.c (c_common_handle_option): Wall enables
25645         Wvolatile-register-var.
25646         * common.opt: Move Wvolatile-register-var to...
25647         * c.opt: ...here.
25648
25649 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25650
25651         * common.opt (Wlarger-than=): New.
25652         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
25653         -Wlarger-than=.
25654         * opts.c (common_handle_option): Handle -Wlarger-than=.
25655         * optc-gen.awk: Likewise.
25656         * opth-gen.awk: Likewise.
25657         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
25658         * tree-optimize.c (tree_rest_of_compilation): Likewise.
25659
25660 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25661
25662         * c-common.c (match_case_to_enum_1): Add appropriate
25663         OPT_W* parameter to warning.
25664         (c_do_switch_warnings): Likewise.
25665         * c-typeck.c (warning_init): Add one more parameter following
25666         'warning' function.
25667         (push_init_level): Update call to warning_init.
25668         (pop_init_level): Likewise.
25669         (add_pending_init): Likewise.
25670         (output_init_element: Likewise.
25671
25672 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25673
25674         PR 28322
25675         * toplev.c (toplev_main): If there are warnings or error, print
25676         errors for ignored options.
25677         * opts.c (ignored_options): New static variable.
25678         (postpone_unknown_option_error): New.
25679         (print_ignored_options): New.
25680         (handle_option): Postpone errors for unknown -Wno-* options.
25681         * opts.h (print_ignored_options): Declare.
25682
25683 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
25684
25685         * config/mips/mips.md (loadgp_blockage, blockage): Change type
25686         to "ghost".
25687
25688 2008-02-25  Richard Guenther  <rguenther@suse.de>
25689
25690         Revert:
25691         2008-02-25  Richard Guenther  <rguenther@suse.de>
25692
25693         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
25694         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
25695         (lookup_decl_from_uid): Declare.
25696         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
25697         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
25698         (decl_for_uid_map): New global hashtable mapping DECL_UID
25699         to the decl tree.
25700         (init_ttree): Allocate it.
25701         (insert_decl_to_uid_decl_map): New helper function.
25702         (make_node_stat): Insert new decls into the map.
25703         (copy_node_stat): Likewise.
25704         (lookup_decl_from_uid): New function.
25705         (print_decl_for_uid_map_statistics): New helper.
25706         (dump_tree_statistics): Call it.
25707
25708         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
25709         (referenced_var_iterator): Adjust.
25710         (FOR_EACH_REFERENCED_VAR): Adjust.
25711         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
25712         (num_referenced_vars): Adjust.
25713         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
25714         (first_referenced_var): Remove.
25715         (end_referenced_vars_p): Likewise.
25716         (next_referenced_var): Likewise.
25717         (referenced_var_iterator_set): New helper function.
25718         * tree-dfa.c (referenced_var_lookup): Adjust.
25719         (referenced_var_check_and_insert): Likewise.
25720         (remove_referenced_var): Likewise.
25721         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
25722         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25723         (verify_call_clobbering): Likewise.
25724         (verify_memory_partitions): Likewise.
25725         (init_tree_ssa): Allocate bitmap instead of hashtable for
25726         referenced_vars.
25727         (delete_tree_ssa): Adjust.
25728         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
25729         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25730         (compute_tag_properties): Likewise.
25731         (set_initial_properties): Likewise.
25732         (find_partition_for): Likewise.
25733         (update_reference_counts): Likewise.
25734         (dump_may_aliases_for): Likewise.
25735         * tree-ssa-operands.c (add_virtual_operand): Likewise.
25736         (add_call_clobber_ops): Likewise.
25737         (add_call_read_ops): Likewise.
25738         (get_asm_expr_operands): Likewise.
25739         * tree-into-ssa.c (dump_decl_set): Likewise.
25740         (update_ssa): Likewise.
25741         * tree-sra.c (scan_function): Likewise.
25742         (decide_instantiations): Likewise.
25743         (scalarize_parms): Likewise.
25744         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
25745         (dsa_named_for): Likewise.
25746         * tree-ssa-structalias.c (update_alias_info): Likewise.
25747         (merge_smts_into): Likewise.
25748
25749 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
25750
25751         PR fortran/29549
25752         * doc/invoke.texi (-fcx-limited-range): Document new option.
25753         * toplev.c (process_options): Handle -fcx-fortran-rules.
25754         * common.opt: Add documentation for -fcx-fortran-rules.
25755
25756 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
25757
25758         PR c/35162
25759         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
25760         actual behaviour and C99.
25761
25762 2008-02-26  Ben Elliston  <bje@au.ibm.com>
25763
25764         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
25765         (ASM_CPU_POWER6_SPEC): Likewise.
25766         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
25767         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
25768         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
25769
25770 2008-02-25  Richard Guenther  <rguenther@suse.de>
25771
25772         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
25773         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
25774         (lookup_decl_from_uid): Declare.
25775         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
25776         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
25777         (decl_for_uid_map): New global hashtable mapping DECL_UID
25778         to the decl tree.
25779         (init_ttree): Allocate it.
25780         (insert_decl_to_uid_decl_map): New helper function.
25781         (make_node_stat): Insert new decls into the map.
25782         (copy_node_stat): Likewise.
25783         (lookup_decl_from_uid): New function.
25784         (print_decl_for_uid_map_statistics): New helper.
25785         (dump_tree_statistics): Call it.
25786
25787         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
25788         (referenced_var_iterator): Adjust.
25789         (FOR_EACH_REFERENCED_VAR): Adjust.
25790         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
25791         (num_referenced_vars): Adjust.
25792         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
25793         (first_referenced_var): Remove.
25794         (end_referenced_vars_p): Likewise.
25795         (next_referenced_var): Likewise.
25796         (referenced_var_iterator_set): New helper function.
25797         * tree-dfa.c (referenced_var_lookup): Adjust.
25798         (referenced_var_check_and_insert): Likewise.
25799         (remove_referenced_var): Likewise.
25800         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
25801         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25802         (verify_call_clobbering): Likewise.
25803         (verify_memory_partitions): Likewise.
25804         (init_tree_ssa): Allocate bitmap instead of hashtable for
25805         referenced_vars.
25806         (delete_tree_ssa): Adjust.
25807         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
25808         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25809         (compute_tag_properties): Likewise.
25810         (set_initial_properties): Likewise.
25811         (find_partition_for): Likewise.
25812         (update_reference_counts): Likewise.
25813         (dump_may_aliases_for): Likewise.
25814         * tree-ssa-operands.c (add_virtual_operand): Likewise.
25815         (add_call_clobber_ops): Likewise.
25816         (add_call_read_ops): Likewise.
25817         (get_asm_expr_operands): Likewise.
25818         * tree-into-ssa.c (dump_decl_set): Likewise.
25819         (update_ssa): Likewise.
25820         * tree-sra.c (scan_function): Likewise.
25821         (decide_instantiations): Likewise.
25822         (scalarize_parms): Likewise.
25823         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
25824         (dsa_named_for): Likewise.
25825         * tree-ssa-structalias.c (update_alias_info): Likewise.
25826         (merge_smts_into): Likewise.
25827
25828 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
25829
25830         PR target/35258
25831         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
25832         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
25833         * alias.h (nonoverlapping_memrefs_p): Likewise.
25834
25835 2008-02-25  Jan Beulich  <jbeulich@novell.com>
25836
25837         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
25838         * config/i386/netware-libgcc.exp: Add __bswap?i2,
25839         __emultls_get_address, __emultls_register_common,
25840         __floatundi?f, and _Unwind_GetIPInfo.
25841         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
25842         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
25843         (gen_regparm_prefix): Likewise.
25844         (i386_nlm_encode_section_info): Sync with
25845         config/i386/winnt.c:i386_pe_encode_section_info().
25846         (i386_nlm_maybe_mangle_decl_assembler_name): New.
25847         i386_nlm_mangle_decl_assembler_name): New.
25848         (netware_override_options): New.
25849         * config/i386/netware.h (netware_override_options): Declare.
25850         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
25851         (i386_nlm_mangle_decl_assembler_name): Declare.
25852         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
25853
25854 2008-02-25  Ben Elliston  <bje@au.ibm.com>
25855
25856         PR other/32948
25857         * c-decl.c (grokdeclarator): Remove unused local variables
25858         `typedef_type' and `type_as_written'.
25859         * bb-reorder.c
25860         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
25861         unused local variable `has_hot_blocks'.
25862         (fix_crossing_conditional_branches): Remove unused local variable
25863         `prev_bb'.
25864
25865 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
25866
25867         PR middle-end/19984
25868         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
25869         using DEF_C99_BUILTIN.
25870         (BUILT_IN_NANF): Ditto.
25871         (BUILT_IN_NANL): Ditto.
25872
25873 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
25874             Revital Eres  <eres@il.ibm.com>
25875
25876         * modulo-sched.c (calculate_must_precede_follow): Address TODO
25877         regarding the order of two dependent insns in the same row.
25878
25879 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
25880
25881         * stor-layout.c (layout_decl): Do not bump the alignment of a
25882         bit-field to more than byte alignment if it is packed.
25883
25884 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
25885
25886         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
25887         e300c2 and e300c3.
25888
25889 2008-02-24  Diego Novillo  <dnovillo@google.com>
25890
25891         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
25892
25893         PR 33738
25894         * tree-vrp.c (vrp_evaluate_conditional): With
25895         -Wtype-limits, emit a warning when comparing against a
25896         constant outside the natural range of OP0's type.
25897         * c.opt (Wtype-limits): Move ...
25898         * common.opt (Wtype-limits): ... here.
25899
25900 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
25901
25902         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
25903         * config/rs6000/e300c2c3.md: New file.
25904         * config/rs6000/rs6000.c (processor_costs): Add new costs for
25905         e300c2 and e300c3.
25906         (rs6000_override_options): Add e300c2 and e300c3 cases to
25907         processor_target_table. Do not allow usage of Altivec or Spe
25908         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
25909         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
25910         * config/rs6000/rs6000.h (processor_type): Add
25911         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
25912         (ASM_CPU_SPEC): Add e300c2 and e300c3.
25913         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
25914         and ppce300c3. Include e300c2c3.md.
25915
25916 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
25917
25918         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
25919         instead of TARGET_STRICT_ALIGN.
25920
25921 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
25922
25923         * explow.c (memory_address): Assert that the generated address is
25924         valid.
25925
25926 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
25927
25928         PR target/25477
25929         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
25930         * config/darwin-ppc-ldouble-patch.def: New file.
25931         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
25932         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
25933         SUBTARGET_INIT_BUILTINS if defined.
25934         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
25935         New functions.
25936
25937 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25938
25939         PR rtl-opt/33512
25940         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
25941         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
25942
25943 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25944
25945         PR pch/35027
25946         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
25947         file" warning condtional on -Winvalid-PCH.
25948
25949 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
25950
25951         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
25952
25953 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
25954
25955         PR target/22076
25956         PR target/34256
25957         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
25958         prevent reload from using MMX registers.
25959         (*mov<mode>_internal): Ditto.
25960         (*movv2sf_internal_rex64): Ditto.
25961         (*movv2sf_internal): Ditto.
25962
25963 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25964
25965         PR documentation/31569
25966         * doc/install.texi2html: Use makeinfo --no-number-sections.
25967
25968 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
25969
25970         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
25971         ensure that we can address an entire entity > 8 bytes.  Don't
25972         generate reg+reg addressing for such data.
25973
25974 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
25975
25976         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
25977         strings when optimizing for size, unless the target cares about
25978         alignment.
25979
25980 2008-02-22  Tom Tromey  <tromey@redhat.com>
25981
25982         * regclass.c (current_pass): Remove declaration.
25983
25984 2008-02-22  Anatoly Sokolov <aesok@post.ru>
25985
25986         * config/avr/libgcc.S (__RAMPZ__): Define.
25987         (__do_copy_data): Add for devices with 128KB code memory.
25988
25989 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
25990
25991         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
25992         Use spe_abi.
25993         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
25994
25995 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
25996
25997         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
25998         GENNONACR_REGS.
25999
26000 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26001
26002         PR c/19999
26003         * c-typeck.c (build_binary_op): Warn about floating point
26004         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
26005
26006 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
26007
26008         PR target/34526
26009         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
26010         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
26011         add vrsave.
26012         (rs6000_override_options): Set altivec_abi as default, not override,
26013         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
26014         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
26015         is used; use new member spe_abi.
26016         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
26017         spe_abi and altivec_abi.
26018
26019 2008-02-22  Tomas Bily  <tbily@suse.cz>
26020
26021         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
26022
26023 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26024
26025         PR bootstrap/35273
26026         * config.build (build_file_translate): Set to `CMD //c' only if
26027         it works.
26028         * Makefile.in (build_file_translate): Improve comment.
26029
26030 2008-02-21  Jan Hubicka  <jh@suse.cz>
26031
26032         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
26033         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
26034         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
26035
26036 2008-02-21  Michael Matz  <matz@suse.de>
26037
26038         PR target/35264
26039         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
26040
26041 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
26042
26043         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
26044         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
26045         as insn constraint.
26046         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
26047         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
26048         SSE_VEC_FLOAT_MODE_P as insn constraint.
26049         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
26050         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
26051         sse4a_movntdf using MODEF mode iterator.
26052         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
26053         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
26054         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
26055         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
26056         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
26057         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
26058         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
26059
26060 2008-02-21  Richard Guenther  <rguenther@suse.de>
26061
26062         * tree.def (PAREN_EXPR): New tree code.
26063         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
26064         and PAREN_EXPR.
26065         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
26066         * expr.c (expand_expr_real_1): Likewise.
26067         * tree-inline.c (estimate_num_insns_1): Likewise.
26068         * tree-complex.c (expand_complex_move): Likewise.
26069         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
26070         as plain x.
26071
26072 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
26073
26074         PR target/35225
26075         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
26076
26077 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
26078
26079         PR target/35190
26080         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
26081
26082         * config/sh/sh.c (find_barrier): Don't go past
26083         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
26084
26085 2008-02-20  DJ Delorie  <dj@redhat.com>
26086
26087         * config/h8300/h8300.md (insv): Force source operand to be a register.
26088
26089         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
26090         as a jump, not as a plain insn.
26091
26092 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
26093
26094         * doc/invoke.texi (Warning Options): Add new option
26095         -Wframe-larger-than=.
26096         (-Wframe-larger-than): Document.
26097
26098         * flags.h (warn_frame_larger_than, frame_larger_than_size):
26099         Add declarations for new option variables.
26100
26101         * final.c (final_start_function): Check the frame size
26102         before emission and issue a Wframe-larger-than warning.
26103
26104         * opts.c (warn_frame_larger_than, frame_larger_than_size):
26105         Add definitions for new option variables.
26106         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
26107
26108         * common.opt (Wframe-larger-than=): New option.
26109
26110 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
26111
26112         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
26113         (<sse>_div<mode>3): Ditto.
26114         (<sse>_vmdiv<mode>3): Ditto.
26115         (<sse>_vmsqrt<mode>2): Ditto.
26116         (*smax<mode>3): Ditto.
26117         (sse5_frcz<mode>2): Ditto.
26118         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
26119         as insn constraint.
26120
26121 2008-02-20  Richard Guenther  <rguenther@suse.de>
26122
26123         PR middle-end/35265
26124         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
26125         be happy with INTEGRAL_TYPE_P.
26126
26127 2008-02-20  Richard Guenther  <rguenther@suse.de>
26128
26129         * fold-const.c (split_tree): Associate floatig-point expressions
26130         if flag_associative_math is set.
26131
26132 2008-02-20  Richard Guenther  <rguenther@suse.de>
26133
26134         * tree.h (fold_real_zero_addition_p): Declare.
26135         * fold-const.c (fold_real_zero_addition_p): Export.
26136         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
26137         floating-point operations with zero and one.
26138
26139 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
26140
26141         * doc/install.texi: Correct references to CFLAGS, replacing them
26142         with BOOT_CFLAGS.  Document flags used during bootstrap for
26143         target libraries.
26144
26145 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
26146
26147         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
26148         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
26149         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
26150         insn constraint.
26151         (smin<mode>3): Ditto from similar patterns.
26152         (smax<mode>3): Ditto.
26153         (*ieee_smin<mode>3): Ditto.
26154         (*ieee_smax<mode>3): Ditto.
26155         * config/i386/sse.md (sse): New mode attribute.
26156         (mov<mode>): Macroize expander from movv4sf and movv2df using
26157         SSEMODEF2P mode iterator.
26158         (<sse>_movnt<mode>): Ditto from similar patterns. Use
26159         SSE_VEC_FLOAT_MODE_P as insn constraint.
26160         (storent<mode>): Ditto.
26161         (storent<mode>): Macroize expander from storentsf and storentdf using
26162         MODEF mode iterator.
26163         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
26164         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
26165         (abs<mode>2): Ditto from similar patterns.
26166         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
26167         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
26168         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
26169         (<sse>_vmsqrt<mode>2): Ditto.
26170         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
26171         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
26172         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
26173         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
26174         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
26175         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
26176         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
26177         insn constraint.
26178         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
26179         iterator and SSE_FLOAT_MODE_P as insn constraint.
26180         (<sse>_ucomi): Ditto from similar patterns.
26181         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
26182         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
26183         SSE_VEC_FLOAT_MODE_P as insn constraint.
26184         (vcond<mode>): Ditto from similar patterns.
26185         (and<mode>3, *and<mode>3): Ditto.
26186         (<sse>_nand<mode>3): Ditto.
26187         (ior<mode>3, *ior<mode>3): Ditto.
26188         (xor<mode>3, *xor<mode>3): Ditto.
26189         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
26190         iterator and SSE_FLOAT_MODE_P as insn constraint.
26191         (*nand<mode>3): Ditto from similar patterns.
26192         (*ior<mode>3): Ditto.
26193         (*xor<mode>3): Ditto.
26194
26195 2008-02-20  Ira Rosen  <irar@il.ibm.com>
26196
26197         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
26198         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
26199         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
26200
26201 2008-02-19  Jan Hubicka  <jh@suse.cz>
26202
26203         * predict.c (tree_bb_level_predictions): Remove variable next
26204         mistakely introduced by previous commit.
26205
26206 2008-02-19  Jan Hubicka  <jh@suse.cz>
26207
26208         * predict.c (predict_paths_leading_to): Rewrite.
26209         (predict_paths_for_bb): New.
26210         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
26211
26212 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26213
26214         PR bootstrap/35218
26215         * Makefile.in (build_file_translate): New.
26216         (gcc-vers.texi): Use it for translating $(abs_srcdir).
26217         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
26218         * configure.ac (build_file_translate): Substitute it.
26219         * configure: Regenerate.
26220
26221 2008-02-19  Jan Hubicka  <jh@suse.cz>
26222
26223         PR rtl-optimization/34408
26224         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
26225         invalid sharing.
26226
26227 2008-02-19  Jan Hubicka  <jh@suse.cz>
26228
26229         PR middle-end/28779
26230         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
26231         call_expr.
26232
26233 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
26234
26235         PR Ada/35186
26236         * config/i386/i386-modes.def: Revert the last DI alignment
26237         change until Ada people can look into it.
26238
26239 2008-02-19  Nick Clifton  <nickc@redhat.com>
26240
26241         * opts.c (print_specific_help): Fix typo in --help text.
26242
26243 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
26244
26245         PR target/35239
26246         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
26247         32-bit inline asm without asm alternatives for host GCC < 3.0.
26248
26249 2008-02-19  Richard Guenther  <rguenther@suse.de>
26250
26251         PR tree-optimization/34989
26252         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
26253         Allow propagation to INDIRECT_REF if we can simplify only.
26254
26255 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26256
26257         * c-common.c (warn_for_collisions_1): Use appropriate option when
26258         warning.
26259
26260 2008-02-19  Nick Clifton  <nickc@redhat.com>
26261
26262         PR other/31349
26263         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
26264         (handle_options): Fix indentation.
26265         (print_filtered_help): If no language-specific options were
26266         displayed tell the user how to list all the options supported by
26267         the language's front-end.
26268         (print_specific_help): Fix indentation and remove duplicate line.
26269         (common_handle_option): Handle the -v option.
26270         For --help enable the display of undocumented options if the -v
26271         switch has been included on the command line.
26272         For --help= check for overlaps in the arguments between the option
26273         classes and the language names and issue a warning when they
26274         cannot be disambiguated.
26275         * c.opt (v): Pass on to the common option handler.
26276
26277 2008-02-19  Revital Eres  <eres@il.ibm.com>
26278
26279         * modulo-sched.c (sms_schedule): Change dump message when
26280         create_ddg function fails.
26281         (try_scheduling_node_in_cycle): Rename row to cycle.
26282         (print_partial_schedule): Rename CYCLE to ROW.
26283
26284 2008-02-19  Christian Bruel  <christian.bruel@st.com>
26285             Zdenek Dvorak  <ook@ucw.cz>
26286
26287         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
26288
26289 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
26290
26291         PR target/33555
26292         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
26293         (*x86_movdicc_0_m1_se): Ditto.
26294
26295 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
26296
26297         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
26298         (CMPtype): Define as __gcc_CMPtype.
26299         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
26300         (CMPtype): Define as __gcc_CMPtype.
26301
26302 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
26303
26304         Support valgrind 3.3 for --enable-checking=valgrind.
26305         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
26306         here.
26307         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
26308         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
26309         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
26310         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
26311         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
26312         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
26313         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
26314         respectively.
26315         * ggc-zone.c: Similar.
26316         * ggc-page.c: Similar.
26317
26318 2008-02-19  Paul Brook  <paul@codesourcery.com>
26319
26320         PR target/35071
26321         * config/arm/ieee754-df.S: Fix do_it typo.
26322         * config/arm/ieee754-sf.S: Fix do_it typo.
26323
26324 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
26325
26326         PR target/35189
26327         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
26328         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
26329         (OPTION_MASK_ISA_SSE_SET): Likewise.
26330         (OPTION_MASK_ISA_SSE2_SET): Likewise.
26331         (OPTION_MASK_ISA_SSE3_SET): Likewise.
26332         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
26333         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
26334         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
26335         (OPTION_MASK_ISA_SSE4_SET): Likewise.
26336         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
26337         (OPTION_MASK_ISA_SSE5_SET): Likewise.
26338         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
26339         (OPTION_MASK_ISA_MMX_UNSET): Updated.
26340         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
26341         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
26342         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
26343         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
26344         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
26345         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
26346         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
26347         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
26348         (OPTION_MASK_ISA_SSE4): Removed.
26349         (ix86_handle_option): Turn on bits in ix86_isa_flags and
26350         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
26351         (override_options): Don't turn on implied SSE/MMX bits in
26352         ix86_isa_flags.
26353
26354 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
26355
26356         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
26357         32bit host.
26358
26359 2008-02-18  Joey Ye  <joey.ye@intel.com>
26360
26361         PR middle-end/34921
26362         * tree-nested.c (insert_field_into_struct): Set type alignment
26363         to field alignment if the former is less than the latter.
26364
26365 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
26366
26367         * BASE-VER: Set to 4.4.0.
26368
26369 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26370
26371         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
26372         * doc/cfg.texi: Likewise.
26373         * doc/extend.texi: Likewise.
26374         * doc/gty.texi: Likewise.
26375         * doc/invoke.texi: Likewise.
26376         * doc/loop.texi: Likewise.
26377         * doc/md.texi: Likewise.
26378         * doc/passes.texi: Likewise.
26379         * doc/rtl.texi: Likewise.
26380         * doc/sourcebuild.texi: Likewise.
26381         * doc/tm.texi: Likewise.
26382         * doc/tree-ssa.texi: Likewise.
26383
26384 2008-02-17  Richard Guenther  <rguenther@suse.de>
26385
26386         PR middle-end/35227
26387         * tree-complex.c (init_parameter_lattice_values): Handle parameters
26388         without default definition.
26389
26390 2008-02-17  Richard Guenther  <rguenther@suse.de>
26391
26392         PR tree-optimization/35231
26393         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
26394         if A | B != 1.
26395
26396 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
26397
26398         Revert:
26399         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
26400         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
26401         libgcc_cmp_return mode.
26402
26403 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26404
26405         PR c/28368
26406         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
26407
26408 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
26409
26410         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
26411         multilibs.
26412
26413 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26414
26415         * doc/c-tree.texi: Use `@.' where appropriate.
26416         * doc/extend.texi: Likewise.
26417         * doc/install.texi: Likewise.
26418         * doc/invoke.texi: Likewise.
26419         * doc/loop.texi: Likewise.
26420         * doc/makefile.texi: Likewise.
26421         * doc/md.texi: Likewise.
26422         * doc/passes.texi: Likewise.
26423         * doc/standards.texi: Likewise.
26424         * doc/tm.texi: Likewise.
26425
26426 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
26427
26428         PR middle-end/35196
26429         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
26430         in entry_bb.
26431         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
26432         rather than in entry_bb.
26433
26434 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
26435
26436         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
26437         libgcc_cmp_return mode.
26438
26439 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
26440
26441         PR middle-end/35130
26442         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
26443         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
26444
26445 2008-02-15  Richard Guenther  <rguenther@suse.de>
26446             Zdenek Dvorak  <ook@ucw.cz>
26447
26448         PR tree-optimization/35164
26449         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
26450         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
26451         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
26452         Only propagate addresses which do not have abnormal SSA_NAMEs
26453         in their operands.
26454
26455 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
26456
26457         PR target/35088
26458         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
26459
26460 2008-02-15  Jan Hubicka  <jh@suse.cz>
26461
26462         PR middle-end/35149
26463         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
26464
26465 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
26466
26467         PR middle-end/34621
26468         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
26469         when calculating alignment_pad.
26470
26471 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
26472
26473         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
26474         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
26475         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
26476         and STACK_BOUNDARY define.
26477
26478 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
26479
26480         PR preprocessor/35061
26481         * c-pragma.c (handle_pragma_pop_macro): Check that
26482         pushed_macro_table has been allocated.
26483
26484 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
26485
26486         PR middle-end/35136
26487         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
26488         (force_gimple_operand): Likewise.
26489         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
26490         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
26491         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
26492         (find_interesting_uses_address): Check addressability and alignment
26493         of the base expression only after substituting bases of IVs into it.
26494
26495 2008-02-14  Michael Matz  <matz@suse.de>
26496
26497         PR target/34930
26498         * function.c (instantiate_virtual_regs_in_insn): Reload address
26499         before falling back to reloading the whole operand.
26500
26501 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
26502
26503         * config/s390/s390.c (s390_mainpool_start): Emit the pool
26504         before the first section switch note.
26505
26506 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26507
26508         * doc/bugreport.texi: Update copyright years.
26509         * doc/c-tree.texi: Likewise.
26510         * doc/cfg.texi: Likewise.
26511         * doc/cpp.texi: Likewise.
26512         * doc/cppinternals.texi: Likewise.
26513         * doc/fragments.texi: Likewise.
26514         * doc/frontends.texi: Likewise.
26515         * doc/gcc.texi: Likewise.
26516         * doc/gty.texi: Likewise.
26517         * doc/hostconfig.texi: Likewise.
26518         * doc/implement-c.texi: Likewise.
26519         * doc/libgcc.texi: Likewise.
26520         * doc/loop.texi: Likewise.
26521         * doc/makefile.texi: Likewise.
26522         * doc/options.texi: Likewise.
26523         * doc/passes.texi: Likewise.
26524         * doc/rtl.texi: Likewise.
26525         * doc/sourcebuild.texi: Likewise.
26526         * doc/standards.texi: Likewise.
26527         * doc/tree-ssa.texi: Likewise.
26528         * doc/trouble.texi: Likewise.
26529
26530         * doc/extend.texi: Use @: or add comma where appropriate.
26531         * doc/invoke.texi: Likewise.
26532         * doc/tm.texi: Likewise.
26533
26534 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
26535
26536         PR target/34393
26537         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
26538         to a reg.
26539
26540 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
26541
26542         * doc/md.texi (clz, ctz): Add reference.
26543         * doc/rtl.texi (clz, ctz): Likewise.
26544
26545 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26546
26547         PR other/35148
26548         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
26549         srcdir.
26550
26551 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
26552
26553         * config/s390/s390.c (struct constant_pool): New field
26554         emit_pool_after added.
26555         (s390_mainpool_start): Set the emit_pool_after flag according
26556         to the section switch notes.
26557         (s390_mainpool_finish): Consider emit_pool_after when emitting
26558         the literal pool at the end of the function.
26559         (s390_chunkify_start): Force literal pool splits at section
26560         switch notes.
26561
26562 2008-02-13  Michael Matz  <matz@suse.de>
26563
26564         PR debug/35065
26565         * var-tracking.c (clobber_variable_part): Correctly traverse the
26566         list.
26567
26568 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26569
26570         PR 29673
26571         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
26572         Add -fdump-ipa-inline.
26573         * tree-dump.c (dump_files): Remove tree-inlined dump.
26574         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
26575
26576 2008-02-12  Richard Guenther  <rguenther@suse.de>
26577
26578         PR tree-optimization/35171
26579         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
26580         default defs.
26581
26582 2008-02-12  Richard Guenther  <rguenther@suse.de>
26583
26584         PR middle-end/35163
26585         * fold-const.c (fold_widened_comparison): Use get_unwidened in
26586         value-preserving mode.  Disallow final truncation.
26587
26588 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
26589
26590         PR middle-end/35136
26591         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
26592         code from here to...
26593         (force_gimple_operand): ...here.
26594
26595 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
26596
26597         PR c++/35144
26598         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
26599         non-compatible pointers.
26600         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
26601         different FIELD_DECLs, try harder by comparing field offsets, sizes
26602         and types.
26603
26604         PR inline-asm/35160
26605         * function.c (match_asm_constraints_1): Don't replace the same input
26606         multiple times.
26607
26608 2008-02-12  Anatoly Sokolov <aesok@post.ru>
26609
26610         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
26611         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
26612         (expand_epilogue): Restore RAMPZ register.
26613         * config/avr/avr.md (RAMPZ_ADDR): New constant.
26614
26615 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
26616
26617         * config/i386/cygwin.asm: (__alloca): Correct calling
26618         convention and alignment.
26619         (__chkstk): Force 8 byte stack alignment.
26620
26621 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
26622             Richard Guenther  <rguenther@suse.de>
26623
26624         PR tree-optimization/33992
26625         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
26626         the zero we compare against.
26627
26628 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
26629
26630         PR libfortran/35063
26631         * gthr-win32.h (__gthread_mutex_destroy_function): New function
26632         to CloseHandle after unlocking to prevent accumulation of handle
26633         count.
26634
26635 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26636
26637         PR middle_end/34150
26638         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
26639         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
26640         and update LABEL_NUSES during and after reload.
26641
26642 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
26643
26644         PR middle-end/34627
26645         * combine.c (simplify_if_then_else): Make sure the comparison is
26646         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
26647
26648 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
26649
26650         PR bootstrap/35051
26651         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
26652         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
26653         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
26654         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
26655         * tree.h (get_type_static_bounds): Likewise.
26656
26657 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26658
26659         * doc/invoke.texi (Option Summary, C++ Dialect Options)
26660         (Objective-C and Objective-C++ Dialect Options, Warning Options):
26661         Make -Wfoo language annotations match what the compiler outputs.
26662
26663 2008-02-08  Sa Liu  <saliu@de.ibm.com>
26664
26665         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
26666         intrinsics spu_convts, spu_convtu, spu_convtf.
26667
26668 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
26669
26670         * doc/extend.texi (Function Attributes) <noinline>: Mention
26671         asm ("") as method to keep calls.
26672
26673 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26674
26675         PR other/32754
26676         * doc/options.texi (Options): Replace references to opts.sh with
26677         optc-gen.awk.
26678         * opts-common.c: Likewise.
26679         * optc-gen.awk: Likewise.
26680
26681 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
26682
26683         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
26684
26685 2008-02-07  Richard Henderson  <rth@redhat.com>
26686
26687         PR rtl-opt/33410
26688         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
26689         EXPR_LIST for the REG_EQUAL instead of a comparison with a
26690         funny mode.
26691
26692 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
26693
26694         PR tree-optimization/35085
26695         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
26696         for operand entry oe2 in addition to operand entry oe3 in order to
26697         expose more opportunities for vectorizer sum reduction.
26698
26699 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26700
26701         PR other/35107
26702         * Makefile.in (LIBS): Remove $(GMPLIBS).
26703         (cc1-dummy, cc1): Add $(GMPLIBS).
26704
26705 2008-02-06  Jan Hubicka  <jh@suse.cz>
26706
26707         PR target/23322
26708         * i386.md (moddf_integer): Do not produce partial memory stalls for
26709         targets where it hurts.
26710
26711 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
26712
26713         PR target/35083
26714         * optabs.c (expand_float): Do not check for decimal modes when
26715         expanding unsigned integer through signed conversion.
26716
26717 2008-02-06  Nick Clifton  <nickc@redhat.com>
26718
26719         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
26720         inside the clobber with a match_operand and duplicated operand
26721         number in the constraint.
26722         (ineqbranchsi): Delete redundant comment.
26723
26724 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
26725
26726         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
26727         builtin_define ("__USE_INIT_FINI__").
26728         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
26729         -msx multilibs.
26730         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
26731
26732 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26733
26734         PR documentation/30330
26735         * doc/invoke.texi (C++ Dialect Options)
26736         (Objective-C and Objective-C++ Dialect Options, Warning Options):
26737         For each warning option -Wfoo that allows -Wno-foo, ensure both
26738         -Wfoo and -Wno-foo are listed in the option index.  Fix index
26739         entry of -Wswitch-default, index -Wnormalized= including the
26740         `=', and -Wlarger-than-@var{len} including @var{len}.
26741
26742 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
26743
26744         * config/i386/i386.md (floatunssisf2): Use
26745         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
26746         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
26747         Macroize expander using MODEF mode iterator.
26748
26749 2008-02-05  Diego Novillo  <dnovillo@google.com>
26750
26751         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
26752
26753         PR 33738
26754         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
26755
26756 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26757
26758         PR other/35070
26759         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
26760
26761 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
26762
26763         PR target/35084
26764         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
26765         to indicate if a message should be generated.
26766         (init_cumulative_args): Updated.
26767         (function_value_32): Likewise.
26768
26769 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
26770
26771         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
26772
26773 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
26774
26775         PR target/35083
26776         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
26777         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
26778
26779 2008-02-04  Diego Novillo  <dnovillo@google.com>
26780
26781         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
26782
26783         PR 33738
26784         * tree-vrp.c (vrp_evaluate_conditional): With
26785         -Wtype-limits, emit a warning when comparing against a
26786         constant outside the natural range of OP0's type.
26787
26788 2008-02-04  Richard Guenther  <rguenther@suse.de>
26789
26790         PR middle-end/33631
26791         * expr.c (count_type_elements): Give for unions instead of
26792         guessing.
26793
26794 2008-02-04  Richard Guenther  <rguenther@suse.de>
26795
26796         PR middle-end/35043
26797         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
26798         to TYPE_DOMAINs base type instead of using bitsizetype here.
26799
26800 2008-02-03  Jason Merrill  <jason@redhat.com>
26801
26802         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
26803
26804 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26805
26806         PR other/29972
26807         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
26808         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
26809         (RS/6000 and PowerPC Options): Fix typos and markup.
26810         * doc/passes.texi (Tree-SSA passes): Likewise.
26811
26812 2008-02-02  Michael Matz  <matz@suse.de>
26813
26814         PR target/35045
26815         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
26816         from record_last_reg_set_info.
26817         (record_last_reg_set_info): Take an RTX argument, iterate over all
26818         constituent hardregs.
26819         (record_last_set_info, record_opr_changes): Change calls to
26820         new signature or to record_last_reg_set_info_regno.
26821
26822 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
26823
26824         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
26825
26826 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
26827
26828         PR rtl-optimization/34773
26829         * reg-notes.def (EQUAL): Mention significance of combination of
26830         REG_EQUAL and REG_RETVAL.
26831         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
26832         insn that has a REG_RETVAL.
26833
26834 2008-02-01  Roger Sayle  <roger@eyesopen.com>
26835
26836         PR bootstrap/33781
26837         * configure.ac (--enable-fixed-point): Disable unless explicitly
26838         requested on IRIX.
26839         * configure: Regenerate.
26840
26841 2008-02-01  Richard Guenther  <rguenther@suse.de>
26842
26843         PR other/35042
26844         * invoke.texi (-finline-limit): Remove no longer true parts
26845         of the documentation.  Note that there is no default value.
26846
26847 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
26848             Mark Mitchell  <mark@codesourcery.com>
26849             Ben Elliston  <bje@au.ibm.com>
26850
26851         PR c/29326
26852         * doc/extend.texi (Other Builtins): Document.
26853
26854 2008-01-31  Tom Browder <tom.browder@gmail.com>
26855
26856         * doc/c-tree.texi (Types): Fix grammar.
26857         (Expression trees): Ditto.
26858         * doc/passes.texi (Tree-SSA passes): Ditto.
26859
26860         * doc/configterms.texi (Configure Terms): Fix typo.
26861         * doc/cpp.texi (Common Predefined Macros): Ditto.
26862         * doc/md.texi (Machine Constraints): Ditto.
26863
26864         * doc/makefile.texi (Makefile): Add comma.
26865
26866 2008-01-31  Tom Browder  <tom.browder@gmail.com>
26867             Gerald Pfeifer  <gerald@pfeifer.com>
26868
26869         * doc/sourcebuild.texi (Front End): Remove references to CVS
26870         and CVSROOT/modules.
26871         (Texinfo Manuals): Replace reference to CVS by one to SVN.
26872         (Back End): Remove reference to CVS.
26873
26874 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
26875
26876         PR target/34900
26877         * config/mips/mips.c (gen_load_const_gp): New function, taking a
26878         comment from...
26879         (mips16_gp_pseudo_reg): ...here.
26880         * config/mips/mips.md (load_const_gp): Replace with...
26881         (load_const_gp_<mode>): ...this :P-based insn.
26882
26883 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26884
26885         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
26886         options. Minor fixes.
26887         (-std): Move reference to standards closer to where language
26888         standards are first mentioned.
26889
26890 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
26891
26892         PR rtl-optimization/34995
26893         * reload.c (alternative_allows_const_pool_ref): Take an rtx
26894         parameter and return a bool.  If the rtx parameter is nonnull,
26895         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
26896         (find_reloads): Update call accordingly.  Pass the new operand
26897         if it needed no address reloads, otherwise pass null.
26898
26899 2008-01-30  Richard Henderson  <rth@redhat.com>
26900
26901         PR c/34993
26902         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
26903         for unbounded arrays.
26904
26905 2008-01-30  Silvius Rus  <rus@google.com>
26906
26907         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
26908
26909 2008-01-30  Jan Hubicka  <jh@suse.cz>
26910
26911         PR target/34982
26912         * i386.c (init_cumulative_args): Use real function declaration when
26913         calling locally.
26914
26915 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
26916
26917         PR rtl-optimization/34998
26918         * global.c (build_insn_chain): Treat non-subreg_lowpart
26919         SUBREGs of pseudos as clobbering all the words covered by the
26920         SUBREG, not just all the bytes.
26921         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
26922         original df_ref rather than an extract parameter.
26923         (global_conflicts): Update call accordingly.
26924
26925 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
26926
26927         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
26928         the overflow check to make it easier to read.
26929         (__fixtfdi): Change the type of the ll member in union
26930         long_double to UDItype_x.
26931
26932 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
26933
26934         PR middle-end/34969
26935         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
26936         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
26937         * tree-inline.c (fold_marked_statements): Call
26938         cgraph_update_edges_for_call_stmt if folding a call statement.
26939         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
26940         debug_generic_stmt calls, reset it back afterwards.
26941
26942         PR c/35017
26943         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
26944         static decls.
26945         * c-typeck.c (build_external_ref): Don't pedwarn about
26946         static vars in current function's scope.
26947
26948 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
26949
26950         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
26951
26952 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
26953
26954         PR c/35002
26955         * ipa-struct-reorg.c: Fix spelling.
26956         * params.def: Ditto.
26957
26958 2008-01-29  Richard Guenther  <rguenther@suse.de>
26959
26960         PR middle-end/35006
26961         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
26962         field.
26963         * tree-inline.c (remap_type): Increment remapping_type_depth
26964         around remapping types.
26965         (copy_body_r): Only add referenced variables if they are referenced
26966         from code, not types.
26967
26968 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
26969
26970         PR c++/34055
26971         PR c++/34103
26972         PR c++/34219
26973         PR c++/34606
26974         PR c++/34753
26975         PR c++/34754
26976         PR c++/34755
26977         PR c++/34919
26978         PR c++/34961
26979         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
26980         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
26981
26982 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
26983
26984         PR target/34412
26985         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
26986         pointer for tiny stack.
26987
26988 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
26989
26990         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
26991
26992 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
26993
26994         * config/vx-common.h: Fix typo in comment.
26995
26996 2008-01-28  Ian Lance Taylor  <iant@google.com>
26997
26998         PR c++/34862
26999         PR c++/33407
27000         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
27001         coalesce pointers if they have different DECL_NO_TBAA_P values.
27002         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
27003         between variables with different DECL_NO_TBAA_P values.
27004
27005 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
27006
27007         PR 31535
27008         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
27009         are not legitimate small data references on SPE targets.
27010
27011 2008-01-28  David Daney  <ddaney@avtrex.com>
27012
27013         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
27014
27015 2008-01-28  David Daney  <ddaney@avtrex.com>
27016
27017         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
27018
27019 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
27020
27021         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
27022         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
27023         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
27024         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
27025         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
27026         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
27027         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
27028         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
27029
27030 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
27031
27032         * basic-block.h (condjump_equiv_p): Fix comment.
27033
27034 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
27035
27036         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
27037         print_generic_stmt_indented): Fix comment.
27038
27039 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
27040
27041         * configure.ac (__stack_chk_fail): Add detecion for availability
27042         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
27043         * configure: Regenerate.
27044
27045 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
27046
27047         PR middle-end/34688
27048         * final.c (output_addr_const): Handle TRUNCATE.
27049
27050 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
27051
27052         PR target/34711
27053         * tree-ssa-loop-ivopts.c (comp_cost): New type.
27054         (zero_cost, infinite_cost): New constants.
27055         (struct cost_pair): Change type of cost to comp_cost.
27056         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
27057         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
27058         New functions.
27059         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
27060         split_address_cost, ptr_difference_cost, difference_cost,
27061         get_computation_cost_at, get_computation_cost,
27062         determine_use_iv_cost_generic, determine_use_iv_cost_address,
27063         determine_use_iv_cost_condition, determine_use_iv_costs,
27064         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
27065         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
27066         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
27067         Change type of cost to comp_cost.
27068         (determine_iv_cost): Increase cost of non-original ivs, instead
27069         of decreasing the cost of original ones.
27070         (get_address_cost): Indicate the complexity of the addressing mode
27071         in comp_cost.
27072         (try_add_cand_for): Prefer using ivs not specific to some object.
27073         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
27074
27075 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
27076             Janis Johnson  <janis187@us.ibm.com>
27077
27078         PR target/34814
27079         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
27080         (TARGET_INSTANTIATE_DECLS): Likewise.
27081         * target.h (expand_to_rtl_hook): New target hook.
27082         (instantiate_decls): Likewise.
27083         * function.c (instantiate_decl): Make non-static.  Rename to...
27084         (instantiate_decl_rtl): ... this.
27085         (instantiate_expr): Use instantiate_decl_rtl.
27086         (instantiate_decls_1): Likewise.
27087         (instantiate_decls): Likewise.
27088         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
27089         * function.h (instantiate_decl_rtl): Add prototype.
27090         * cfgexpand.c (target.h): New include.
27091         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
27092         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
27093         (TARGET_INSTANTIATE_DECLS): Likewise.
27094         (TARGET_INITIALIZER): New target hooks added.
27095         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
27096         New prototype.
27097         * config/rs6000/rs6000.c (tree-flow.h): New include.
27098         (machine_function): Add sdmode_stack_slot field.
27099         (rs6000_alloc_sdmode_stack_slot): New function.
27100         (rs6000_instantiate_decls): Likewise.
27101         (rs6000_secondary_memory_needed_rtx): Likewise.
27102         (rs6000_check_sdmode): Likewise.
27103         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
27104         (TARGET_INSTANTIATE_DECLS): Likewise.
27105         (rs6000_hard_regno_mode_ok): Allow SDmode.
27106         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
27107         (rs6000_emit_move): Handle SDmode.
27108         (function_arg_advance): Likewise.
27109         (function_arg): Likewise.
27110         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
27111         SDmode var args for 32-bit compiles.
27112         (rs6000_secondary_reload_class): Handle SDmode.
27113         (rs6000_output_function_epilogue): Likewise.
27114         (rs6000_function_value): Simplify if statement.
27115         (rs6000_libcall_value): Likewise.
27116         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
27117         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
27118         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
27119         (movsd_hardfloat): New define_insn.
27120         (movsd_softfloat): Likewise.
27121         (movsd_store): Likewise.
27122         (movsd_load): Likewise.
27123         (extendsddd2): Likewise.
27124         (extendsdtd2): Likewise.
27125         (truncddsd2): Likewise.
27126         (movdd_hardfloat64): Fixup comment.
27127         (UNSPEC_MOVSD_LOAD): New constant.
27128         (UNSPEC_MOVSD_STORE): Likewise.
27129
27130 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
27131
27132         PR c++/34965
27133         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
27134         TRUTH_XOR_EXPR.
27135         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
27136         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
27137         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
27138         and TRUTH_XOR_EXPR.
27139
27140 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
27141
27142         PR target/34794
27143         * config.gcc: Separate AIX 5.3 from AIX 6.1.
27144         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
27145         __LONGDOUBLE128 too.
27146         * config/rs6000/aix61.h: New file.
27147
27148 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
27149
27150         PR rtl-optimization/34959
27151         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
27152         popcount and parity rtxes the same mode as their operand.
27153         Truncate or extend the result to the return value's mode
27154         if necessary.
27155
27156 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
27157
27158         PR target/34981
27159         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
27160         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
27161         to GOT_VERSION_REGNUM.
27162         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
27163         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
27164         * config/mips/mips.c (mips_emit_call_insn): New function.
27165         (mips_call_tls_get_addr): Call mips_expand_call directly.
27166         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
27167         emit_call_insn.
27168         (mips16_build_call_stub): Likewise.  Return the call insn or null.
27169         (mips_expand_call): Update the call to mips16_build_call_stub
27170         accordingly and a remove redundant condition.  Assert that MIPS16
27171         stubs do not use lazy binding.  Use mips_emit_call_insn and return
27172         the call insn.
27173         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
27174         TARGET_USE_GOT.
27175         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
27176         (mips_avoid_hazard): Remove hazard_set handling.
27177         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
27178         (UNSPEC_RESTORE_GP): ...this.
27179         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
27180         (FAKE_CALL_REGNO): Rename to...
27181         (GOT_VERSION_REGNUM): ...this.
27182         (type): Add "ghost" value.  Add an associated insn reservation.
27183         (hazard_set): Remove.
27184         (exception_receiver): Rename to...
27185         (restore_gp): ...this and update the unspec identifier accordingly.
27186         (exception_receiver, nonlocal_got_receiver): New expanders.
27187         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
27188         FAKE_CALL_REGNO.  Remove hazard_set attribute.
27189         (set_got_version, update_got_version): New patterns.
27190
27191 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
27192
27193         PR target/34970
27194         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
27195
27196 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
27197
27198         PR other/31955
27199         * doc/install.texi2html: Generate gcc-vers.texi.
27200
27201 2008-01-25  DJ Delorie  <dj@redhat.com>
27202
27203         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
27204
27205 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
27206
27207         * config/c4x: Remove directory.
27208         * config.gcc (crx-*, mt-*): Mark obsolete.
27209         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
27210         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
27211         sh-*-rtemscoff*): Remove cases.
27212         * defaults.h (C4X_FLOAT_FORMAT): Remove.
27213         * real.c (encode_c4x_single, decode_c4x_single,
27214         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
27215         c4x_extended_format): Remove.
27216         * real.h (c4x_single_format, c4x_extended_format): Remove.
27217         * doc/extend.texi (interrupt, naked): Remove mention of attributes
27218         on C4x.
27219         (Pragmas): Remove comment about c4x pragmas.
27220         * doc/install.texi (c4x): Remove target-specific instructions.
27221         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
27222         * doc/md.texi (Machine Constraints): Remove C4x documentation.
27223         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
27224         refer to C4x source files as examples.
27225         (C4X_FLOAT_FORMAT): Remove documentation.
27226
27227 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
27228
27229         * config/bfin/bfin.c (override_options): Reorder tests so that
27230         flag_pic gets enabled for -msep-data.
27231
27232 2008-01-25  Richard Guenther  <rguenther@suse.de>
27233
27234         PR middle-end/32244
27235         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
27236         to its bitfield precision if required.
27237
27238 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
27239
27240         PR middle-end/33880
27241         * tree-nested.c (walk_omp_for): New function.
27242         (convert_nonlocal_reference, convert_local_reference): Call
27243         walk_omp_for on OMP_FOR.
27244         (convert_call_expr): Call walk_body on OMP_FOR's
27245         OMP_FOR_PRE_INIT_BODY.
27246
27247 2008-01-25  Richard Guenther  <rguenther@suse.de>
27248
27249         PR tree-optimization/34966
27250         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
27251         default defs and PHI_NODEs we have to insert after the
27252         defining statement.
27253
27254 2008-01-24  Nick Clifton  <nickc@redhat.com>
27255
27256         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
27257         Provide a default definition.
27258         (LIBGCC2_UNITS_PER_WORD): Likewise.
27259
27260         * config/stormy16/stormy16.c: Include df.h for the prototype
27261         for df_regs_ever_live_p.
27262         (xstormy16_expand_builtin_va_start): Convert the stack offset
27263         into a component_ref and then use POINTER_PLUS_EXPR to add it
27264         to the incoming_virtual_args_rtx.
27265         (xstormy16_gimplify_va_arg_expr): Rename to
27266         xstormy16_gimplify_va_arg_expr.
27267         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
27268         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
27269         xstormy16_gimplify_va_arg_expr.
27270         Fix up some formatting issues.
27271
27272         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
27273         Move to predicates.md.
27274         (xs_hi_general_operand): Likewise.
27275         (xs_hi_nonmemory_operand): Likewise.
27276         * config/stormy16/predicates.md:
27277         (xstormy16_carry_plus_operand): New predicate.
27278         (xs_hi_general_operand): New predicate.
27279         (xs_hi_nonmemory_operand): New predicate.
27280         * config/stormy16/stormy16-protos.h:
27281         (xstormy16_carry_plus_operand): Delete prototype.
27282         (xs_hi_general_operand): Likewise.
27283         (xs_hi_nonmemory_operand): Likewise.
27284
27285         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
27286         modifiers as they are no longer needed and they can trigger
27287         reload spill failures.
27288
27289         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
27290         with a match_operand in order to help reload.
27291
27292         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
27293         constraint with 'e' for the 8th alternative as this version of
27294         the mov.w instruction only accepts the lower 8 registers.
27295
27296 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
27297
27298         PR target/34856
27299         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
27300         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
27301         vector elements.
27302
27303 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
27304
27305         PR middle-end/33333
27306         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
27307
27308 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
27309
27310         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
27311         New functions.
27312         (remove_structure): Update allocations list before removing structure.
27313
27314 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
27315
27316         * ipa-struct-reorg.c (is_safe_cond_expr,
27317         create_new_stmts_for_cond_expr): Use integer_zerop function,
27318         that recognize not only zero-pointer, but zero-integer too.
27319
27320 2008-01-25  Ben Elliston  <bje@au.ibm.com>
27321
27322         PR other/22232
27323         * fixproto: Escape "." in sed expression that strips leading "./".
27324
27325 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
27326
27327         PR driver/34904
27328         * gcc.c (SWITCH_OK): Removed.
27329         (SWITCH_LIVE): Changed to bit.
27330         (SWITCH_FALSE): Likewise.
27331         (SWITCH_IGNORE): Likewise.
27332         (switchstr): Change live_cond to unsigned int.
27333         (process_command): Replace SWITCH_OK with 0.
27334         (do_self_spec): Likewise.
27335         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
27336         (give_switch): Likewise.
27337         (used_arg): Likewise.
27338         (do_spec_1): Set the SWITCH_IGNORE bit.
27339         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
27340         bits.  Set the SWITCH_LIVE bit.
27341
27342 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
27343
27344         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
27345
27346 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
27347
27348         PR tree-optimization/34472
27349         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
27350         parameter to a "bool *" and set *DATA to false if there is
27351         an unsafe access.  Do not delete the structure here.
27352         (check_cond_exprs): Delete it here instead.
27353         (check_cond_exprs, exclude_cold_structs): Do not increase
27354         I when removing a structure.
27355
27356 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
27357
27358         PR target/34856
27359         * config/i386/i386.c (ix86_expand_vector_init): Consider only
27360         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
27361
27362 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
27363
27364         PR middle-end/34934
27365         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
27366         a fixed vector for stack.
27367
27368 2008-01-24  Ben Elliston  <bje@au.ibm.com>
27369
27370         PR c++/25701
27371         * doc/gcc.texi (Software development): Add a direntry for g++.
27372
27373 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
27374
27375         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
27376         stale and straggling -fforce-addr comments above.
27377
27378         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
27379         define.
27380         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
27381         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
27382
27383 2008-01-23  Michael Matz  <matz@suse.de>
27384
27385         PR debug/34895
27386         * dwarf2out.c (force_type_die): Use modified_type_die instead of
27387         gen_type_die.
27388
27389 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
27390
27391         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
27392         malloc result type.
27393
27394 2008-01-23 Anatoly Sokolov <aesok@post.ru>
27395
27396         * config/avr/avr.c (avr_current_arch): New variable.
27397         (avr_arch_types): Add 'avr31' and 'avr51' entries.
27398         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
27399         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
27400         (avr_override_options): Init 'avr_current_arch'.
27401         (base_arch_s): Move from here...
27402         * config/avr/avr.h (base_arch_s): ... here. Add new members
27403         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
27404         'mega' to 'have_jmp_call'.
27405         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
27406         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
27407         macros.
27408         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
27409         architectures.
27410         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
27411         MULTILIB_MATCHES): Ditto.
27412
27413 2008-01-23  Richard Guenther  <rguenther@suse.de>
27414
27415         PR middle-end/31529
27416         * cgraphunit.c (cgraph_reset_node): Always mark the node
27417         not reachable if it is not queued already.
27418
27419 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
27420
27421         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
27422         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
27423         (cputype_selected): New static variable.
27424         (bfin_handle_option): Set it if -mcpu is used.
27425         (override_option): Select default set of workarounds if no cpu type
27426         selected on the command line.
27427         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
27428
27429         From  Michael Frysinger  <michael.frysinger@analog.com>
27430         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
27431         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
27432
27433         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
27434         for bf547, bf523, bf524, and bf526.
27435         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
27436         bf526.
27437         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
27438         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
27439         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
27440         __ADSPBF547__ and __ADSPBF54x__ for bf547.
27441         * doc/invoke.texi (Blackfin Options): Document that
27442         -mcpu now accept bf547, bf523, bf524, and bf526.
27443
27444 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
27445
27446         PR rtl-optimization/34628
27447         * combine.c (try_combine): Stop and undo after the first combination
27448         if an autoincrement side-effect on the first insn has effectively
27449         been lost.
27450
27451 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
27452
27453         PR target/34529
27454         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
27455         Offset addresses are not valid for Altivec or paired float modes.
27456
27457 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
27458
27459         PR c++/34607
27460         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
27461         if DECL_INITIAL (decl) is error_mark_node.
27462
27463         PR c++/34914
27464         * c-common.c (handle_vector_size_attribute): Only allow
27465         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
27466         the same way as pointer, array etc. types.
27467         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
27468
27469         PR c++/34917
27470         * tree.c (build_type_attribute_qual_variant): Call
27471         build_qualified_type if attributes are equal, but quals are not.
27472
27473 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
27474
27475         PR 32102
27476         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
27477         * flags.h (warn_strict_aliasing): Remove.
27478         (warn_strict_overflow): Remove.
27479         * opts.c (warn_strict_aliasing): Remove.
27480         (warn_strict_overflow): Remove.
27481         * c-opts.c (c_common_handle_option): -Wall only sets
27482         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
27483         (c_common_post_options): Give default values to -Wstrict-aliasing
27484         and -Wstrict-overflow if they are uninitialized.
27485         * common.opt (Wstrict-aliasing): Specify Var and Init.
27486         (Wstrict-overflow): Likewise.
27487
27488 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
27489
27490         PR rtl-optimization/26854
27491         PR rtl-optimization/34400
27492         PR rtl-optimization/34884
27493         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
27494         DF_RD->gen.
27495         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
27496         (df_rd_bb_info.expanded_lr_out): Deleted
27497         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
27498         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
27499         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
27500         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
27501         Removed code to allocate, initialize or free expanded_lr_out.
27502         (df_rd_bb_local_compute_process_def): Restructured to make more
27503         understandable.
27504         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
27505         sets if the sets are being trimmed.
27506
27507 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
27508
27509         PR bootstrap/32287
27510         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
27511         (as_vers): Likewise.
27512         * configure: Regenerated.
27513
27514 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
27515
27516         PR middle-end/33092
27517         * tree-pass.h (pass_build_alias): New pass.
27518         * tree-ssa-alias.c (gate_build_alias): New.
27519         (pass_build_alias): New.
27520         * passes.c (init_optimization_passes): Add pass_build_alias after
27521         pass_create_structure_vars.
27522
27523 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
27524
27525         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
27526         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
27527         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
27528         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
27529         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
27530         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
27531         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
27532         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
27533         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
27534         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
27535         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
27536         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
27537         * config/s390/s390.md (FP_ALL): New mode iterator.
27538         (_d): New mode attribute.
27539         ("*signbit<mode>2>"): Changed mode of first operand.
27540         ("isinf<mode>2"): Changed mode of first operand.
27541         ("*TDC_insn"): Adaptation for DFP modes.
27542
27543 2008-01-22  Ben Elliston  <bje@au.ibm.com>
27544
27545         * tree.c (check_qualified_type): Improve function description.
27546
27547 2008-01-21  Jason Merrill  <jason@redhat.com>
27548
27549         PR c++/34196
27550         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
27551         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
27552         if it is set.
27553
27554 2008-01-21  DJ Delorie  <dj@redhat.com>
27555
27556         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
27557         return zero.
27558
27559 2008-01-21  Richard Guenther  <rguenther@suse.de>
27560
27561         PR middle-end/34856
27562         * tree-cfg.c (verify_expr): Allow all invariant expressions
27563         instead of just constant class ones as reference argument.
27564         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
27565         like any other constant.
27566         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
27567
27568 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
27569
27570         * regmove.c (fixup_match_1): Update call crossed frequencies.
27571
27572 2008-01-21  Richard Guenther  <rguenther@suse.de>
27573
27574         PR c/34885
27575         * tree-inline.c (setup_one_parameter): Deal with mismatched
27576         types using a VIEW_CONVERT_EXPR.
27577
27578 2008-01-21  Alon Dayan  <alond@il.ibm.com>
27579             Olga Golovanevsky  <olga@il.ibm.com>
27580
27581         PR tree-optimization/34701
27582         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
27583         when the structure size is not a power of 2.
27584
27585 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
27586
27587         * doc/install.texi: Add doc for --enable-checking=df.
27588
27589 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
27590
27591         PR rtl-optimization/34808
27592         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
27593
27594 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
27595
27596         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
27597         input.
27598
27599 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
27600
27601         PR rtl-optimization/26854
27602         PR rtl-optimization/34400
27603         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
27604         DF_RD->gen.
27605         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
27606         (df_rd_bb_info.expanded_lr_out): New.
27607         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
27608         * loop_iv.c (iv_analysis_loop_init): Ditto.
27609         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
27610         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
27611         Added code to allocate, initialize or free expanded_lr_out.
27612         (df_rd_bb_local_compute_process_def): Restructured to make
27613         more understandable.
27614         (df_rd_confluence_n): Add code to do nothing with fake edges and
27615         code to no apply invalidate_by_call sets if the sets are being trimmed.
27616         (df_lr_local_finalize): Renamed to df_lr_finalize.
27617         (df_live_local_finalize): Renamed to df_live_finalize.
27618
27619 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
27620
27621         PR target/34831
27622         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
27623         deciding whether to use reciprocal instructions.
27624
27625 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
27626
27627         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
27628         dwarf2out_note_section_used if cold_text_section is NULL.
27629
27630 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
27631
27632         PR gcov-profile/34610
27633         * tree-cfg.c (make_edges): Mark both outgoing edges from
27634         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
27635         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
27636         from OMP_FOR and OMP_CONTINUE outgoing edges.
27637
27638         * tree-profile.c (tree_profiling): Return early if
27639         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
27640         at the end.
27641         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
27642         from cfun to child_cfun.
27643         * function.h (struct function): Add after_tree_profile bit.
27644
27645 2008-01-19 Anatoly Sokolov <aesok@post.ru>
27646
27647         * config/avr/avr.S (_exit): Disable interrupt.
27648
27649 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
27650             Steven Bosscher  <stevenb.gcc@gmail.com>
27651
27652         PR rtl-optimization/26854
27653         PR rtl-optimization/34400
27654         * df-problems.c (df_live_scratch): New scratch bitmap.
27655         (df_live_alloc): Allocate df_live_scratch when doing df_live.
27656         (df_live_reset): Clear the proper bitmaps.
27657         (df_live_bb_local_compute): Only process the artificial defs once
27658         since the order is not important.
27659         (df_live_init): Init the df_live sets only with the variables
27660         found live by df_lr.
27661         (df_live_transfer_function): Use the df_lr sets to prune the
27662         df_live sets as they are being computed.
27663         (df_live_free): Free df_live_scratch.
27664
27665 2008-01-18  Ian Lance Taylor  <iant@google.com>
27666
27667         * common.opt: Add fmerge-debug-strings.
27668         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
27669         flag_merge_debug_strings rather than flag_merge_constants.
27670         * doc/invoke.texi (Option Summary): Mention
27671         -fmerge-debug-strings.
27672         (Debugging Options): Document -fmerge-debug-strings.
27673
27674 2008-01-18  Ian Lance Taylor  <iant@google.com>
27675
27676         PR c++/33407
27677         * tree.h (DECL_IS_OPERATOR_NEW): Define.
27678         (struct tree_function_decl): Add new field operator_new_flag.
27679         * tree-inline.c (expand_call_inline): When inlining a call to
27680         operator new, force the return value to go into a variable, and
27681         set DECL_NO_TBAA_P on that variable.
27682         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
27683
27684 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
27685
27686         PR debug/34484
27687         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
27688         DWARF2_DEBUGGING_INFO.
27689         (dwarf2out_note_section_used): Ditto.  Add prototype.
27690         (have_multiple_function_sections, text_section_used,
27691         cold_text_section_used, *cold_text_sections): Move declarations
27692         before their uses.
27693
27694 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
27695
27696         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
27697         field and add signal_ra.
27698         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
27699         assignments to frame state pc.  Move end of stack check after
27700         MD_FALLBACK_FRAME_STATE_FOR.
27701         (uw_update_context_1): Use frame state signal_regs if set, instead
27702         of checking signal_frame flag.
27703         (uw_update_context): Use frame state signal_ra if set.
27704         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
27705         * config/xtensa/linux-unwind.h: New file.
27706
27707 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
27708
27709         * modulo-sched.c (get_sched_window): Fix comment typo.
27710
27711 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
27712
27713         PR tree-optimization/34648
27714         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
27715
27716 2008-01-17  Anatoly Sokolov <aesok@post.ru>
27717
27718         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
27719         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
27720
27721 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
27722
27723         PR rtl-optimization/34400
27724         * df-core.c (df_worklist_dataflow_overeager,
27725         df_worklist_dataflow_doublequeue): New functions.
27726         (df_worklist_dataflow): Two different worklist solvers.
27727         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
27728         New param.
27729
27730 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27731
27732         PR testsuite/34821
27733         * doc/invoke.texi: Document the dependence on pthread for fopenmp
27734         and ftree-parallelize-loops.
27735
27736 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
27737
27738         PR rtl-optimization/34826
27739         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
27740
27741 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
27742
27743         * global.c (find_reg): Mark the eh regs as used if necessary.
27744         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
27745         * ra.h (struct allocno): no_eh_reg field added.  Changed
27746         no_stack_reg type to bitfield.
27747
27748 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
27749
27750         * tree.c (substitute_in_expr): Add missing 'break'.
27751
27752 2008-01-17  Richard Guenther  <rguenther@suse.de>
27753
27754         PR tree-optimization/34825
27755         * tree-ssa-math-opts.c (is_division_by): Do not recognize
27756         x / x as division to handle.
27757
27758 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27759
27760         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
27761         "-pthread" is specified.
27762         * pa-hpux11.h (LIB_SPEC): Likewise.
27763
27764 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
27765             Peter Bergner  <bergner@vnet.ibm.com>
27766
27767         PR rtl-optimization/33796
27768         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
27769
27770 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27771
27772         PR libgfortran/34699
27773         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
27774         static links.
27775         * pa-hpux10.h (LINK_SPEC): Likewise.
27776         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
27777
27778 2008-01-16  Richard Guenther  <rguenther@suse.de>
27779
27780         PR middle-end/32628
27781         * fold-const.c (fold_convert_const_int_from_int): Do not
27782         set overflow if that occured only because of a sign extension
27783         change when converting from/to a sizetype with the same
27784         precision and signedness.
27785
27786 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
27787
27788         PR debug/34249
27789         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
27790         location address to the correct place.  Update copyright year.
27791
27792 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27793
27794         * lambda-code.c (lambda_transform_legal_p): Handle the case of
27795         no dependences in the dependence_relations vector.
27796
27797 2008-01-16  Jan Hubicka  <jh@suse.cz>
27798
27799         PR rtl-optimization/31396
27800         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
27801         * cfg.c (dump_reg_info): Print it.
27802         * regs.h (struct reg_info_t): add freq_calls_crossed.
27803         (REG_FREQ_CALLS_CROSSED): New macro.
27804         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
27805         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
27806         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
27807         regmove_optimize): Update call crossed frequencies.
27808         * local-alloc.c (struct qty): Add freq_calls_crossed.
27809         (alloc_qty): Copute freq_calls_crossed.
27810         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
27811         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
27812         * ra.h (struct allocno): Add freq_calls_crossed.
27813
27814 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27815
27816         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
27817         libgomp when compiling with ftree-parallelize-loops.
27818         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
27819
27820 2008-01-16  Richard Guenther  <rguenther@suse.de>
27821
27822         PR tree-optimization/34769
27823         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
27824         * tree.c (int_cst_value): Instead make this function more
27825         permissive in what it accepts as valid input.  Document this
27826         function always sign-extends the value.
27827
27828 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
27829             Richard Guenther  <rguenther@suse.de>
27830
27831         PR c/34668
27832         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
27833         (gimple_fold_indirect_ref_rhs): ... this.
27834         (gimple_fold_indirect_ref): New function with foldings
27835         that preserve lvalueness.
27836         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
27837         * tree-flow.h (gimple_fold_indirect_ref): Declare.
27838         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
27839         to fold an INDIRECT_REF, fall back to the old use of
27840         fold_indirect_ref_1.
27841
27842 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27843
27844         * tree-data-ref.c (subscript_dependence_tester_1): Call
27845         free_conflict_function.
27846         (compute_self_dependence): Same.
27847
27848 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
27849
27850         PR debug/34249
27851         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
27852         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
27853         function global.
27854         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
27855         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
27856         for DWARF2_UNWIND_INFO targets.
27857
27858 2008-01-16  Richard Guenther  <rguenther@suse.de>
27859
27860         PR c/34768
27861         * c-typeck.c (common_pointer_type): Do not merge inconsistent
27862         type qualifiers for function types.
27863
27864 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
27865
27866         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
27867         loop_iterator li from previous commit.
27868
27869 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
27870
27871         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
27872
27873 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
27874
27875         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
27876         (parallelize_loops): Don't parallelize irreducible components.
27877
27878 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
27879
27880         PR c++/24924
27881         * c-opts (c_common_post_options): Do not enable CPP
27882         flag_pedantic_errors by default.
27883
27884 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
27885
27886         PR rtl-optimization/31944
27887         * cse.c (remove_pseudo_from_table): New function.
27888         (merge_equiv_classes): Use above function to remove pseudo-registers.
27889         (invalidate): Likewise.
27890
27891 2008-01-13  Richard Guenther  <rguenther@suse.de>
27892
27893         PR middle-end/34601
27894         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
27895         instead of TYPE_MODE to deal with calls from expand_one_error_var.
27896
27897 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
27898
27899         * gcse.c (cprop_jump): Call validate_unshare_change instead of
27900         validate_change to unshare the source of the PC set.
27901
27902 2008-01-12  Jan Hubicka  <jh@suse.cz>
27903
27904         PR middle-end/32135
27905         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
27906         references above array bounds.  This might trigger bounds checks for
27907         pointers to arrays.
27908
27909 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
27910
27911         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
27912         new_replaceable_dependencies.
27913
27914 2008-01-12  Doug Kwan  <dougkwan@google.com>
27915
27916         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
27917         instead of OPT_Wreturn_type in warning due to ignored return type
27918         qualifiers.
27919         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
27920         options included in -Wextra.
27921         * c.opt: New option -Wignored_qualifiers.
27922         * doc/invoke.texi (Warning Options, -Wextra): Add new option
27923         -Wignore_qualifiers.
27924         (-Wignored-qualifiers): Document.
27925         (-Wreturn-type): Remove description of functionality now handled
27926         by -Wignored-qualifiers.
27927
27928 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
27929
27930         PR ada/33788
27931         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
27932         NOP_EXPR if it is between integral types with the same precision.
27933
27934 2008-01-12  Jan Hubicka  <jh@suse.cz>
27935
27936         PR other/28023
27937         * invoke.texi (max-inline-recursive-depth): Fix default value.
27938
27939 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
27940
27941         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
27942         correct type.
27943
27944 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
27945
27946         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
27947
27948 2008-01-11  James E. Wilson  <wilson@specifix.com>
27949
27950         PR target/26015
27951         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
27952
27953 2008-01-11  Anatoly Sokolov <aesok@post.ru>
27954
27955         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
27956         save/restore frame pointer register and don't use 'call-prologues'
27957         optimization in function with "OS_task" attribute.
27958
27959 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
27960
27961         PR middle-end/31309
27962         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
27963         when copying to memory.
27964
27965 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
27966
27967         PR rtl-optimization/30905
27968         * cfgcleanup.c: Include dce.h
27969         (crossjumps_occured): New global variable.
27970         (try_crossjump_bb): Exit loop after finding a fallthru edge.
27971         If something changed, set crossjumps_occured to true.
27972         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
27973         Don't add/remove fake edges to exit here...
27974         (cleanup_cfg): ...but do it here, when crossjumping.
27975         Run a fast DCE when successful crossjumps occured in the latest
27976         iteration of try_optimize_cfg.
27977
27978 2008-01-11  Richard Guenther  <rguenther@suse.de>
27979
27980         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
27981         (struct vn_unary_op_s): Likewise.
27982         (vn_reference_insert): Free old reference on hash collision.
27983
27984 2008-01-10  Raksit Ashok  <raksit@google.com>
27985
27986         PR rtl-optimization/27971
27987         * combine.c (find_split_point): Split PLUS expressions which are
27988         inside a MEM rtx, and whose first operand is complex.
27989
27990 2008-01-10  DJ Delorie  <dj@redhat.com>
27991
27992         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
27993         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
27994         (m32c_hard_regno_ok): Call the underlying function.
27995
27996 2008-01-10  Richard Guenther  <rguenther@suse.de>
27997
27998         PR middle-end/34683
27999         * tree-cfg.c (tree_merge_blocks): Do not go through the
28000         full-blown folding and stmt updating path if we just deal
28001         with virtual operands.
28002         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
28003         test for abnormal SSA_NAMEs.
28004
28005 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
28006
28007         PR middle-end/34641
28008         * reload.c (push_reload): Add assertions.  All constants from
28009         reg_equiv_constant should have been used for replacing the respective
28010         pseudo earlier.
28011         (find_reloads_address): Invoke find_reloads_address_part for
28012         constant taken from the reg_equiv_constant array.
28013
28014 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
28015
28016         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
28017         field (valnum) the first in the struct.  Replace bools with
28018         unit bit fields.
28019
28020 2008-01-10  Richard Guenther  <rguenther@suse.de>
28021
28022         PR tree-optimization/34651
28023         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
28024         types and ordering for masking and converting.
28025
28026 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
28027
28028         PR tree-optimization/34017
28029         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
28030         also for PHI_NODE expressions.
28031
28032 2008-01-09  Jan Hubicka  <jh@suse.cz>
28033
28034         PR tree-optimization/34708
28035         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
28036         based on number of case labels.
28037         (init_inline_once): Remove switch_cost.
28038         * tree-inline.h (eni_weights_d): Remove switch_cost.
28039
28040 2008-01-09  Richard Guenther  <rguenther@suse.de>
28041         Andrew Pinski  <andrew_pinski@playstation.sony.com>
28042
28043         PR middle-end/30132
28044         * gimplify.c (gimplify_cond_expr): Do not create an addressable
28045         temporary if an rvalue is ok or an lvalue is not required.
28046
28047 2008-01-09  Richard Guenther  <rguenther@suse.de>
28048
28049         PR middle-end/34458
28050         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
28051         adjust return type.
28052
28053 2008-01-09  Richard Guenther  <rguenther@suse.de>
28054
28055         PR middle-end/34679
28056         * tree.c (host_integerp): Check for sizetype only if the
28057         type is an integer type.
28058
28059 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
28060
28061         PR debug/26364
28062         * opts.c (decode_options): Disable inlining of functions called
28063         once if not in unit-at-a-time mode.
28064
28065 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
28066
28067         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
28068
28069 2008-01-08  Richard Guenther  <rguenther@suse.de>
28070
28071         PR middle-end/31863
28072         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
28073         out early if the result will be unused.
28074
28075 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
28076
28077         PR target/34709
28078         Revert:
28079
28080         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
28081         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
28082         for TARGET_RECIP.
28083
28084 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
28085
28086         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
28087         for vectorization tuned.
28088
28089 2008-01-08  Richard Guenther  <rguenther@suse.de>
28090
28091         PR tree-optimization/34683
28092         * tree-ssa-operands.c (operand_build_cmp): Export.
28093         * tree-ssa-operands.h (operand_build_cmp): Declare.
28094         * tree-vn.c (vuses_compare): Remove.
28095         (sort_vuses): Use operand_build_cmp.
28096         (sort_vuses_heap): Likewise.
28097         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
28098         to re-use old VEC if available.  Do not sort already sorted VUSEs.
28099         (vdefs_to_vec): Do not sort already sorted VDEFs.
28100
28101 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
28102
28103         PR middle-end/34694
28104         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
28105
28106 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
28107
28108         PR target/34702
28109         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
28110         limitations of reciprocal sequences on x86 targets.
28111
28112 2008-01-08  Richard Guenther  <rguenther@suse.de>
28113
28114         PR tree-optimization/34683
28115         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
28116
28117 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
28118
28119         PR target/34622
28120         * config/darwin.c (darwin_mergeable_string_section): Don't use
28121         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
28122
28123 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
28124
28125         PR target/34682
28126         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
28127         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
28128         predicates of op0 and op1 to register_operand.
28129         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
28130         expander using X87MODEF mode iterator.  Change predicates of
28131         op0 and op1 to register_operand.
28132         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
28133         corresponding patterns and macroize using MODEF macro.  Change
28134         predicates of op0 and op1 to register_operand and remove
28135         "m" constraint. Disparage "r" alternative with "!".
28136         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
28137         macroize using X87MODEF macro.  Change predicates of op0 and op1
28138         to register_operand and remove "m" constraint.  Disparage "r"
28139         alternative with "!".
28140         (absneg splitter with memory operands): Remove.
28141         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
28142         patterns and macroize using X87MODEF mode iterator.
28143         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
28144         Change predicate of op1 to register_operand.
28145         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
28146         for memory operands.
28147
28148 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
28149
28150         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
28151
28152 2008-01-07  Richard Guenther  <rguenther@suse.de>
28153
28154         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
28155         fields.
28156
28157 2008-01-07  Richard Guenther  <rguenther@suse.de>
28158
28159         PR tree-optimization/34683
28160         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
28161         VOPs of the needed size to save memory.  Use VEC_quick_push
28162         to save compile-time.
28163         (vdefs_to_vec): Likewise.
28164
28165 2008-01-07  Sa Liu  <saliu@de.ibm.com>
28166
28167         * config/spu/spu.md (divdf3): Genetate inline code for double
28168         division.  The implementation doesn't handle INF or NAN, therefore it
28169         only applies when -ffinite-math-only is given.
28170
28171 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
28172
28173         PR libstdc++/34680
28174         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
28175         * doc/cpp.texi ([Common Predefined Macros]): Document.
28176
28177 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
28178
28179         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
28180         order to use commutative addition instead of subtraction.
28181
28182 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
28183             Mircea Namolaru  <namolaru@il.ibm.com>
28184             Vladimir Yanovsky  <yanov@il.ibm.com>
28185             Revital Eres  <eres@il.ibm.com>
28186
28187         PR tree-optimization/34263
28188         * tree-outof-ssa.c (process_single_block_loop_latch,
28189         contains_tree_r): New functions.
28190         (analyze_edges_for_bb): Call process_single_block_loop_latch
28191         function to empty single-basic-block latch block if possible.
28192
28193 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
28194
28195         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
28196         for TARGET_RECIP.
28197         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
28198
28199 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
28200
28201         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
28202
28203 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
28204
28205         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
28206
28207 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
28208
28209         PR tree-optimization/34618
28210         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
28211         flag from T.
28212
28213 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
28214
28215         PR target/34673
28216         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
28217         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
28218         Update copyright year.
28219
28220         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
28221         Update copyright year.
28222         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
28223         using NR fixup.
28224
28225 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
28226
28227         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
28228         edge does not point to current bb before changing need_assert.
28229
28230 2008-01-04  Richard Guenther  <rguenther@suse.de>
28231
28232         PR middle-end/34029
28233         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
28234         for verifying purposes if they are is_gimple_min_invariant.
28235
28236 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
28237
28238         PR tree-optimization/34448
28239         PR tree-optimization/34465
28240         * gimplify.c (gimplify_init_constructor): Add new parameter
28241         notify_temp_creation.  Use it.
28242         (gimplify_modify_expr_rhs): Take volatiles into account when
28243         optimizing constructors.
28244         Do not optimize constructors if gimplify_init_constructor will dump to
28245         memory.
28246         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
28247         * gcc.c-torture/compile/pr34448.c: New.
28248
28249 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
28250
28251         PR gcov-profile/34609
28252         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
28253         return_slot if result is TREE_ADDRESSABLE.
28254
28255 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
28256
28257         * config/mips/mips.md (sqrt_condition): Tweak comment.
28258         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
28259
28260 2008-01-03  Tom Tromey  <tromey@redhat.com>
28261
28262         PR c/34457
28263         * c-common.c (c_type_hash): Handle VLAs.
28264
28265 2008-01-03  Jan Hubicka  <jh@suse.cz>
28266
28267         PR tree-optimization/31081
28268         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
28269         0 when inlining and not inlining to first basic block.
28270         (remap_decl): When var is initialized to 0, don't set default_def.
28271         (expand_call_inline): Set entry_bb.
28272         * tree-inline.h (copy_body_data): Add entry_bb.
28273
28274 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
28275
28276         PR c++/34619
28277         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
28278         before returning.
28279
28280         PR tree-optimization/29484
28281         * tree-inline.c (inline_forbidden_p_2): New function.
28282         (inline_forbidden_p): Disallow inlining if some static var
28283         has an address of a local LABEL_DECL in its initializer.
28284         * doc/extend.texi (Labels as Values): Document &&foo behaviour
28285         vs. inlining.
28286
28287 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
28288
28289         PR tree-optimization/34635
28290         * tree-data-ref.c (add_other_self_distances): Make sure that the
28291         evolution step is constant.
28292
28293 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
28294
28295         PR middle-end/34608
28296         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
28297
28298 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
28299
28300         * tree-sra.c (scalarize_init): Insert the generate_element_init
28301         statements after the generate_element_zero statements.
28302
28303 2008-01-02  Richard Guenther  <rguenther@suse.de>
28304
28305         PR middle-end/34093
28306         PR middle-end/31976
28307         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
28308         for very large number of operands instead of ICEing.
28309
28310 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
28311
28312         PR target/34013
28313         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
28314         while stack probing.
28315
28316 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
28317
28318         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
28319         in C++0x mode.
28320
28321 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
28322
28323         PR libmudflap/26442
28324         * tree-mudflap.c (mx_register_decls): Guard warning by
28325         !DECL_ARTIFICIAL check.
28326
28327 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
28328
28329         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
28330         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
28331         sse5_perm<mode>): Fix constraints.