OSDN Git Service

Add support for arm1156tf-s
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2
3         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
4         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
5         * config/arm/arm-tune.md: Regenerate.
6
7 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
8         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
9         block if there are complex incoming edges.
10         (sel_merge_blocks): Remove useless assert.
11         (sel_redirect_edge_and_branch): Check that edge was redirected.
12         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
13         (sel_find_rgns): Delete declaration.
14         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
15         the region when it is not a preheader.
16
17 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
18
19         PR c/39323
20         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
21
22 2009-04-28  Richard Guenther  <rguenther@suse.de>
23
24         * tree.h (SSA_NAME_VALUE): Remove.
25         (struct tree_ssa_name): Remove value_handle member.
26         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
27         array for jump threading.
28         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
29         SSA_NAME_VALUEs.
30         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
31         * tree-flow.h (threadedge_initialize_values): Declare.
32         (threadedge_finalize_values): Likewise.
33         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
34         (SSA_NAME_VALUE): Define.
35         (threadedge_initialize_values): New function.
36         (threadedge_finalize_values): Likewise.
37         * tree-ssa-dom.c (ssa_name_values): New global variable.
38         (SSA_NAME_VALUE): Define.
39         (tree_ssa_dominator_optimize): Initialize/free the value-handle
40         array.
41
42 2009-04-28  Ira Rosen  <irar@il.ibm.com>
43
44         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
45         Use REPORT_VECTORIZED_LOCATIONS instead 
46         REPORT_VECTORIZED_LOOPS.
47         * tree-vectorizer.c (vect_verbosity_level): Make static.
48         (vect_loop_location): Rename to vect_location.
49         (vect_set_verbosity_level): Update comment.
50         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
51         and vect_location.
52         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
53         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
54         instead REPORT_UNVECTORIZED_LOOPS.
55         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def and
56         vect_loop_def to vect_external_def and vect_internal_def.
57         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
58         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and 
59         REPORT_UNVECTORIZED_LOCATIONS.
60         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
61         and vect_used_in_loop and to vect_unused_in_scope and 
62         vect_used_in_scope.
63         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
64         (vect_verbosity_level): Remove declaration.
65         (vect_analyze_operations): Likewise.
66         (vect_analyze_stmt): Declare.
67         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
68         REPORT_UNVECTORIZED_LOCATIONS.
69         (vect_get_loop_niters): Fix indentation.
70         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
71         (vect_analyze_loop_operations): New function.
72         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
73         vect_analyze_operations.
74         (vect_is_simple_reduction): Use new names.
75         (vectorizable_live_operation, vect_transform_loop): Likewise.
76         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value to
77         specify whether the data references can be a part of interleaving chain.
78         (vect_analyze_data_ref_dependence): Use new names.
79         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
80         (vect_create_addr_base_for_vector_ref): Remove redundant code.
81         * tree-vect-patterns.c (widened_name_p): Use new names.
82         (vect_recog_dot_prod_pattern): Likewise.
83         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
84         (process_use, vect_mark_stmts_to_be_vectorized, 
85         vect_model_simple_cost, vect_model_store_cost,
86         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
87         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
88         vectorizable_operation, vectorizable_type_demotion,
89         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
90         vectorizable_condition): Likewise.
91         (vect_analyze_operations): Split into vect_analyze_loop_operations
92         and ...
93         (vect_analyze_stmt): ... new function.
94         (new_stmt_vec_info): Use new names.
95         (vect_is_simple_use): Use new names and fix comment.
96         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
97         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
98
99 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
100
101         PR target/39911
102         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
103         and integer modes for x87 operands.  Do not ICE for unsupported size,
104         generate error instead.  Generate error for unsupported operand types.
105         ['z']: Do not handle HImode memory operands specially.  Warning
106         for floating-point operands.  Fallthru to 'Z' for unsupported operand
107         types.  Do not ICE for unsupported size, generate error instead.
108         (output_387_binary_op): Use %Z to output operands.
109         (output_fp_compare): Ditto.
110         (output_387_reg_move): Ditto.
111
112 2009-04-28  Ben Elliston  <bje@au.ibm.com>
113
114         PR c++/35652
115         Revert:
116
117         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
118
119         * builtins.c (c_strlen): Do not warn here.
120         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
121         * c-common.c (pointer_int_sum): Take an explicit location.
122         Warn about offsets out of bounds.
123         * c-common.h (pointer_int_sum): Adjust declaration.
124
125 2009-04-27  Ian Lance Taylor  <iant@google.com>
126
127         * collect2.c (is_ctor_dtor): Change type of ret field in struct
128         names to symkind.
129         * dce.c (run_fast_df_dce): Change type of old_flags to int.
130         * df-core.c (df_set_flags): Change return type to int.  Change
131         type of old_flags to int.
132         (df_clear_flags): Likewise.
133         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
134         (df_get_conditional_uses): Likewise.
135         * df.h (df_set_flags, df_clear_flags): Update declarations.
136         * dwarf2out.c (struct indirect_string_node): Change type of form
137         field to enum dwarf_form.
138         (AT_string_form): Change return type to enum dwarf_form.
139         * fixed-value.c (fixed_compare): Add cast to enum type.
140         * fwprop.c (update_df): Change 0 to VOIDmode.
141         * gensupport.c: Change 0 to UNKNOWN.
142         * gimple.h (gimple_cond_code): Add cast to enum type.
143         * haifa-sched.c (reemit_notes): Add cast to enum type.
144         * hooks.c (hook_int_void_no_regs): Remove function.
145         * hooks.h (hook_int_void_no_regs): Remove declaration.
146         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
147         * predict.c (combine_predictions_for_insn): Add casts to enum type.
148         * real.c (real_arithmetic): Add cast to enum type.
149         (real_compare): Likewise.
150         * target.h (struct gcc_target): Change return type of
151         branch_target_register_class to enum reg_class.
152         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
153         default_branch_target_register_class.
154         * targhooks.c (default_branch_target_register_class): New function.
155         * targhooks.h (default_branch_target_register_class): Declare.
156         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
157         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
158         cast to int.
159         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
160         ERROR_MARK.
161         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
162         vect_uninitialized_def.  Change 0 to ERROR_MARK.
163         * tree-vect-stmts.c (supportable_widening_operation): Don't
164         initialize icode1 and icode2.
165         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
166         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
167         and to STD_C89.
168         (cmn_err_flag_specs): Change 0 to STD_C89.
169         (cmn_err_char_table): Likewise.
170         * config/arm/arm.c (get_arm_condition_code): Change type of code
171         to enum arm_cond_code.
172         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
173         (IWMMXT_BUILTIN2): Likewise.
174         (neon_builtin_type_bits): Don't define typedef.
175         (neon_builtin_datum): Change type of bits field to int.
176         (arm_expand_neon_args): Add cast to enum type.
177         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
178         TLS_MODEL_NONE.
179         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
180         casts to enum type.
181         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
182         MIPS_FP_COND_f.
183         * config/mips/mips.md (jal_macro): Return enum constant.
184         (single_insn): Likewise.
185         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
186         CODE_FOR_nothing.
187         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
188         casts to enum type.
189         * config/s390/s390.c (s390_tune_flags): Change type to int.
190         (s390_arch_flags): Likewise.
191         (s390_handle_arch_option): Change flags field of struct pta to int.
192         * config/s390/s390.h (s390_tune_flags): Update declaration.
193         (s390_arch_flags): Likewise.
194         * config/sh/sh.c (prepare_move_operands): Compare
195         tls_symbolic_operand result with enum constant.
196         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
197         (sh_expand_prologue): Add cast to enum type.
198         (sh_expand_epilogue): Likewise.
199         (tls_symbolic_operand): Change return type to enum tls_model.
200         (fpscr_set_from_mem): Add cast to enum type.
201         (legitimize_pic_address): Compare tls_symbolic_operand result with
202         enum constant.
203         (sh_target_reg_class): Change return type to enum reg_class.
204         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
205         PROCESSOR_xxx.
206         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
207         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
208         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
209         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
210         (delayed_branch, tls_call_delay): Likewise.
211         (eligible_for_sibcall_delay): Likewise.
212         (eligible_for_return_delay): Likewise. 
213         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
214         (spu_expand_builtin_1): Likewise.
215
216         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
217         for all types of conversions.
218         (output_init_element): Issue -Wc++-compat warning if needed when
219         initializing a bitfield with enum type.
220         * c-parser.c (c_parser_expression): Set original_type to
221         original_type of right hand operand of comman operator.
222
223 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
224
225         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
226         grammar nits.
227         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
228         * doc/cpp.texi (Standard Predefined Macros)
229         (Implementation-defined behavior): Likewise.
230         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
231         * doc/gimple.texi (GIMPLE Exception Handling)
232         (@code{GIMPLE_ASSIGN}): Likewise.
233         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
234         * doc/invoke.texi (Warning Options, Optimize Options)
235         (AVR Options, Darwin Options): Likewise.
236         (Optimize Options): Reformulate -fwhole-program description.
237         * doc/loop.texi (Lambda): Likewise.
238         * doc/md.texi (Output Template, Define Constraints)
239         (Standard Names, Insn Splitting): Likewise.
240         * doc/options.texi (Option properties): Likewise.
241         * doc/passes.texi (Tree-SSA passes): Likewise.
242         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
243         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
244         (File Names and DBX): Likewise.
245         * doc/trouble.texi (Incompatibilities): Likewise.
246
247 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
248
249         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
250         instruction is correct.
251
252 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
253
254         Allow non-constant arguments to conversion intrinsics.
255         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
256         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
257         * spu.c (print_operand): Handle 'v' and 'w'.
258         (exp2_immediate_p, spu_gen_exp2): Define.
259         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
260         spu_convtf_1): Update parameter descriptions.
261         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
262         * constraints.md ('v', 'w'): New.
263         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
264         Remove.
265         (i2f, I2F): New define_mode_attr.
266         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
267         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
268         fixuns_truncv4sfv4si2):  Update to use mode attribute.
269         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
270         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
271         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
272         patterns for combine.
273
274 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
275
276         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
277         (cprop, hoist, pre, store_motion): New debug counters.
278         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
279         is not an RTL pass anymore.
280         (pass_profiling): Remove extern decl for pass removed in 2005.
281         (pass_gcse, pass_jump_bypass): Remove.
282         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
283         to 0 for clean state.
284         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
285         * cse.c (gate_handle_cse_after_global_opts,
286         rest_of_handle_cse_after_global_opts): New functions.
287         (pass_cse_after_global_opts): New pass, does local CSE.
288         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
289         (TV_CPROP): New timevar.
290         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
291         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
292         (gcse_main, recompute_all_luids): Remove.
293         (compute_hash_table_work): Call max_reg_num instead of reading
294         max_gcse_regno.
295         (cprop_jump): Don't set run_jump_opt_after_gcse.
296         (constprop_register): Always allow to alter jumps.
297         (cprop_insn): Likewise.
298         (do_local_cprop): Likewise.
299         (local_cprop_pass): Likewise.  Return non-zero if something changed.
300         (cprop): Remove function, fold interesting bits into one_cprop_pass.
301         (find_implicit_sets): Add note about missed optimization opportunity.
302         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
303         pass_rtl_cprop execute function.
304         Don't bother tracking the pass number, each pass gets its own dumpfile
305         now anyway.
306         Always allow to alter jumpsand bypass jumps.
307         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
308         will just find no suitable set.
309         (pre_edge_insert): Fix dumping, this function is for PRE only.
310         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
311         pass_rtl_pre execute function.
312         (hoist_code): Return non-zero if something changed.  Keep track of
313         substitutions and insertions for statistics gathering similar to PRE.
314         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
315         called from the pass_rtl_hoist execute function.  Show pass statistics.
316         (compute_store_table): Use max_reg_num directly instead of using the
317         formerly global max_gcse_regno.
318         (build_store_vectors): Likewise.
319         (replace_store_insn): Fix dumping.
320         (store_motion): Rename to ...
321         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
322         pass, called from the pass_rtl_store_motion execute function.  Keep
323         track of substitutions and insertions for statistics gathering similar
324         to PRE.
325         (bypass_jumps): Remove, fold interesting bits into ...
326         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
327         from the pass_rtl_cprop execute function.
328         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
329         pass_jump_bypass): Remove.
330         (gate_handle_gcse, rest_of_handle_gcse): Remove.
331         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
332         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
333         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
334         (gate_rtl_store_motion, execute_rtl_store_motion,
335         pass_rtl_store_motion): New.
336         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
337         make it clear that -fcse-skip-blocks is a no-op for backward compat.
338         * passes.c (init_optimization_passes): Remove pass_gcse and
339         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
340         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
341         instead of pass_jump_bypass.
342
343 2009-04-27  Richard Guenther  <rguenther@suse.de>
344
345         PR middle-end/39928
346         * gimplify.c (gimplify_expr): If we are required to create
347         a temporary make sure it ends up as register.
348
349 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
350
351         PR target/39903
352         * config/i386/i386.c (construct_container): Don't call
353         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
354         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
355
356 2009-04-27  Michael Matz  <matz@suse.de>
357
358         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
359         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
360         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
361         (dump_replaceable_exprs): Take a bitmap.
362         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
363         array.
364         (expand_gimple_basic_block): Likewise.
365         * tree-ssa-ter.c (struct temp_expr_table_d): Make
366         replaceable_expressions member a bitmap.
367         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
368         (mark_replaceable): Likewise.
369         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
370         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
371
372 2009-04-27  Richard Guenther  <rguenther@suse.de>
373
374         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
375         (verify_stmts): Dispatch to gimple/type verification code.
376         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
377         issue with call argument types.
378
379 2009-04-27  Michael Matz  <matz@suse.de>
380
381         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
382         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
383         to above.
384
385 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
386             Eric Botcazou  <ebotcazou@adacore.com>
387
388         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
389         a label's basic block.
390         (mark_target_live_regs): Tidy and rework obsolete comments.
391         Change back DF problem to LIVE.  If a label starts a basic block,
392         assume that all registers that used to be live then still are.
393         (init_resource_info): If a label starts a basic block, set its
394         BLOCK_FOR_INSN accordingly.
395         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
396
397 2009-04-27  Richard Guenther  <rguenther@suse.de>
398
399         * tree-flow-inline.h (function_ann): Remove.
400         (get_function_ann): Likewise.
401         * tree-dfa.c (create_function_ann): Remove.
402         * tree-flow.h (struct static_var_ann_d): Remove.
403         (struct function_ann_d): Likewise.
404         (union tree_ann_d): Remove fdecl member.
405         (function_ann_t): Remove.
406         (function_ann, get_function_ann, create_function_ann): Remove
407         declarations.
408
409 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
410
411         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
412
413 2009-04-27  Jan Hubicka  <jh@suse.cz>
414
415         * ipa-pure-const.c (struct funct_state_d): New fields
416         state_previously_known, looping_previously_known; remove
417         state_set_in_source.
418         (analyze_function): Use new fields.
419         (propagate): Avoid assumption that state_set_in_source imply
420         nonlooping.
421
422         * tree-ssa-loop-niter.c (finite_loop_p): New function.
423         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
424         * cfgloop.h (finite_loop_p): Declare.
425
426 2009-04-26  Michael Matz  <matz@suse.de>
427
428         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
429
430 2009-04-26  Michael Matz  <matz@suse.de>
431
432         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
433         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
434         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
435         pass_mark_used_blocks): Remove.
436         * tree-optimize.c (pass_free_datastructures,
437         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
438         * passes.c (init_optimization_passes): Don't call
439         pass_mark_used_blocks, remove dead code.
440
441 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
442
443         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
444         * tree-ssa-live.h (register_ssa_partition): Likewise.
445
446 2009-04-26  Michael Matz  <matz@suse.de>
447
448         Expand from SSA.
449         * builtins.c (fold_builtin_next_arg): Handle SSA names.
450         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
451         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
452         SSA names. 
453         (compare_pairs): Swap cost comparison.
454         (coalesce_ssa_name): Don't use change_partition_var.
455         * tree-nrv.c (struct nrv_data): Add modified member.
456         (finalize_nrv_r): Set it.
457         (tree_nrv): Use it to update statements.
458         (pass_nrv): Require PROP_ssa.
459         * tree-mudflap.c (mf_decl_cache_locals,
460         mf_build_check_statement_for): Use make_rename_temp.
461         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
462         * alias.c (find_base_decl): Handle SSA names.
463         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
464         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
465         * rtl.h (set_reg_attrs_for_parm): Declare.
466         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
467         to "optimized", remove unused locals at finish.
468         (execute_free_datastructures): Make global, call
469         delete_tree_cfg_annotations.
470         (execute_free_cfg_annotations): Don't call
471         delete_tree_cfg_annotations.
472
473         * ssaexpand.h: New file.
474         * expr.c (toplevel): Include ssaexpand.h.
475         (expand_assignment): Handle SSA names the same as register variables.
476         (expand_expr_real_1): Expand SSA names.
477         * cfgexpand.c (toplevel): Include ssaexpand.h.
478         (SA): New global variable.
479         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
480         (SSAVAR): New macro.
481         (set_rtl): New helper function.
482         (add_stack_var): Deal with SSA names, use set_rtl.
483         (expand_one_stack_var_at): Likewise.
484         (expand_one_stack_var): Deal with SSA names.
485         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
486         before unique numbers.
487         (expand_stack_vars): Use set_rtl.
488         (expand_one_var): Accept SSA names, add asserts for them, feed them
489         to above subroutines.
490         (expand_used_vars): Expand all partitions (without default defs),
491         then only the local decls (ignoring those expanded already).
492         (expand_gimple_cond): Remove edges when jumpif() expands an
493         unconditional jump.
494         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
495         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
496         SSA name.
497         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
498         members of SA; deal with PARM_DECL partitions here; expand
499         all PHI nodes, free tree datastructures and SA.  Commit instructions
500         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
501         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
502         info and statements at start, collect garbage at finish.
503         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
504         (VAR_ANN_PARTITION) Remove.
505         (change_partition_var): Don't declare.
506         (partition_to_var): Always return SSA names.
507         (var_to_partition): Only accept SSA names.
508         (register_ssa_partition): Only check argument.
509         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
510         member.
511         (delete_var_map): Don't free it.
512         (var_union): Only accept SSA names, simplify.
513         (partition_view_init): Mark only useful SSA names as used.
514         (partition_view_fini): Only deal with SSA names.
515         (change_partition_var): Remove.
516         (dump_var_map): Use ssa_name instead of partition_to_var member.
517         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
518         basic blocks.
519         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
520         (struct _elim_graph): New member const_dests; nodes member vector of
521         ints.
522         (set_location_for_edge): New static helper.
523         (create_temp): Remove.
524         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
525         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
526         (new_elim_graph): Allocate const_dests member.
527         (clean_elim_graph): Truncate const_dests member.
528         (delete_elim_graph): Free const_dests member.
529         (elim_graph_size): Adapt to new type of nodes member.
530         (elim_graph_add_node): Likewise.
531         (eliminate_name): Likewise.
532         (eliminate_build): Don't take basic block argument, deal only with
533         partition numbers, not variables.
534         (get_temp_reg): New static helper.
535         (elim_create): Use it, deal with RTL temporaries instead of trees.
536         (eliminate_phi): Adjust all calls to new signature.
537         (assign_vars, replace_use_variable, replace_def_variable): Remove.
538         (rewrite_trees): Only do checking.
539         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
540         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
541         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
542         contains_tree_r, MAX_STMTS_IN_LATCH,
543         process_single_block_loop_latch, analyze_edges_for_bb,
544         perform_edge_inserts): Remove.
545         (expand_phi_nodes): New global function.
546         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
547         functions, initialize new parameter, remember partitions having a
548         default def.
549         (finish_out_of_ssa): New global function.
550         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
551         don't reset in_ssa_p here, don't disable TER when mudflap.
552         (pass_del_ssa): Remove.
553         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
554         partition members.
555         (execute_free_datastructures): Declare.
556         * Makefile.in (SSAEXPAND_H): New variable.
557         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
558         * basic-block.h (commit_one_edge_insertion): Declare.
559         * passes.c (init_optimization_passes): Move pass_nrv and
560         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
561         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
562         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
563         (redirect_branch_edge): Deal with super block when expanding, split
564         out jump patching itself into ...
565         (patch_jump_insn): ... here, new static helper.
566
567 2009-04-26  Michael Matz  <matz@suse.de>
568
569         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
570         beyond num_ssa_names.
571         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
572         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
573
574 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
575
576         PR inline-asm/39543
577         * fwprop.c (forward_propagate_asm): New function.
578         (forward_propagate_and_simplify): Propagate also into __asm, if it
579         doesn't increase the number of referenced registers.
580
581         PR c/39889
582         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
583
584 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
585
586         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
587         note_nonlocal_vla_type for nonlocal VLAs.
588         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
589         contains_remapped_vars, remap_vla_decls): New functions.
590         (convert_nonlocal_reference_stmt): If not optimizing, call
591         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
592         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
593         if it wasn't found in var_map.
594         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
595         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
596         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
597         declare_vars.
598         * gimplify.c (nonlocal_vlas): New variable.
599         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
600         referenced VLAs.
601         (gimplify_body): Create and destroy nonlocal_vlas.
602
603         * dwarf2out.c (loc_descr_plus_const): New function.
604         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
605         mem_loc_descriptor, loc_descriptor_from_tree_1,
606         descr_info_loc, gen_variable_die): Use it.
607
608         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
609         !TREE_STATIC VAR_DECLs.
610         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
611         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
612         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
613         DECL_BY_REFERENCE is valid.
614         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
615         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
616         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
617         Copy DECL_BY_REFERENCE.
618         (struct nesting_copy_body_data): New type.
619         (nesting_copy_decl): New function.
620         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
621         if they have variable length.
622
623 2009-04-26  Michael Matz  <matz@suse.de>
624
625         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
626         mark new temporaries for renaming.
627
628 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
629
630         PR c/39581
631         * c-decl.c (global_bindings_p): Return negative value.
632         (c_variable_size): New.  Based on variable_size from
633         stor-layout.c.
634         (grokdeclarator): Call c_variable_size not variable_size.
635
636 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
637
638         * config/i386/i386.c (print_operand) ['z']: Fix typo.
639
640 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
641
642         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
643         Redefine it to just use mingw/include.
644         (ASM_SPEC): Rules for -m32 and -m64.
645         (LINK_SPEC): Use Likewise.
646         (SPEC_32): New define.
647         (SPEC_64): Likewise.
648         (SUB_LINK_SPEC): Likewise.
649         (MULTILIB_DEFAULTS): New define.
650         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
651         Add multilib options.
652         (MULTILIB_DIRNAMES): Likewise.
653         (MULTILIB_OSDIRNAMES): Likewise.
654         (LIBGCC): Likewise.
655         (INSTALL_LIBGCC): Likewise.
656
657 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
658
659         PR c/39556
660         * c-tree.h (enum c_inline_static_type): New.
661         (record_inline_static): Declare.
662         * c-decl.c (struct c_inline_static, c_inline_statics,
663         record_inline_static, check_inline_statics): New.
664         (pop_file_scope): Call check_inline_statics.
665         (start_decl): Call record_inline_static instead of pedwarning
666         directly for static in inline function.
667         * c-typeck.c (build_external_ref): Call record_inline_static
668         instead of pedwarning directly for static referenced in inline
669         function.
670
671 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
672
673         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
674         not new but only being rescanned.
675         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
676         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
677         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
678         record_set_info, compute_set, grealloc): Remove.
679         (recompute_all_luids): New function.
680         (gcse_main): Don't compute sets, and don't do related memory
681         allocations/free-ing.  If something changed before the end of the
682         pass, update LUIDs using recompute_all_luids.
683         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
684         (free_gcse_mem): Don't free it either.
685         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
686         Use the df insn LUIDs.
687         (load_killed_in_block): Likewise.
688         (compute_hash_table_work): Don't compute reg_set_in_block.
689         (compute_transp): Use DF_REG_DEF_CHAINs.
690         (local_cprop_pass): Don't use compute_sets and related functions.
691         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
692         Use get_max_uid() instead of max_cuid.
693         (insert_insn_end_basic_block, pre_insert_copy_insn,
694         update_ld_motion_stores): Don't try to
695         keep reg_set tables up to date.
696         (pre_insert_copies): Use df insn LUIDs.
697         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
698         (reg_set_info): Don't use extra bitmap argument.
699         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
700         information to compute regs_set_in_block.
701         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
702         (bypass_jumps): Don't use compute_sets and friends.
703
704 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
705
706         PR testsuite/39710
707         * opts.c (undocumented_msg): Do not leave blank even with
708         ENABLE_CHECKING.
709
710 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
711
712         * c-decl.c (build_enumerator): Allow values folding to integer
713         constants but not integer constant expressions with a pedwarn if
714         pedantic.
715
716 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
717
718         PR c/39582
719         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
720         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
721         type is an integer constant.
722
723 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
724
725         PR target/39897
726         * config/i386/i386.c (print_operand) ['z']: Revert handling of
727         HImode operands.
728
729 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
730
731         PR c/39564
732         * c-decl.c (grokdeclarator): Diagnose declarations of functions
733         with variably modified return type and no storage class
734         specifiers, except for the case of nested functions.  Distinguish
735         extern declarations of functions with variably modified return
736         types from those of objects with variably modified types.
737
738 2009-04-25  Jan Hubicka  <jh@suse.cz>
739
740         * tree.c (list_equal_p): New function.
741         * tree.h (list_equal_p): Declare.
742         * coretypes.h (edge_def, edge, const_edge, basic_block_def
743         basic_block_def, basic_block, const_basic_block): New.
744         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
745         (redirect_eh_edge): New function.
746         (make_eh_edge_update_phi): EH edges are not abnormal.
747         * except.c: Include tree-flow.h.
748         (list_match): New function.
749         (eh_region_replaceable_by_p): New function.
750         (replace_region): New function.
751         (hash_type_list): New function.
752         (hash_eh_region): New function.
753         (eh_regions_equal_p): New function.
754         (merge_peers): New function.
755         (remove_unreachable_regions): Verify EH tree when checking;
756         merge peers.
757         (copy_eh_region_1): New function.
758         (copy_eh_region): New function.
759         (push_reachable_handler): New function.
760         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
761         regions without label but with live RESX.
762         * except.h (redirect_eh_edge_to_label): New.
763         * tree-flow.h (redirect_eh_edge): New.
764         * coretypes.h (edge_def, edge, const_edge, basic_block_def
765         basic_block_def, basic_block, const_basic_block): Remove.
766         * Makefile.in (except.o): Add dependency on tree-flow.h
767         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
768         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
769         Remove.
770
771 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
772
773         PR bootstrap/39645
774         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
775         on the destination of memcpy.
776
777 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
778
779         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
780         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
781         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
782
783 2009-04-25  Jan Hubicka  <jh@suse.cz>
784
785         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
786         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
787         to be reached by different label than left.
788         (update_eh_edges): Update comment; remove edge_to_remove if possible
789         and return true if suceeded.
790         (cleanup_empty_eh): Accept sharing map; handle shared regions.
791         (cleanup_eh): Compute sharing map.
792         * except.c (remove_eh_handler_and_replace): Add argument if we should
793         update regions.
794         (remove_unreachable_regions): Update for label sharing.
795         (label_to_region_map): Likewise.
796         (get_next_region_sharing_label): New function.
797         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
798         prev_try pointers.
799         (remove_eh_handler): Update.
800         (remove_eh_region_and_replace_by_outer_of): New function.
801         * except.h (struct eh_region): Add next_region_sharing_label.
802         (remove_eh_region_and_replace_by_outer_of,
803         get_next_region_sharing_label): Declare.
804         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
805
806 2009-04-25  Jan Hubicka  <jh@suse.cz>
807
808         * tree-cfg.c (split_critical_edges): Split also edges where we can't
809         insert code even if they are not critical.
810
811 2009-04-25  Jan Hubicka  <jh@suse.cz>
812
813         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
814         (gimple_can_remove_branch_p): EH edges won't remove branch by
815         redirection.
816         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
817         updating of non-abnormal EH edges.
818         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
819         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
820         (split_critical_edges): Split also edges where emitting code on them
821         will lead to splitting later.
822
823 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
824             H.J. Lu  <hongjiu.lu@intel.com>
825
826         PR target/39590
827         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
828         the configured assembler supports fildq and fistpq mnemonics.
829         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
830         * configure: Regenerated.
831         * config.in: Ditto.
832
833         * config/i386/i386.c (print_operand): Handle 'Z'.
834         ['z']: Remove handling of special fild/fist suffixes.
835         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
836         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
837         suffix of fild insn.
838         (*floatsi<mode>2_vector_mixed): Ditto.
839         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
840         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
841         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
842         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
843         * config/i386/gas.h (GAS_MNEMONICS): Remove.
844
845 2009-04-25  Ben Elliston  <bje@au.ibm.com>
846  
847         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
848         the source of a set operation.
849
850 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
851
852         * target.h (struct gcc_target): Add case_values_threshold field.
853         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
854         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
855         * targhooks.c (default_case_values_threshold): New function.
856         * targhooks.h (default_case_values_threshold): Declare function.
857         * stmt.c (expand_case): Use case_values_threshold target hook.
858         * expr.h (case_values_threshold): Remove declartation.
859         * expr.c (case_values_threshold): Remove function.
860         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
861
862         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
863         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
864         (avr_case_values_threshold): Declare as static.
865         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
866
867         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
868         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
869         (mn10300_case_values_threshold): New function.
870
871 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
872
873         * ira.c (setup_cover_and_important_classes): Add enum cast.
874
875 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
876
877         * genpreds.c (write_enum_constraint_num): Output definition of
878         CONSTRAINT_NUM_DEFINED_P macro.
879         * ira.c (setup_cover_and_important_classes): Use
880         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
881         
882 2009-04-24  DJ Delorie  <dj@redhat.com>
883
884         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
885         __SH2A_SINGLE_ONLY__ also.
886
887 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
888
889         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
890         (movdf_internal): Ditto.
891         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
892         SFmode and DFmode constants.
893         (ia64_print_operand): Add 'G' format for printing
894         floating point constants.
895
896 2009-04-24  Richard Guenther  <rguenther@suse.de>
897
898         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
899         from unsigned additions.
900
901 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
902
903         * c-typeck.c (set_init_index): Allow array designators that are
904         not integer constant expressions with a pedwarn if pedantic.
905
906 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
907
908         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
909         zero if no overlap in nonzero bits between the operands.
910
911 2009-04-24  Ian Lance Taylor  <iant@google.com>
912
913         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
914         (record_dead_and_set_regs): Likewise.
915         * df.h (struct df_mw_hardreg): Change flags field to int.
916         (struct df_base_ref): Likewise.
917         (struct df): Change changeable_flags field to int.
918         * df-scan.c (df_defs_record): Change clobber_flags to int.
919         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
920         constants rather than #define macros.
921         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
922         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
923         (enum dwarf_calling_convention): Likewise.
924         (enum dwarf_line_number_x_ops): Likewise.
925         (enum dwarf_call_frame_info): Likewise.
926         (enum dwarf_source_language): Likewise.
927         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
928         (add_calling_convention_attribute): Likewise.
929         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
930         (combine_comparisons): Change compcode to int.  Add cast to enum type.
931         * genrecog.c (maybe_both_true_2): Change c to int.
932         (write_switch): Likewise.  Add cast to enum type.
933         * gimplify.c (gimplify_omp_for): Handle return values from
934         gimplify_expr using MIN rather than bitwise or.
935         (gimplify_expr): Add cast to enum type.
936         * ipa-prop.c (update_jump_functions_after_inlining): Change
937         IPA_BOTTOM to IPA_JF_UNKNOWN.
938         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
939         Add casts to enum type.
940         (setup_cover_and_important_classes): Change cl to int.  Add casts
941         to enum type.
942         (setup_class_translate): Change cl and mode to int.
943         (ira_init_once): Change mode to int.
944         (free_register_move_costs): Likewise.
945         (setup_prohibited_mode_move_regs): Add casts to enum type.
946         * langhooks.c (add_builtin_function_common): Rework assertion that
947         value fits bitfield.
948         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
949         * omega.c (omega_do_elimination): Avoid math on enum types.
950         * optabs.c (expand_vec_shift_expr): Remove casts to int.
951         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
952         int local to handle integral_argment value.
953         * regmove.c (try_auto_increment): Change PUT_MODE to
954         PUT_REG_NOTE_KIND.
955         * reload.c (push_secondary_reload): Add casts to enum type.
956         (secondary_reload_class, find_valid_class): Likewise.
957         * reload1.c (emit_input_reload_insns): Likewise.
958         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
959         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
960         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
961         constant.
962         * tree.c (build_common_builtin_nodes): Add casts to enum type.
963         * tree-complex.c (complex_lattice_t): Typedef to int rather than
964         enum type.
965         (expand_complex_libcall): Add casts to enum type.
966         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
967         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
968         with ERROR_MARK, not NUM_TREE_CODES.
969         (vect_create_epilog_for_reduction): Likewise.
970         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
971         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
972         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
973         enum machine_mode.
974         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
975         vect_unused_in_loop.  Change 0 to loop_vect.
976         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
977         * var-tracking.c (get_init_value): Change return type to enum
978         var_init_status.
979         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
980         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
981         arm_fp_model.
982         (arm_override_options): Add casts to enum type.
983         (arm_emit_tls_decoration): Likewise.
984         * config/i386/i386.c (ix86_function_specific_restore): Add casts
985         to enum type.
986         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
987         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
988         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
989         enum type.
990         * config/s390/s390.c (code_for_builtin_64): Change to array of
991         enum insn_code.
992         (code_for_builtin_31): Likewise.
993         (s390_expand_builtin): Change code_for_builtin to enum insn_code
994         const *.
995         * config/sparc/sparc.c (sparc_override_options): Change value
996         field in struct code_model to enum cmodel.  In initializer change
997         0 to NULL and add cast to enum type.
998
999         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
1000         Change all callers.  Issue a -Wc++-compat warning using
1001         lhs_origtype if necessary.
1002         (convert_for_assignment): Issue -Wc++-compat warnings about
1003         invalid conversions to enum type on assignment.
1004         * c-common.h (build_modify_expr): Update declaration.
1005
1006 2009-04-24  Nick Clifton  <nickc@redhat.com>
1007
1008         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
1009         (function_arg_advance): Likewise.
1010         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
1011         5th alternative.
1012
1013 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
1014
1015         * config/s390/constraints.md ('I', 'J'): Fix condition.
1016
1017 2009-04-24  Diego Novillo  <dnovillo@google.com>
1018
1019         * gengtype-parse.c (parse_error): Add newline after message.
1020
1021 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
1022
1023         * config/i386/sse.md (avxmodesuffixs): Removed.
1024         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
1025         (*avx_pinsr<ssevecsize>): This.
1026
1027 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
1028
1029         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
1030         follow chains of regs with a single definition, and allow expressions
1031         that are function_invariant_p.
1032         (simple_rhs_p): Allow expressions that are function_invariant_p.
1033
1034 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
1035
1036         PR middle-end/39867
1037         * fold-const.c (fold_cond_expr_with_comparison): When folding
1038         > and >= to MAX, make sure the MAX uses the same type as the
1039         comparison's operands.
1040
1041 2009-04-24  Nick Clifton  <nickc@redhat.com>
1042
1043         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
1044         addressing for DImode accesses.
1045         (frv_print_operand_address): Handle PLUS case.
1046         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
1047
1048 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
1049
1050         PR rtl-optimization/39794
1051         * alias.c (canon_true_dependence): Add x_addr argument.
1052         * rtl.h (canon_true_dependence): Adjust prototype.
1053         * cse.c (check_dependence): Adjust canon_true_dependence callers.
1054         * cselib.c (cselib_invalidate_mem): Likewise.
1055         * gcse.c (compute_transp): Likewise.
1056         * dse.c (scan_reads_nospill): Likewise.
1057         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
1058         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
1059         canon_base_addr of the group, plus optional offset.
1060         (struct group_info): Rename canon_base_mem to
1061         canon_base_addr.
1062         (get_group_info): Set canon_base_addr to canon_rtx of base, not
1063         canon_rtx of base_mem.
1064
1065 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
1066
1067         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
1068         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
1069
1070 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1071
1072         * config/spu/spu-builtins.h: Delete file.
1073
1074         * config/spu/spu.h (enum spu_builtin_type): Move here from
1075         spu-builtins.h.
1076         (struct spu_builtin_description): Likewise.  Add GTY marker.
1077         Do not use enum spu_function_code or enum insn_code.
1078         (spu_builtins): Add extern declaration.
1079
1080         * config/spu/spu.c: Do not include "spu-builtins.h".
1081         (enum spu_function_code, enum spu_builtin_type_index,
1082         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
1083         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
1084         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
1085         unsigned_V2DI_type_node): Move here from spu-builtins.h.
1086         (spu_builtin_types): Make static.  Add GTY marker.
1087         (spu_builtins): Add extern declaration with GTY marker.
1088         Include "gt-spu.h".
1089
1090         * config/spu/spu-c.c: Do not include "spu-builtins.h".
1091         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
1092         Check programmatically whether all parameters are scalar.
1093
1094         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
1095
1096 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
1097
1098         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
1099         assignment from the constructor either if the target is volatile.
1100
1101 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
1102
1103         * config/arm/arm.md (insv): Do not share operands[0].
1104
1105 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
1106
1107         * config/vxlib-tls.c (active_tls_threads): Delete.
1108         (delete_hook_installed): New.
1109         (tls_delete_hook): Don't delete the delete hook.
1110         (tls_destructor): Delete it here.
1111         (__gthread_set_specific): Adjust installing the delete hook.
1112         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
1113         __gthread_leave_tsd_dtor_context.
1114
1115 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
1116
1117         * c-format.c (gcc_tdiag_char_table): Add support for %E.
1118
1119 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
1120
1121         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
1122         enum type.
1123         (alpha_rtx_costs): Ditto.
1124         (emit_unlikely_jump): Use add_reg_note.
1125         (emit_frame_store_1): Ditto.
1126         (alpha_expand_prologue): Ditto.
1127         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
1128         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
1129
1130 2009-04-23  Nick Clifton  <nickc@redhat.com>
1131
1132         * config/v850/v850.md (epilogue): Remove suppressed code.
1133         (return): Rename to return_simple and remove test of frame size.
1134         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
1135         to gen_return_simple.
1136
1137 2009-04-22  Jing Yu  <jingyu@google.com>
1138
1139         PR testsuite/39781
1140         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
1141
1142 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1143
1144         PR C/31499
1145         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
1146         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
1147         value is a VECTOR_CST, the element type is the element type of the
1148         vector.
1149
1150 2009-04-22  DJ Delorie  <dj@redhat.com>
1151
1152         * config/m32c/m32c.h: Update GTY annotations to new syntax.
1153
1154 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
1155
1156         * alias.c (find_base_term): Move around LO_SUM case, so that
1157         CONST falls through into PLUS/MINUS handling.
1158
1159         PR c/39855
1160         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
1161         into 0, use omit_one_operand.
1162
1163 2009-04-23  Ben Elliston  <bje@au.ibm.com>
1164
1165         * config/rs6000/linux-unwind.h (get_regs): Remove type
1166         puns. Change the type of `pc' to an array of unsigned ints and
1167         update all users.  Constify frame24.
1168
1169 2009-04-22  DJ Delorie  <dj@redhat.com>
1170
1171         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
1172         declarations before code.
1173         (current_function_special_page_vector): Likewise.
1174         (m32c_expand_insv): Silence a warning.
1175
1176 2009-04-21  Taras Glek <tglek@mozilla.com>
1177
1178         * alias.c: Update GTY annotations to new syntax.
1179         * basic-block.h: Likewise.
1180         * bitmap.h: Likewise.
1181         * c-common.h: Likewise.
1182         * c-decl.c: Likewise.
1183         * c-parser.c: Likewise.
1184         * c-pragma.c: Likewise.
1185         * c-tree.h: Likewise.
1186         * cfgloop.h: Likewise.
1187         * cgraph.h: Likewise.
1188         * config/alpha/alpha.c: Likewise.
1189         * config/arm/arm.h: Likewise.
1190         * config/avr/avr.h: Likewise.
1191         * config/bfin/bfin.c: Likewise.
1192         * config/cris/cris.c: Likewise.
1193         * config/darwin.c: Likewise.
1194         * config/frv/frv.c: Likewise.
1195         * config/i386/i386.c: Likewise.
1196         * config/i386/i386.h: Likewise.
1197         * config/i386/winnt.c: Likewise.
1198         * config/ia64/ia64.h: Likewise.
1199         * config/iq2000/iq2000.c: Likewise.
1200         * config/mips/mips.c: Likewise.
1201         * config/mmix/mmix.h: Likewise.
1202         * config/pa/pa.c: Likewise.
1203         * config/pa/pa.h: Likewise.
1204         * config/rs6000/rs6000.c: Likewise.
1205         * config/s390/s390.c: Likewise.
1206         * config/sparc/sparc.c: Likewise.
1207         * config/xtensa/xtensa.c: Likewise.
1208         * cselib.h: Likewise.
1209         * dbxout.c: Likewise.
1210         * dwarf2out.c: Likewise.
1211         * except.c: Likewise.
1212         * except.h: Likewise.
1213         * fixed-value.h: Likewise.
1214         * function.c: Likewise.
1215         * function.h: Likewise.
1216         * gimple.h: Likewise.
1217         * integrate.c: Likewise.
1218         * optabs.c: Likewise.
1219         * output.h: Likewise.
1220         * real.h: Likewise.
1221         * rtl.h: Likewise.
1222         * stringpool.c: Likewise.
1223         * tree-data-ref.c: Likewise.
1224         * tree-flow.h: Likewise.
1225         * tree-scalar-evolution.c: Likewise.
1226         * tree-ssa-address.c: Likewise.
1227         * tree-ssa-alias.h: Likewise.
1228         * tree-ssa-operands.h: Likewise.
1229         * tree.c: Likewise.
1230         * tree.h: Likewise.
1231         * varasm.c: Likewise.
1232         * varray.h: Likewise.
1233         * vec.h: Likewise.
1234         * coretypes.h: Do not define GTY macro if it is already defined.
1235         * doc/gty.texi: Update GTY documentation to new syntax.
1236         * gengtype-lex.l: Enforce attribute-like syntax for GTY
1237         annotations on structs.
1238         * gengtype-parse.c: Likewise.
1239
1240 2009-04-22  Mark Heffernan  <meheff@google.com>
1241
1242         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
1243
1244 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
1245
1246         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
1247         where appropriate.
1248
1249 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
1250
1251         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
1252         the same as a PLUS without a shift.  Increase the cost of a
1253         CONST_INT in MULT.
1254
1255 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1256
1257         * Makefile.in: Update dependencies.
1258         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
1259         * errors.h: Remove bogus comment about compatibility.
1260         (warning): Update declaration.
1261         * genautomata.c: Update all calls to warning.
1262         * gimple.c: Do not include errors.h. Include toplev.h.
1263         * tree-ssa-structalias.c: Do not include errors.h.
1264         * omega.c: Likewise.
1265         * tree-ssa-reassoc.c: Likewise.
1266         * config/spu/spu-c.c: Likewise.
1267         * config/spu/t-spu-elf: Update dependencies.
1268
1269 2009-04-22  Richard Guenther  <rguenther@suse.de>
1270
1271         PR tree-optimization/39824
1272         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
1273         make sure the types are compatible.
1274
1275 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1276
1277         PR c++/14875
1278         * c-common.c (c_parse_error): Take a token_flags parameter.
1279         Use token_type for the token type instead.
1280         Pass token_flags to cpp_type2name.
1281         * c-common.h (c_parse_error): Update declaration.
1282         * c-parser.c (c_parser_error): Pass 0 as token flags.
1283
1284 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
1285
1286         PR rtl-optimization/39580
1287         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. 
1288         
1289 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1290
1291         * function.c (expand_function_end): Do not emit a jump to the "naked"
1292         return label for fall-through returns.
1293         * except.c (sjlj_emit_function_exit): Always place the call to the
1294         unregister function at the location installed by expand_function_end.
1295
1296 2009-04-22  Richard Guenther  <rguenther@suse.de>
1297
1298         PR tree-optimization/39845
1299         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
1300         (gen_inbound_check): Likewise.
1301
1302 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
1303
1304         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
1305         padding for PPC.
1306         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
1307         * config/vxlib.c (__gthread_once): Add race guard for PPC.
1308
1309 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
1310
1311         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
1312         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
1313         shift counts to avoid out-of-bounds array accesses.
1314
1315 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
1316
1317         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
1318         (Pmode): Move above.
1319
1320 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
1321
1322         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
1323         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
1324         GET_CODE macro.  Use IN_RANGE macro where appropriate.
1325         * config/alpha/alpha.h: Ditto.
1326         * config/alpha/alpha.md: Ditto.
1327         * config/alpha/constraints.md: Ditto.
1328         * config/alpha/predicates.md: Ditto.
1329         
1330 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
1331
1332         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
1333         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1334         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1335         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1336         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1337         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1338         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1339         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1340         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1341         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1342         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1343         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1344         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1345         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1346         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1347         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1348         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1349         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1350         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1351         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1352         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1353         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1354         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1355         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1356         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1357         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1358         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1359
1360 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1361
1362         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
1363         references from comments.
1364         * cfgbuild.c: (count_basic_blocks): Delete.
1365         (find_basic_blocks_1): Delete.
1366         (find_basic_blocks): Delete.
1367         * except.c (finish_eh_generation): Make static.  Move comment from
1368         except.h here.  Remove find_basic_blocks references from comments.
1369         * except.h (finish_eh_generation): Delete.
1370         * basic-block.h (find_basic_blocks): Delete.
1371         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
1372
1373 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
1374
1375         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
1376         (sdbout_parms):  Likewise.
1377
1378 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
1379
1380         * config/sh/sh.c (prepare_cbranch_operands): Use
1381         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
1382         (expand_cbranchdi4): Likewise.
1383         (from_compare): Add cast to enum type.
1384         (expand_cbranchsi4): Use add_reg_note.
1385         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
1386         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
1387         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
1388         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
1389         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
1390         instead of CODE_FOR_nothing.
1391         (cbranchdi4): Likewise.  Fix the order of arguments for
1392         gen_rtx_fmt_ee.
1393         (push_fpscr): Use add_reg_note.
1394         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
1395         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
1396         
1397 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
1398
1399         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
1400         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
1401         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
1402         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
1403         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
1404         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
1405         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
1406         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
1407         config/alpha/x-vms, config/arc/t-arc,
1408         config/arm/README-interworking, config/arm/arm-c.c,
1409         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
1410         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
1411         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
1412         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
1413         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
1414         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
1415         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
1416         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
1417         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
1418         config/cris/t-elfmulti, config/crx/t-crx,
1419         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
1420         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
1421         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
1422         config/h8300/t-h8300, config/i386/athlon.md,
1423         config/i386/darwin-libgcc.10.4.ver,
1424         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
1425         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
1426         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
1427         config/i386/t-linux64, config/i386/t-nwld,
1428         config/i386/t-rtems-i386, config/i386/t-sol2-10,
1429         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
1430         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
1431         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
1432         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
1433         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
1434         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
1435         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
1436         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
1437         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
1438         config/m68k/t-uclinux, config/mcore/t-mcore,
1439         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
1440         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
1441         config/mips/crtn.asm, config/mips/irix-crti.asm,
1442         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
1443         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
1444         config/mips/mips-fixed.md, config/mips/sb1.md,
1445         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
1446         config/mips/t-iris6, config/mips/t-isa3264,
1447         config/mips/t-libgcc-mips16, config/mips/t-linux64,
1448         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
1449         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
1450         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
1451         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
1452         config/mn10300/t-linux, config/mn10300/t-mn10300,
1453         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
1454         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
1455         config/picochip/libgccExtras/clzsi2.asm,
1456         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
1457         config/rs6000/darwin-libgcc.10.4.ver,
1458         config/rs6000/darwin-libgcc.10.5.ver,
1459         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
1460         config/rs6000/t-aix43, config/rs6000/t-aix52,
1461         config/rs6000/t-darwin, config/rs6000/t-fprules,
1462         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
1463         config/rs6000/t-lynx, config/rs6000/t-netbsd,
1464         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
1465         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
1466         config/rs6000/t-rtems, config/rs6000/t-spe,
1467         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
1468         config/score/t-score-elf, config/sh/divcost-analysis,
1469         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
1470         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
1471         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
1472         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
1473         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
1474         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
1475         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
1476         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
1477         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
1478         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
1479         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
1480         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
1481         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
1482         limitx.h, version.c, xcoff.h: Add copyright and license notices.
1483         * config/h8300/genmova.sh: Include copyright and license notices
1484         in generated output.
1485         * config/h8300/mova.md: Regenerate.
1486         * doc/install.texi2html: Include word "Copyright" in copyright
1487         notice and use name "Free Software Foundation, Inc.".
1488         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
1489         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
1490         ChangeLog-2007, ChangeLog-2008: Correct dates.
1491
1492 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
1493
1494         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
1495         NE_EXPR operations as well.
1496         * c-parser.c (c_parser_condition): Do not set location information on
1497         the condition.
1498         (c_parser_conditional_expression): Likewise.
1499         (c_parser_binary_expression): Set location information on operators.
1500         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
1501         TRUTH_NOT_EXPR has been folded.
1502         * fold-const.c (fold_truth_not_expr): Copy location information from
1503         the incoming expression to the outgoing one.
1504         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
1505         recursive calls on the LHS of the operator but pass that of the
1506         operator to recursive calls on the RHS of the operator.  Set it
1507         on the COND_EXPR.
1508         (shortcut_cond_expr): Set the locus of the operator on the second
1509         COND_EXPR and that of the expression on the first in degenerate cases.
1510         Pass the locus of the expression to calls to shortcut_cond_r.
1511         Set the locus of the 'then' block on the associated jump, if any.
1512         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
1513         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
1514         expression to call to gimplify_boolean_expr.
1515
1516 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
1517
1518         * config.gcc: Add additional configuration for
1519         i686-w64-mingw* and x86_64-w64-mingw* triplet.
1520         * config/i386/mingw-w64.h: New mingw-w64 specific header.
1521         (CPP_SPEC): Redefine for allowing -municode option.
1522         (STARTFILE_SPEC): Likewise.
1523         * config/i386/t-mingw-w64: New.
1524         * config/i386/mingw-w64.opt: New.
1525         (municode): Add new target option.
1526         * doc/invoke.texi (municode): Add documentation for new option.
1527
1528 2009-04-21  Ian Lance Taylor  <iant@google.com>
1529
1530         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1531         Correct test for number of arguments.
1532         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
1533
1534 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
1535
1536         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
1537         argument of emit_library_call.
1538
1539 2009-04-21  Richard Guenther  <rguenther@suse.de>
1540
1541         PR middle-end/39829
1542         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
1543         inside VIEW_CONVERT_EXPRs.
1544
1545 2009-04-21  Martin Jambor  <mjambor@suse.cz>
1546
1547         * tree-switch-conversion.c (build_constructors): Split a long line.
1548         (constructor_contains_same_values_p): New function.
1549         (build_one_array): Create assigns of constants if possible, do not
1550         call mark_sym_for_renaming, call update_stmt.
1551         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
1552         make_rename_temp.  Do not call mark_symbols_for_renaming, call
1553         update_stmt.
1554         (gen_def_assigns): Do not call mark_symbols_for_renaming or
1555         find_new_referenced_vars, call update_stmt.
1556         (gen_inbound_check): Use create_tmp_var and create ssa names manually
1557         instead of calling make_rename_temp.  Do not call
1558         find_new_referenced_vars or mark_symbols_for_renaming, call
1559         update_stmt.
1560
1561 2009-04-21  Richard Guenther  <rguenther@suse.de>
1562
1563         PR tree-optimization/39827
1564         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
1565         (tree_ssa_phiprop): Pass the correct array size.
1566
1567 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
1568
1569         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
1570
1571 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1572
1573         PR 16202
1574         * c-typeck.c (lvalue_p): Move declaration ...
1575         * c-common.h (lvalue_p): ... to here.
1576         * c-common.c (candidate_equal_p): New.
1577         (add_tlist): Use it.
1578         (merge_tlist): Use it.
1579         (warn_for_collisions_1): Likewise.
1580         (warning_candidate_p): Accept more candidates.
1581         (verify_tree): A warning candidate can be an expression. Use
1582         candidate_equal_p.
1583
1584 2009-04-21  Ben Elliston  <bje@au.ibm.com>
1585
1586         PR target/5267
1587         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
1588         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
1589         options.  Remove -mcall-solaris documentation.
1590
1591 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1592
1593         PR c++/13358
1594         * doc/invoke.texi (-Wlong-long): Update description.
1595         * c-lex (interpret_integer): Only warn if there was no previous
1596         overflow and -Wlong-long is enabled.
1597         * c-decl.c (declspecs_add_type): Drop redundant flags.
1598         * c.opt (Wlong-long): Init to -1.
1599         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
1600         and front-end warn_long_long. Wlong-long only depends on other
1601         flags if it is uninitialized.
1602         * c-parser.c (disable_extension_diagnostics): warn_long_long is
1603         the same for CPP and FE.
1604         (restore_extension_diagnostics): Likewise.
1605
1606 2009-04-20  Ian Lance Taylor  <iant@google.com>
1607
1608         Fix enum conversions which are invalid in C++:
1609         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
1610         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
1611         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
1612         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
1613         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
1614         (dbxout_parms): Likewise.
1615         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
1616         (df_clear_flags): Likewise.
1617         * df-problems.c (df_rd_bb_local_compute_process_def): Change
1618         top_flag parameter to int.
1619         (df_chain_create_bb_process_use): Likewise.
1620         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
1621         Remove cast.
1622         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
1623         (df_ref_create_structure, df_def_record_1): Likewise.
1624         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
1625         (df_notes_rescan): Change 0 to VOIDmode in function call.
1626         (df_get_call_refs, df_insn_refs_collect): Likewise.
1627         (df_bb_regs_collect): Likewise.
1628         (df_entry_block_defs_collect): Likewise.
1629         (df_exit_block_uses_collect): Likewise.
1630         * df.h: Update declarations.
1631         * double-int.c (double_int_divmod): Add cast to enum type.
1632         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
1633         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
1634         (based_loc_descr): Likewise.
1635         (loc_descriptor_from_tree_1): Change first_op and second_op to
1636         enum dwarf_location_atom.  Add cast to enum type.
1637         * expmed.c (init_expmed): Change 0 to SET in function call.
1638         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
1639         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
1640         (do_store_flag): Likewise.
1641         * fixed-value.h (struct fixed_value): Change mode to enum
1642         machine_mode.
1643         * function.c (assign_parms): Change 0 to VOIDmode in function call.
1644         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
1645         function call.
1646         (insert_insn_decl, insert_decl, insert_state): Likewise.
1647         (automata_list_finish): Likewise.
1648         * genrecog.c (process_define_predicate): Add cast to enum type.
1649         * gensupport.c (init_predicate_table): Add cast to enum type.
1650         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
1651         function call.
1652         (gimple_build_call_1, gimple_build_label): Likewise.
1653         (gimple_build_goto, gimple_build_asm_1): Likewise.
1654         (gimple_build_switch_1, gimple_build_cdt): Likewise.
1655         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
1656         (enum fallback): Rename from enum fallback_t.
1657         (fallback_t): Typedef as int.
1658         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
1659         GSI_SAME_STMT in function call.
1660         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
1661         enum type.
1662         (setup_reg_class_relations): Likewise.
1663         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
1664         (setup_prohibited_class_mode_regs): Add cast to enum type.
1665         (setup_prohibited_mode_move_regs): Likewise.
1666         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
1667         (record_address_regs): Change i to enum reg_class.
1668         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
1669         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
1670         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
1671         (GET_MODE_2XWIDER_MODE): Likewise.
1672         (GET_CLASS_NARROWEST_MODE): Likewise.
1673         * omp-low.c (expand_omp_for): Add cast to enum type.
1674         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
1675         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
1676         * postreload.c (reload_cse_simplify_operands): Change rclass local
1677         to enum reg_class.
1678         * predict.c (combine_predictions_for_insn): Change best_predictor
1679         and predictor to enum br_predictor.
1680         (combine_predictions_for_bb): Likewise.
1681         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
1682         use SET_PREDICT_EXPR_OUTCOME.
1683         * real.c (real_arithmetic): Change icode to code in function call.
1684         * reginfo.c (init_move_cost): Add casts to enum type.
1685         (init_reg_sets_1, init_fake_stack_mems): Likewise.
1686         * regmove.c (regclass_compatible_p): Change class0 and class1 to
1687         enum reg_class.
1688         * reload.c (find_valid_class): Add casts to enum type.
1689         (push_reload): Change 0 to NO_REGS in function call.
1690         (find_reloads): Change this_alternative to array of enum
1691         reg_class.  Remove some now-unnecessary casts.
1692         (make_memloc): Change 0 to VOIDmode in function call.
1693         * reload1.c (reload): Change 0 to VOIDmode in function call.
1694         (eliminate_regs_1, elimination_effects): Likewise.
1695         (eliminate_regs_in_insn): Likewise.
1696         (emit_input_reload_insns): Add cast to enum type.
1697         (delete_output_reload): Change 0 to VOIDmode in function call.
1698         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
1699         to enum type in function call.
1700         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
1701         (SET_PREDICT_EXPR_OUTCOME): Define.
1702         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
1703         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
1704         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
1705         (dump_function): Likewise.
1706         * tree-dump.h: Update declarations.
1707         * tree-pass.h: Update declarations.
1708         * varasm.c (assemble_integer): Change mclass to enum mode_class.
1709         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
1710         enum type.
1711         (arm_rtx_costs_1): Correct parenthesization.
1712         (arm_rtx_costs): Add casts to enum type.
1713         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
1714         (vfp_emit_fstmd): Use add_rg_note.
1715         (emit_multi_reg_push, emit_sfm): Likewise.
1716         (thumb_set_frame_pointer): Likewise.
1717         (arm_expand_prologue): Likewise.
1718         (arm_regno_class): Change return type to enum reg_class.
1719         (thumb1_expand_prologue): Use add_reg_note.
1720         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
1721         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
1722         in function call.
1723         * config/arm/gentune.sh: Add cast to enum type.
1724         * config/arm/arm-tune.md: Rebuild.
1725         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
1726         (ix86_split_fp_branch, predict_jump): Likewise.
1727         (ix86_expand_multi_arg_builtin): Change sub_code from enum
1728         insn_code to enum rtx_code.
1729         (ix86_builtin_vectorized_function): Add cast to enum type.
1730         * config/i386/i386.md (truncdfsf2): Change slot to enum
1731         ix86_stack_slot.
1732         (truncxf<mode>2, isinf<mode>2): Likewise.
1733         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
1734         enum type.
1735         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
1736         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
1737         (insert_bundle_state): Change 1 to INSERT in function call.
1738         (ia64_add_bundle_selector_before): Likewise.
1739         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
1740         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
1741         (restore_stack_nonlocal): Likewise.
1742         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
1743         function call.
1744         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
1745         function call.
1746         (mips_rtx_costs): Likewise.
1747         (mips_override_options): Add casts to enum type.
1748         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
1749         in function call.
1750         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
1751         (store_reg, set_reg_plus_d): Likewise.
1752         (hppa_expand_prologue, hppa_profile_hook): Likewise.
1753         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1754         cast to enum type.
1755         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
1756         function call.
1757         (emit_unlikely_jump): Use add_reg_note.
1758         (rs6000_emit_allocate_stack): Likewise.
1759         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
1760         (output_toc): Change 1 to INSERT in function call.
1761         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
1762         (rs6000_initialize_trampoline): Likewise.
1763         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
1764         function call.
1765         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
1766         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
1767         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
1768         (save_gprs): Use add_reg_note.
1769         (s390_emit_prologue): Likewise.
1770         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
1771         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
1772         (sparc_fold_builtin): Add cast to enum type.
1773         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
1774         enum insn_code.
1775         (spu_expand_prologue): Use add_reg_note.
1776         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
1777
1778 2009-04-20  Ian Lance Taylor  <iant@google.com>
1779
1780         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
1781         (c_parser_postfix_expression_after_primary): Get VEC for list of
1782         arguments.  Get original types of arguments.  Call
1783         build_function_call_vec.
1784         (cached_expr_list_1, cached_expr_list_2): New static variables.
1785         (c_parser_expr_list): Change return type to VEC *.  Add
1786         p_orig_types parameter.  Change all callers.
1787         (c_parser_release_expr): New static function.
1788         (c_parser_vec_to_tree_list): New static function.
1789         * c-typeck.c (build_function_call): Rewrite to build a VEC and
1790         call build_function_call_vec.
1791         (build_function_call_vec): New function, based on old
1792         build_function_call.
1793         (convert_arguments): Remove nargs and argarray parameters.  Change
1794         values to a VEC.  Add origtypes parameter.
1795         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
1796         (convert_for_assignment): Add origtype parameter.  Change all
1797         callers.  If warn_cxx_compat, check for conversion to an enum
1798         type when calling a function.
1799         (store_init_value): Add origtype parameter.  Change all callers.
1800         (digest_init): Likewise.
1801         (struct init_node): Add origtype field.
1802         (add_pending_init): Add origtype parameter.  Change all callers.
1803         (output_init_element): Likewise.
1804         (output_pending_init_elements): Pass origtype from init_node to
1805         output_init_element.
1806         (process_init_element): Pass origtype from c_expr to
1807         output_init_element.
1808         (c_finish_return): Add origtype parameter.  Change all callers.
1809         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
1810         caller.
1811         (sync_resolve_params): Likewise.
1812         (sync_resolve_return): Change params to first_param.  Change caller.
1813         (resolve_overloaded_builtins): Change params to VEC *.  Change
1814         callers.  Save first parameter around call to build_function_call_vec.
1815         * c-decl.c (finish_decl): Add origtype parameter.  Change all
1816         callers.  Call build_function_call_vec rather than
1817         build_function_call for cleanup.
1818         * c-tree.h: Update declarations.
1819         * c-common.h: Update declarations.
1820         * stub-objc.c (objc_rewrite_function_call): Change parameter from
1821         params to first_param.
1822         * target.h (struct gcc_target): Change resolve_overloaded_builtin
1823         params parameter from tree to void *.
1824         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1825         Change arglist parameter to have type void *, and to be a pointer
1826         to a VEC.
1827         * config/rs6000/rs6000-protos.h
1828         (altivec_resolve_overloaded_builtin): Update declaration.
1829         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
1830         fnargs parameter to have type void *, and to be a pointer to a
1831         VEC.  Call build_function_call_vec instead of
1832         build_function_call.
1833         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
1834
1835 2009-04-20  Joey Ye  <joey.ye@intel.com>
1836             Xuepeng Guo <xuepeng.guo@intel.com>
1837             H.J. Lu  <hongjiu.lu@intel.com>
1838
1839         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
1840
1841         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
1842         (IX86_LEA_PRIORITY): Likewise.
1843         (distance_non_agu_define): New function.
1844         (distance_agu_use): Likewise.
1845         (ix86_lea_for_add_ok): Likewise.
1846         (ix86_dep_by_shift_count): Likewise.
1847
1848         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
1849         should split for LEA.
1850
1851         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
1852         function.
1853         (ix86_dep_by_shift_count): Likewise.
1854
1855 2009-04-20  Richard Guenther  <rguenther@suse.de>
1856
1857         * expr.c (handled_component_p): Move ...
1858         * tree.h (handled_component_p): ... here.
1859         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
1860         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
1861         and REALPART_EXPR to be in one group.
1862
1863 2009-04-20  Richard Guenther  <rguenther@suse.de>
1864
1865         * basic-block.h (get_all_dominated_blocks): Declare.
1866         * dominance.c (get_all_dominated_blocks): New function.
1867         * tree-cfg.c (get_all_dominated_blocks): Remove.
1868         (remove_edge_and_dominated_blocks): Adjust.
1869         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
1870         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
1871         instead of recursing.
1872
1873 2009-04-20  Doug Kwan  <dougkwan@google.com>
1874
1875         * cgraph.h (cgraph_node_ptr): New type for vector functions.
1876         (struct cgraph_node_set_def): New type.
1877         (cgraph_node_set) New type. Also declare vector functions.
1878         (struct cgraph_node_set_element_def): New type.
1879         (cgraph_node_set_element): Ditto.
1880         (cgraph_node_set_iterator): New iterator type.
1881         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
1882         cgraph_node_set_remove, dump_cgraph_node_set,
1883         debug_cgraph_node_set): New prototypes.
1884         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
1885         cgraph_node_set_size): New inlines.
1886         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
1887         including cgraph.h.
1888         (struct ipa_opt_pass): Add struct cgraph_node_set_def
1889         argument to function 'write_summary'.
1890         * ipa.c: Include ggc.h.
1891         (hash_cgraph_node_set_element,
1892         eq_cgraph_node_set_element, cgraph_node_set_new,
1893         cgraph_node_set_add, cgraph_node_set_remove,
1894         cgraph_node_set_find, dump_cgraph_node_set,
1895         debug_cgraph_node_set): New functions.
1896         * Makefile.in (ipa.o): Add dependency on GGC_H.
1897
1898 2009-04-20  Ira Rosen  <irar@il.ibm.com>
1899
1900         PR tree-optimization/39675
1901         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
1902         check of the return code of vect_schedule_slp. Check that
1903         stmt_vec_info still exists for the statement, before checking its
1904         vectorization type.
1905
1906 2009-04-20  Michael Matz  <matz@suse.de>
1907
1908         * Makefile.in (generated_files): Take out $(simple_generated_c).
1909
1910 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
1911
1912         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
1913         (UINTPTR_TYPE):  Likewise.
1914
1915 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
1916
1917         PR c/37481
1918         * c-typeck.c (digest_init): Check for initializing an array with a
1919         string literal.
1920
1921 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
1922
1923         PR c/19771
1924         * c-semantics.c (pop_stmt_list): Propagate
1925         STATEMENT_LIST_HAS_LABEL to parent statement list.
1926
1927 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
1928
1929         * config/mips/mips.h (mips_tune_attr): New macro.
1930         * config/mips/mips.md (cpu): Use it.
1931
1932 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
1933
1934         PR c/38243
1935         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
1936         declaring a tag.
1937
1938 2009-04-19  Diego Novillo  <dnovillo@google.com>
1939
1940         * toplev.c (compile_file): Move call to coverage_finish ...
1941         * cgraphunit.c (ipa_passes): ... here.
1942         Call cgraph_process_new_functions.
1943         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
1944         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
1945
1946 2009-04-19  Jan Hubicka  <jh@suse.cz>
1947
1948         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
1949         cfun.
1950         (dump_cgraph_node): Dump can throw external flag.
1951         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
1952
1953 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1954
1955         PR c/32061
1956         PR c++/36954
1957         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
1958         * common.opt (Wlogical-op): Move from here...
1959         * c.opt (Wlogical-op): ... to here.
1960         * c-typeck.c (parser_build_binary_op): Update call to
1961         warn_logical_operator.
1962         * c-opts.c (c_common_post_options): Enable warn_logical_op with
1963         extra_warnings.
1964         * c-common.c (warn_logical_op): Update.
1965         * c-common.h (warn_logical_op): Update declaration.
1966
1967 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
1968
1969         * tree.c (protected_set_expr_location): Fix formatting.
1970
1971 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
1972
1973         PR c/27676
1974         * c-typeck.c (readonly_warning): new.
1975         (build_unary_op, build_modify_expr): Use readonly_warning for
1976         storing into something readonly but not const-qualified.
1977
1978 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
1979
1980         PR c/22367
1981         * c-typeck.c (build_unary_op): Check for taking address of
1982         expression of type void.
1983
1984 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
1985
1986         PR c/35210
1987         * c-typeck.c (build_function_call): Check for calling a function
1988         with qualified void return types.  Call require_complete_type when
1989         generating a trap.
1990
1991 2009-04-18  Jan Hubicka  <jh@suse.cz>
1992
1993         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
1994         Set nothrow flag.
1995         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
1996         can_throw_external flag.
1997         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
1998         * ipa-pure-const.c (ignore_edge): New function.
1999         (propagate): Compute order for NOTHROW computation; set NOTHROWs
2000         only over can_throw_external edges.
2001         (local_pure_const): Add nothrow flag.
2002         * ipa-utils.c (searchc): Add ignore_edge callback.
2003         (ipa_utils_reduced_inorder): Add ignore_edge callback.
2004         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
2005         (set_nothrow_function_flags): Update cgraph.
2006         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
2007
2008 2009-04-18  Richard Guenther  <rguenther@suse.de>
2009
2010         PR middle-end/39804
2011         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
2012         (fold_stmt): ... this and ...
2013         (fold_stmt_inplace): ... this.
2014         (fold_stmt_1): Fold references in calls and asms.
2015         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
2016
2017 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
2018
2019         * tree-vrp.c (ssa_name_nonzero_p): Remove.
2020         * tree.h: Remove the prototype for ssa_name_nonzero_p.
2021
2022 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
2023
2024         * tree.c (function_args_count): Remove.
2025         * tree.h: Remove the prototype for function_args_count.
2026
2027 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
2028
2029         * tree-iterator.c (expr_only): Remove.
2030         * tree.h: Remove the prototype for expr_only.
2031
2032 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
2033
2034         * reginfo.c (cannot_change_mode_set_regs): Remove.
2035         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
2036
2037 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
2038
2039         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
2040         whether operands 0 and 1 overlaps.
2041
2042 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2043
2044         PR middle-end/36902
2045         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
2046         pointer. Use warning_at instead of warning.
2047         (search_for_addr_array): Likewise.
2048         (check_array_bounds): Likewise.
2049         (check_all_array_refs): Check that the incoming edge is not in the
2050         list of edges to be removed.
2051         (check_all_array_refs): Avoid the temporal pointer.
2052         (vrp_visit_cond_stmt): Fix typo.
2053         (simplify_switch_using_ranges): Handle the case where the switch
2054         index is an integer constant.
2055
2056 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
2057
2058         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
2059
2060 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
2061
2062         * doc/extend.texi, doc/invoke.texi: Fix typos.
2063
2064 2009-04-17  Cary Coutant  <ccoutant@google.com>
2065
2066         * tree-flow-inline.h (get_lineno): Fix inverted test.
2067
2068 2009-04-17  Diego Novillo  <dnovillo@google.com>
2069
2070         * tree-ssa-pre.c (create_expression_by_pieces): Remove
2071         assertion for AVAIL_OUT.
2072
2073 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
2074
2075         PR target/38627
2076         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
2077         * config/sh/linux-atomic.asm: Likewise.
2078
2079 2009-04-17  Diego Novillo  <dnovillo@google.com>
2080
2081         * except.c (debug_eh_tree): New.
2082         (struct eh_region, struct eh_status): Move ...
2083         * except.h: ... here.
2084         (add_type_for_runtime): Declare extern.
2085         (lookup_type_for_runtime): Likewise.
2086         (debug_eh_tree): Declare.
2087         * Makefile.in (GTFILES): List except.h before except.c
2088
2089 2009-04-17  Diego Novillo  <dnovillo@google.com>
2090
2091         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
2092         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
2093         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
2094         (find_vars_r): ... here.
2095         * tree-flow.h (find_referenced_vars_in): Declare.
2096         * tree-ssa-pre.c (create_expression_by_pieces): Assert
2097         that AVAIL_OUT exists for BLOCK.
2098         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
2099         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
2100         (tree-parloops.o): Likewise.
2101
2102 2009-04-17  Simon Baldwin  <simonb@google.com>
2103
2104         * toplev.c (default_tree_printer): Add handling for %E format.
2105
2106 2009-04-17  Diego Novillo  <dnovillo@google.com>
2107
2108         * tree-pretty-print.c (dump_generic_node): Add break after
2109         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
2110         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
2111         FUNCTION_TYPE together.  Call print_struct_decl when printing
2112         structures and TDF_SLIM is not given.
2113         (print_struct_decl): Fix logic for detecting recursion.
2114
2115 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
2116
2117         PR 31567
2118         * gcc.c (create_at_file): New.
2119         (compile_input_file_p): New.
2120         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
2121         * main.c (main): Update call to toplev_main.
2122         * toplev.c (toplev_main): Change signature. Call expandargv.
2123         * toplev.h (toplev_main): Change signature.
2124
2125 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2126
2127         * dwarf2out.c (field_byte_offset): Use the type size as the field size
2128         if the latter is not constant.
2129
2130 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
2131
2132         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
2133
2134 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2135
2136         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
2137         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
2138
2139 2009-04-17  Richard Guenther  <rguenther@suse.de>
2140
2141         * tree-ssa-structalias.c (get_constraint_for_component_ref):
2142         Handle component references view-converting an invariant address.
2143
2144 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
2145
2146         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
2147         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
2148         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
2149         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
2150         Use @deftypevr rather than @deftypevar.
2151
2152 2009-04-17  Richard Guenther  <rguenther@suse.de>
2153
2154         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
2155         (get_prop_source_stmt): Likewise.
2156         (can_propagate_from): Likewise.
2157
2158 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
2159
2160         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
2161         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
2162         (--with-multilib-list): Add default value.
2163         * configure: Regenerate.
2164         * Makefile.in (TM_ENDIAN_CONFIG): Define.
2165         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
2166         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
2167         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
2168         Don't add default cpu to multilib list unnecessarily, but do enable
2169         the relevant compiler option..
2170         Add support for --with-multilib-list=<blank> and
2171         --with-multilib-list=!<somelib> to supress unwanted multilibs.
2172         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
2173         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
2174         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
2175         TM_MULTILIB_CONFIG.
2176         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
2177         (MULTILIB_OSDIRNAMES): New variable.
2178         * config/sh/t-1e: Delete file.
2179         * config/sh/t-mlib-sh1: Delete file.
2180         * config/sh/t-mlib-sh2: Delete file.
2181         * config/sh/t-mlib-sh2a: Delete file.
2182         * config/sh/t-mlib-sh2a-nofpu: Delete file.
2183         * config/sh/t-mlib-sh2a-single: Delete file.
2184         * config/sh/t-mlib-sh2a-single-only: Delete file.
2185         * config/sh/t-mlib-sh2e: Delete file.
2186         * config/sh/t-mlib-sh3e: Delete file.
2187         * config/sh/t-mlib-sh4: Delete file.
2188         * config/sh/t-mlib-sh4-nofpu: Delete file.
2189         * config/sh/t-mlib-sh4-single: Delete file.
2190         * config/sh/t-mlib-sh4-single-only: Delete file.
2191         * config/sh/t-mlib-sh4a: Delete file.
2192         * config/sh/t-mlib-sh4a-nofpu: Delete file.
2193         * config/sh/t-mlib-sh4a-single: Delete file.
2194         * config/sh/t-mlib-sh4a-single-only: Delete file.
2195         * config/sh/t-mlib-sh4al: Delete file.
2196         * config/sh/t-mlib-sh5-32media: Delete file.
2197         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
2198         * config/sh/t-mlib-sh5-64media: Delete file.
2199         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
2200         * config/sh/t-mlib-sh5-compact: Delete file.
2201         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
2202         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
2203         * doc/install.texi (Options specification): Add
2204         --with-multilib-list and --with-endian.
2205
2206 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
2207
2208         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
2209         REVISION_c.
2210         (OBJS-common): Add plugin-version.o.
2211         (plugin-version.o): New.
2212         * gcc-plugin.h (plugin_gcc_version): New.
2213         (plugin_default_version_check): New.
2214         (plugin_init_func, plugin_init): Add version argument.
2215         * plugin-version.c: New.
2216         * plugin.c (str_plugin_gcc_version_name): New.
2217         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
2218         pass it to the init function.
2219         (plugin_default_version_check): New.
2220
2221 2009-04-17  Richard Guenther  <rguenther@suse.de>
2222
2223         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
2224         for decl-vs-decl disambiguation.
2225
2226 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
2227
2228         * config/s390/s390.h (s390_tune_attr): New macro definition.
2229         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
2230
2231 2009-04-17  Richard Guenther  <rguenther@suse.de>
2232
2233         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
2234         (fold_stmt_r): Likewise.
2235         (maybe_fold_reference): New function.
2236         (fold_gimple_assign): Handle cases fold_stmt_r did.
2237         (fold_stmt): Do not use fold_stmt_r.
2238         (fold_stmt_inplace): Likewise.
2239
2240 2009-04-17  Richard Guenther  <rguenther@suse.de>
2241
2242         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
2243         (record_equivalences_from_stmt): Remove useless checks and
2244         simplifications.
2245         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
2246         the type is already suitable.
2247
2248 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
2249
2250         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
2251
2252 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
2253
2254         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
2255         (CMPtype): Define as __gcc_CMPtype.
2256
2257 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
2258
2259         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
2260         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
2261
2262 2009-04-17  Richard Guenther  <rguenther@suse.de>
2263
2264         PR tree-optimization/39746
2265         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
2266         special-casing for builtins and static variable use/def.
2267         (call_may_clobber_ref_p_1): Likewise.
2268
2269 2009-04-16  Ian Lance Taylor  <iant@google.com>
2270
2271         * df.h: Include "timevar.h".
2272         (struct df_problem): Change tv_id field to timevar_id_t.
2273         * tree-pass.h: Include "timevar.h".
2274         (struct opt_pass): Change tv_id field to timevar_id_t.
2275         * timevar.h (timevar_id_t): Define TV_NONE.
2276         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
2277         TV_NONE rather than tv_id != 0.
2278         (execute_one_pass): Likewise.
2279         * Makefile.in (DF_H): Add $(TIMEVAR_H).
2280         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
2281         dependencies to $(TREE_PASS_H).
2282         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
2283         to TV_NONE.
2284         (pass_branch_target_load_optimize2): Likewise.
2285         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
2286         (pass_outof_cfg_layout_mode): Likewise.
2287         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
2288         (pass_rebuild_cgraph_edges): Likewise.
2289         (pass_remove_cgraph_callee_edges): Likewise.
2290         * df-core.c (pass_df_initialize_opt): Likewise.
2291         (pass_df_initialize_no_opt): Likewise.
2292         (pass_df_finish): Likewise.
2293         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
2294         * except.c (pass_set_nothrow_function_flags): Likewise.
2295         (pass_convert_to_eh_region_ranges): Likewise.
2296         * final.c (pass_compute_alignments): Likewise.
2297         * function.c (pass_instantiate_virtual_regs): Likewise.
2298         (pass_init_function): Likewise.
2299         (pass_leaf_regs): Likewise.
2300         (pass_match_asm_constraints): Likewise.
2301         * gimple-low.c (pass_lower_cf): Likewise.
2302         (pass_mark_used_blocks): Likewise.
2303         * init-regs.c (pass_initialize_regs): Likewise.
2304         * integrate.c (pass_initial_value_sets): Likewise.
2305         * ira.c (pass_ira): Likewise.
2306         * jump.c (pass_cleanup_barriers): Likewise.
2307         * omp-low.c (pass_expand_omp): Likewise.
2308         (pass_lower_omp): Likewise.
2309         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
2310         * recog.c (pass_split_all_insns): Likewise.
2311         (pass_split_after_reload): Likewise.
2312         (pass_split_before_regstack): Likewise.
2313         (pass_split_before_sched2): Likewise.
2314         (pass_split_for_shorten_branches): Likewise.
2315         * reginfo.c (pass_reginfo_init): Likewise.
2316         (pass_subregs_of_mode_init): Likewise.
2317         (pass_subregs_of_mode_finish): Likewise.
2318         * passes.c (pass_postreload): Likewise.
2319         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
2320         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
2321         (pass_warn_function_return): Likewise.
2322         (pass_warn_function_noreturn): Likewise.
2323         * tree-complex.c (pass_lower_complex): Likewise.
2324         (pass_lower_complex_O0): Likewise.
2325         * tree-if-conv.c (pass_if_conversion): Likewise.
2326         * tree-into-ssa.c (pass_build_ssa): Likewise.
2327         * tree-mudflap.c (pass_mudflap_1): Likewise.
2328         (pass_mudflap_2): Likewise.
2329         * tree-nomudflap.c (pass_mudflap_1): Likewise.
2330         (pass_mudflap_2): Likewise.
2331         * tree-nrv.c (pass_return_slot): Likewise.
2332         * tree-object-size.c (pass_object_sizes): Likewise.
2333         * tree-optimize.c (pass_all_optimizations): Likewise.
2334         (pass_early_local_passes): Likewise.
2335         (pass_all_early_optimizations): Likewise.
2336         (pass_cleanup_cfg): Likewise.
2337         (pass_cleanup_cfg_post_optimizing): Likewise.
2338         (pass_free_datastructures): Likewise.
2339         (pass_free_cfg_annotations): Likewise.
2340         (pass_fixup_cfg): Likewise.
2341         (pass_init_datastructures): Likewise.
2342         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
2343         (pass_late_warn_uninitialized): Likewise.
2344         (pass_update_address_taken): Likewise.
2345         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
2346         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
2347         (pass_cse_sincos): Likewise.
2348         (pass_convert_to_rsqrt): Likewise.
2349         * tree-ssa-structalias.c (pass_build_alias): Likewise.
2350         * tree-stdarg.c (pass_stdarg): Likewise.
2351         * tree-tailcall.c (pass_tail_recursion): Likewise.
2352         (pass_tail_calls): Likewise.
2353         * tree-vect-generic.c (pass_lower_vector): Likewise.
2354         (pass_lower_vector_ssa): Likewise.
2355         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
2356
2357 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
2358
2359         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
2360         XLR entry.
2361         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
2362         Handle -march=xlr.
2363         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
2364         logical and signext.
2365
2366 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
2367
2368         PR target/39767
2369         * config/sh/predicates.md (arith_operand): Check if the operand
2370         of TRUNCATE is a REG.
2371
2372 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
2373
2374         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
2375         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
2376
2377 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
2378
2379         * tree-iterator.c (tsi_split_statement_list_after,
2380         tsi_split_statement_list_before): Remove.
2381         * tree-iterator.h: Remove the prototypes for
2382         tsi_split_statement_list_after and tsi_split_statement_list_before.
2383
2384 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
2385
2386         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
2387         * tree-ssa-propagate.h: Remove the prototype for
2388         stmt_makes_single_load.
2389
2390 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
2391
2392         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
2393         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
2394
2395 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
2396
2397         * tree-iterator.c (EXPR_LAST_BODY): Remove.
2398
2399 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
2400
2401         * except.c (eh_region_outer_p): Remove.
2402         * except.h: Remove the prototype for eh_region_outer_p.
2403
2404 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
2405
2406         * function.c (current_function_assembler_name): Remove.
2407         * function.h: Remove the prototype for
2408         current_function_assembler_name.
2409
2410 2009-04-16  Ian Lance Taylor  <iant@google.com>
2411
2412         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
2413         (add_reg_note): Call alloc_reg_note.
2414         * rtl.h (alloc_reg_note): Declare.
2415         * combine.c (try_combine): Use alloc_reg_note.
2416         (recog_for_combine, move_deaths): Likewise.
2417         (distribute_notes): Use alloc_reg_note and add_reg_note.
2418         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
2419         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
2420         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
2421
2422 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
2423
2424         PR rtl-optimization/39762
2425         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
2426         ira_may_move_out_cost): Add comments about way of their usage.
2427         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
2428
2429         * ira-conflicts.c (process_regs_for_copy): Use function
2430         ira_get_register_move_cost instead of global
2431         ira_register_move_cost.
2432
2433         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
2434         color_pass, move_spill_restore, update_curr_costs): Ditto.
2435
2436         * ira-lives.c (process_single_reg_class_operands): Ditto.
2437
2438         * ira-emit.c (emit_move_list): Ditto.
2439
2440         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
2441         (record_reg_classes): Ditto.  Use functions
2442         ira_get_register_move_cost and ira_get_may_move_cost instead of
2443         global vars ira_register_move_cost, ira_may_move_out_cost and
2444         ira_may_move_in_cost.
2445         (record_address_regs): Don't call ira_init_register_move_cost.
2446         Use function ira_get_may_move_cost instead of global
2447         ira_may_move_in_cost.
2448         (process_bb_node_for_hard_reg_moves): Use function
2449         ira_get_register_move_cost instead of global ira_register_move_cost.
2450         (ira_costs): Don't call ira_init_register_move_cost.
2451
2452 2009-04-16  Richard Guenther  <rguenther@suse.de>
2453
2454         * tree-cfg.c (verify_gimple_assign_binary):
2455         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
2456         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
2457         (create_general_new_stmt): Note that this function is broken.
2458
2459 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
2460
2461         * common.opt (fhelp): Add Var(help_flag).
2462         * gcc-plugin.h (plugin_info): Add help.
2463         * plugin.c (plugin_name_args): Add help.
2464         (register_plugin_info): Set plugin->help.
2465         (print_help_one_plugin): New.
2466         (print_plugins_help): New.
2467         * plugin.h (print_plugins_help): New.
2468         * toplev.c (toplev_main): Call print_plugins_help if needed.
2469
2470 2009-04-16  Richard Guenther  <rguenther@suse.de>
2471
2472         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
2473         (gimple_ior_addresses_taken_1): New function.
2474         (gimple_ior_addresses_taken): Likewise.
2475         * gimple.h (struct gimple_statement_with_ops_base): Remove
2476         addresses_taken member.
2477         (gimple_ior_addresses_taken): Declare.
2478         (gimple_addresses_taken, gimple_addresses_taken_ptr,
2479         gimple_set_addresses_taken): Remove.
2480         * ipa-reference.c (mark_address): New function.
2481         (scan_stmt_for_static_refs): Use it for marking addresses taken.
2482         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
2483         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
2484         (gimple_add_to_addresses_taken): Remove.
2485         (get_tmr_operands): Call mark_address_taken.
2486         (get_asm_expr_operands): Likewise.
2487         (get_expr_operands): Likewise.
2488         (build_ssa_operands): Do not clear the addresses_taken bitmap.
2489         (free_stmt_operands): Do not free it.
2490         * tree-ssa.c (delete_tree_ssa): Likewise.
2491         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
2492
2493 2009-04-16  Richard Guenther  <rguenther@suse.de>
2494
2495         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
2496         (walk_stmt_load_store_ops): Likewise.
2497         * gimple.c (get_base_loadstore): New function.
2498         (walk_stmt_load_store_addr_ops): Likewise.
2499         (walk_stmt_load_store_ops): Likewise.
2500         * ipa-pure-const.c (check_op): Simplify.
2501         (check_load, check_store): New functions.
2502         (check_stmt): Use walk_stmt_load_store_ops.
2503         * ipa-reference.c (mark_load): Adjust signature.
2504         (mark_store): Likewise.
2505         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
2506
2507 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
2508
2509         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
2510         (plugin_info): New.
2511         * opts.c (common_handle_option): Don't call print_version.
2512         * plugin.c (plugin_name_args): Add version.
2513         (register_plugin_info): New.
2514         (register_callback): Handle PLUGIN_INFO.
2515         (try_init_one_plugin): New.
2516         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
2517         if failed to init.
2518         (finalize_one_plugin): New.
2519         (finalize_plugins): New.
2520         (print_one_plugin): New.
2521         (print_plugins_versions): New.
2522         * plugin.h (print_plugins_versions): New.
2523         (finalize_plugins): New.
2524         * toplev.c (compile_file): Don't call initialize_plugins.
2525         (print_version): Call print_plugins_versions.
2526         (toplev_main): Call initialize_plugins. Print version if needed.
2527         Call finalize_plugins.
2528
2529 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
2530
2531         * common.opt (fversion): New.
2532         * gcc.c (print_version): New.
2533         (process_command): Don't print the version. Just set print_version.
2534         (main): Print version. Call subprocesses if print_version and
2535         verbose_flag are set.
2536         * opts.c (common_handle_option): Handle OPT_fversion.
2537
2538 2009-04-16  Richard Guenther  <rguenther@suse.de>
2539             Ira Rosen  <irar@il.ibm.com>
2540
2541         PR tree-optimization/39698
2542         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
2543         type of the reduction variable.  Only generate the def if
2544         it is needed.
2545
2546         * omp-low.c (expand_omp_for_generic): When converting to a pointer
2547         make sure to first convert to an integer of the same precision.
2548         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
2549         the type of the evolution correctly in computing the new
2550         induction variable base.
2551
2552 2009-04-16  Richard Guenther  <rguenther@suse.de>
2553
2554         PR middle-end/39625
2555         * tree-cfg.c (make_blocks): Split statements with to-be
2556         abnormal SSA names on the lhs.
2557
2558 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
2559
2560         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
2561         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
2562         * c-typeck.c (really_start_incremental_init): Likewise.
2563         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
2564         (TARGET_INITIALIZER): Remove it.
2565         * target.h (struct target): Remove vector_opaque_p.
2566         * tree.c (build_opaque_vector_type): New.
2567         * tree.h (TYPE_VECTOR_OPAQUE): New.
2568         (build_opaque_vector_type): Declare.
2569         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
2570         * config/rs6000/rs6000.c (build_opaque_vector_type,
2571         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
2572         (rs6000_init_builtins): Use build_opaque_vector_type for
2573         opaque_V4SI_type_node.
2574
2575 2009-04-15  Catherine Moore  <clm@codesourcery.com>
2576
2577         * debug.h (set_name):  Declare.
2578         * dwarf2out.c (dwarf2out_set_name): Declare.
2579         (dwarf2_debug_hooks): Add set_name.
2580         (find_AT_string): New.
2581         (add_AT_string): Call find_AT_string.
2582         (dwarf2out_set_name): New.
2583         * cp/decl.c (grokdeclarator): Call set_name.
2584         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
2585         * debug.c (do_nothing_debug_hooks):  Likewise.
2586         * dbxout.c (dbx_debug_hooks): Likewise.
2587         * sdbout.c (sdb_debug_hooks): Likewise.
2588
2589 2009-04-15  Michael Eager <eager@eagercon.com>
2590
2591         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
2592         reg for single-precision FPU.
2593         * config/rs6000/rs6000.md (movsi_internal1): Only for
2594         !TARGET_SINGLE_FPU.
2595         (movsi_internal1_single): New. Add pattern to move SI values to/from
2596         single-precision FP regs.
2597
2598 2009-04-15  Richard Guenther  <rguenther@suse.de>
2599
2600         * omp-low.c (lower_rec_input_clauses): Build correct address
2601         expressions.
2602         (expand_omp_for_generic): Fix multiplication type.
2603         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
2604         (generate_memset_zero): Fix types.
2605         * tree-profile.c (prepare_instrumented_value): Correctly
2606         widen a pointer.
2607
2608 2009-04-15  Ian Lance Taylor  <iant@google.com>
2609
2610         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
2611         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
2612         for -Wall and for -Wc++-compat.
2613         (c_common_post_options): For C++, set warn_enum_compare if not
2614         already set.
2615         * c-tree.h (struct c_expr): Add field original_type.
2616         (build_external_ref): Update declaration.
2617         * c-parser.c (c_parser_braced_init): Set original_type.
2618         (c_parser_initelt): Likewise.
2619         (c_parser_expr_no_commas): Likewise.
2620         (c_parser_conditional_expression): Likewise.
2621         (c_parser_cast_expression): Likewise.
2622         (c_parser_unary_expression): Likewise.  Pull setting of
2623         original_code to top of function.
2624         (c_parser_sizeof_expression): Set original_type.
2625         (c_parser_alignof_expression): Likewise.
2626         (c_parser_postfix_expression): Likewise.  Pull setting of
2627         original_code to top of function.
2628         (c_parser_postfix_expression_after_paren_type): Set original_type.
2629         (c_parser_postfix_expression_after_primary): Likewise.
2630         (c_parser_expression): Likewise.
2631         * c-typeck.c (build_external_ref): Add type parameter.  Change all
2632         callers.
2633         (c_expr_sizeof_expr): Set original_type field.
2634         (parser_build_unary_op): Likewise.
2635         (parser_build_binary_op): Likewise.  Optionally warn about
2636         comparisons of enums of different types.
2637         (digest_init): Set original_type field.
2638         (really_start_incremental_init): Likewise.
2639         (push_init_level, pop_init_level): Likewise.
2640         * doc/invoke.texi (Warning Options): -Wenum-compare now
2641         supported in C.
2642
2643 2009-04-15  Richard Guenther  <rguenther@suse.de>
2644
2645         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
2646         out a necessary conversion.
2647         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
2648         names we didn't value number.
2649         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
2650
2651 2009-04-15  Richard Guenther  <rguenther@suse.de>
2652
2653         PR tree-optimization/39764
2654         * tree-ssa-ccp.c (get_value): Canonicalize value with
2655         canonicalize_float_value.
2656
2657 2009-04-15  Jan Hubicka  <jh@suse.cz>
2658
2659         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
2660         Wrong version of patch.
2661
2662 2009-04-15  Jan Hubicka  <jh@suse.cz>
2663
2664         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
2665
2666 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
2667
2668         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
2669         our distinct integral and vector types.
2670
2671 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
2672
2673         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
2674         * init.c (build_vtbl_address): Remove call to assemble_external.
2675
2676 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
2677
2678         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
2679         output for other floating point modes.
2680
2681 2009-04-14  Diego Novillo  <dnovillo@google.com>
2682
2683         * diagnostic.c (diagnostic_report_diagnostic): Do not
2684         warn about loaded plugins for DK_ERROR and DK_WARNING.
2685         * c-decl.c (declspecs_add_type): Move call to
2686         invoke_plugin_callbacks ...
2687         * c-parser.c (c_parser_declspecs): ... here.
2688         * plugin.c (dump_active_plugins): Tidy output.
2689
2690 2009-04-14  Diego Novillo  <dnovillo@google.com>
2691             Le-Chun Wu  <lcwu@google.com>
2692
2693         * configure.ac: Add --enable-plugin support.
2694         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
2695         * Makefile.in (PLUGIN_H): Define.
2696         Export ENABLE_PLUGIN and GMPINC to site.exp.
2697         Add PLUGINLIBS to link command.
2698         Add/modify dependencies for plugin.o and files including plugin.h.
2699         (plugin.o): New.
2700         * config.in: Regenerate.
2701
2702         * opts.c (common_handle_option): Handle OPT_fplugin_ and
2703         OPT_fplugin_arg_.
2704
2705 2009-04-14  Le-Chun Wu  <lcwu@google.com>
2706
2707         * tree-pass.h (register_one_dump_file): Add a prototype for
2708         register_one_dump_file.
2709         * toplev.c (compile_file): Call initialize_plugins.
2710         (do_compile): Call invoke_plugin_callbacks.
2711         (toplev_main): Call invoke_plugin_callbacks.
2712         * common.opt: Add -fplugin= and -fplugin-arg-.
2713         * gcc-plugin.h: New public header file for plugins to include.
2714         * plugin.c: New source file.
2715         * plugin.h: New internal header file.
2716         * passes.c (register_one_dump_file): Make it external.
2717
2718         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
2719
2720 2009-04-14  Diego Novillo  <dnovillo@google.com>
2721
2722         * doc/plugins.texi: New.
2723         * doc/gccint.texi: Add reference to Plugins chapter.
2724         * doc/invoke.texi: Document -fplugin and -fplugin-arg
2725         * diagnostic.c (diagnostic_report_diagnostic): Warn about
2726         loaded plugins, if any.
2727         * timevar.def (TV_PLUGIN_INIT): Define.
2728         (TV_PLUGIN_RUN): Define.
2729         * plugin.c: Include timevar.h
2730         (plugins_active_p): New.
2731         (dump_active_plugins): New.
2732         (debug_active_plugins): New.
2733
2734 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
2735
2736         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
2737         library paths.
2738         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
2739
2740 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
2741
2742         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
2743         the same as a minus without a shift.
2744
2745 2009-04-14  Nick Clifton  <nickc@redhat.com>
2746
2747         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
2748         comparisons with small integers will always produce a short
2749         branch.
2750
2751 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
2752
2753         Merge:
2754         2008-12-19  Diego Novillo  <dnovillo@google.com>
2755
2756         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
2757
2758 2009-04-14  Richard Guenther  <rguenther@suse.de>
2759
2760         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
2761         verification.
2762         (verify_gimple_assign_binary): Likewise.  Handle shifts and
2763         rotates correctly.
2764         (verify_gimple_phi): Print the mismatched argument position.
2765         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
2766         Fix types.
2767         (vect_update_init_of_dr): Likewise.
2768         * matrix-reorg.c (transform_access_sites): Do what the
2769         comment suggests.
2770         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
2771
2772 2009-04-13  Michael Eager <eager@eagercon.com>
2773
2774         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
2775         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
2776         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
2777         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
2778         remove duplicate config
2779
2780 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
2781
2782         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
2783         file_name:line_number type locator of the call site.
2784
2785 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
2786
2787         * genautomata.c: Put blank after comma.
2788         (automaton_decls): New.
2789         (struct unit_usage): Add comments to member next.
2790         (store_alt_unit_usage): Keep the list ordered.
2791         (unit_present_on_list_p, equal_alternatives_p): New.
2792         (check_regexp_units_distribution): Check units distribution
2793         correctness correctly.
2794         (main): Don't write automata if error is found.  Return correct
2795         exit code.
2796
2797         * config/m68k/cf.md (cfv4_ds): Remove.
2798         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
2799         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
2800
2801         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
2802         power4-load-ext, power4-store, power4-store-update,
2803         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
2804         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
2805         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
2806         power4-sqrt, power4-isync): Modify reservation to make correct
2807         unit distribution to automata.
2808
2809         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
2810         power5-store-update, power5-two, power5-three, power5-lmul,
2811         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
2812
2813 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
2814
2815         * except.c (pass_set_nothrow_function_flags): Set name and add
2816         TODO_dump_func.
2817         (set_nothrow_function_flags): Mention in the dump file when
2818         changing a function to nothrow.
2819
2820 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
2821
2822         PR/39066
2823         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
2824         instead of unsigned long.
2825
2826 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2827
2828         * config/arm/arm.c (return_used_this_function): Remove.
2829         (arm_output_function_prologue): Remove use of
2830         return_used_this_function.
2831         (output_return_instruction): Replace use of
2832         return_used_this_function
2833         by cfun->machine->return_used_this_function.
2834         (arm_output_epilogue): Likewise.
2835         (arm_output_function_epilogue): Likewise.
2836         (thumb_unexpanded_epilogue): Likewise.
2837         * config/arm/arm.h (struct machine_function):
2838         New member return_used_this_function.
2839
2840 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
2841
2842         * doc/install.texi: Correct description of default directory for
2843         --with-gxx-include-dir.
2844
2845 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
2846
2847         * fold-const.c (build_range_check): Properly deal with enumeral and
2848         boolean base types.
2849
2850 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
2851
2852         * doc/invoke.texi (max_gcse_passes): Remove documentation.
2853         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
2854         * params.h (MAX_GCSE_PASSES): Remove.
2855         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
2856         in sequence.  Remove ability to run multiple passes.
2857         (bypass_jumps): Report run as third CPROP pass.
2858
2859 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
2860
2861         PR middle-end/39651
2862         * except.c (can_throw_external): Look at each insn in a SEQUENCE
2863         when deciding whether the whole SEQUENCE can throw.
2864
2865 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
2866
2867         PR target/39740
2868         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
2869         offseted label references.
2870
2871 2009-04-11  Jan Hubicka  <jh@suse.cz>
2872
2873         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
2874
2875 2009-04-11  Richard Guenther  <rguenther@suse.de>
2876
2877         PR middle-end/39732
2878         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
2879         return variables as TREE_ADDRESSABLE.
2880
2881 2009-04-11  Richard Guenther  <rguenther@suse.de>
2882
2883         PR tree-optimization/39713
2884         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
2885         reference trees have SSA_NAME operands.
2886
2887 2009-04-11  Richard Guenther  <rguenther@suse.de>
2888
2889         PR c/39712
2890         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
2891         address expressions.
2892
2893 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
2894
2895         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
2896         match changes in Cygwin 1.7
2897         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
2898         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
2899
2900 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
2901
2902         PR tree-optimization/39701
2903         * doc/invoke.texi (Optimization Options): Document change in
2904         meaning and initialization of -fdelete-null-pointer-checks.
2905
2906 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
2907
2908         PR middle-end/39701
2909         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
2910
2911         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
2912         here.
2913
2914         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
2915
2916 2009-04-10  Chao-ying Fu  <fu@mips.com>
2917
2918         * doc/tm.texi (Instruction Output): Document
2919         TARGET_ASM_FINAL_POSTSCAN_INSN.
2920         * target.h (final_postscan_insn): New field in asm_out.
2921         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
2922         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
2923         * final.c (final_scan_insn): Call
2924         targetm.asm_out.final_postscan_insn after outputting
2925         an asm macro and a normal instruction.
2926
2927         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
2928         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
2929         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
2930         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
2931         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
2932
2933 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
2934
2935         PR middle-end/39701
2936         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
2937         variables as non-NULL even with -fdelete-null-pointer-checks.
2938
2939 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
2940
2941         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
2942
2943 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
2944
2945         PR target/39678
2946         * config/i386/i386.c (classify_argument): Handle SCmode with
2947         (bit_offset % 64) != 0.
2948
2949 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
2950
2951         * doc/invoke.texi (Optimize Options): Add cross-reference to
2952         -Q --help=optimizers examples.
2953
2954 2009-04-10  Ben Elliston  <bje@au.ibm.com>
2955
2956         PR target/36800
2957         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
2958         regalign for the reg == fpr and TDmode case.
2959
2960 2009-04-09  David Ayers  <ayers@fsfe.org>
2961
2962         PR objc/29200
2963         * objc/objc-act.c (warn_with_method): Remove helper function.
2964         (check_duplicates): Call warning and inform directly.
2965         (really_start_method): Likewise.
2966
2967 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
2968
2969         * expmed.c (expand_divmod): Always use a comparison for a division
2970         by a large unsigned integer.
2971
2972         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
2973         for things others than variables or functions as nonzero.
2974
2975 2009-04-09  Nick Clifton  <nickc@redhat.com>
2976
2977         * unwind-compat.c: Change copyright header to refer to version
2978         3 of the GNU General Public License with version 3.1 of the
2979         GCC Runtime Library Exception and to point readers at the
2980         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
2981         * config/alpha/crtfastmath.c: Likewise.
2982         * config/alpha/linux-unwind.h: Likewise.
2983         * config/alpha/qrnnd.asm: Likewise.
2984         * config/alpha/vms-crt0-64.c: Likewise.
2985         * config/alpha/vms-crt0.c: Likewise.
2986         * config/alpha/vms-dwarf2.asm: Likewise.
2987         * config/alpha/vms-dwarf2eh.asm: Likewise.
2988         * config/alpha/vms-psxcrt0-64.c: Likewise.
2989         * config/alpha/vms-psxcrt0.c: Likewise.
2990         * config/alpha/vms_tramp.asm: Likewise.
2991         * config/arc/initfini.c: Likewise.
2992         * config/arc/lib1funcs.asm: Likewise.
2993         * config/arm/bpabi-v6m.S: Likewise.
2994         * config/arm/bpabi.S: Likewise.
2995         * config/arm/bpabi.c: Likewise.
2996         * config/arm/crti.asm: Likewise.
2997         * config/arm/crtn.asm: Likewise.
2998         * config/arm/ieee754-df.S: Likewise.
2999         * config/arm/ieee754-sf.S: Likewise.
3000         * config/arm/lib1funcs.asm: Likewise.
3001         * config/arm/libunwind.S: Likewise.
3002         * config/arm/linux-atomic.c: Likewise.
3003         * config/arm/mmintrin.h: Likewise.
3004         * config/arm/pr-support.c: Likewise.
3005         * config/arm/unaligned-funcs.c: Likewise.
3006         * config/arm/unwind-arm.c: Likewise.
3007         * config/arm/unwind-arm.h: Likewise.
3008         * config/avr/libgcc.S: Likewise.
3009         * config/bfin/crti.s: Likewise.
3010         * config/bfin/crtlibid.s: Likewise.
3011         * config/bfin/crtn.s: Likewise.
3012         * config/bfin/lib1funcs.asm: Likewise.
3013         * config/bfin/linux-unwind.h: Likewise.
3014         * config/cris/arit.c: Likewise.
3015         * config/cris/cris_abi_symbol.c: Likewise.
3016         * config/darwin-64.c: Likewise.
3017         * config/darwin-crt2.c: Likewise.
3018         * config/darwin-crt3.c: Likewise.
3019         * config/darwin.h: Likewise.
3020         * config/dbxelf.h: Likewise.
3021         * config/dfp-bit.c: Likewise.
3022         * config/dfp-bit.h: Likewise.
3023         * config/elfos.h: Likewise.
3024         * config/fixed-bit.c: Likewise.
3025         * config/fixed-bit.h: Likewise.
3026         * config/fp-bit.c: Likewise.
3027         * config/fp-bit.h: Likewise.
3028         * config/fr30/crti.asm: Likewise.
3029         * config/fr30/crtn.asm: Likewise.
3030         * config/fr30/lib1funcs.asm: Likewise.
3031         * config/freebsd-spec.h: Likewise.
3032         * config/frv/cmovd.c: Likewise.
3033         * config/frv/cmovh.c: Likewise.
3034         * config/frv/cmovw.c: Likewise.
3035         * config/frv/frvbegin.c: Likewise.
3036         * config/frv/frvend.c: Likewise.
3037         * config/frv/lib1funcs.asm: Likewise.
3038         * config/glibc-stdint.h: Likewise.
3039         * config/h8300/clzhi2.c: Likewise.
3040         * config/h8300/crti.asm: Likewise.
3041         * config/h8300/crtn.asm: Likewise.
3042         * config/h8300/ctzhi2.c: Likewise.
3043         * config/h8300/fixunssfsi.c: Likewise.
3044         * config/h8300/lib1funcs.asm: Likewise.
3045         * config/h8300/parityhi2.c: Likewise.
3046         * config/h8300/popcounthi2.c: Likewise.
3047         * config/i386/ammintrin.h: Likewise.
3048         * config/i386/att.h: Likewise.
3049         * config/i386/avxintrin.h: Likewise.
3050         * config/i386/biarch64.h: Likewise.
3051         * config/i386/bmmintrin.h: Likewise.
3052         * config/i386/cpuid.h: Likewise.
3053         * config/i386/cross-stdarg.h: Likewise.
3054         * config/i386/crtfastmath.c: Likewise.
3055         * config/i386/crtprec.c: Likewise.
3056         * config/i386/cygming-crtbegin.c: Likewise.
3057         * config/i386/cygming-crtend.c: Likewise.
3058         * config/i386/cygwin.asm: Likewise.
3059         * config/i386/emmintrin.h: Likewise.
3060         * config/i386/gmm_malloc.h: Likewise.
3061         * config/i386/gthr-win32.c: Likewise.
3062         * config/i386/i386.h: Likewise.
3063         * config/i386/immintrin.h: Likewise.
3064         * config/i386/linux-unwind.h: Likewise.
3065         * config/i386/linux64.h: Likewise.
3066         * config/i386/mm3dnow.h: Likewise.
3067         * config/i386/mmintrin-common.h: Likewise.
3068         * config/i386/mmintrin.h: Likewise.
3069         * config/i386/nmmintrin.h: Likewise.
3070         * config/i386/pmm_malloc.h: Likewise.
3071         * config/i386/pmmintrin.h: Likewise.
3072         * config/i386/smmintrin.h: Likewise.
3073         * config/i386/sol2-c1.asm: Likewise.
3074         * config/i386/sol2-ci.asm: Likewise.
3075         * config/i386/sol2-cn.asm: Likewise.
3076         * config/i386/sol2-gc1.asm: Likewise.
3077         * config/i386/tmmintrin.h: Likewise.
3078         * config/i386/unix.h: Likewise.
3079         * config/i386/w32-unwind.h: Likewise.
3080         * config/i386/wmmintrin.h: Likewise.
3081         * config/i386/x86-64.h: Likewise.
3082         * config/i386/x86intrin.h: Likewise.
3083         * config/i386/xmmintrin.h: Likewise.
3084         * config/ia64/crtbegin.asm: Likewise.
3085         * config/ia64/crtend.asm: Likewise.
3086         * config/ia64/crtfastmath.c: Likewise.
3087         * config/ia64/crti.asm: Likewise.
3088         * config/ia64/crtn.asm: Likewise.
3089         * config/ia64/fde-glibc.c: Likewise.
3090         * config/ia64/lib1funcs.asm: Likewise.
3091         * config/ia64/linux-unwind.h: Likewise.
3092         * config/ia64/quadlib.c: Likewise.
3093         * config/ia64/unwind-ia64.c: Likewise.
3094         * config/linux.h: Likewise.
3095         * config/m32c/m32c-lib1.S: Likewise.
3096         * config/m32c/m32c-lib2-trapv.c: Likewise.
3097         * config/m32c/m32c-lib2.c: Likewise.
3098         * config/m32r/initfini.c: Likewise.
3099         * config/m68hc11/larith.asm: Likewise.
3100         * config/m68hc11/m68hc11-crt0.S: Likewise.
3101         * config/m68k/cf.md: Likewise.
3102         * config/m68k/crti.s: Likewise.
3103         * config/m68k/crtn.s: Likewise.
3104         * config/m68k/lb1sf68.asm: Likewise.
3105         * config/m68k/linux-unwind.h: Likewise.
3106         * config/mcore/crti.asm: Likewise.
3107         * config/mcore/crtn.asm: Likewise.
3108         * config/mcore/lib1.asm: Likewise.
3109         * config/mips/linux-unwind.h: Likewise.
3110         * config/mips/loongson.h: Likewise.
3111         * config/mips/mips16.S: Likewise.
3112         * config/mmix/crti.asm: Likewise.
3113         * config/mmix/crtn.asm: Likewise.
3114         * config/pa/fptr.c: Likewise.
3115         * config/pa/hpux-unwind.h: Likewise.
3116         * config/pa/lib2funcs.asm: Likewise.
3117         * config/pa/linux-atomic.c: Likewise.
3118         * config/pa/linux-unwind.h: Likewise.
3119         * config/pa/milli64.S: Likewise.
3120         * config/pa/quadlib.c: Likewise.
3121         * config/pa/stublib.c: Likewise.
3122         * config/picochip/libgccExtras/adddi3.asm: Likewise.
3123         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
3124         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
3125         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
3126         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
3127         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
3128         * config/picochip/libgccExtras/divmod15.asm: Likewise.
3129         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
3130         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
3131         * config/picochip/libgccExtras/longjmp.asm: Likewise.
3132         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
3133         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
3134         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
3135         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
3136         * config/picochip/libgccExtras/setjmp.asm: Likewise.
3137         * config/picochip/libgccExtras/subdi3.asm: Likewise.
3138         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
3139         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
3140         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
3141         * config/rs6000/750cl.h: Likewise.
3142         * config/rs6000/altivec.h: Likewise.
3143         * config/rs6000/biarch64.h: Likewise.
3144         * config/rs6000/crtresfpr.asm: Likewise.
3145         * config/rs6000/crtresgpr.asm: Likewise.
3146         * config/rs6000/crtresxfpr.asm: Likewise.
3147         * config/rs6000/crtresxgpr.asm: Likewise.
3148         * config/rs6000/crtsavfpr.asm: Likewise.
3149         * config/rs6000/crtsavgpr.asm: Likewise.
3150         * config/rs6000/darwin-asm.h: Likewise.
3151         * config/rs6000/darwin-fallback.c: Likewise.
3152         * config/rs6000/darwin-fpsave.asm: Likewise.
3153         * config/rs6000/darwin-ldouble.c: Likewise.
3154         * config/rs6000/darwin-tramp.asm: Likewise.
3155         * config/rs6000/darwin-unwind.h: Likewise.
3156         * config/rs6000/darwin-vecsave.asm: Likewise.
3157         * config/rs6000/darwin-world.asm: Likewise.
3158         * config/rs6000/e500crtres32gpr.asm: Likewise.
3159         * config/rs6000/e500crtres64gpr.asm: Likewise.
3160         * config/rs6000/e500crtres64gprctr.asm: Likewise.
3161         * config/rs6000/e500crtrest32gpr.asm: Likewise.
3162         * config/rs6000/e500crtrest64gpr.asm: Likewise.
3163         * config/rs6000/e500crtresx32gpr.asm: Likewise.
3164         * config/rs6000/e500crtresx64gpr.asm: Likewise.
3165         * config/rs6000/e500crtsav32gpr.asm: Likewise.
3166         * config/rs6000/e500crtsav64gpr.asm: Likewise.
3167         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
3168         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
3169         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
3170         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
3171         * config/rs6000/eabi-ci.asm: Likewise.
3172         * config/rs6000/eabi-cn.asm: Likewise.
3173         * config/rs6000/eabi.asm: Likewise.
3174         * config/rs6000/linux-unwind.h: Likewise.
3175         * config/rs6000/linux64.h: Likewise.
3176         * config/rs6000/paired.h: Likewise.
3177         * config/rs6000/paired.md: Likewise.
3178         * config/rs6000/ppc64-fp.c: Likewise.
3179         * config/rs6000/ppu_intrinsics.h: Likewise.
3180         * config/rs6000/rs6000.h: Likewise.
3181         * config/rs6000/si2vmx.h: Likewise.
3182         * config/rs6000/sol-ci.asm: Likewise.
3183         * config/rs6000/sol-cn.asm: Likewise.
3184         * config/rs6000/spe.h: Likewise.
3185         * config/rs6000/spu2vmx.h: Likewise.
3186         * config/rs6000/sysv4.h: Likewise.
3187         * config/rs6000/tramp.asm: Likewise.
3188         * config/rs6000/vec_types.h: Likewise.
3189         * config/s390/linux-unwind.h: Likewise.
3190         * config/s390/tpf-unwind.h: Likewise.
3191         * config/score/crti.asm: Likewise.
3192         * config/score/crtn.asm: Likewise.
3193         * config/sh/crt1.asm: Likewise.
3194         * config/sh/crti.asm: Likewise.
3195         * config/sh/crtn.asm: Likewise.
3196         * config/sh/divtab-sh4-300.c: Likewise.
3197         * config/sh/divtab-sh4.c: Likewise.
3198         * config/sh/divtab.c: Likewise.
3199         * config/sh/lib1funcs-4-300.asm: Likewise.
3200         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
3201         * config/sh/lib1funcs.asm: Likewise.
3202         * config/sh/lib1funcs.h: Likewise.
3203         * config/sh/linux-atomic.asm: Likewise.
3204         * config/sh/linux-unwind.h: Likewise.
3205         * config/sh/shmedia.h: Likewise.
3206         * config/sh/sshmedia.h: Likewise.
3207         * config/sh/ushmedia.h: Likewise.
3208         * config/sparc/crtfastmath.c: Likewise.
3209         * config/sparc/linux-unwind.h: Likewise.
3210         * config/sparc/sol2-c1.asm: Likewise.
3211         * config/sparc/sol2-ci.asm: Likewise.
3212         * config/sparc/sol2-cn.asm: Likewise.
3213         * config/spu/divmodti4.c: Likewise.
3214         * config/spu/divv2df3.c: Likewise.
3215         * config/spu/float_disf.c: Likewise.
3216         * config/spu/float_unsdidf.c: Likewise.
3217         * config/spu/float_unsdisf.c: Likewise.
3218         * config/spu/float_unssidf.c: Likewise.
3219         * config/spu/mfc_multi_tag_release.c: Likewise.
3220         * config/spu/mfc_multi_tag_reserve.c: Likewise.
3221         * config/spu/mfc_tag_release.c: Likewise.
3222         * config/spu/mfc_tag_reserve.c: Likewise.
3223         * config/spu/mfc_tag_table.c: Likewise.
3224         * config/spu/multi3.c: Likewise.
3225         * config/spu/spu_internals.h: Likewise.
3226         * config/spu/spu_intrinsics.h: Likewise.
3227         * config/spu/spu_mfcio.h: Likewise.
3228         * config/spu/vec_types.h: Likewise.
3229         * config/spu/vmx2spu.h: Likewise.
3230         * config/stormy16/stormy16-lib2.c: Likewise.
3231         * config/svr4.h: Likewise.
3232         * config/sync.c: Likewise.
3233         * config/v850/lib1funcs.asm: Likewise.
3234         * config/vxlib-tls.c: Likewise.
3235         * config/vxlib.c: Likewise.
3236         * config/vxworks-dummy.h: Likewise.
3237         * config/xtensa/crti.asm: Likewise.
3238         * config/xtensa/crtn.asm: Likewise.
3239         * config/xtensa/ieee754-df.S: Likewise.
3240         * config/xtensa/ieee754-sf.S: Likewise.
3241         * config/xtensa/lib1funcs.asm: Likewise.
3242         * config/xtensa/lib2funcs.S: Likewise.
3243         * config/xtensa/linux-unwind.h: Likewise.
3244         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3245         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
3246         * coretypes.h: Likewise.
3247         * crtstuff.c: Likewise.
3248         * defaults.h: Likewise.
3249         * dwarf2.h: Likewise.
3250         * emutls.c: Likewise.
3251         * gbl-ctors.h: Likewise.
3252         * gcov-io.h: Likewise.
3253         * ginclude/float.h: Likewise.
3254         * ginclude/iso646.h: Likewise.
3255         * ginclude/stdarg.h: Likewise.
3256         * ginclude/stdbool.h: Likewise.
3257         * ginclude/stddef.h: Likewise.
3258         * ginclude/stdfix.h: Likewise.
3259         * ginclude/stdint-gcc.h: Likewise.
3260         * ginclude/tgmath.h: Likewise.
3261         * gthr-aix.h: Likewise.
3262         * gthr-dce.h: Likewise.
3263         * gthr-gnat.c: Likewise.
3264         * gthr-gnat.h: Likewise.
3265         * gthr-lynx.h: Likewise.
3266         * gthr-mipssde.h: Likewise.
3267         * gthr-nks.h: Likewise.
3268         * gthr-posix.c: Likewise.
3269         * gthr-posix.h: Likewise.
3270         * gthr-posix95.h: Likewise.
3271         * gthr-rtems.h: Likewise.
3272         * gthr-single.h: Likewise.
3273         * gthr-solaris.h: Likewise.
3274         * gthr-tpf.h: Likewise.
3275         * gthr-vxworks.h: Likewise.
3276         * gthr-win32.h: Likewise.
3277         * gthr.h: Likewise.
3278         * libgcc2.c: Likewise.
3279         * libgcc2.h: Likewise.
3280         * libgcov.c: Likewise.
3281         * tsystem.h: Likewise.
3282         * typeclass.h: Likewise.
3283         * unwind-c.c: Likewise.
3284         * unwind-compat.h: Likewise.
3285         * unwind-dw2-fde-compat.c: Likewise.
3286         * unwind-dw2-fde-darwin.c: Likewise.
3287         * unwind-dw2-fde-glibc.c: Likewise.
3288         * unwind-dw2-fde.c: Likewise.
3289         * unwind-dw2-fde.h: Likewise.
3290         * unwind-dw2.c: Likewise.
3291         * unwind-dw2.h: Likewise.
3292         * unwind-generic.h: Likewise.
3293         * unwind-pe.h: Likewise.
3294         * unwind-sjlj.c: Likewise.
3295         * unwind.inc: Likewise.
3296         * config/arm/neon-gen.ml: Change generated copyright header to
3297         refer to version 3 of the GNU General Public License with
3298         version 3.1 of the GCC Runtime Library Exception and to point
3299         readers at the COPYING3 and COPYING3.RUNTIME files and the
3300         FSF's license web page.
3301         * config/arm/arm_neon.h: Regenerate.
3302
3303 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
3304
3305         * config/cris/cris.md: Change copyright header to refer to version
3306         3 of the GNU General Public License.
3307         * doc/install.texi2html: Change copyright header to refer to version
3308         3 of the GNU General Public License and to point readers at the
3309         COPYING3 file and the FSF's license web page.
3310         * config/vax/linux.h: Likewise.
3311
3312 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
3313
3314         * config/i386/i386.md (cmpcc): New.
3315         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
3316         (sync_compare_and_swap_cc*): Delete.
3317
3318         * config/s390/s390.c (s390_compare_emitted): Remove.
3319         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
3320         s390_compare_emitted used to be handled.  Assert that modes match.
3321         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
3322         refer to sync_compare_and_swap_ccsi.
3323         * config/s390/s390.h (s390_compare_emitted): Remove.
3324         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
3325         instead of s390_compare_emitted.
3326         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
3327         instead of s390_compare_emitted.
3328         * config/s390/s390.md (cmpcc): New.
3329         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
3330         CC_REGNUM, do not pretend it's set.
3331         (sync_compare_and_swap_cc*): Delete.
3332         * config/s390/predicates.md (cc_reg_operand): New.
3333
3334         * expr.c (sync_compare_and_swap_cc): Delete.
3335         * optabs.h (sync_compare_and_swap_cc): Delete.
3336         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
3337         is being used with can_compare_p.
3338         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
3339         (find_cc_set): New.
3340         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
3341         look for a MODE_CC set instead.  Use emit_store_flag.
3342         (expand_compare_and_swap_loop): Likewise, with some additional
3343         complication to avoid a force_reg when useless.  Use
3344         emit_cmp_and_jump_insns.
3345         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
3346         * doc/md.texi (sync_compare_and_swap_cc): Merge with
3347         sync_compare_and_swap documentation.
3348
3349 2009-04-09  Jan Hubicka  <jh@suse.cz>
3350
3351         * except.c (find_prev_try): Break out from ....
3352         (duplicate_eh_regions): ... here; properly update prev_try pointers
3353         when duplication part of tree.
3354         (dump_eh_tree): Improve dumping.
3355         (verify_eh_region): New.
3356         (verify_eh_tree): Use it.
3357
3358 2009-04-06  Richard Guenther  <rguenther@suse.de>
3359
3360         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
3361         &ARRAY addresses by adjusting their types and prepending
3362         a conversion.
3363         * tree-cfg.c (verify_gimple_assign_single): Verify that
3364         addresses are correct.
3365
3366 2009-04-09  Richard Guenther  <rguenther@suse.de>
3367
3368         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
3369         indices into an array reference if possible.
3370         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
3371         Fold POINTER_PLUS_EXPR statements with invariant address.
3372
3373 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
3374
3375         PR target/39634
3376         * config.gcc (powerpc64-*-linux*): Always build biarch.
3377
3378 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
3379
3380         PR c/39613
3381         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
3382         it and pedwarn if this results in an INTEGER_CST.
3383
3384 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3385
3386         * doc/install.texi: Update minimum GMP version.  Remove obsolete
3387         text in MPFR section.
3388
3389 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
3390
3391         * dwarf2out.c (class_scope_p): New static inline.
3392         (class_or_namespace_scope_p): Use it.
3393         (gen_variable_die): Use DW_TAG_member tag for static data member
3394         declarations instead of DW_TAG_variable.
3395
3396         PR middle-end/39573
3397         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
3398         variables.
3399
3400 2009-04-08  Richard Guenther  <rguenther@suse.de>
3401
3402         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
3403         valueize random data.
3404
3405 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
3406
3407         * config.gcc (aix tm_file):  Add aix-stdint.h.
3408         (aix tm clause use_gcc_stdint):  Set to wrap.
3409         * config/rs6000/aix-stdint.h:  New file.
3410
3411 2009-04-08  Richard Guenther  <rguenther@suse.de>
3412
3413         PR middle-end/36291
3414         * tree-dfa.c (add_referenced_var): Do not recurse into
3415         global initializers.
3416         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
3417         exposed variables.
3418         (fold_const_aggregate_ref): Likewise.
3419
3420 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
3421
3422         * recog.c (ordered_comparison_operator): New.
3423         * gensupport.c (std_preds): Add it.
3424         * doc/md.texi (Machine-Independent Predicates): Document it.
3425
3426 2009-04-08  Jan Hubicka  <jh@suse.cz>
3427
3428         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
3429         * function.h (rtl_eh): Remove exception_handler_label_map.
3430         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
3431         remove_exception_handler_label, for_each_eh_label_1): Remove.
3432         (rtl_remove_unreachable_regions): Remove.
3433         (convert_from_eh_region_ranges): Do not remove unreachable regions.
3434         (find_exception_handler_labels): Don't build the hashtable.
3435         (maybe_remove_eh_handler): Remove.
3436         (for_each_eh_label): Rewrite to walk the tree.
3437         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
3438         * except.h (maybe_remove_eh_handler): Remove.
3439         * passes.c (init_optimization_passes): Schedule second EH cleanup
3440         before out-of-ssa.
3441         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
3442         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
3443
3444 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
3445
3446         * genoutput.c (validate_optab_operands): New.
3447         (gen_insn, gen_expand): Call it.
3448
3449         * genflags.c (gen_insn): Detect misused iterators.
3450         (main): Pass line_no to gen_insn, exit with status 1 on error.
3451
3452         * genextract.c (line_no): Make global.
3453         (VEC_safe_set_locstr): Change assertion to error message.
3454         (main): Exit with status 1 on error.
3455
3456 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
3457
3458         PR c/39614
3459         PR c/39673
3460         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
3461         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
3462         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
3463         * c-convert.c (convert): Do not call fold on results of conversion
3464         functions when the result is a C_MAYBE_CONST_EXPR.
3465         * c-parser.c (c_parser_postfix_expression): Do not fold condition
3466         of __builtin_choose_expr.
3467         * c-typeck.c (remove_c_maybe_const_expr): New.
3468         (build_unary_op, build_conditional_expr, build_compound_expr,
3469         build_binary_op, c_objc_common_truthvalue_conversion): Call
3470         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
3471         integer operands.
3472
3473 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
3474
3475         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
3476         CODE to produce a new one. Add a prototype to use fold_convert_const
3477
3478 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
3479
3480         PR bootstrap/39660
3481         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
3482         mix declarations and code.
3483
3484 2009-04-08  Ben Elliston  <bje@au.ibm.com>
3485
3486         * gcc.c: Replace `CC' with `GCC' throughout.
3487
3488 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
3489
3490         * doc/invoke.texi: Document Atom support.
3491
3492 2009-04-07  Jason Merrill  <jason@redhat.com>
3493
3494         PR c++/25185
3495         * c-common.h, c-common.c: Add flag_pretty_templates.
3496         * c-opts.c (c_common_handle_option): Set it.
3497         * c.opt: Add -fno-pretty-templates.
3498         * doc/invoke.texi (C++ Dialect Options): Likewise.
3499
3500 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
3501
3502         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
3503         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
3504         (ia64_expand_builtin): Likewise.
3505
3506 2009-04-07  Martin Jambor  <mjambor@suse.cz>
3507
3508         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
3509         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
3510         ADDR_EXPRS are include too.
3511
3512 2009-04-07  Richard Guenther  <rguenther@suse.de>
3513
3514         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
3515         decls are only used if passes as parameters or if they are
3516         local statics and the call is not to a builtin.
3517         (call_may_clobber_ref_p_1): Likewise.
3518
3519 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
3520
3521         * expr.c (do_store_flag): Remove last argument.  Simplify code
3522         to avoid duplication of tests already done by can_compare_p.
3523         (expand_expr_real_1): Adjust caller.
3524
3525 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
3526
3527         * optabs.c (can_compare_p): Test the predicate of a
3528         cbranch and cstore pattern.
3529
3530 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
3531
3532         * expr.c (convert_move): Use emit_store_flag instead of
3533         "emulating" it.
3534
3535 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
3536
3537         * config/i386/i386.c (ix86_compare_emitted): Remove.
3538         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
3539         ix86_compare_op0 like ix86_compare_emitted used to be handled.
3540         * config/i386/i386.h (ix86_compare_emitted): Remove.
3541         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
3542         instead of ix86_compare_emitted.
3543         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
3544
3545 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
3546
3547         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
3548         Add t-sysroot-suffix to tmake_file.
3549         * config/print-sysroot-suffix.sh: New file.
3550         * config/t-sysroot-suffix: New file.
3551
3552 2009-04-07  Ben Elliston  <bje@au.ibm.com>
3553
3554         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
3555         as the latter produces a warning when the target does not support
3556         infinity.
3557
3558 2009-04-07  Ben Elliston  <bje@au.ibm.com>
3559
3560         * dfp.c: Replace type punning assignments with memcpy throughout.
3561         * Makefile.in (dfp.o-warn): Remove.
3562
3563 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
3564
3565         PR target/39634
3566         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
3567         Include soft-fp/t-softfp after rs6000/t-linux64.
3568
3569 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3570
3571         * stor-layout.c (set_sizetype): Use the full precision of their
3572         machine mode for bitsize types.
3573
3574 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3575
3576         * config/i386/i386.md: Revert 2 accidental checkins.
3577
3578 2009-04-06  Joey Ye  <joey.ye@intel.com>
3579             Xuepeng Guo <xuepeng.guo@intel.com>
3580             H.J. Lu  <hongjiu.lu@intel.com>
3581
3582         Atom pipeline model, tuning and insn selection.
3583         * config.gcc (atom): Add atom config options and target.
3584
3585         * config/i386/atom.md: New.
3586
3587         * config/i386/i386.c (atom_cost): New cost.
3588         (m_ATOM): New macro flag.
3589         (initial_ix86_tune_features): Set m_ATOM.
3590         (x86_accumulate_outgoing_args): Likewise.
3591         (x86_arch_always_fancy_math_387): Likewise.
3592         (processor_target): Add Atom cost.
3593         (cpu_names): Add Atom cpu name.
3594         (override_options): Set Atom ISA.
3595         (ix86_issue_rate): New case PROCESSOR_ATOM.
3596         (ix86_adjust_cost): Likewise.
3597
3598         * config/i386/i386.h (TARGET_ATOM): New target macro.
3599         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
3600         (TARGET_OPT_AGU): New target option.
3601         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
3602         (processor_type): Add PROCESSOR_ATOM.
3603
3604         * config/i386/i386.md (cpu): Add new value "atom".
3605         (use_carry, movu): New attr.
3606         (atom.md): Include atom.md.
3607         (adddi3_carry_rex64): Set attr "use_carry".
3608         (addqi3_carry): Likewise.
3609         (addhi3_carry): Likewise.
3610         (addsi3_carry): Likewise.
3611         (*addsi3_carry_zext): Likewise.
3612         (subdi3_carry_rex64): Likewise.
3613         (subqi3_carry): Likewise.
3614         (subhi3_carry): Likewise.
3615         (subsi3_carry): Likewise.
3616         (x86_movdicc_0_m1_rex64): Likewise.
3617         (*x86_movdicc_0_m1_se): Likewise.
3618         (x86_movsicc_0_m1): Likewise.
3619         (*x86_movsicc_0_m1_se): Likewise.
3620         (*adddi_1_rex64): Emit add insn as much as possible.
3621         (*addsi_1): Likewise.
3622         (return_internal): Set atom_unit.
3623         (return_internal_long): Likewise.
3624         (return_pop_internal): Likewise.
3625         (*rcpsf2_sse): Set atom_sse_attr attr.
3626         (*qrt<mode>2_sse): Likewise.
3627         (*prefetch_sse): Likewise.
3628
3629         * config/i386/i386-c.c (ix86_target_macros_internal): New case
3630         PROCESSOR_ATOM.
3631         (ix86_target_macros_internal): Likewise.
3632
3633         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
3634         (*prefetch_sse_rex): Likewise.
3635         (sse_rcpv4sf2): Likewise.
3636         (sse_vmrcpv4sf2): Likewise.
3637         (sse_sqrtv4sf2): Likewise.
3638         (<sse>_vmsqrt<mode>2): Likewise.
3639         (sse_ldmxcsr): Likewise.
3640         (sse_stmxcsr): Likewise.
3641         (*sse_sfence): Likewise.
3642         (sse2_clflush): Likewise.
3643         (*sse2_mfence): Likewise.
3644         (*sse2_lfence): Likewise.
3645         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
3646         (<sse>_movup<ssemodesuffixf2c>): Likewise.
3647         (avx_movdqu<avxmodesuffix>): Likewise.
3648         (avx_lddqu<avxmodesuffix>): Likewise.
3649         (sse2_movntv2di): Change attr "type" to "ssemov".
3650         (sse2_movntsi): Likewise.
3651         (rsqrtv8sf2): Change attr "type" to "sseadd".
3652         (sse3_addsubv2df3): Set attr "atom_unit".
3653         (sse3_h<plusminus_insn>v4sf3): Likewise.
3654         (*sse2_pmaddwd): Likewise.
3655         (*vec_extractv2di_1_rex64): Likewise.
3656         (*vec_extractv2di_1_avx): Likewise.
3657         (sse2_psadbw): Likewise.
3658         (ssse3_phaddwv8hi3): Likewise.
3659         (ssse3_phaddwv4hi3): Likewise.
3660         (ssse3_phadddv4si3): Likewise.
3661         (ssse3_phadddv2si3): Likewise.
3662         (ssse3_phaddswv8hi3): Likewise.
3663         (ssse3_phaddswv4hi3): Likewise.
3664         (ssse3_phsubwv8hi3): Likewise.
3665         (ssse3_phsubwv4hi3): Likewise.
3666         (ssse3_phsubdv4si3): Likewise.
3667         (ssse3_phsubdv2si3): Likewise.
3668         (ssse3_phsubswv8hi3): Likewise.
3669         (ssse3_phsubswv4hi3): Likewise.
3670         (ssse3_pmaddubsw128): Likewise.
3671         (sse3_pmaddubsw: Likewise.
3672         (ssse3_palignrti): Likewise.
3673         (ssse3_palignrdi): Likewise.
3674
3675 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
3676
3677         * doc/install.texi (Specific): Fix two cross-references to MinGW.
3678
3679 2009-04-06  Richard Guenther  <rguenther@suse.de>
3680
3681         PR tree-optimization/28868
3682         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
3683         of which PHI results we inserted.
3684         (insert_into_preds_of_block): Record inserted PHIs.
3685         (eliminate): Eliminate redundant PHI nodes.
3686         (init_pre): Init inserted_phi_names.
3687
3688 2009-04-06  Richard Guenther  <rguenther@suse.de>
3689
3690         PR tree-optimization/39643
3691         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
3692         IMAGPART_EXPRs of complex constants.
3693         (execute_fold_all_builtins): If we folded a call queue
3694         TODO_update_address_taken.
3695
3696 2009-04-06  Jan Hubicka  <jh@suse.cz>
3697
3698         PR middle-end/39659
3699         * except.c (remove_unreachable_regions): Propagate may_contain_throw
3700         flag.
3701
3702 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
3703
3704         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
3705         delay slot.
3706         (ic_invalidate_array): Likewise.
3707
3708 2009-04-06  Hariharan Sandanagobalane <hariharan@picochip.com>
3709
3710         * calls.c (emit_library_call_value_1): Fix a problem with parameter
3711         alignment for library calls.
3712
3713 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
3714
3715         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
3716         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
3717         * config/i386/mingw-stdint.h:  New file.
3718
3719 2009-04-05  Richard Guenther  <rguenther@suse.de>
3720
3721         PR tree-optimization/39648
3722         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
3723         our &A vs. &A[0] IL deficiencies.
3724
3725 2009-04-04  Jan Hubicka  <jh@suse.cz>
3726
3727         * except.c (sjlj_find_directly_reachable_regions): Be ready for
3728         removed toplevel regions.
3729         (sjlj_mark_call_sites): Likewise.
3730
3731 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
3732
3733         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
3734         (cygwin tm clause use_gcc_stdint):  Set to wrap.
3735         * config/i386/cygwin-stdint.h:  New file.
3736
3737 2009-04-04  Richard Guenther  <rguenther@suse.de>
3738
3739         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
3740         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
3741         single-argument PHIs if we are in loop-closed SSA form.
3742         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
3743         for the pre-condition.
3744         (slpeel_tree_peel_loop_to_edge): Likewise.
3745         (vect_build_loop_niters): Take an optional sequence to append stmts.
3746         (vect_generate_tmps_on_preheader): Likewise.
3747         (vect_do_peeling_for_loop_bound): Take extra guards for the
3748         pre-condition.
3749         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
3750         the cost model check.
3751         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
3752         guards if we are going to peel.  Do not apply versioning in that case.
3753         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
3754         (vect_do_peeling_for_loop_bound): Likewise.
3755         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
3756         loop bound only record extra pre-conditions, do not apply loop
3757         versioning.
3758
3759 2009-04-04  Richard Guenther  <rguenther@suse.de>
3760
3761         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
3762         renaming code.
3763
3764 2009-04-04  Jan Hubicka  <jh@suse.cz>
3765
3766         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
3767         last_basic_block for size of bb->index indexed array.
3768         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
3769         compute_out, link_btr_uses, build_btr_def_use_webs,
3770         build_btr_def_use_webs, migrate_btr_defs): Likewise.
3771
3772 2009-04-04  Jan Hubicka  <jh@suse.cz>
3773
3774         * except.c (remove_eh_handler_and_replace): Break out from ...
3775         (remove_eh_handler): ... here.
3776         (bring_to_root): New function.
3777         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
3778         handled ones, bring others to root of tree.
3779
3780 2009-04-04  Jan Hubicka  <jh@suse.cz>
3781
3782         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
3783         (all_phis_safe_to_merge): New function.
3784         (update_info): New structure.
3785         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
3786         (cleanup_empty_eh): Update SSA if possible.
3787
3788 2009-04-04  Richard Guenther  <rguenther@suse.de>
3789
3790         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
3791         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
3792         (append_vuse): Likewise.
3793
3794 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
3795
3796         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
3797         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
3798         instead of REG_UNSAVED for DW_CFA_undefined.
3799         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
3800         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
3801         outermost frame.
3802
3803 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
3804
3805         PR target/39501
3806         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
3807         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
3808         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
3809
3810 2009-04-04  Richard Guenther  <rguenther@suse.de>
3811
3812         PR tree-optimization/8781
3813         PR tree-optimization/37892
3814         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
3815         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
3816         (valueize_refs): Call it for *& valueizations.
3817         (shared_reference_ops_from_ref): Rename to ...
3818         (valueize_shared_reference_ops_from_ref): ... this and valueize.
3819         (shared_reference_ops_from_call): Rename to ...
3820         (valueize_shared_reference_ops_from_call): ... this and valueize.
3821         (vn_reference_lookup): Update.
3822         (visit_reference_op_call): Likewise.
3823         * tree-ssa-pre.c (phi_translate_1): Fold *&.
3824         (eliminate): Value-replace the call address in call statements.
3825
3826 2009-04-04  Richard Guenther  <rguenther@suse.de>
3827
3828         PR tree-optimization/39636
3829         * tree-ssa-forwprop.c
3830         (forward_propagate_addr_into_variable_array_index): Check for
3831         GIMPLE_ASSIGN before accessing the rhs code.
3832
3833 2009-04-03  Jason Merrill  <jason@redhat.com>
3834
3835         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
3836
3837 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
3838
3839         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
3840         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
3841         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
3842         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
3843         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
3844         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
3845         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
3846         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
3847         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
3848         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
3849         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
3850         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
3851         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
3852         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
3853         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
3854         Use fr_reg_or_fp01_operand instead of fr_register_operand
3855
3856         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
3857         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
3858         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
3859
3860 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
3861
3862         PR rtl-optimization/39607
3863         PR rtl-optimization/39631
3864
3865         Revert:
3866
3867         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3868         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
3869         instead of DF_LR_OUT.
3870         * ira-lives.c (process_bb_node_lives): Ditto.
3871         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
3872         instead of DF_LR_{OUT,IN}.
3873         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
3874         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
3875
3876 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
3877
3878         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
3879         (execute_lower_omp): Always run but take the short way out if -fopenmp
3880         is not given.
3881         (gate_lower_omp): Remove, forcing the pass manager to always run the
3882         pass and always set PROP_gimple_lomp.
3883         (pass_lower_omp): Remove gate function.
3884         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
3885         PROP_trees.  Instead, require it.
3886         * ipa-cp.c (pass_ipa_cp): Likewise.
3887         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
3888         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
3889         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
3890         and PROP_gimple_leh.
3891
3892 2009-04-03  Richard Guenther  <rguenther@suse.de>
3893
3894         PR middle-end/13146
3895         PR tree-optimization/23940
3896         PR tree-optimization/33237
3897         PR middle-end/33974
3898         PR middle-end/34093
3899         PR tree-optimization/36201
3900         PR tree-optimization/36230
3901         PR tree-optimization/38049
3902         PR tree-optimization/38207
3903         PR tree-optimization/38230
3904         PR tree-optimization/38301
3905         PR tree-optimization/38585
3906         PR middle-end/38895
3907         PR tree-optimization/38985
3908         PR tree-optimization/39299
3909         * tree-ssa-structalias.h: Remove.
3910         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
3911         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
3912         (struct vuse_element_d): Remove.
3913         (struct vuse_vec_d): Likewise.
3914         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
3915         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
3916         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
3917         VUSE_ELEMENT_VAR): Likewise.
3918         (struct voptype_d): Likewise.
3919         (NUM_VOP_FREE_BUCKETS): Likewise.
3920         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
3921         (struct stmt_operands_d): Remove.
3922         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
3923         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
3924         VDEF_NUM, VDEF_VECT): Likewise.
3925         (copy_virtual_operands): Remove.
3926         (operand_build_cmp): Likewise.
3927         (create_ssa_artificial_load_stmt): Likewise.
3928         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
3929         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
3930         vuse_index and mayuse_index members.  Pack and move done and iter_type
3931         members to the front.
3932         (SSA_OP_VMAYUSE): Remove.
3933         (SSA_OP_VIRTUAL_USES): Adjust.
3934         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
3935         (unlink_stmt_vdef): Declare.
3936         (add_to_addressable_set): Remove.
3937         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
3938         (vrp_visit_stmt): Likewise.
3939         * doc/tree-ssa.texi (Alias analysis): Update.
3940         * doc/invoke.texi (max-aliased-vops): Remove docs.
3941         (avg-aliased-vops): Likewise.
3942         * tree-into-ssa.c (syms_to_rename): Remove.
3943         (need_to_update_vops_p): Likewise.
3944         (need_to_initialize_update_ssa_p): Rename to ...
3945         (update_ssa_initialized_fn): ... this.  Track function we are
3946         initialized for.
3947         (symbol_marked_for_renaming): Simplify.
3948         (add_new_name_mapping): Do not set need_to_update_vops_p.
3949         (dump_currdefs): Use SYMS_TO_RENAME.
3950         (rewrite_update_stmt): Always walk all uses/defs.
3951         (dump_update_ssa): Adjust.
3952         (init_update_ssa): Take function argument.  Track what we are
3953         initialized for.
3954         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
3955         (create_new_def_for): Initialize for cfun, assert we are initialized
3956         for cfun.
3957         (mark_sym_for_renaming): Simplify.
3958         (mark_set_for_renaming): Do not initialize update-ssa.
3959         (need_ssa_update_p): Simplify.  Take function argument.
3960         (name_mappings_registered_p): Assert we ask for the correct function.
3961         (name_registered_for_update_p): Likewise.
3962         (ssa_names_to_replace): Likewise.
3963         (release_ssa_name_after_update_ssa): Likewise.
3964         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
3965         (dump_decl_set): Do not print a newline.
3966         (debug_decl_set): Do it here.
3967         (dump_update_ssa): And here.
3968         * tree-ssa-loop-im.c (move_computations): Adjust.
3969         (movement_possibility): Likewise.
3970         (determine_max_movement): Likewise.
3971         (gather_mem_refs_stmt): Likewise.
3972         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
3973         or NAME_MEMORY_TAG.
3974         * tree-complex.c (update_all_vops): Remove.
3975         (expand_complex_move): Adjust.
3976         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
3977         Simplify test for memory referencing statement.  Exclude
3978         non-invariant ADDR_EXPRs.
3979         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
3980         * tree-loop-distribution.c (generate_memset_zero): Adjust.
3981         (rdg_flag_uses): Likewise.
3982         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
3983         related code.
3984         (tree_optimize_tail_calls_1): Also split the
3985         edge from the entry block if we have degenerate PHI nodes in
3986         the first basic block.
3987         * tree.c (init_ttree): Remove memory-tag related code.
3988         (tree_code_size): Likewise.
3989         (tree_node_structure): Likewise.
3990         (build7_stat): Re-write to be build6_stat.
3991         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
3992         (SSA_VAR_P): Adjust.
3993         (struct tree_memory_tag): Remove.
3994         (struct tree_memory_partition_tag): Likewise.
3995         (union tree_node): Adjust.
3996         (build7): Re-write to be build6.
3997         * tree-pass.h (pass_reset_cc_flags): Remove.
3998         (TODO_update_address_taken): New flag.
3999         (pass_simple_dse): Remove.
4000         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
4001         * params.h (MAX_ALIASED_VOPS): Remove.
4002         (AVG_ALIASED_VOPS): Likewise.
4003         * omp-low.c (expand_omp_taskreg): Update SSA form.
4004         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
4005         aliases the lhs in a copy stmt.
4006         * tree-ssa-dse.c (struct address_walk_data): Remove.
4007         (memory_ssa_name_same): Likewise.
4008         (memory_address_same): Likewise.
4009         (get_kill_of_stmt_lhs): Likewise.
4010         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
4011         unused stores.  Look through PHI nodes into post-dominated regions.
4012         (dse_optimize_stmt): Simplify.  Properly remove stores.
4013         (tree_ssa_dse): Compute dominators.
4014         (execute_simple_dse): Remove.
4015         (pass_simple_dse): Likewise.
4016         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
4017         gimple_loaded_syms and gimple_stored_syms computation.
4018         * toplev.c (dump_memory_report): Dump alias and pta stats.
4019         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
4020         (vn_reference_eq): Likewise.
4021         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
4022         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
4023         valueize_vuses): Remove.
4024         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
4025         (get_def_ref_stmt_vuse): ... this.
4026         (vn_reference_lookup_2): New function.
4027         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
4028         walking equivalent vuses.  Simplify.
4029         (vn_reference_lookup): Likewise.
4030         (vn_reference_insert): Likewise.
4031         (vn_reference_insert_pieces): Likewise.
4032         (visit_reference_op_call): Simplify.
4033         (visit_reference_op_load): Likewise.
4034         (visit_reference_op_store): Likewise.
4035         (init_scc_vn): Remove shared_lookup_vuses initialization.
4036         (free_scc_vn): Remove shared_lookup_vuses freeing.
4037         (sort_vuses, sort_vuses_heap): Remove.
4038         (get_ref_from_reference_ops): Export.
4039         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
4040         vector with single vuse pointer.
4041         (vn_reference_lookup_pieces, vn_reference_lookup,
4042         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
4043         (shared_vuses_from_stmt): Remove.
4044         (get_ref_from_reference_ops): Declare.
4045         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
4046         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
4047         memory-tag related code.
4048         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
4049         (likely_value): Add comment, skip static-chain of call statements.
4050         (surely_varying_stmt_p): Adjust.
4051         (gimplify_and_update_call_from_tree): Likewise.
4052         (execute_fold_all_builtins): Do not rebuild alias info.
4053         (gimplify_and_update_call_from_tree): Properly update VOPs.
4054         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
4055         (copy_ref_info): Remove memory-tag related code.
4056         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
4057         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
4058         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
4059         computation.
4060         * tree-ssa-dom.c (gimple_p): Remove typedef.
4061         (eliminate_redundant_computations): Adjust.
4062         (record_equivalences_from_stmt): Likewise.
4063         (avail_expr_hash): Likewise.
4064         (avail_expr_eq): Likewise.
4065         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
4066         (stmt_makes_single_load): Likewise.
4067         (stmt_makes_single_store): Likewise.
4068         * tree-ssa-alias.c: Rewrite completely.
4069         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
4070         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
4071         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
4072         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
4073         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
4074         Remove public functions.
4075         (pass_reset_cc_flags): Remove.
4076         (pass_build_alias): Move ...
4077         * tree-ssa-structalias.c (pass_build_alias): ... here.
4078         * tree-ssa-alias.c (may_be_aliased): Move ...
4079         * tree-flow-inline.h (may_be_aliased): ... here.
4080         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
4081         count_uses_and_derefs): Move ...
4082         * gimple.c: ... here.
4083         * gimple.h (count_uses_and_derefs): Declare.
4084         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
4085         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
4086         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
4087         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
4088         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
4089         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
4090         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
4091         New functions.
4092         * tree-dfa.c (refs_may_alias_p): Move ...
4093         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
4094         * tree-ssa-alias.h: New file.
4095         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
4096         (statement_sink_location): Likewise.
4097         * opts.c (decode_options): Do not adjust max-aliased-vops or
4098         avg-aliased-vops values.
4099         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
4100         (TV_CALL_CLOBBER): Likewise.
4101         (TV_FLOW_SENSITIVE): Likewise.
4102         (TV_FLOW_INSENSITIVE): Likewise.
4103         (TV_MEMORY_PARTITIONING): Likewise.
4104         (TV_ALIAS_STMT_WALK): New timevar.
4105         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
4106         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
4107         (get_address_description): Remove memory-tag related code.
4108         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
4109         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
4110         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
4111         and immediate uses in statements.  Document.
4112         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
4113         (dump_symbols): Remove.
4114         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
4115         * alias.c (get_deref_alias_set): New function split out from ...
4116         (get_alias_set): ... here.
4117         * alias.h (get_deref_alias_set): Declare.
4118         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
4119         type parameter.  Remove restrict pointer handling.  Create a
4120         ref-all pointer in case type-based alias sets do not conflict.
4121         (vect_analyze_data_refs): Remove SMT related code.
4122         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
4123         (vectorizable_load): Likewise.
4124         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
4125         (DR_SYMBOL_TAG, DR_VOPS): Remove.
4126         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
4127         Ignore vops and SMTs.
4128         (dr_analyze_alias): Likewise..
4129         (free_data_ref): Likewise.
4130         (create_data_ref): Likewise.
4131         (analyze_all_data_dependences): Likewise.
4132         (get_references_in_stmt): Adjust.
4133         * tree-flow-inline.h (gimple_aliases_computed_p,
4134         gimple_addressable_vars, gimple_call_clobbered_vars,
4135         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
4136         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
4137         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
4138         gimple_mem_ref_stats): Remove.
4139         (gimple_vop): New function.
4140         (op_iter_next_use): Remove vuses and mayuses cases.
4141         (op_iter_next_def): Remove vdefs case.
4142         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
4143         (clear_and_done_ssa_iter): Do not set removed fields.
4144         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
4145         Assert we are not iterating over vuses or vdefs if not also
4146         iterating over uses or defs.
4147         (op_iter_init_use): Likewise.
4148         (op_iter_init_def): Likewise.
4149         (op_iter_next_vdef): Remove.
4150         (op_iter_next_mustdef): Likewise.
4151         (op_iter_init_vdef): Likewise.
4152         (compare_ssa_operands_equal): Likewise.
4153         (link_use_stmts_after): Handle vuse operand.
4154         (is_call_used): Use is_call_clobbered.
4155         (is_call_clobbered): Global variables are always call clobbered,
4156         query the call-clobbers bitmap.
4157         (mark_call_clobbered): Ignore global variables.
4158         (clear_call_clobbered): Likewise.
4159         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
4160         virtual operands sanity check.
4161         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
4162         Remove.
4163         (TARGET_MEM_REF): Remove TMR_TAG operand.
4164         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
4165         Remove call-clobber related code.
4166         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
4167         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
4168         partitions or escape reason.
4169         (get_single_def_stmt, get_single_def_stmt_from_phi,
4170         get_single_def_stmt_with_phi): Remove.
4171         (dump_referenced_vars): Tidy.
4172         (get_ref_base_and_extent): Allow bare decls.
4173         (collect_dfa_stats): Adjust.
4174         * graphite.c (rename_variables_in_stmt): Adjust.
4175         (graphite_copy_stmts_from_block): Likewise.
4176         (translate_clast): Likewise.
4177         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
4178         (EXPR_DIES): New.
4179         (translate_vuse_through_block): Use the oracle.
4180         (phi_translate_1): Adjust.
4181         (value_dies_in_block_x): Use the oracle.  Cache the outcome
4182         in EXPR_DIES.
4183         (valid_in_sets): Check if the VUSE for
4184         a REFERENCE is available.
4185         (eliminate): Do not remove stmts during elimination,
4186         instead queue and remove them afterwards.
4187         (do_pre): Do not rebuild alias info.
4188         (pass_pre): Run TODO_rebuild_alias before PRE.
4189         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
4190         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
4191         (mark_all_v_defs_stmt): Remove.
4192         (mark_all_v_defs_seq): Adjust.
4193         (sra_replace): Likewise.
4194         (scalarize_use): Likewise.
4195         (scalarize_copy): Likewise.
4196         (scalarize_init): Likewise.
4197         (scalarize_ldst): Likewise.
4198         (todoflags): Remove.
4199         (tree_sra): Do not rebuild alias info.
4200         (tree_sra_early): Adjust.
4201         (pass_sra): Run TODO_update_address_taken before SRA.
4202         * tree-predcom.c (set_alias_info): Remove.
4203         (prepare_initializers_chain): Do not call it.
4204         (mark_virtual_ops_for_renaming): Adjust.
4205         (mark_virtual_ops_for_renaming_list): Remove.
4206         (initialize_root_vars): Adjust.
4207         (initialize_root_vars_lm): Likewise.
4208         (prepare_initializers_chain): Likewise.
4209         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
4210         (may_propagate_copy_into_stmt): Likewise.
4211         (merge_alias_info): Do nothing for now.
4212         (propagate_tree_value_into_stmt): Adjust.
4213         (stmt_may_generate_copy): Likewise.
4214         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
4215         not mark symbols for renaming.
4216         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
4217         with the same statement, make sure to update the new pointed-to one.
4218         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
4219         call statements, do not mark symbols for renaming.
4220         (mark_operand_necessary): Dump something.
4221         (ref_may_be_aliased): New function.
4222         (mark_aliased_reaching_defs_necessary_1): New helper function.
4223         (mark_aliased_reaching_defs_necessary): Likewise.
4224         (mark_all_reaching_defs_necessary_1): Likewise.
4225         (mark_all_reaching_defs_necessary): Likewise.
4226         (propagate_necessity): Do not process virtual PHIs.  For
4227         non-aliased loads mark all reaching definitions as necessary.
4228         For aliased loads and stores mark the immediate dominating
4229         aliased clobbers as necessary.
4230         (visited): New global static.
4231         (perform_tree_ssa_dce): Free visited bitmap after propagating
4232         necessity.
4233         (remove_dead_phis): Perform simple dead virtual PHI removal.
4234         (remove_dead_stmt): Properly unlink virtual operands when
4235         removing stores.
4236         (eliminate_unnecessary_stmts): Schedule PHI removal after
4237         stmt removal.
4238         * tree-ssa-ter.c (is_replaceable_p): Adjust.
4239         (process_replaceable): Likewise.
4240         (find_replaceable_in_bb): Likewise.
4241         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
4242         based on the single gimple vop.
4243         (verify_flow_insensitive_alias_info): Remove.
4244         (verify_flow_sensitive_alias_info): Likewise.
4245         (verify_call_clobbering): Likewise.
4246         (verify_memory_partitions): Likewise.
4247         (verify_alias_info): Likewise.
4248         (verify_ssa): Adjust..
4249         (execute_update_addresses_taken): Export.  Update SSA
4250         manually.  Optimize only when optimizing.  Use a local bitmap.
4251         (pass_update_address_taken): Remove TODO_update_ssa, add
4252         TODO_dump_func.
4253         (pass_update_address_taken): Just use TODO_update_address_taken.
4254         (init_tree_ssa): Do not initialize addressable_vars.
4255         (verify_ssa): Verify new VUSE / VDEF properties.
4256         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
4257         Do not call verify_alias_info.
4258         (delete_tree_ssa): Clear the VUSE, VDEF operands.
4259         Do not free the loaded and stored syms bitmaps.  Reset the escaped
4260         and callused solutions.  Do not free addressable_vars.
4261         Remove memory-tag related code.
4262         (warn_uninitialized_var): Aliases are always available.
4263         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
4264         * lambda-code.c (can_put_in_inner_loop): Adjust.
4265         (can_put_after_inner_loop): Likewise.
4266         (perfect_nestify): Likewise.
4267         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
4268         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
4269         (vectorizable_conversion): Do not mark symbols for renaming.
4270         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
4271         (expand_call_inline): Unlink the calls virtual operands before
4272         replacing it.
4273         (tree_function_versioning): Do not call update_ssa if we are not
4274         updating clones.  Simplify.
4275         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
4276         (propagate_with_phi): Likewise..
4277         * tree-outof-ssa.c (create_temp): Remove memory tag and call
4278         clobber code.  Assert we are not aliased or global.
4279         * tree-flow.h: Include tree-ssa-alias.h
4280         (enum escape_type): Remove.
4281         (struct mem_sym_stats_d): Likewise.
4282         (struct mem_ref_stats_d): Likewise.
4283         (struct gimple_df): Add vop member.  Remove global_var,
4284         call_clobbered_vars, call_used_vars, addressable_vars,
4285         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
4286         escaped and callused members.
4287         (struct ptr_info_def): Remove all members, add points-to solution
4288         member pt.
4289         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
4290         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
4291         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
4292         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
4293         (tree-ssa-alias.o): Likewise.
4294         (toplev.o): Add tree-ssa-alias.h
4295         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
4296         * gimple.c (gimple_set_bb): Fix off-by-one error.
4297         (is_gimple_reg): Do not handle memory tags.
4298         (gimple_copy): Also copy virtual operands.
4299         Delay updating the statement.  Do not reset loaded and stored syms.
4300         (gimple_set_stored_syms): Remove.
4301         (gimple_set_loaded_syms): Likewise.
4302         (gimple_call_copy_skip_args): Copy the virtual operands
4303         and mark the new statement modified.
4304         * tree-ssa-structalias.c (may_alias_p): Remove.
4305         (set_uids_in_ptset): Take the alias set to prune with as
4306         parameter.  Fold in the alias test of may_alias_p.
4307         (compute_points_to_sets): Compute whether a ptr is dereferenced
4308         in a local sbitmap.
4309         (process_constraint): Deal with &ANYTHING on the lhs, reject all
4310         other ADDRESSOF constraints on the lhs.
4311         (get_constraint_for_component_ref): Assert that we don't get
4312         ADDRESSOF constraints from the base of the reference.
4313         Properly generate UNKNOWN_OFFSET for DEREF if needed.
4314         (struct variable_info): Remove collapsed_to member.
4315         (get_varinfo_fc): Remove.
4316         (new_var_info): Do not set collapsed_to.
4317         (dump_constraint): Do not follow cycles.
4318         (dump_constraint_graph): Likewise.
4319         (build_pred_graph): Likewise.
4320         (build_succ_graph): Likewise.
4321         (rewrite_constraints): Likewise.
4322         (do_simple_structure_copy): Remove.
4323         (do_rhs_deref_structure_copy): Remove.
4324         (do_lhs_deref_structure_copy): Remove.
4325         (collapse_rest_of_var): Remove.
4326         (do_structure_copy): Re-implement.
4327         (pta_stats): New global variable.
4328         (dump_pta_stats): New function.
4329         (struct constraint_expr): Make offset signed.
4330         (UNKNOWN_OFFSET): Define special value.
4331         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
4332         (solution_set_expand): New helper function split out from ...
4333         (do_sd_constraint): ... here.
4334         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
4335         (do_ds_constraint): Likewise.
4336         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
4337         and CALLUSED = *CALLUSED.
4338         (set_union_with_increment): Make inc argument signed.
4339         (type_safe): Remove.
4340         (get_constraint_for_ptr_offset): Handle unknown and negative
4341         constant offsets.
4342         (first_vi_for_offset): Handle offsets before start.  Bail
4343         out early for offsets beyond the variable extent.
4344         (first_or_preceding_vi_for_offset): New function.
4345         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
4346         Together with ESCAPED = *ESCAPED this properly computes reachability.
4347         (find_what_var_points_to): New function.
4348         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
4349         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
4350         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
4351         pt_solutions_intersect): New functions.
4352         (compute_call_used_vars): Remove.
4353         (compute_may_aliases): New main entry into PTA computation.
4354         * gimple.h (gimple_p): New typedef.
4355         (struct gimple_statement_base): Remove references_memory_p.
4356         (struct gimple_statement_with_memory_ops_base): Remove
4357         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
4358         members.
4359         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
4360         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
4361         gimple_set_references_memory): Remove.
4362         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
4363         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
4364         New functions.
4365         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
4366         (verify_expr): Allow RESULT_DECL.
4367         (gimple_duplicate_bb): Do not copy virtual operands.
4368         (gimple_duplicate_sese_region): Adjust.
4369         (gimple_duplicate_sese_tail): Likewise.
4370         (mark_virtual_ops_in_region): Remove.
4371         (move_sese_region_to_fn): Do not call it.
4372         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
4373         and pass_simple_dse.
4374         (execute_function_todo): Handle TODO_update_address_taken,
4375         call execute_update_addresses_taken for TODO_rebuild_alias.
4376         (execute_todo): Adjust.
4377         (execute_one_pass): Init dump files early.
4378         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
4379         call-clobbered.
4380         (create_general_new_stmt): Clear vops.
4381         * tree-ssa-reassoc.c (get_rank): Adjust.
4382         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
4383         symbols for renaming.
4384         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
4385         (PARAM_AVG_ALIASED_VOPS): Likewise.
4386         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
4387         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
4388         * tree-ssa-operands.c: Simplify for new virtual operand representation.
4389         (operand_build_cmp, copy_virtual_operands,
4390         create_ssa_artificial_load_stmt, add_to_addressable_set,
4391         gimple_add_to_addresses_taken): Remove public functions.
4392         (unlink_stmt_vdef): New function.
4393
4394 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
4395
4396         * config.gcc (powerpc-*-linux*): Merge variants.
4397
4398 2009-04-02  Chao-ying Fu  <fu@mips.com>
4399             James Grosbach <james.grosbach@microchip.com>
4400
4401         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
4402         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
4403         cop0_sp_offset.
4404         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
4405         keep_interrupts_masked_p, use_debug_exception_return_p.
4406         (mips_attribute_table): Add interrupt, use_shadow_register_set,
4407         keep_interrupts_masked, use_debug_exception_return.
4408         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
4409         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
4410         New functions.
4411         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
4412         (mips_print_operand): Process COP0 registers to print $0 .. $31
4413         correctly for GAS to process.
4414         (mips_interrupt_extra_call_saved_reg_p): New function.
4415         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
4416         extra registers.
4417         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
4418         (mips_compute_frame_info): Add supports for interrupt context that
4419         includes doubleword accumulators and COP0 registers.
4420         (mips_for_each_saved_acc): New function.
4421         (mips_for_each_saved_gpr_and_fpr): Change the function name from
4422         mips_for_each_saved_reg.
4423         (mips_save_reg): Save accumulators.
4424         (mips_kernel_reg_p): A new for_each_rtx callback.
4425         (mips_expand_prologue): Support interrupt handlers.
4426         (mips_restore_reg): Restore accumulators.
4427         (mips_expand_epilogue): Support interrupt handlers.
4428         (mips_can_use_return_insn): Return false for interrupt handlers.
4429         (mips_epilogue_uses): New function.
4430         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
4431         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
4432         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
4433         cop0_move): New instructions.
4434         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
4435         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
4436         defines.
4437         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
4438         New defines.
4439         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
4440         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
4441         interrupt handlers, we use K0 as the temporary register.
4442         (EPILOGUE_USES): Change to a function call.
4443         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
4444         handlers, we use K0 as the temporary register.
4445
4446         * doc/extend.texi (Function Attributes): Document interrupt,
4447         use_shadow_register_set, keep_interrupts_masked,
4448         use_debug_exception_return for MIPS attributes.
4449
4450 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
4451
4452         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
4453         Remove a number of t-files from tmake_file.
4454         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
4455         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
4456         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
4457         target_prototype, not TARGET_PROTOTYPE.
4458         (LINK_OS_GNU_SPEC): Define.
4459         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
4460         and darwin-ldoubdle.c.
4461
4462 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4463
4464         PR driver/39293
4465         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
4466         (cpp_options): Ditto.
4467         (default_compilers): Ditto.
4468         (display_help): Ditto.
4469         (process_command): Ditto.
4470         (do_spec_1): Ditto.
4471         (set_input): Use lbasename instead of duplicate code.
4472         (save_temps_prefix): New static for -save-temps=obj.
4473         (save_temps_length): Ditto.
4474
4475         * doc/invoke.texi (-save-temps=obj): Document new variant to
4476         -save-temps switch.
4477
4478 2009-04-02  Jeff Law  <law@redhat.com>
4479
4480         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
4481         variable.
4482
4483 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
4484
4485         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
4486         * configure: Regenerated.
4487
4488 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
4489
4490         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
4491         share the argument list.
4492
4493 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
4494
4495         Merge
4496
4497         2009-02-12  Diego Novillo  <dnovillo@google.com>
4498
4499         * varpool.c (debug_varpool): New.
4500         * cgraph.h (debug_varpool): Declare.
4501
4502 2009-04-02  Jan Hubicka  <jh@suse.cz>
4503
4504         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
4505         pass.
4506
4507 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
4508
4509         * config/i386/i386.c (ix86_abi): Move initialization to ...
4510         (override_options): Here.
4511
4512 2009-04-02  Christian Bruel  <christian.bruel@st.com>
4513
4514         * config/sh/sh.c (sh_dwarf_register_span): New function.
4515         (TARGET_DWARF_REGISTER_SPAN): Define.
4516         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
4517
4518 2009-04-02  Ira Rosen  <irar@il.ibm.com>
4519
4520         PR tree-optimization/39595
4521         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
4522         interleaved loads group is not  greater than the SLP group size.
4523
4524 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
4525
4526         * builtins.c (is_builtin_name): New.
4527         (called_as_built_in): Use is_builtin_name.
4528         * tree.h (is_builtin_name): New.
4529         * varasm.c (incorporeal_function_p): Use is_builtin_name
4530
4531 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
4532
4533         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
4534
4535 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
4536
4537         PR c++/26693
4538         * c-decl.c (clone_underlying_type): Move this ...
4539         * c-common.c (set_underlying_type): ... here.
4540         Also, make sure the function properly sets TYPE_STUB_DECL() on
4541         the newly created typedef variant type.
4542         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
4543         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
4544         points.
4545
4546 2009-04-02  Richard Guenther  <rguenther@suse.de>
4547
4548         PR tree-optimization/37221
4549         * tree-flow.h (degenerate_phi_result): Declare.
4550         * tree-ssa-dom.c (degenerate_phi_result): Export.
4551         * tree-scalar-evolution.c (analyze_initial_condition): If
4552         the initial condition is defined by a degenerate PHI node
4553         use the degenerate value.
4554
4555 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
4556
4557         PR rtl-optimization/39588
4558         * combine.c (merge_outer_ops): Do not set the constant when this
4559         is not necessary.
4560         (simplify_shift_const_1): Do not modify it either in this case.
4561
4562 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
4563
4564         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
4565         tuning is deprecated if -mtune value is set to an Itanium1 variant.
4566
4567 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
4568
4569         PR c/29027
4570         * c-lex.c (interpret_float): Default (no suffix) is double.
4571
4572 2009-04-1  Xinliang David Li  <davidxl@google.com>
4573
4574         * config/i386/i386.c (legitimate_constant_p): Recognize
4575         all one vector constant.
4576
4577 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
4578
4579         * gcc/config/vax/vax.c: Add #includes to silence warnings.
4580         Change #include order to silence two warnings.
4581
4582 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
4583
4584         * gcc/config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
4585         (ASM_SPEC): Pass -k to the assembler for PIC code.
4586
4587 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
4588
4589         * gcc/config.gcc: Add vax-*-linux* to the switch.
4590         * gcc/config/vax/linux.h: New file. (TARGET_VERSION,
4591         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
4592
4593 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
4594
4595         * gcc/config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
4596         Use predicate macros instead of GET_CODE() == foo.
4597         * gcc/config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
4598         ashlsi3, rotrsi3, <unnamed>): Likewise.
4599
4600 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
4601
4602         * gcc/config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
4603         jbbccihi, jbbccisi): Remova trailing whitespace.
4604         * gcc/config/vax/constraints.md: Likewise.
4605         * gcc/config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
4606         * gcc/config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
4607         * gcc/config/vax/predicates.md: Likewise.
4608         * gcc/config/vax/vax.c (print_operand_address, vax_output_int_move,
4609         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
4610         * gcc/config/vax/vax.h: Likewise.
4611         * gcc/config/vax/vax.md (nonlocal_goto): Likewise.
4612
4613 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
4614
4615         * gcc/config/vax/vax.c (vax_float_literal, vax_output_int_move)
4616         (indirectable_address_p, adjacent_operands_p): Add spaces around
4617         braces.
4618         * gcc/config/vax/vax-protos.h (adjacent_operands_p): Likewise.
4619
4620 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
4621
4622         * gcc/config/vax/vax.c (legitimate_constant_address_p,
4623         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
4624         index_term_p, reg_plus_index_p, legitimate_address_p,
4625         vax_mode_dependent_address_p): Update comments to match functions
4626         modified by the recent int->bool conversion.
4627
4628 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
4629
4630         * gcc/config/vax/builtins.md: Update copyright message.
4631         * gcc/config/vax/constraints.md: Likewise.
4632         * gcc/config/vax/netbsd-elf.h: Likewise.
4633         * gcc/config/vax/predicates.md: Likewise.
4634         * gcc/config/vax/vax-protos.h: Likewise.
4635         * gcc/config/vax/vax.c: Likewise.
4636         * gcc/config/vax/vax.h: Likewise.
4637         * gcc/config/vax/vax.md: Likewise.
4638         * gcc/config/vax/vax.opt: Likewise.
4639
4640 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
4641
4642         * gcc/config/vax/builtins.md (ffssi2, ffssi2_internal,
4643         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
4644         * gcc/config/vax/constraints.md (B, R): Likewise.
4645         * gcc/config/vax/predicates.md (external_memory_operand,
4646         nonimmediate_addsub_di_operand): Likewise.
4647         * gcc/config/vax/vax.c (vax_output_int_add): Likewise.
4648         * gcc/config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
4649         untyped_call): Likewise.
4650
4651 2009-04-01  Matt Thomas <matt@3am-software.com>
4652
4653         * config/vax/predicates.md: New file.
4654         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
4655         external_const_operand, nonsymbolic_operand, external_memory_operand,
4656         indirect_memory_operand, indexed_memory_operand,
4657         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
4658         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
4659         predicate.
4660         * config/vax/constraints.md: New file.
4661         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
4662         New constraint.
4663         * config/vax/builtins.md: New file.
4664         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
4665         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
4666         jbbccisi): Define.
4667         * config/vax/vax.opt (mqmath): Add option.
4668         * config/vax/vax.md (isfx): Extend with DI.
4669         (VAXintQH, VAXintQHSD): Define.
4670         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
4671         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
4672         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
4673         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
4674         (movdi): Update constraints and use vax_output_int_move().
4675         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
4676         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
4677         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
4678         nonlocal_goto): New.
4679         (mov<mode>): Extend accepted operand types.
4680         (subdi3_old): Rename from subdi3, change update constraints and use
4681         a new implementation.
4682         * gcc/config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
4683         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
4684         MOVE_RATIO, CLEAR_RATIO): Define.
4685         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
4686         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
4687         (PRINT_OPERAND): Redefine using a function instead of inlined code.
4688         * gcc/config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
4689         (split_quadword_operands): Make static and really allow variable
4690         splitting.
4691         (print_operand_address): Update for PIC generation.
4692         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
4693         indexable_address_p, fixup_mathdi_operand,
4694         vax_expand_addsub_di_operands, adjacent_operands_p): New.
4695         (vax_float_literal, legitimate_constant_p,
4696         indirectable_constant_address_p, index_term_p,
4697         reg_plus_index_p): Return bool instead of int.
4698         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
4699         where needed.
4700         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
4701         generation.
4702         (vax_output_conditional_branch): Indent.
4703         (legitimate_constant_address_p, indirectable_constant_address_p,
4704         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
4705         vax_mode_dependent_address_p): Return bool instead of int, update for
4706         PIC generation.
4707         * config/vax/vax-protos.h (legitimate_constant_address_p,
4708         legitimate_constant_p, legitimate_address_p,
4709         vax_mode_dependent_address_p): Change declaration to bool.
4710         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
4711         vax_expand_addsub_di_operands, vax_output_int_subtract,
4712         vax_output_movmemsi): Declare.
4713         (split_quadword_operands, vax_float_literal): Delete declaration.
4714         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
4715         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
4716         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
4717         ASM_OUTPUT_DWARF_PCREL): Define.
4718         (ASM_SPEC): Change definition to allow PIC generation.
4719
4720 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
4721
4722         * doc/sourcebuild.texi: Update front-end requirements.
4723
4724 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
4725
4726         PR target/39226
4727         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
4728         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
4729         (booldi3_internal3): Use boolean_or_operator instead of
4730         boolean_operator.
4731
4732 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
4733
4734         PR c/39605
4735         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
4736         declarator whose size is not an integer constant expression but
4737         folds to an integer constant, then treat it as a constant
4738         subsequently.
4739
4740 2009-04-01  Richard Guenther  <rguenther@suse.de>
4741
4742         * fold-const.c (fold_plusminus_mult_expr): Do not fold
4743         i * 4 + 2 to (i * 2 + 1) * 2.
4744
4745 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
4746
4747         PR c/37772
4748         * c-parser.c (c_parser_asm_statement): Skip until close paren and
4749         return if c_parser_asm_string_literal returned NULL.
4750
4751 2009-04-01  Nick Clifton  <nickc@redhat.com>
4752
4753         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
4754         already defined.
4755         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
4756         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
4757         other typedefs to avoid conflicts with libgcc2.c.  Define labels
4758         to gain 16-bit bit-manipulation functions from libgcc2.c and then
4759         include it.
4760         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
4761         to gain 16-bit trapping arithmetic functions from libgcc2.c and
4762         then include it.
4763
4764 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
4765
4766         * varasm.c (default_function_rodata_section): Declare DOT as
4767         const char*.
4768
4769 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
4770             Andrey Galkin <agalkin@hypercom.com>
4771
4772         PR/39492
4773         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
4774         Make object_name unique for each process.
4775
4776 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
4777
4778         PR other/39591
4779         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
4780         addressable variables in the parallel that could go out of scope while
4781         running queued tasks.
4782
4783 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
4784
4785         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
4786         (CASE_VALUES_THRESHOLD): Redefine.
4787         * config/avr/avr.c (avr_override_options): Remove initialization of
4788         avr_case_values_threshold variable.
4789         (avr_case_values_threshold): Remove variable. Add new function.
4790         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
4791         * config/avr/avr.opt (mno-tablejump): Remove option.
4792         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
4793
4794 2009-04-01  DJ Delorie  <dj@redhat.com>
4795
4796         * varasm.c (default_function_rodata_section): Don't assume
4797         anything about where the first '.' in the section name is.
4798
4799 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
4800
4801         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
4802         rs6000_emit_stack_tie.
4803
4804 2009-03-31  Ian Lance Taylor  <iant@google.com>
4805
4806         * tree-eh.c (tree_remove_unreachable_handlers): Compare
4807         gimple_code with GIMPLE_RESX, not RESX.
4808
4809 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
4810
4811         * c-common.c (c_get_ident): New.
4812         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
4813
4814 2009-04-01  Ben Elliston  <bje@au.ibm.com>
4815
4816         * config/rs6000/sysv4.opt (msdata): Improve option description.
4817
4818 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
4819
4820         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
4821         (divdf3_internal_lat): Remove.
4822         (divxf3_internal_lat): Remove.
4823         (divxf3_internal_thr): Remove.
4824         (divxf): Use divxf3_internal.
4825         * config/ia64/div.md (divsf3_internal_lat): New.
4826         (divdf3_internal_lat): New.
4827         (divxf3_internal): New.
4828
4829 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
4830
4831         PR c/448
4832         * Makefile.in (USE_GCC_STDINT): Define.
4833         (stmp-int-hdrs): Install stdint.h if applicable.
4834         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
4835         if known.
4836         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
4837         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
4838         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
4839         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
4840         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
4841         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
4842         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
4843         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
4844         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
4845         (c_common_nodes_and_builtins): Initialize
4846         underlying_wchar_type_node.  Do not initialize
4847         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
4848         nodes for new types.
4849         (c_stddef_cpp_builtins): Define macros for new types.
4850         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
4851         Remove.
4852         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
4853         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
4854         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
4855         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
4856         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
4857         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
4858         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
4859         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
4860         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
4861         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
4862         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
4863         int16_type_node, int32_type_node, int64_type_node,
4864         uint8_type_node, uint16_type_node, c_uint32_type_node,
4865         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
4866         int_least32_type_node, int_least64_type_node,
4867         uint_least8_type_node, uint_least16_type_node,
4868         uint_least32_type_node, uint_least64_type_node,
4869         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
4870         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
4871         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
4872         uintptr_type_node): Define.
4873         * c-cppbuiltin.c (builtin_define_constants,
4874         builtin_define_type_minmax): New.
4875         (builtin_define_stdint_macros): Define more macros.
4876         (c_cpp_builtins): Define more limit macros.
4877         (type_suffix): New.
4878         (builtin_define_type_max): Define in terms of
4879         builtin_define_type_minmax.  Remove is_long parameter.  All
4880         callers changed.
4881         * config.gcc (use_gcc_stdint): Define.
4882         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
4883         Add newlib-stdint.h for generic targets.
4884         * config/glibc-stdint.h, config/newlib-stdint.h,
4885         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
4886         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
4887         * config/score/score.h (UINTPTR_TYPE): Define.
4888         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
4889         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
4890         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
4891         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
4892         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
4893         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
4894         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
4895         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
4896         * config/spu/spu.h (STDINT_LONG32): Define.
4897         * configure.ac (use_gcc_stdint): Substitute.
4898         * configure: Regenerate.
4899         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
4900         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
4901         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
4902         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
4903         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
4904         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
4905         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
4906         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
4907         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
4908         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
4909         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
4910         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
4911         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
4912         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
4913         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
4914         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
4915         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
4916         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
4917         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
4918         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
4919         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
4920         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
4921         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
4922         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
4923         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
4924         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
4925         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
4926         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
4927         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
4928
4929 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
4930
4931         * loop-iv.c (suitable_set_for_replacement): Renamed from
4932         simplify_using_assignment; changed to return bool and to accept new
4933         args DEST and SRC.  Return true iff we find a source/destination pair
4934         that can be used to make a replacement, and fill SRC and DEST if so.
4935         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
4936         changed.
4937         (simplify_using_initial_values): Deal with altered regs here and track
4938         more precisely the effect they have on the validity of our expression.
4939
4940         * loop-iv.c (simplify_using_condition): A condition of the form
4941         (EQ REG CONST) can be used to simply make a substitution.
4942         (simplify_using_initial_values): Keep track of conditions we have seen
4943         and keep using them to simplify new expressions, while applying the
4944         same substitutions to them as to the expression.
4945
4946         * simplify-rtx.c (simplify_relational_operation_1): Simplify
4947         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
4948         GEU/LTU reversed.
4949
4950         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
4951         changed.  Use this when trying to improve the upper bound.
4952         Generate the comparison by using simplify_gen_relational.
4953
4954         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
4955
4956         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
4957         functions.
4958         (simplify_using_assignment, simplify_using_initial_values): Call
4959         replace_in_expr to make replacements.  Call replace_single_def_regs
4960         once on the initial version of the expression.
4961
4962 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4963
4964         PR target/27237
4965         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
4966
4967 2009-03-31  Richard Guenther  <rguenther@suse.de>
4968
4969         PR middle-end/31029
4970         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
4971         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
4972
4973 2009-03-31  Richard Guenther  <rguenther@suse.de>
4974
4975         * tree.h (div_if_zero_remainder): Declare.
4976         * fold-const.c (div_if_zero_remainder): Export.
4977         * tree-ssa-forwprop.c
4978         (forward_propagate_addr_into_variable_array_index): Handle
4979         constant array index addition outside of the variable index.
4980
4981 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
4982
4983         PR target/39592
4984         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
4985         define_splits, floatunssi<mode>2): Require x87 conversions from
4986         DImode to be permitted.
4987
4988 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
4989
4990         PR preprocessor/15638
4991         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
4992
4993 2009-03-31  Richard Guenther  <rguenther@suse.de>
4994
4995         PR middle-end/23401
4996         PR middle-end/27810
4997         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
4998         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
4999         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
5000         a separate statement.
5001         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
5002         (lookup_tmp_var): Likewise.
5003         (is_gimple_formal_tmp_or_call_rhs): Remove.
5004         (is_gimple_reg_or_call_rhs): Rename to ...
5005         (is_gimple_reg_rhs_or_call): ... this.
5006         (is_gimple_mem_or_call_rhs): Rename to ...
5007         (is_gimple_mem_rhs_or_call): ... this.
5008         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
5009         DECL_GIMPLE_REG_P only if is_formal is true.
5010         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
5011         for non-proper post-modify expression gimplification.
5012         (gimplify_self_mod_expr): For post-modify expressions gimplify
5013         the lvalue to a minimal lvalue.
5014         (rhs_predicate_for): Remove formal temp case.
5015         (gimplify_modify_expr_rhs): Likewise.
5016         (gimplify_addr_expr): Use is_gimple_reg.
5017         (gimplify_expr): Remove formal temp cases.
5018         (gimple_regimplify_operands): Likewise.
5019         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
5020         and FILTER_EXPR like constants.
5021         * gimple.c (walk_gimple_op): Fix val_only initialization, use
5022         is_gimple_reg.
5023         (is_gimple_formal_tmp_rhs): Remove.
5024         (is_gimple_reg_rhs): Remove special casing.
5025         (is_gimple_mem_rhs): Fix.
5026         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
5027         (is_gimple_formal_tmp_var): Remove.
5028         (is_gimple_formal_tmp_reg): Likewise.
5029         (is_gimple_min_lval): Allow invariant component ref parts.
5030         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
5031         is_gimple_formal_tmp_reg): Remove declarations.
5032         * tree-cfg.c (verify_expr): Verify that variables with address
5033         taken do not have DECL_GIMPLE_REG_P set.
5034         * tree-mudflap.c (mf_build_check_statement_for): Use
5035         force_gimple_operand instead of gimplify_expr.
5036
5037 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
5038
5039         * modulo-sched.c (sms_schedule_by_order): Pass the actual
5040         schedulable rows to compute_split_row.
5041
5042 2009-03-31  Ben Elliston  <bje@au.ibm.com>
5043
5044         PR target/31635
5045         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
5046         OPT_mvrsave.
5047
5048 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
5049
5050         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
5051         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
5052         * configure: Regenerate.
5053         * config.in: Regenerate.
5054         * config/rs6000/rs6000.opt (mtls-markers): Add.
5055         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
5056         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
5057         (tls_ld_aix, tls_ld_sysv): Likewise.
5058         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
5059         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
5060
5061 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
5062
5063         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
5064
5065 2009-03-30  Jan Hubicka  <jh@suse.cz>
5066
5067         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
5068         out of RESX.
5069         (tree_remove_unreachable_handlers): Cleanup EH predecestor
5070         detection and label handling.
5071
5072 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
5073
5074         * ira-int.h (ira_allocno): Rename left_conflicts_num to
5075         left_conflicts_size.
5076         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
5077         ALLOCNO_LEFT_CONFLICTS_SIZE.
5078
5079         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
5080         remove_allocno_from_bucket_and_push,
5081         allocno_spill_priority_compare, push_allocnos_to_stack,
5082         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
5083         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
5084         (setup_allocno_left_conflicts_num): Ditto.  Rename to
5085         setup_allocno_left_conflicts_size.
5086         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
5087         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
5088         setup_allocno_left_conflicts_size instead of
5089         setup_allocno_left_conflicts_num.
5090
5091         * ira-build.c (ira_create_allocno): Use
5092         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
5093         ALLOCNO_LEFT_CONFLICTS_NUM.
5094
5095 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
5096
5097         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
5098         instead of DF_LR_OUT.
5099
5100         * ira-lives.c (process_bb_node_lives): Ditto.
5101
5102         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
5103         instead of DF_LR_{OUT,IN}.
5104
5105         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
5106
5107         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
5108
5109 2009-03-30  Jan Hubicka  <jh@suse.cz>
5110
5111         * except.c (label_to_region_map): Fix thinko.
5112
5113 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
5114
5115         PR middle-end/38237
5116         * tree.h (tree_find_value): New declaration.
5117         * tree.c (tree_find_value): New function.
5118         * varasm.c (assemble_external): Avoid duplicate entries on lists.
5119
5120 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
5121
5122         PR debug/39563
5123         * c-decl.c (struct c_binding): Add locus field.
5124         (bind): Add locus argument, set locus field from it.
5125         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
5126         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
5127         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
5128         implicitly_declare, undeclared_variable, lookup_label,
5129         declare_label, c_make_fname_decl, c_builtin_function,
5130         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
5131         bind callers.
5132
5133 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
5134
5135         PR target/38781
5136         * config/i386/i386.c (classify_argument): Check total size of
5137         structure.
5138
5139 2009-03-30  Martin Jambor  <mjambor@suse.cz>
5140
5141         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
5142         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
5143         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
5144         respectively.
5145
5146         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
5147         seen_variable_array_ref while also traversing a union.
5148
5149         * tree-inline.c (optimize_inline_calls): Do not call
5150         cgraph_node_remove_callees.
5151         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
5152         (pass_remove_cgraph_callee_edges): New variable.
5153         * passes.c (init_optimization_passes): Add
5154         pass_remove_cgraph_callee_edges after early inlining and before all
5155         late intraprocedural passes.
5156
5157         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
5158
5159 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
5160
5161         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
5162         Fix typos in names.
5163
5164 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
5165
5166         * combine.c (simplify_comparison): Use have_insn_for.
5167         * dojump.c (do_jump): Likewise.
5168
5169 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
5170
5171         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
5172         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
5173         sparc_compare_op0 like sparc_compare_emitted used to be handled.
5174         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
5175         instead of sparc_compare_emitted.
5176         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
5177         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
5178         instead of sparc_compare_emitted.
5179
5180 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
5181
5182         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
5183         enter/exit cfglayout mode.
5184         (pass_partition_block): Require it.
5185         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
5186         (combine_instructions): Track basic blocks instead of labels.
5187         (update_cfg_for_uncondjump): New.
5188         (try_combine): Use it.  Update jumps after rescanning.
5189         (pass_combine): Require PROP_cfglayout.
5190         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
5191
5192 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
5193
5194         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
5195         Provide/destroy PROP_cfglayout respectively.
5196         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
5197         * tree-pass.h (PROP_cfglayout): New.
5198
5199 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
5200
5201         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
5202         fold_convert_const_fixed_from_fixed,
5203         fold_convert_const_fixed_from_int,
5204         fold_convert_const_fixed_from_real, fold_negate_const): Do not
5205         set TREE_CONSTANT_OVERFLOW.
5206         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
5207         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
5208
5209 2009-03-30  Ira Rosen  <irar@il.ibm.com>
5210
5211         * tree-vect-loop-manip.c: New file.
5212         * tree-vectorizer.c: Update documentation and included files.
5213         (vect_loop_location): Make extern.
5214         (rename_use_op): Move to tree-vect-loop-manip.c
5215         (rename_variables_in_bb, rename_variables_in_loop,
5216         slpeel_update_phis_for_duplicate_loop,
5217         slpeel_update_phi_nodes_for_guard1,
5218         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
5219         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
5220         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
5221         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
5222         find_loop_location): Likewise.
5223         (new_stmt_vec_info): Move to tree-vect-stmts.c.
5224         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
5225         get_vectype_for_scalar_type, vect_is_simple_use,
5226         supportable_widening_operation, supportable_narrowing_operation):
5227         Likewise.
5228         (bb_in_loop_p): Move to tree-vect-loop.c.
5229         (new_loop_vec_info, destroy_loop_vec_info,
5230         reduction_code_for_scalar_code, report_vect_op,
5231         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
5232         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
5233         (vect_supportable_dr_alignment): Likewise.
5234         * tree-vectorizer.h (tree-data-ref.h): Include.
5235         (vect_loop_location): Declare.
5236         Reorganize function declarations according to the new file structure.
5237         * tree-vect-loop.c: New file.
5238         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
5239         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
5240         * tree-vect-data-refs.c: New file.
5241         * tree-vect-patterns.c (timevar.h): Don't include.
5242         * tree-vect-stmts.c: New file.
5243         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
5244         tree-vect-slp.c, tree-vect-loop.c.
5245         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
5246         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
5247         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
5248         (tree-vect-analyze.o): Remove.
5249         (tree-vect-transform.o): Likewise.
5250         (tree-vect-data-refs.o): Add rule.
5251         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
5252         tree-vect-slp.o): Likewise.
5253         (tree-vect-patterns.o): Remove redundant dependencies.
5254         (tree-vectorizer.o): Likewise.
5255         * tree-vect-slp.c: New file.
5256
5257 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5258
5259         * optc-gen.awk: Warn if an option flag has multiple different
5260         help strings.
5261
5262 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
5263
5264         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
5265         -floop-block): Document dependences on PPL, CLooG and Graphite.
5266
5267 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
5268
5269         PR rtl-optimization/323
5270         * c-common.c (c_fully_fold, convert_and_check,
5271         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
5272         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
5273         * c-common.def (EXCESS_PRECISION_EXPR): New.
5274         * c-cppbuiltin.c (builtin_define_float_constants): Define
5275         constants with enough digits for long double.
5276         * c-lex.c (interpret_float): Interpret constant with excess
5277         precision where appropriate.
5278         * c-opts.c (c_common_post_options): Set
5279         flag_excess_precision_cmdline.  Give an error for
5280         -fexcess-precision=standard for C++ for processors where the
5281         option is significant.
5282         * c-parser.c (c_parser_conditional_expression): Handle excess
5283         precision in condition.
5284         * c-typeck.c (convert_arguments): Handle arguments with excess
5285         precision.
5286         (build_unary_op): Move excess precision outside operation.
5287         (build_conditional_expr): Likewise.
5288         (build_compound_expr): Likewise.
5289         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
5290         (build_modify_expr): Handle excess precision in RHS.
5291         (convert_for_assignment): Handle excess precision in converted
5292         value.
5293         (digest_init, output_init_element, process_init_element): Handle
5294         excess precision in initializer.
5295         (c_finish_return): Handle excess precision in return value.
5296         (build_binary_op): Handle excess precision in operands and add
5297         excess precision as needed for operation.
5298         * common.opt (-fexcess-precision=): New option.
5299         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
5300         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5301         For standard excess precision, output explicit conversion to and
5302         truncation from XFmode.
5303         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
5304         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
5305         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
5306         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
5307         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
5308         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
5309         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
5310         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
5311         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
5312         define_splits, sqrt<mode>2): Disable where appropriate for
5313         standard excess precision.
5314         * convert.c (convert_to_real): Do not shorten arithmetic to type
5315         for which excess precision would be used.
5316         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
5317         * doc/invoke.texi (-fexcess-precision=): Document option.
5318         (-mfpmath=): Correct index entry.
5319         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
5320         flag_excess_precision): New.
5321         * langhooks.c (lhd_post_options): Set
5322         flag_excess_precision_cmdline.
5323         * opts.c (common_handle_option): Handle -fexcess-precision=.
5324         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
5325         init_excess_precision): New.
5326         (lang_dependent_init_target): Call init_excess_precision.
5327         * tree.c (excess_precision_type): New.
5328         * tree.h (excess_precision_type): Declare.
5329
5330 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
5331
5332         PR c/35235
5333         * c-typeck.c (build_component_ref): Do not copy qualifiers from
5334         non-lvalue to component.
5335
5336 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
5337
5338         PR preprocessor/34695
5339         * Makefile.in (c-opts.o): Depend on c-tree.h.
5340         * c-common.c: Move down include of diagnostic.h.
5341         (done_lexing, c_cpp_error): New.
5342         * c-common.h (done_lexing): Declare.
5343         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
5344         (parse_in).
5345         * c-opts.c: Include c-tree.h.
5346         (c_common_init_options): Set preprocessor error callback.
5347         (c_common_handle_option): Do not set preprocessor
5348         inhibit_warnings, warnings_are_errors, warn_system_headers,
5349         pedantic_errors or inhibit_warnings flags.
5350         (c_common_post_options): Do not check cpp_errors (parse_in).
5351         (c_common_finish): Do not output dependencies if there were
5352         errors.  Do not check return value of cpp_finish.
5353         * c-ppoutput.c (pp_file_change): Set input_location.
5354         * c-tree.h (c_cpp_error): Declare.
5355         * diagnostic.c (diagnostic_set_info_translated): Also initialize
5356         override_column.
5357         (diagnostic_build_prefix): Check override_column.
5358         * diagnostic.h (diagnostic_info): Add override_column field.
5359         (diagnostic_override_column): Define.
5360
5361 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
5362
5363         * c-common.c (c_expand_expr, c_staticp): Remove.
5364         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
5365         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
5366         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
5367         * c-gimplify.c (gimplify_compound_literal_expr,
5368         optimize_compound_literals_in_ctor): Remove.
5369         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
5370         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
5371         * c-semantics.c (emit_local_var): Remove.
5372
5373         * langhooks-def.h (lhd_expand_expr): Remove.
5374         * langhooks.c (lhd_expand_expr): Remove.
5375         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
5376
5377         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
5378         handling from c-semantics.c; don't call into langhook.
5379         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
5380         * gimplify.c (gimplify_compound_literal_expr,
5381         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
5382         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
5383         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
5384         as was done in c-gimplify.c.
5385         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
5386         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
5387         Move from c-common.h.
5388         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
5389
5390         * tree.c (staticp): Do not call langhook.
5391         * langhooks.c (lhd_staticp): Delete.
5392         * langhooks-def.h (lhd_staticp): Delete prototype.
5393         (LANG_HOOKS_STATICP): Delete.
5394         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
5395
5396         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
5397         instead of DECL_STMTs.
5398
5399 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
5400
5401         PR c/456
5402         PR c/5675
5403         PR c/19976
5404         PR c/29116
5405         PR c/31871
5406         PR c/35198
5407         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
5408         void_type_node.
5409         (fold_call_expr): Return a NOP_EXPR from folding rather than the
5410         contained expression.
5411         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
5412         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
5413         conditional expressions for C.
5414         (decl_constant_value_for_optimization): Move from
5415         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
5416         whether optimizing and that the expression is a VAR_DECL not of
5417         array type instead of doing such checks in the caller.  Do not
5418         check pedantic.  Call gcc_unreachable for C++.
5419         * c-common.def (C_MAYBE_CONST_EXPR): New.
5420         * c-common.h (c_fully_fold, c_save_expr,
5421         decl_constant_value_for_optimization): New prototypes.
5422         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
5423         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
5424         EXPR_INT_CONST_OPERANDS): Define.
5425         * c-convert.c (convert): Strip nops from expression.
5426         * c-decl.c (groktypename): Take extra parameters expr and
5427         expr_const_operands.  Update call to grokdeclarator.
5428         (start_decl): Update call to grokdeclarator.  Add statement for
5429         expressions used in type of decl.
5430         (grokparm): Update call to grokdeclarator.
5431         (push_parm_decl): Update call to grokdeclarator.
5432         (build_compound_literal): Add parameter non_const and build a
5433         C_MAYBE_COSNT_EXPR if applicable.
5434         (grokdeclarator): Take extra parameters expr and
5435         expr_const_operands.  Track expressions used in declaration
5436         specifiers and declarators.  Fold array sizes and track whether
5437         they are constant expressions and whether they are integer
5438         constant expressions.
5439         (parser_xref_tag): Set expr and expr_const_operands fields in
5440         return value.
5441         (grokfield): Update call to grokdeclarator.
5442         (start_function): Update call to grokdeclarator.
5443         (build_null_declspecs): Set expr and expr_const_operands fields in
5444         return value.
5445         (declspecs_add_type): Handle expressions in typeof specifiers.
5446         * c-parser.c (c_parser_declspecs): Set expr and
5447         expr_const_operands fields for declaration specifiers.
5448         (c_parser_enum_specifier): Likewise.
5449         (c_parser_struct_or_union_specifier): Likewise.
5450         (c_parser_typeof_specifier): Likewise.  Update call to
5451         groktypename.  Fold expression as needed.  Return expressions with
5452         type instead of adding statements.
5453         (c_parser_attributes): Update calls to c_parser_expr_list.
5454         (c_parser_statement_after_labels): Fold expression before passing
5455         to objc_build_throw_stmt.
5456         (c_parser_condition): Fold expression.
5457         (c_parser_asm_operands): Fold expression.
5458         (c_parser_conditional_expression): Use c_save_expr.  Update call
5459         to build_conditional_expr.
5460         (c_parser_alignof_expression): Update call to groktypename.
5461         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
5462         original_code.  Fold expression argument of va_arg.  Create
5463         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
5464         argument to va_arg.  Update calls to groktypename.  Fold array
5465         index for offsetof.  Verify that first argument to
5466         __builtin_choose_expr has integer type.
5467         (c_parser_postfix_expression_after_paren_type): Update calls to
5468         groktypename and build_compound_literal.  Handle expressions with
5469         side effects in type name.
5470         (c_parser_postfix_expression_after_primary): Update call to
5471         c_parser_expr_list.  Set original_code for calls to
5472         __builtin_constant_p.
5473         (c_parser_expr_list): Take extra parameter fold_p.  Fold
5474         expressions if requested.
5475         (c_parser_objc_type_name): Update call to groktypename.
5476         (c_parser_objc_synchronized_statement): Fold expression.
5477         (c_parser_objc_receiver): Fold expression.
5478         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
5479         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
5480         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
5481         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
5482         (struct c_typespec): Add elements expr and expr_const_operands.
5483         (struct c_declspecs): Add elements expr and expr_const_operands.
5484         (groktypename, build_conditional_expr, build_compound_literal):
5485         Update prototypes.
5486         (in_late_binary_op): Declare.
5487         * c-typeck.c (note_integer_operands): New function.
5488         (in_late_binary_op): New variable.
5489         (decl_constant_value_for_broken_optimization): Move to c-common.c
5490         and rename to decl_constant_value_for_optimization.
5491         (default_function_array_conversion): Do not strip nops.
5492         (default_conversion): Do not call
5493         decl_constant_value_for_broken_optimization.
5494         (build_array_ref): Do not fold result.
5495         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
5496         result when operand is a VLA.
5497         (c_expr_sizeof_type): Update call to groktypename.  Handle
5498         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
5499         result when operand names a VLA type.
5500         (build_function_call): Update call to build_compound_literal.
5501         Only fold result for calls to __builtin_* functions.  Strip
5502         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
5503         the function designator.
5504         (convert_arguments): Fold arguments.  Update call to
5505         convert_for_assignment.
5506         (build_unary_op): Handle increment and decrement of
5507         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
5508         decrement earlier.  Fold operand of increment and decrement.
5509         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
5510         built for integer operand.  Wrap returns that are INTEGER_CSTs
5511         without being integer constant expressions or that have integer
5512         constant operands without being INTEGER_CSTs.
5513         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
5514         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
5515         result is an integer constant expression or can be used in
5516         unevaluated parts of one and avoid folding and wrap as
5517         appropriate.  Fold operands before possibly doing -Wsign-compare
5518         warnings.
5519         (build_compound_expr): Wrap result for C99 if operands can be used
5520         in integer constant expressions.
5521         (build_c_cast): Update call to digest_init.  Do not ignore
5522         overflow from casting floating-point constants to integers.  Wrap
5523         results that could be confused with integer constant expressions,
5524         null pointer constants or floating-point constants.
5525         (c_cast_expr): Update call to groktypename.  Handle expressions
5526         included in type name.
5527         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
5528         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
5529         Update calls to convert_for_assignment.
5530         (convert_for_assignment): Take new parameter
5531         null_pointer_constant.  Do not strip nops or call
5532         decl_constant_value_for_broken_optimization.  Set
5533         in_late_binary_op for conversions to boolean.
5534         (store_init_value): Update call to digest_init.
5535         (digest_init): Take new parameter null_pointer_constant.  Do not
5536         call decl_constant_value_for_broken_optimization.  pedwarn for
5537         initializers not constant expressions.  Update calls to
5538         convert_for_assignment.
5539         (constructor_nonconst): New.
5540         (struct constructor_stack): Add nonconst element.
5541         (really_start_incremental_init, push_init_level, pop_init_level):
5542         Handle constructor_nonconst and nonconst element.
5543         (set_init_index): Call constant_expression_warning for array
5544         designators.
5545         (output_init_element): Fold value.  Set constructor_nonconst as
5546         applicable.  pedwarn for initializers not constant expressions.
5547         Update call to digest_init.  Call constant_expression_warning
5548         where constant initializers are required.
5549         (process_init_element): Use c_save_expr.
5550         (c_finish_goto_ptr): Fold expression.
5551         (c_finish_return): Fold return value.  Update call to
5552         convert_for_assignment.
5553         (c_start_case): Fold switch expression.
5554         (c_process_expr_stmt): Fold expression.
5555         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
5556         ensure statement expression is not evaluated in constant expression.
5557         (build_binary_op): Track whether results are integer constant
5558         expressions or may occur in such, disable folding and wrap results
5559         as applicable.  Fold operands for -Wsign-compare warnings unless
5560         in_late_binary_op.
5561         (c_objc_common_truthvalue_conversion): Handle results folded to
5562         integer constants that are not integer constant expressions.
5563         * doc/extend.texi: Document when typeof operands are evaluated,
5564         that condition of __builtin_choose_expr is an integer constant
5565         expression, and more about use of __builtin_constant_p in
5566         initializers.
5567
5568 2009-03-29  Richard Guenther  <rguenther@suse.de>
5569
5570         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
5571         propagate addresses of array references.
5572
5573 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
5574
5575         * regmove.c (perhaps_ends_bb_p): Remove.
5576         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
5577         from INSN and check that the main loop stays within that basic block.
5578         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
5579         (regmove_forward_pass): Split out from regmove_optimize.  Use
5580         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
5581         (regmove_backward_pass): Split out from regmove_optimize.  Use
5582         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
5583         (regmove_optimize): Simplify.
5584
5585 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
5586
5587         PR target/39545
5588         * config/i386/i386.c (classify_argument): Ignore flexible array
5589         member in struct and warn ABI change.
5590
5591 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
5592
5593         * config/i386/i386-protos.h (ix86_agi_dependent): New.
5594
5595         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
5596         (ix86_adjust_cost): Updated.
5597
5598 2009-03-29  Jan Hubicka  <jh@suse.cz>
5599
5600         PR middle-end/28850
5601         * tree-pass.h (pass_cleanup_eh): New function.
5602         (remove_unreachable_regions): Break code handling RTL
5603         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
5604         that can not be reached by runtime.
5605         (can_be_reached_by_runtime): New function.
5606         (label_to_region_map): New function.
5607         (num_eh_regions): New function.
5608         (rtl_remove_unreachable_regions): New function.
5609         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
5610         (remove_eh_region): New function.
5611         * except.h: Include sbitmap and vecprim.
5612         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
5613         num_eh_regions): Declare.
5614         * passes.c (init_optimization_passes): Schedule cleanup_eh.
5615         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
5616         * tree-eh.c (tree_remove_unreachable_handlers): New function.
5617         (tree_empty_eh_handler_p): New function.
5618         (cleanup_empty_eh): New function.
5619         (cleanup_eh): New function.
5620         (pass_cleanup_eh): New function.
5621
5622 2009-03-29  Jan Hubicka  <jh@suse.cz>
5623
5624         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
5625         for removed regions.
5626
5627 2009-03-29  Jan Hubicka  <jh@suse.cz>
5628
5629         * except.c (dump_eh_tree): Dump all datastructures.
5630
5631 2009-03-29  Jan Hubicka  <jh@suse.cz>
5632
5633         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
5634         (duplicate_eh_regions_1): Likewise.
5635         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
5636         vector; call EH verification.
5637         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
5638         Be ready for region being removed.
5639
5640 2009-03-29  Jan Hubicka  <jh@suse.cz>
5641
5642         * bitmap.c (bitmap_last_set_bit): New function.
5643         * bitmap.h (bitmap_last_set_bit): Declare.
5644
5645 2009-03-29  David Ayers  <ayers@fsfe.org>
5646
5647         PR objc/27377
5648         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
5649         by calling objc_compare_types and surpress warnings about
5650         incompatible C pointers that are compatible ObjC pointers.
5651
5652 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
5653
5654         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
5655         call initialize_inline_failed.
5656         (initialize_inline_failed): Move it from here ...
5657         * cgraph.c (initialize_inline_failed): ... to here.
5658         (cgraph_create_edge): Call initialize_inline_failed rather than
5659         setting inline_failed directly.
5660
5661 2009-03-29  Ben Elliston  <bje@au.ibm.com>
5662
5663         PR target/32542
5664         * sysv4.opt (msdata): Improve comment.
5665         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
5666         * sysv4.h (SVR4_ASM_SPEC): Likewise.
5667
5668 2009-03-29  Ben Elliston  <bje@au.ibm.com>
5669
5670         PR target/30451
5671         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
5672         load and store attributes.
5673
5674 2009-03-29  Ben Elliston  <bje@au.ibm.com>
5675
5676         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
5677         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
5678         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
5679         * doc/extend.texi (X86 Built-in Functions): Add index entries for
5680         __builtin_infq and __builtin_huge_valq.
5681
5682 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
5683
5684         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
5685         atmega8m1 devices.
5686         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
5687         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
5688
5689 2009-03-28  Xinliang David Li  <davidxl@google.com>
5690
5691         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
5692         (do_dbg_cnt): New function.
5693
5694 2009-03-28  Jan Hubicka  <jh@suse.cz>
5695
5696         Merge from pretty-ipa:
5697
5698         2009-03-27  Jan Hubicka  <jh@suse.cz>
5699
5700         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
5701         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
5702         * passes.c (function_called_by_processed_nodes_p): New.
5703         * ipa-pure-const.c (check_call): Fix handling of operands.
5704         (analyze_function): Dump debug output for skipped bodies.
5705         (local_pure_const): Use function_called_by_processed_nodes_p.
5706         * dwarf2out.c (reference_to_unused): Use output.
5707         * passes.c (do_per_function_toporder): Likewise.
5708
5709         2008-11-12  Jan Hubicka  <jh@suse.cz>
5710
5711         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
5712         * ipa-pure-const.c (funct_state_d): Add can throw field; make
5713         state_set_in_source enum
5714         (check_decl): Ignore memory tags; do not set fake looping flags;
5715         dump diagnostics.
5716         (check_operand, check_tree, check_rhs_var, check_lhs_var,
5717         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
5718         (check_call, analyze_function): Rewrite.
5719         (check_stmt): New.
5720         (add_new_function): Update call of analyze_function.
5721         (generate_summary): Add call of analyze_function.
5722         (propagate): Propagate can_throw; handle state_set_in_source correctly.
5723         (local_pure_const): New function.
5724         (pass_local_pure_const): New pass.
5725         * ipa-inline.c (inline_transform): Set after_inlining.
5726         * tree-eh.c (stmt_can_throw_external): New.
5727         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
5728         work with aliasing built.
5729         * tree-flow.h (stmt_can_throw_external): New.
5730         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
5731         and local pure/const pass in early and late optimization queue.
5732
5733 2009-03-28  Martin Jambor  <mjambor@suse.cz>
5734
5735         * fold-const.c (get_pointer_modulus_and_residue): New parameter
5736         allow_func_align.
5737         (fold_binary): Allow function decl aligment consideration is the
5738         second argument is integer constant one.
5739         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
5740         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
5741         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
5742
5743 2009-03-28  Jan Hubicka  <jh@suse.cz>
5744
5745         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
5746         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
5747         * function.h (rtl_data): Add nothrow flag.
5748         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
5749         set DECL_NOTHROW for AVAILABLE functions.
5750
5751 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
5752
5753         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
5754         following vector keyword has expansion starting with pixel or bool
5755         keyword, expand vector to __vector and pixel or bool to __pixel or
5756         __bool.
5757
5758         PR c++/39554
5759         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
5760         warn_if_disallowed_function_p): Removed.
5761         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
5762         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
5763         warning_if_disallowed_function_p.
5764         * flags.h (warn_if_disallowed_function_p,
5765         warn_disallowed_functions): Removed.
5766         * common.opt (Wdisallowed-function-list=): Removed.
5767         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
5768
5769 2009-03-28  Richard Guenther  <rguenther@suse.de>
5770
5771         PR tree-optimization/38723
5772         * tree-ssa-pre.c (compute_avail): Add all default definitions to
5773         the entry block.
5774
5775 2009-03-28  Jan Hubicka  <jh@suse.cz>
5776
5777         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
5778         test introduced by my previous patch.
5779
5780 2009-03-28  Richard Guenther  <rguenther@suse.de>
5781
5782         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
5783         the PHIs value undefined.
5784
5785 2009-03-28  Jan Hubicka  <jh@suse.cz>
5786
5787         * tree-pass.h (pass_fixup_cfg): New pass.
5788         * ipa-inline.c (inline_transform): Set
5789         always_inline_functions_inlined/after_inlining.
5790         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
5791         (pass_fixup_cfg): New pass.
5792         * passes.c (init_optimization_passes): Add fixup_cfg.
5793
5794 2009-03-28  Richard Guenther  <rguenther@suse.de>
5795
5796         PR tree-optimization/38458
5797         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
5798         argument use the arguments copy-of value.
5799
5800 2009-03-28  Richard Guenther  <rguenther@suse.de>
5801
5802         PR tree-optimization/38180
5803         * tree-ssa-ccp.c (get_default_value): Simplify.
5804         (likely_value): Likewise.
5805         (surely_varying_stmt_p): Properly handle VOP case.
5806         (ccp_initialize): Likewise.
5807         (ccp_fold): Handle propagating through *&.
5808         (fold_const_aggregate_ref): Also handle decls.
5809
5810 2009-03-28  Jan Hubicka  <jh@suse.cz>
5811
5812         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
5813         * cgraph.h (cgraph_node): Likewise.
5814         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
5815         (cgraph_reset_node): Use process flag.
5816         (cgraph_mark_functions_to_output): Likewise.
5817         (cgraph_expand_function): Likewise.
5818         (cgraph_expand_all_functions): Likewise.
5819         (cgraph_output_in_order): Likewise.
5820         * dwarf2out.c (reference_to_unused): Likewise.
5821         * passes.c do_per_function_toporder): Likewise.
5822
5823 2009-03-28  Jan Hubicka  <jh@suse.cz>
5824
5825         Bring from lto-branch:
5826
5827         2008-09-03  Doug Kwan  <dougkwan@google.com>
5828
5829         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
5830         enums instead of reason strings.
5831         * cgraph.c (cgraph_create_edge): Same.
5832         (cgraph_inline_failed_string): New function.
5833         * cgraph.h (cgraph_inline_failed_t): New enum type.
5834         (cgraph_inline_failed_string): New prototype.
5835         (struct cgraph_edge): Change type of INLINED_FAILED from constant
5836         char pointer to cgraph_inline_failed_t.
5837         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
5838         (cgraph_default_inline_p): Ditto.
5839         * gcc/cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
5840         to cgraph_inline_failed_t pointer.
5841         * cif-code.def: New file.
5842         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
5843         reason string.
5844         (cgraph_check_inline_limits): Change type of REASON to pointer to
5845         cgraph_inline_failed_t.  Replace reason strings with enums.
5846         (cgraph_default_inline_p): Ditto.
5847         (cgraph_recursive_inlining_p): Ditto.
5848         (update_caller_keys): Change type of FAILED_REASON to
5849         cgraph_inline_failed_t.
5850         (cgraph_set_inline_failed): Change type of REASON to pointer to
5851         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
5852         convert enums to strings for text output.
5853         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
5854         to be of type cgraph_inline_failed_t.  Replace reason strings with
5855         enums.  Call cgraph_inline_failed_string to covert enums
5856         to strings for text output.
5857         (cgraph_decide_inlining): Replace reason strings with enums.
5858         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
5859         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
5860         for text output.
5861         * tree-inline.c (expand_call_inline): Change type of REASON
5862         to cgraph_inline_failed_t.  Replace reason strings with enums.
5863         Call cgraph_inline_failed_string for text output.
5864         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
5865         (cgraph.o): Ditto.
5866
5867 2009-03-28  Jan Hubicka  <jh@suse.cz>
5868
5869         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
5870         cgraph_clone_node): Remove master clone handling.
5871         (cgraph_is_master_clone, cgraph_master_clone): Remove.
5872         * cgraph.h (master_clone): Remove.
5873         (cgraph_is_master_clone, cgraph_master_clone): Remove.
5874         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
5875         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
5876
5877 2009-03-28  Jan Hubicka  <jh@suse.cz>
5878
5879         * cgraph.c (cgraph_function_body_availability): Functions declared
5880         inline are always safe to assume that it is not going to be replaced.
5881
5882 2009-03-28  Richard Guenther  <rguenther@suse.de>
5883
5884         PR tree-optimization/38513
5885         * tree-ssa-pre.c (eliminate): Remove redundant stores.
5886         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5887         EXC_PTR_EXPR and FILTER_EXPR.
5888         (get_ref_from_reference_ops): Likewise.
5889
5890 2009-03-28  Richard Guenther  <rguenther@suse.de>
5891
5892         PR tree-optimization/38968
5893         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
5894         Use FLOOR_MOD_EXPR to compute misalignment.
5895
5896 2009-03-28  Richard Guenther  <rguenther@suse.de>
5897
5898         PR tree-optimization/37795
5899         * tree.h (combine_comparisons): Declare.
5900         * fold-const.c (combine_comparisons): Export.
5901         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
5902         comparisons.
5903         (ifcombine_iforif): Use combine_comparisons.
5904
5905 2009-03-28  Jan Hubicka  <jh@suse.cz>
5906
5907         * tree-eh.c (inlinable_call_p): New function.
5908         (make_eh_edges): Use it.
5909         (verify_eh_edges): Use it.
5910         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
5911         * except.c (reachable_next_level): Add inlinable_function argument
5912         (sjlj_find_directly_reachable_regions): Update.
5913         (add_reachable_handler): Do not set saw_any_handlers.
5914         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
5915         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
5916         Add new inlinable call parameter.
5917         (can_throw_internal, can_throw_external): Update.
5918         * except.h (can_throw_internal_1, can_throw_external_1,
5919         foreach_reachable_handler): Update declaration.
5920
5921 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
5922
5923         * config/arm/t-arm-coff, config/h8300/coff.h,
5924         config/i386/i386-aout.h, config/i386/i386-coff.h,
5925         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
5926         config/pdp11/2bsd.h, config/rs6000/aix41.h,
5927         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
5928         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
5929         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
5930         sys-types.h: Remove.
5931         * Makefile.in: Remove protoize and fixproto support and references
5932         in comments.
5933         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
5934         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
5935         Remove.
5936         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
5937         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
5938         unprotoize$(exeext).
5939         (rest.encap): Don't depend on $(STMP_FIXPROTO)
5940         (.PHONY): Don't depend on proto.
5941         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
5942         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
5943         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
5944         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
5945         build/gen-protos.o, build/scan.o, xsys-protos.h,
5946         build/fix-header$(build_exeext), build/fix-header.o,
5947         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
5948         stmp-install-fixproto): Remove.
5949         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
5950         SYSCALLS.c or fixproto files.
5951         (install-common): Don't install protoize.
5952         (install-headers-tar, install-headers-cpio, install-headers-cp):
5953         Don't depend on $(STMP_FIXPROTO).
5954         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
5955         install fixproto files or write out fixproto settings.
5956         (uninstall): Don't uninstall protoize.
5957         * config.gcc (use_fixproto): Remove.
5958         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
5959         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
5960         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
5961         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
5962         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
5963         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
5964         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
5965         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
5966         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
5967         * config/t-vxworks (STMP_FIXPROTO): Remove.
5968         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
5969         STMP_FIXPROTO): Remove.
5970         * config.in, configure: Regenerate.
5971         * crtstuff.c (gid_t, uid_t): Don't undefine.
5972         * doc/install.texi: Change m68k-coff to m68k-elf in example.
5973         (arm-*-coff, arm-*-aout: Remove target entries.
5974         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
5975         Remove mention of AIX 4.1.
5976         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
5977         * doc/invoke.texi (Running Protoize): Remove.
5978         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
5979         (Protoize Caveats): Remove.
5980         * tsystem.h: Update comments on headers assumed to exist.
5981
5982 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
5983
5984         * genautomata.c: Add a new year to the copyright.  Add a new
5985         reference.
5986         (struct insn_reserv_decl): Add comments for member bypass_list.
5987         (find_bypass): Remove.
5988         (insert_bypass): New.
5989         (process_decls): Use insert_bypass.
5990         (output_internal_insn_latency_func): Output all bypasses with the
5991         same input insn in one switch case.
5992
5993         * rtl.def (define_bypass): Describe bypass choice.
5994         * doc/md.texi (define_bypass): Ditto.
5995
5996 2009-03-27  Richard Guenther  <rguenther@suse.de>
5997
5998         * gimplify.c (mark_addressable): Export.
5999         * tree-flow.h (mark_addressable): Declare.
6000         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
6001         * tree-ssa.c (verify_phi_args): Verify that address taken
6002         variables have TREE_ADDRESSABLE set.
6003
6004 2009-03-27  Richard Guenther  <rguenther@suse.de>
6005
6006         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
6007         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
6008         Do not mark decls TREE_ADDRESSABLE.
6009         (build_fold_addr_expr): Adjust.
6010         (fold_addr_expr): Remove.
6011         (fold_unary): Use build_fold_addr_expr.
6012         (fold_comparison): Likewise.
6013         (split_address_to_core_and_offset): Likewise.
6014         * coverage.c (tree_coverage_counter_addr): Mark the array decl
6015         TREE_ADDRESSABLE.
6016         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
6017         (gimplify_modify_expr_to_memcpy): Mark source and destination
6018         addressable.
6019         * omp-low.c (create_omp_child_function): Mark the object decl
6020         TREE_ADDRESSABLE.
6021         (lower_rec_input_clauses): Mark the var we take the address of
6022         TREE_ADDRESSABLE.
6023         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
6024
6025 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6026
6027         PR middle-end/39315
6028         * cfgexpand.c (expand_one_stack_var_at): Change alignment
6029         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
6030
6031 2009-03-27  Richard Guenther  <rguenther@suse.de>
6032
6033         PR tree-optimization/39120
6034         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
6035         constraints.
6036         (handle_lhs_call): Process return constraints.  Add escape
6037         constraints if necessary.
6038         (handle_const_call): Fill out return constraints.  Make nested
6039         case more precise.  Avoid consttmp if possible.
6040         (handle_pure_call): Fill out return constraints.  Avoid
6041         callused if possible.
6042         (find_func_aliases): Simplify call handling.
6043
6044 2009-03-27  Richard Guenther  <rguenther@suse.de>
6045
6046         PR tree-optimization/39120
6047         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
6048         as a representative.
6049         (solve_graph): Do propagate CALLUSED.
6050         (handle_pure_call): Use a scalar constraint from CALLUSED for
6051         the return value.
6052         (find_what_p_points_to): CALLUSED shall not appear in poins-to
6053         solutions.
6054
6055 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6056
6057         PR c/39323
6058         * c-common.c (handle_aligned_attribute): Properly check alignment
6059         overflow.  Use (1U << i) instead of (1 << i).
6060
6061         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
6062
6063         * expr.h (get_mem_align_offset): Updated.
6064
6065         * tree.h (tree_decl_common): Change align to "unsigned int" and
6066         move it before pointer_alias_set.
6067
6068 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6069             Jakub Jelinek  <jakub@redhat.com>
6070
6071         PR target/38034
6072         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
6073         gr_register_operand with gr_reg_or_0_operand.
6074         (cmpxchg_rel_di): Likewise.
6075         (sync_lock_test_and_set<mode>): Likewise.
6076
6077 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6078
6079         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
6080         (true_regnum): Likewise.
6081
6082         * rtlanal.c (subreg_info): Moved to ...
6083         * rtl.h (subreg_info): Here.  New.
6084         (subreg_get_info): New.
6085
6086         * rtlanal.c (subreg_get_info): Make it extern.
6087
6088 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6089
6090         PR target/39472
6091         * config/i386/i386.c (ix86_abi): New.
6092         (override_options): Handle -mabi=.
6093         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
6094         (ix86_call_abi_override): Likewise.
6095         (init_cumulative_args): Likewise.
6096         (function_arg_advance): Likewise.
6097         (function_arg_64): Likewise.
6098         (function_arg): Likewise.
6099         (ix86_pass_by_reference): Likewise.
6100         (ix86_function_value_regno_p): Likewise.
6101         (ix86_build_builtin_va_list_abi): Likewise.
6102         (setup_incoming_varargs_64): Likewise.
6103         (is_va_list_char_pointer): Likewise.
6104         (ix86_init_machine_status): Likewise.
6105         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
6106         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
6107         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
6108         (ix86_function_abi): Make it static and return enum calling_abi.
6109         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
6110         with ix86_abi.
6111         (ix86_fn_abi_va_list): Updated.
6112
6113         * config/i386/i386.h (ix86_abi): New.
6114         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
6115         (CONDITIONAL_REGISTER_USAGE): Likewise.
6116         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
6117         (machine_function): Likewise.
6118
6119         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
6120         with ix86_abi.
6121         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
6122         (STACK_BOUNDARY): Likewise.
6123         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
6124
6125         * config/i386/i386.opt (mabi=): New.
6126
6127         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
6128         return enum calling_abi.
6129         (ix86_function_type_abi): Likewise.
6130         (ix86_function_abi): Removed.
6131
6132         * doc/invoke.texi: Document -mabi= option for x86.
6133
6134 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6135
6136         * builtins.c (real_dconstp): Delete.
6137         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
6138
6139 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
6140             Jakub Jelinek  <jakub@redhat.com>
6141
6142         PR debug/37959
6143         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
6144         (gen_subprogram_die): When a function is explicit, generate the
6145         DW_AT_explicit attribute.
6146         * langhooks.h (struct lang_hooks_for_decls): Add
6147         function_decl_explicit_p langhook.
6148         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
6149         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
6150
6151 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
6152
6153         * builtins.c (fold_builtin_memory_op): Optimize memmove
6154         into memcpy if we can prove source and destination don't overlap.
6155
6156         * tree-inline.c: Include gt-tree-inline.h.
6157         (clone_fn_id_num): New variable.
6158         (clone_function_name): New function.
6159         (tree_function_versioning): Use it.
6160         * Makefile.in (GTFILES): Add tree-inline.c.
6161
6162 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
6163
6164         * BASE-VER: Change to 4.5.0.
6165
6166 2009-03-27  Xinliang David Li  <davidxl@google.com>
6167
6168         PR tree-optimization/39557
6169         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
6170
6171 2009-03-27  Xinliang David Li  <davidxl@google.com>
6172
6173         PR tree-optimization/39548
6174         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
6175         candidate check.
6176
6177 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6178
6179         * c-common.c (pointer_int_sum): Use %wd on return from
6180         tree_low_cst.
6181
6182 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6183
6184         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
6185         on return from tree_low_cst.
6186
6187 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6188
6189         PR c++/36799
6190         * ginclude/stdarg.h (va_copy): Define also for
6191         __GXX_EXPERIMENTAL_CXX0X__.
6192
6193 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6194
6195         PR c++/35652
6196         * builtins.h (c_strlen): Do not warn here.
6197         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
6198         * c-common.c (pointer_int_sum): Take an explicit location.
6199         Warn about offsets out of bounds.
6200         * c-common.h (pointer_int_sum): Adjust declaration.
6201
6202 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6203
6204         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
6205         markup glitch.
6206
6207 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
6208
6209         PR c++/39554
6210         * opts.c (warn_if_disallowed_function_p): Don't assume
6211         get_callee_fndecl must return non-NULL.
6212
6213 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
6214
6215         PR rtl-optimization/39522
6216         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
6217         when reg_reloaded_valid is set.
6218
6219 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6220
6221         * config/spu/divv2df3.c: New file.
6222         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
6223         (DPBIT_FUNCS): Filter out _div_df.
6224
6225 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
6226
6227         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
6228         a jump insn, count that jump in the distance to the loop start.
6229
6230 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
6231
6232         PR target/39523
6233         * config/sh/sh.c (calc_live_regs): Fix condition for global
6234         registers except PIC_OFFSET_TABLE_REGNUM.
6235
6236 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
6237
6238         PR/39518
6239         * doc/invoke.texi (-mconsole): New.
6240         (-mcygwin): New.
6241         (-mno-cygwin): New.
6242         (-mdll): New.
6243         (-mnop-fun-dllimport): New.
6244         (-mthread): New.
6245         (-mwin32): New.
6246         (-mwindows): New.
6247         (sub section "i386 and x86-64 Windows Options"): New.
6248
6249 2009-03-25  Ralf Corsépius <ralf.corsepius@rtems.org>
6250
6251         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
6252         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
6253
6254 2009-03-25  Richard Guenther  <rguenther@suse.de>
6255
6256         PR middle-end/39497
6257         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
6258         of -Wno-error.
6259
6260 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
6261
6262         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
6263         neither of haifa/selective schedulers are working.
6264
6265 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6266
6267         * doc/invoke.texi (Debugging Options): Fix description of
6268         -fno-merge-debug-strings.
6269
6270 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
6271
6272         * config/cris/libgcc.ver: New version-script.
6273         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
6274
6275         * configure.ac <GAS features, nop mnemonic>: Add pattern
6276         crisv32-*-* for "nop".
6277         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
6278         * configure: Regenerate.
6279
6280 2009-03-24  Ira Rosen  <irar@il.ibm.com>
6281
6282         PR tree-optimization/39529
6283         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
6284         mark_sym_for_renaming for the tag copied to the new vector
6285         pointer.
6286
6287 2009-03-24  Arthur Loiret  <aloiret@debian.org>
6288
6289         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
6290         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
6291         EXTRA_SPEC_FUNCTIONS.
6292         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
6293         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
6294         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
6295         -march and -mtune options.
6296
6297 2009-03-24  Ralf Corsépius <ralf.corsepius@rtems.org>
6298
6299         * config/m68k/t-rtems: Add m5329 multilib.
6300
6301 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
6302             Jakub Jelinek  <jakub@redhat.com>
6303
6304         PR debug/39524
6305         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
6306         nodes.
6307
6308 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
6309
6310         PR c/39495
6311         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
6312         instead of c_parser_expression_conv, if original_code isn't one of the
6313         4 allowed comparison codes, fail.
6314
6315 2009-03-23  Richard Guenther  <rguenther@suse.de>
6316
6317         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
6318         * tree.h (struct tree_type): Likewise.
6319         * reload.h (struct insn_chain): Likewise.
6320         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
6321         * function.h (struct function): Likewise.
6322         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
6323
6324 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
6325
6326         PR tree-optimization/39516
6327         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
6328
6329 2009-03-23 Bingfeng Mei  <bmei@broadcom.com>
6330
6331         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
6332         should be set true if BITS_PER_WORD of target is bigger than 32
6333
6334 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
6335
6336         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
6337         Translate -B-options to -rpath-link.  Correct existing
6338         rpath-link and conditionalize on !nostdlib.
6339
6340 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6341
6342         * doc/extend.texi (Function Attributes, Variable Attributes):
6343         Fix typos.
6344         * doc/invoke.texi (Debugging Options, Optimize Options)
6345         (i386 and x86-64 Options, MCore Options): Likewise.
6346
6347 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
6348
6349         PR debug/37890
6350         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
6351         it for block local namespace aliases.
6352         (gen_decl_die): Pass context_die to gen_namespace_die.
6353
6354 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
6355
6356         PR c/39495
6357         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
6358         minimum or maximum value.
6359
6360 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
6361
6362         * reginfo.c (globalize_reg): Recompute derived reg sets.
6363
6364 2009-03-19  Ozkan Sezer <sezeroz@gmail.com>
6365
6366         PR target/39063
6367         * libgcc2.c (mprotect): Do not use signed arguments for
6368         VirtualProtect, use DWORD arguments.  Also fix the 'may
6369         be used uninitialized' warning for the np variable.
6370
6371 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
6372
6373         PR target/39496
6374         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
6375         functions using regparm calling conventions when not optimizing.
6376         (ix86_function_sseregparm): Similarly for sseregparm calling
6377         conventions.
6378
6379 2009-03-19  Li Feng  <nemokingdom@gmail.com>
6380
6381         PR middle-end/39500
6382         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
6383         dependence if the first conflict is after niter iterations.
6384
6385 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
6386
6387         PR middle-end/38609
6388         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
6389         functions with dynamic stack-pointer adjustments.
6390
6391 2009-03-19  Ben Elliston  <bje@au.ibm.com>
6392
6393         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
6394         option; change to -msdata=data.
6395
6396 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6397
6398         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
6399         and -fopenmp.
6400
6401 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
6402
6403         PR target/35180
6404         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
6405
6406 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
6407
6408         * doc/invoke.texi (Code Gen Options): Expand discussion of
6409         -fno-common.
6410
6411 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
6412
6413         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
6414         * matrix-reorg.c (struct matrix_info): Likewise.
6415         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
6416         * rtl.h (struct mem_attrs): Likewise.
6417         * df.h (struct df): Likewise.
6418         * tree-data-ref.h (struct data_dependence_relation): Likewise.
6419         * ira-int.h (struct ira_allocno): Likewise.
6420         * df-scan.c (struct df_collection_rec): Likewise.
6421         * ira.c (struct equivalence): Likewise.
6422         * function.c (struct temp_slot): Likewise.
6423         * cfgloop.h (struct loop): Likewise.
6424
6425         PR debug/39485
6426         * function.c (use_register_for_decl): When not optimizing, disregard
6427         register keyword for variables with types containing methods.
6428
6429 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
6430
6431         PR middle-end/39447
6432         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
6433         (is_simple_operand): Call contains_component_ref_p before calling data
6434         reference analysis that would fail on COMPONENT_REFs.
6435
6436         * tree-vrp.c (search_for_addr_array): Fix formatting.
6437
6438 2009-03-18  Richard Guenther  <rguenther@suse.de>
6439
6440         * tree-vect-transform.c (vect_loop_versioning): Fold the
6441         generated comparisons.
6442         * tree-vectorizer.c (set_prologue_iterations): Likewise.
6443         (slpeel_tree_peel_loop_to_edge): Likewise.
6444
6445 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6446
6447         PR middle-end/37805
6448         * opts.c (print_specific_help): In addition to `undocumented',
6449         accept `separate' and `joined' flags if passed alone.  Describe
6450         output by the first matched one of those.
6451         (common_handle_option): Skip over empty strings.
6452         * gcc.c (display_help): Fix help string for `--help='.
6453         * doc/invoke.texi (Option Summary, Overall Options): With
6454         `--help=', classes and qualifiers can both be repeated, but
6455         only the latter can be negated.  One should not pass only
6456         negated qualifiers.  Fix markup and examples.
6457
6458         Revert
6459         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
6460         PR middle-end/37805
6461         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
6462         and -fhelp=separate.
6463
6464 2009-03-17  Jing Yu  <jingyu@google.com>
6465
6466         PR middle-end/39378
6467         * function.h (struct rtl_data): Move is_thunk from here...
6468         (struct function): ...to here.
6469         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
6470         * varasm.c (assemble_start_function): Change is_thunk from crtl to
6471         cfun.
6472         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
6473         cfun.
6474         (alpha_does_function_need_gp, alpha_start_function): Likewise.
6475         (alpha_output_function_end_prologue): Likewise.
6476         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
6477         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
6478         (rs6000_output_function_epilogue): Likewise.
6479         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
6480
6481 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
6482
6483         PR target/39482
6484         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
6485         from different units in a single alternative.
6486         (*truncdfsf_i387): Ditto.
6487         (*truncxfsf2_mixed): Ditto.
6488         (*truncxfdf2_mixed): Ditto.
6489
6490 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
6491
6492         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
6493         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
6494
6495         PR debug/39474
6496         * tree-ssa-live.c (remove_unused_locals): Don't remove local
6497         unused non-artificial variables when not optimizing.
6498
6499         PR debug/39471
6500         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
6501         DW_TAG_imported_module even if decl is IMPORTED_DECL with
6502         NAMESPACE_DECL in its DECL_INITIAL.
6503
6504         PR middle-end/39443
6505         * optabs.c (set_user_assembler_libfunc): New function.
6506         * expr.h (set_user_assembler_libfunc): New prototype.
6507         * c-common.c: Include libfuncs.h.
6508         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
6509         for memcmp, memset, memcpy, memmove and abort.
6510         * Makefile.in (c-common.o): Depend on libfuncs.h.
6511
6512         PR debug/39412
6513         * dwarf2out.c (gen_inlined_enumeration_type_die,
6514         gen_inlined_structure_type_die, gen_inlined_union_type_die,
6515         gen_tagged_type_instantiation_die): Removed.
6516         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
6517         do nothing.
6518
6519 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
6520
6521         PR testsuite/38526
6522         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
6523         its use.
6524         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
6525         (check-parallel-%): Ditto.
6526         (check-consistency): Ditto.
6527
6528 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
6529
6530         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
6531         local variable rhs by NULL_TREE.
6532
6533 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6534
6535         PR target/39477
6536         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
6537
6538 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6539
6540         PR target/39476
6541         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
6542
6543 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6544
6545         PR target/39473
6546         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
6547         for ms->sysv ABI calls only in 64bit mode.
6548
6549         * config/i386/i386.md (untyped_call): Support 32bit.
6550
6551 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6552
6553         * doc/extend.texi: Replace x86_65 with x86_64.
6554
6555 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
6556
6557         PR tree-optimization/39455
6558         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
6559         mismatches for POINTER_TYPE_P (type).
6560         (number_of_iterations_le): Likewise.
6561
6562 2009-03-16  Hariharan Sandanagobalane <hariharan@picochip.com>
6563
6564         * config/picochip/picochip.c: Removed profiling support.
6565         * config/picochip/picochip.md: Removed profiling instruction.
6566         * config/picochip/picochip.h: Removed profiling builtin.
6567
6568 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
6569
6570         * doc/install.texi (--with-host-libstdcxx): Document.
6571
6572 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
6573
6574         PR target/34299
6575         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
6576         generate a warning if the function name does not begin with
6577         "__vector" and the function has either the 'signal' or 'interrupt'
6578         attribute, from here to ...
6579         (avr_declare_function_name): ...here. New function.
6580         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
6581         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
6582
6583 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
6584
6585         PR bootstrap/39454
6586         * cse.c (fold_rtx): Don't modify original const_arg1 when
6587         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
6588         separate variable instead.
6589         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
6590         from out of range shift counts.
6591         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
6592
6593 2009-03-13  Catherine Moore  <clm@codesourcery.com>
6594
6595         * gcc/config/i386/x-mingw32 (host-mingw32.o): Replace
6596         diagnostic.h with $(DIAGNOSTIC_H).
6597
6598 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
6599
6600         PR target/39431
6601         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
6602         predicate.
6603         * config/i386/sync.md (sync_compare_and_swap<mode>,
6604         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
6605         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
6606         into a register.
6607         (sync_double_compare_and_swapdi_pic,
6608         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
6609         cmpxchg8b_pic_memory_operand instead of just memory_operand.
6610
6611 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
6612
6613         PR target/39445
6614         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
6615
6616 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
6617
6618         PR target/39327
6619         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
6620         (avx_addsubv4df3): Likewise.
6621         (*avx_addsubv4sf3): Likewise.
6622         (sse3_addsubv4sf3): Likewise.
6623
6624 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
6625
6626         PR target/38824
6627         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
6628
6629 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
6630
6631         PR debug/39432
6632         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
6633         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
6634         registers for allocnos created from user-defined variables.
6635
6636 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6637
6638         PR target/39181
6639         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
6640         of non-integer mode as well.
6641
6642 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
6643
6644         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
6645         for functions for which the parameter types are unknown.
6646
6647 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
6648
6649         PR target/39137
6650         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
6651         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
6652         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
6653         * config/i386/i386.c (ix86_local_alignment): For
6654         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
6655         long long variables on the stack to avoid dynamic realignment.
6656         Allow the first argument to be a decl rather than type.
6657         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
6658
6659 2009-03-11  Nick Clifton  <nickc@redhat.com>
6660
6661         PR target/5362
6662         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
6663         options.
6664         Add description to mno-lsim option.
6665         * config/mcore/mcore.h: Remove comment about deprecated m4align
6666         option.
6667         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
6668         * doc/invoke.texi: Add description of mno-lsim and
6669         mstack-increment options.
6670
6671         * config/fr30/fr30.opt: Document the -mno-lsim option.
6672         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
6673         and -mno-lsim options.
6674
6675 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6676
6677         * fold-const.c (fold_comparison): Only call fold_inf_compare
6678         if the mode supports infinities.
6679
6680 2009-03-11  Jason Merrill  <jason@redhat.com>
6681
6682         PR debug/39086
6683         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
6684         end already did.  Notice GIMPLE_CALL modifications of the result.
6685         Don't copy debug information from an ignored decl or a decl from
6686         another function.
6687
6688 2009-03-10  Richard Guenther  <rguenther@suse.de>
6689             Nathan Froyd  <froydnj@codesourcery.com>
6690
6691         PR middle-end/37850
6692         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
6693         (__divMODE3): Likewise.
6694
6695 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
6696
6697         PR tree-optimization/39394
6698         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
6699         DECL_SIZE_UNIT of variable length FIELD_DECLs.
6700
6701 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6702
6703         * recog.c (verfiy_changes): Disallow renaming of hard regs in
6704         inline asms for register asm ("") declarations.
6705
6706 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
6707
6708         * fold-const.c (fold_unary): Fix comment.
6709
6710 2009-03-07  Jan Hubicka  <jh@suse.cz>
6711
6712         PR target/39361
6713         * tree-inline.c (setup_one_parameter): Do replacement of const
6714         argument by constant in SSA form.
6715
6716 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6717
6718         PR middle-end/38028
6719         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
6720         determine alignment passed to assign_stack_local.
6721         (assign_parms_unsplit_complex): Likewise.
6722         * except.c (sjlj_build_landing_pads): Likewise.
6723
6724 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
6725
6726         PR middle-end/39360
6727         * tree-flow.h (add_referenced_var): Return bool instead of void.
6728         * tree-dfa.c (add_referenced_var): Return result of
6729         referenced_var_check_and_insert call.
6730         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
6731         of referenced_var_check_and_insert.
6732
6733         PR debug/39372
6734         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
6735         (gen_variable_die): Emit DW_AT_location on abstract static variable's
6736         DIE, don't emit it if abstract origin already has it.
6737         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
6738         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
6739
6740 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6741
6742         * genpreds.c (needs_variable): Fix parentheses at variable name
6743         detection.
6744         (write_tm_constrs_h): Indent generated code.
6745
6746 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6747
6748         * doc/extend.texi (Function Attributes): Add documentation
6749         for isr attributes.
6750
6751 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
6752
6753         PR debug/39387
6754         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
6755         take locus from its DECL_SOURCE_LOCATION instead of input_location.
6756
6757 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
6758
6759         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
6760         the loop as bad.
6761
6762 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
6763
6764         PR debug/39379
6765         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
6766         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
6767
6768 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
6769
6770         * config/i386/i386.md (R8_REG, R9_REG): New constants.
6771         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
6772         constants instead of magic numbers.
6773         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
6774         (QI_REG_P): Ditto.
6775         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
6776         (x86_64_ms_abi_int_parameter_registers): Ditto.
6777         (x86_64_int_return_registers): Ditto.
6778         (ix86_maybe_switch_abi): Ditto.
6779         (ix86_expand_call): Ditto for clobbered_registers array.
6780         (ix86_hard_regno_mode_ok): Ditto.
6781         (x86_extended_QIreg_mentioned_p): Ditto.
6782
6783 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
6784
6785         PR tree-optimization/39349
6786         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
6787
6788         * combine.c (gen_lowpart_for_combine): Use omode when generating
6789         clobber.
6790
6791 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
6792
6793         PR rtl-optimization/39235
6794         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
6795
6796 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
6797
6798         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
6799
6800 2009-03-04  Richard Guenther  <rguenther@suse.de>
6801
6802         PR tree-optimization/39362
6803         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
6804         that occur in abnormal PHIs should be varying.
6805
6806 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
6807
6808         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
6809         Extend comments.
6810         (simple_iv):  Take loop as an argument instead of statement.
6811         * tree-scalar-evolution.h (simple_iv): Declaration changed.
6812         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
6813         to simple_iv.
6814         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
6815         Ditto.
6816         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
6817         * matrix-reorg.c (analyze_transpose): Ditto.
6818         * tree-data-ref.c (dr_analyze_innermost): Ditto.
6819         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
6820         * tree-predcom.c (ref_at_iteration): Ditto.
6821         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
6822
6823 2009-03-04  Richard Guenther  <rguenther@suse.de>
6824
6825         PR tree-optimization/39358
6826         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
6827         escaped_id and callused_id.
6828         (solve_graph): Likewise.
6829
6830 2009-03-04  Richard Guenther  <rguenther@suse.de>
6831
6832         PR tree-optimization/39339
6833         * tree-sra.c (try_instantiate_multiple_fields): Make it
6834         no longer ICE on the above.
6835
6836 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
6837
6838         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
6839         that fits within Pmode.
6840
6841 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
6842
6843         PR middle-end/10109
6844         * tm.texi (LIBCALL_VALUE): Update description.
6845
6846 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
6847
6848         PR middle-end/34443
6849         * doc/extend.texi (section): Update description.
6850
6851 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
6852
6853         PR middle-end/39345
6854         * tree-inline.c (remapped_type): New.
6855         (can_be_nonlocal): Call remapped_type instead of remap_type.
6856
6857 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
6858
6859         PR fortran/39354
6860         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
6861         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
6862
6863 2009-03-03  Richard Guenther  <rguenther@suse.de>
6864
6865         PR middle-end/39272
6866         * tree.c (tree_nonartificial_location): New function.
6867         * tree.h (tree_nonartificial_location): Declare.
6868         * builtins.c (expand_builtin_memory_chk): Provide location
6869         of the call location for artificial function pieces.
6870         (maybe_emit_chk_warning): Likewise.
6871         (maybe_emit_sprintf_chk_warning): Likewise.
6872         (maybe_emit_free_warning): Likewise.
6873         * expr.c (expand_expr_real_1): Likewise.
6874
6875 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
6876
6877         PR tree-optimization/39343
6878         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
6879         COMPONENT_REF t has ARRAY_TYPE.
6880
6881 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
6882
6883         PR middle-end/39335
6884         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
6885         when the type precision of the induction variable should be
6886         larger than the type precision of nit.
6887         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
6888         * graphite.c (graphite_loop_normal_form): Same.
6889         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
6890
6891 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
6892
6893         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
6894         (*call_1_rex64_ms_sysv): Use named constants instead of magic
6895         numbers to describe clobbered registers.
6896         (*call_value_0_rex64_ms_sysv): Ditto.
6897         * config/i386/mmx.md (mmx_emms): Ditto.
6898         (mmx_femms): Ditto.
6899
6900 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
6901
6902         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
6903         of ABI_64.
6904
6905 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6906
6907         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
6908         (spu_section_type_flags): New function.
6909
6910 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
6911
6912         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
6913         reg_class_contents of FLOAT_REGS into a temporary.
6914
6915 2009-03-02  Richard Guenther  <rguenther@suse.de>
6916             Ira Rosen  <irar@il.ibm.com>
6917
6918         PR tree-optimization/39318
6919         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
6920         information to the vectorized statement.
6921
6922 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
6923
6924         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
6925         variable.  Use defined names instead of magic constants for REX SSE
6926         registers.
6927
6928 2009-03-01  Richard Guenther  <rguenther@suse.de>
6929
6930         PR tree-optimization/39331
6931         * omp-low.c (lower_send_shared_vars): Do not receive new
6932         values for the reference of DECL_BY_REFERENCE parms or results.
6933
6934 2009-03-01  Jan Hubicka  <jh@suse.cz>
6935
6936         PR debug/39267
6937         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
6938         BLOCK_NONLOCALIZED_VAR): New macros.
6939         (tree_block): Add nonlocalized_vars.
6940         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
6941         gen_decl_die): Add origin argument.  Allow generation of die with
6942         origin at hand only.
6943         (gen_member_die, gen_type_die_with_usage, force_decl_die,
6944         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
6945         of gen_*.
6946         (gen_block_die): Fix checking for unused blocks.
6947         (process_scope_var): Break out from .... ; work with origins only.
6948         (decls_for_scope) ... here; process nonlocalized list.
6949         (dwarf2out_ignore_block): Look for nonlocalized vars.
6950         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
6951         vars.
6952         (dump_scope_block): Dump them.
6953         * tree-inline.c (remap_decls): Handle nonlocalized vars.
6954         (remap_block): Likewise.
6955         (can_be_nonlocal): New predicate.
6956         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
6957
6958 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6959
6960         * configure: Regenerate.
6961
6962 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6963
6964         * optc-gen.awk: No need to duplicate option flags twice.
6965         Reuse help texts for duplicate options which do not have any.
6966
6967         * gcc.c (display_help): Document --version.
6968
6969         * gcc.c (main): If print_help_list and verbose_flag, ensure
6970         driver output comes before subprocess output.
6971
6972         * optc-gen.awk: Assign all remaining fields to help string,
6973         space-separated, for multi-line help in *.opt.
6974
6975         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
6976         -Wno-pedantic-ms-format is for MinGW targets only.
6977
6978         * doc/options.texi (Option file format): Fix bad indentation,
6979         restoring dropped sentence.
6980
6981 2009-02-28  Jan Hubicka  <jh@suse.cz>
6982
6983         * tree-inline.c (tree_function_versioning): Output debug info.
6984
6985 2009-02-28  Jan Hubicka  <jh@suse.cz>
6986
6987         PR debug/39267
6988         * tree-inline.c (setup_one_parameter): Do not copy propagate
6989         arguments when not optimizing.
6990
6991 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
6992
6993         PR target/39327
6994         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
6995         (avx_addsubv4df3): Likewise.
6996         (*avx_addsubv4sf3): Likewise.
6997         (sse3_addsubv4sf3): Likewise.
6998         (*avx_addsubv2df3): Likewise.
6999         (sse3_addsubv2df3): Likewise.
7000         (avx_unpckhps256): Correct item selectors.
7001         (avx_unpcklps256): Likewise.
7002         (avx_unpckhpd256): Likewise.
7003         (avx_unpcklpd256): Likewise.
7004
7005 2009-02-28  Jan Hubicka  <jh@suse.cz>
7006
7007         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
7008         static vars.
7009         (copy_arguments_for_versioning): If var is declared don't declare it.
7010         (tree_function_versioning): First setup substitutions and then copy
7011         args.
7012
7013 2009-02-27  Jan Hubicka  <jh@suse.cz>
7014
7015         PR debug/39267
7016         * cgraph.h (varpool_output_debug_info): Remove.
7017         * cgraphunit.c (varpool_output_debug_info): Remove.
7018         * dwarf2out.c (deferred_locations_struct): New struct
7019         (deferred_locations): New type.
7020         (deferred_locations_list): New static var.
7021         (deffer_location): New function.
7022         (gen_variable_die): Use it.
7023         (decls_for_scope): Output info on local static vars.
7024         (dwarf2out_finish): Process deferred locations.
7025         * varpool.c (varpool_output_debug_info): Remove.
7026
7027 2009-02-27  Jan Hubicka  <jh@suse.cz>
7028
7029         PR debug/39267
7030         * tree.h (TREE_PROTECTED): Fix comment.
7031         (BLOCK_HANDLER_BLOCK): Remove.
7032         (struct tree_block): Remove handler_block add body_block.
7033         (inlined_function_outer_scope_p): New.
7034         (is_body_block): Remove.
7035         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
7036         * dwarf2out.c (is_inlined_entry_point): Remove.
7037         (add_high_low_attributes): Use inlined_function_outer_scope_p.
7038         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
7039         code.
7040         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
7041         * gimplify.c (gimplify_expr): Gimplify body blocks.
7042         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
7043         block with multiple subblocks.
7044         (dump_scope_block): Prettier output; dump more flags and info.
7045         (dump_scope_blocks): New.
7046         (remove_unused_locals): Use dump_scope_blocks.
7047         * tree-flow.h (dump_scope_blocks): Declare.
7048         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
7049         * stmt.c (is_body_block): Remove.
7050         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
7051         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
7052
7053 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
7054
7055         PR middle-end/39308
7056         * graphite.c (graphite_loop_normal_form): Do not call
7057         number_of_iterations_exit from a gcc_assert.
7058
7059 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7060
7061         * gcc/config/s390/s390.c (s390_swap_cmp): Look for conditional
7062         jumps if COND is NULL.
7063         (find_cond_jump): New function.
7064         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
7065         * gcc/config/s390/s390.md: Remove z10_cobra attribute value.
7066
7067 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
7068
7069         * config/alpha/alpha.h (alpha_expand_mov): Return false if
7070         force_const_mem returns NULL_RTX.
7071
7072 2009-02-26  Jan Hubicka  <jh@suse.cz>
7073
7074         PR debug/39267
7075         * cgraph.h (varpool_output_debug_info): Remove.
7076         * cgraphunit.c (varpool_output_debug_info): Remove.
7077         * dwarf2out.c (deferred_locations_struct): New struct
7078         (deferred_locations): New type.
7079         (deferred_locations_list): New static var.
7080         (deffer_location): New function.
7081         (gen_variable_die): Use it.
7082         (decls_for_scope): Output info on local static vars.
7083         (dwarf2out_finish): Process deferred locations.
7084         * varpool.c (varpool_output_debug_info): Remove.
7085
7086 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
7087
7088         PR rtl-optimization/39241
7089         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
7090         to subreg_offset_representable_p.
7091
7092 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
7093
7094         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
7095         execute function prototype.  Get f and nregs from max_reg_num
7096         and get_insns.  Remove the first backward pass as it's dead,
7097         guard the forward pass by flag_expensive_optimizations.
7098         (rest_of_handle_regmove): Delete.
7099         (pass_regmove): Replace it with regmove_optimize.
7100
7101 2009-02-25  Martin Jambor  <mjambor@suse.cz>
7102
7103         PR tree-optimization/39259
7104         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
7105         calls_alloca function flags.
7106         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
7107         calls are detected.
7108
7109 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
7110
7111         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
7112         flags_set_1_rtx, flags_set_1_set): Delete.
7113         (regmove_optimize): Do not call mark_flags_life_zones.
7114
7115 2009-02-24  Julian Brown  <julian@codesourcery.com>
7116
7117         PR target/35965
7118         * config/arm/arm.c (require_pic_register): Only set
7119         cfun->machine->pic_reg once per function.
7120
7121 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
7122
7123         * doc/invoke.texi (Link Options): Document an easier way to pass
7124         options that take arguments to the GNU linker using -Xlinker and -Wl.
7125
7126 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
7127
7128         PR target/33785
7129         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
7130
7131 2009-02-24  Richard Guenther  <rguenther@suse.de>
7132
7133         PR debug/39285
7134         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
7135
7136 2009-02-24  Richard Guenther  <rguenther@suse.de>
7137             Zdenek Dvorak  <ook@ucw.cz>
7138
7139         PR tree-optimization/39233
7140         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
7141         from converting them to a generic type.
7142
7143 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
7144
7145         PR tree-optimization/39260
7146         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
7147         contains a condition with a real type.
7148         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
7149
7150 2009-02-23  Jason Merrill  <jason@redhat.com>
7151
7152         PR c++/38880
7153         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
7154         narrowing_initializer_constant_valid_p.
7155         (narrowing_initializer_constant_valid_p): Don't return
7156         null_pointer_node for adding a pointer to itself.
7157
7158 2009-02-23  Jan Hubicka  <jh@suse.cz>
7159
7160         PR c/12245
7161         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
7162         resizing.
7163
7164 2009-02-23  Jan Hubicka  <jh@suse.cz>
7165
7166         PR tree-optimization/37709
7167         * tree.c (block_ultimate_origin): Move here from dwarf2out.
7168         * tree.h (block_ultimate_origin): Declare.
7169         * dwarf2out.c (block_ultimate_origin): Move to tree.c
7170         * tree-ssa-live.c (remove_unused_scope_block_p):
7171         Eliminate blocks containig no instructions nor live variables nor
7172         nested blocks.
7173         (dump_scope_block): New function.
7174         (remove_unused_locals): Enable removal of dead blocks by default;
7175         enable dumping at TDF_DETAILS.
7176
7177 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
7178
7179         * config/i386/i386.c (classify_argument): Don't allow COImode
7180         and OImode.
7181         (function_arg_advance_32): Don't allow OImode.
7182         (function_arg_32): Likewise.
7183         (function_value_32): Likewise.
7184         (return_in_memory_32): Likewise.
7185         (function_arg_64): Remove OImode comment.
7186
7187 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
7188
7189         PR target/39261
7190         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
7191         ix86_expand_vector_set for V4DImode in 64bit mode only.
7192         (ix86_expand_vector_init_one_var): Likewise.
7193
7194 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
7195
7196         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
7197
7198 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
7199
7200         PR bootstrap/39257
7201         * loop-iv.c: Revert last change.
7202         * emit-rtl.c: Likewise.
7203
7204 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
7205
7206         PR target/39256
7207         * config/i386/i386.c (type_natural_mode): Remove an extra
7208         space in the warning message.
7209         (function_value_32): Handle 32-byte vector modes.
7210         (return_in_memory_32): Likewise.
7211
7212 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
7213
7214         * loop-iv.c (truncate_value): New function.
7215         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
7216         of lowpart_subreg.
7217         (lowpart_subreg): Move to...
7218         * emit-rtl.c: ...here.
7219
7220 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
7221
7222         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
7223         accidental and undocumented change at revision 140860.
7224
7225 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
7226
7227         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
7228         take gimple_seq * arguments.
7229         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
7230         types_compatible_p langhook.
7231
7232 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
7233             Joseph Myers  <joseph@codesourcery.com>
7234
7235         * config/arm/arm.c (arm_builtin_va_list): New function.
7236         (arm_expand_builtin_va_start): Likewise.
7237         (arm_gimplify_va_arg_expr): Likewise.
7238         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
7239         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
7240         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
7241         (va_list_type): New variable.
7242         (arm_mangle_type): Mangle va_list_type appropriately.
7243
7244 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
7245
7246         PR middle-end/39157
7247         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
7248         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
7249         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
7250         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
7251         parameter to 1000 for -O1 by default.
7252         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
7253         parameter.
7254         * loop-invariant.c: Include params.h.
7255         (move_loop_invariants): Don't call move_single_loop_invariants on
7256         very large loops.
7257
7258 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
7259
7260         * calls.c (emit_library_call_value_1): Use slot_offset instead of
7261         offset when calculating bounds for indexing stack_usage_map.  Fixes
7262         a buffer overflow with certain target setups.
7263
7264 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
7265
7266         PR target/39240
7267         * calls.c (expand_call): Clear try_tail_call if caller and callee
7268         disagree in promotion of function return value.
7269
7270 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
7271
7272         PR target/39175
7273         * c-common.c (c_determine_visibility): If visibility changed and
7274         DECL_RTL has been already set, call make_decl_rtl to update symbol
7275         flags.
7276
7277 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
7278
7279         PR c++/39188
7280         * varasm.c (assemble_variable): Don't check DECL_NAME when
7281         globalizing a variable.
7282
7283 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
7284
7285         PR c/38483
7286         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
7287         expression before any __builtin_trap call.
7288         * c-typeck.c (build_function_call): Convert and check function
7289         arguments before generating a call to a trap.  Evaluate the
7290         function arguments before the trap.
7291
7292 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
7293
7294         PR target/39228
7295         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
7296         (UNSPEC_FXAM_MEM): New unspec.
7297         (fxam<mode>2_i387_with_temp): New insn and split pattern.
7298         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
7299         memory using fxam<mode>2_i387_with_temp to remove excess precision.
7300
7301 2009-02-19  Richard Guenther  <rguenther@suse.de>
7302
7303         PR tree-optimization/39207
7304         PR tree-optimization/39074
7305         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
7306         storedanything_tree): New.
7307         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
7308         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
7309         (build_succ_graph): Add edges from STOREDANYTHING to all
7310         non-direct nodes.
7311         (init_base_vars): Initialize STOREDANYTHING.
7312         (compute_points_to_sets): Free substitution info after
7313         building the succ graph.
7314         (ipa_pta_execute): Likewise.
7315
7316         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
7317         field.
7318         (do_ds_constraint): Do not add to special var or non-pointer
7319         field solutions.
7320         (type_could_have_pointers): Split out from ...
7321         (could_have_pointers): ... here.  For arrays use the element type.
7322         (create_variable_info_for): Initialize may_have_pointers.
7323         (new_var_info): Likewise.
7324         (handle_lhs_call): Make the HEAP variable unknown-sized.
7325         (intra_create_variable_infos): Use a type with pointers for
7326         PARM_NOALIAS, make it unknown-sized.
7327
7328 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
7329
7330         PR target/39224
7331         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
7332
7333 2009-02-18  Jason Merrill  <jason@redhat.com>
7334
7335         PR target/39179
7336         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
7337         value if DECL_EXTERNAL.
7338         * tree-sra.c (sra_walk_gimple_assign): Likewise.
7339         * target.h (gcc_target::binds_local_p): Clarify "module".
7340         * tree.h (TREE_PUBLIC): Clarify "module".
7341
7342 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
7343
7344         PR target/38891
7345         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
7346         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
7347
7348 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
7349
7350         PR target/39082
7351         * c.opt (Wabi): Support C and ObjC.
7352         (Wpsabi): New.
7353
7354         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
7355
7356         * config/i386/i386.c (classify_argument): Warn once about the ABI
7357         change when passing union with long double.
7358
7359         * doc/invoke.texi: Update -Wabi for warning psABI changes.
7360
7361 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
7362
7363         PR c/35447
7364         * c-parser.c (c_parser_compound_statement): Always enter and leave
7365         a scope.
7366
7367 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7368
7369         PR target/34587
7370         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
7371
7372 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
7373
7374         PR tree-optimization/36922
7375         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
7376         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
7377         Likewise.
7378
7379 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
7380
7381         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
7382         to 0 for EABI64.
7383
7384 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
7385
7386         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
7387
7388 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
7389
7390         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
7391         tree sharing.
7392
7393 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
7394             Richard Sandiford  <rdsandiford@googlemail.com>
7395
7396         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
7397         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
7398         (loongson_biadd): ...this.
7399
7400 2009-02-17  Richard Guenther  <rguenther@suse.de>
7401
7402         PR tree-optimization/39202
7403         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
7404         a var make sure to follow existing collapses.
7405
7406 2009-02-17  Richard Guenther  <rguenther@suse.de>
7407
7408         PR middle-end/39214
7409         * langhooks.c (lhd_print_error_function): Check for NULL block.
7410
7411 2009-02-17  Richard Guenther  <rguenther@suse.de>
7412
7413         PR tree-optimization/39204
7414         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
7415         of the PHI arg.
7416
7417 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
7418
7419         * config/soft-fp/double.h: Update from glibc CVS.
7420
7421 2009-02-17  Richard Guenther  <rguenther@suse.de>
7422
7423         PR tree-optimization/39207
7424         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
7425         strict-aliasing warnings for pointers pointing to NULL.
7426
7427 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
7428
7429         PR c/35446
7430         * c-parser.c (c_parser_braced_init): Call pop_init_level when
7431         skipping until next close brace.
7432
7433 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
7434
7435         PR target/37049
7436         * config/i386/i386.c (ix86_expand_push): Set memory alignment
7437         to function argument boundary.
7438
7439 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
7440
7441         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
7442         in the lea_add. Reload eventually constraints it properly.
7443         * config/picochip/constraints.md : Remove the target constraint
7444         "b", since it is not needed anymore.
7445
7446 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
7447
7448         * gthr-dce.h: Uglify function parameter and local variable names.
7449         * gthr-gnat.h: Likewise.
7450         * gthr-mipssde.h: Likewise.
7451         * gthr-nks.h: Likewise.
7452         * gthr-posix95.h: Likewise.
7453         * gthr-posix.h: Likewise.
7454         * gthr-rtems.h: Likewise.
7455         * gthr-single.h: Likewise.
7456         * gthr-solaris.h: Likewise.
7457         * gthr-tpf.h: Likewise.
7458         * gthr-vxworks.h: Likewise.
7459         * gthr-win32.h: Likewise.
7460
7461 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7462
7463         PR target/39196
7464         * config/i386/i386.md: Restrict the new peephole2 to move
7465         between MMX/SSE registers.
7466
7467 2009-02-15  Richard Guenther  <rguenther@suse.de>
7468
7469         Revert
7470         2009-02-13  Richard Guenther  <rguenther@suse.de>
7471
7472         * configure.ac: Enable LFS.
7473         * configure: Re-generate.
7474         * config.in: Likewise.
7475
7476 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7477
7478         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
7479         spu_srqwbyte, spu_srqwbytebc): Define.
7480         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
7481         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
7482         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
7483         "shrqby_<mode>"): New insn-and-split patterns.
7484         * config/spu/spu.c (expand_builtin_args): Determine and return
7485         number of operands using spu_builtin_description data.
7486         (spu_expand_builtin_1): Use it.
7487
7488 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
7489
7490         PR target/38056
7491         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
7492         TARGET_CONST_GP.
7493
7494 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
7495
7496         PR target/39149
7497         * config/i386/i386.c (override_options): Correct warning
7498         messages for -malign-loops, -malign-jumps and -malign-functions.
7499
7500 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
7501
7502         PR target/39152
7503         * config/i386/i386.md: Restrict the new peephole2 to move
7504         between the general purpose registers.
7505
7506 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
7507
7508         PR target/39162
7509         * config/i386/i386.c (type_natural_mode): Add a new argument.
7510         Return the original mode and warn ABI change if vector size is 32byte.
7511         (function_arg_advance): Updated.
7512         (function_arg): Likewise.
7513         (ix86_function_value): Likewise.
7514         (ix86_return_in_memory): Likewise.
7515         (ix86_sol10_return_in_memory): Likewise.
7516         (ix86_gimplify_va_arg): Likewise.
7517         (function_arg_32): Don't warn ABX ABI change here.
7518         (function_arg_64): Likewise.
7519
7520 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
7521
7522         * loop-iv.c (implies_p): In the final case, test that operands 0
7523         of the two comparisons match.
7524
7525         * config/bfin/bfin.c (find_prev_insn_start): New function.
7526         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
7527         (find_next_insn_start): Move.
7528
7529 2009-02-13  Richard Guenther  <rguenther@suse.de>
7530
7531         * configure.ac: Enable LFS.
7532         * configure: Re-generate.
7533         * config.in: Likewise.
7534
7535 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
7536
7537         PR c/35444
7538         * c-parser.c (c_parser_parms_list_declarator): Discard pending
7539         sizes on syntax error after some arguments have been parsed.
7540
7541 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
7542
7543         * doc/invoke.texi (-fira): Remove.
7544
7545 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
7546
7547         * caller-save.c: Replace regclass.c with reginfo.c in comments.
7548         * recog.c: Likewise.
7549         * rtl.h: Likewise.
7550
7551 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
7552
7553         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
7554         (umul_ppmm): Likewise.
7555         (count_leading_zeros): Likewise.
7556         (count_trailing_zeros): Likewise.
7557         (UMUL_TIME): Likewise.
7558
7559 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
7560
7561         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
7562         soft-fp/t-softfp to tmake_file.
7563
7564         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
7565         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
7566         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
7567         IA64_BUILTIN_INFQ]: New.
7568         (ia64_init_builtins): Initialize __builtin_infq,
7569         __builtin_fabsq and __builtin_copysignq if not HPUX.
7570         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
7571         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
7572
7573         * config/ia64/lib1funcs.asm (__divtf3): Define only if
7574         SHARED is defined.
7575         (__fixtfti): Likewise.
7576         (__fixunstfti): Likewise.
7577         (__floattitf): Likewise.
7578
7579         * config/ia64/libgcc-glibc.ver: New.
7580         * config/ia64/t-fprules-softfp: Likewise.
7581         * config/ia64/sfp-machine.h: Likewise.
7582
7583         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
7584         (LIBGCC2_TF_CEXT): Likewise.
7585         (TF_SIZE): Likewise.
7586         (TARGET_INIT_LIBFUNCS): Likewise.
7587
7588         * config/ia64/t-glibc (SHLINB_MAPFILES):
7589         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
7590
7591 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
7592
7593         * config/i386/i386.c (construct_container): Rewrite processing
7594         BLKmode with X86_64_SSE_CLASS.
7595
7596 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
7597
7598         PR target/39152
7599         * config/i386/i386.md: Replace simplify_replace_rtx with
7600         replace_rtx in the new peephole2.
7601
7602 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
7603
7604         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
7605         loop unrolling do not happen at -O2.
7606
7607 2009-02-12  Michael Matz  <matz@suse.de>
7608
7609         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
7610
7611 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
7612
7613         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
7614         for -g3.
7615
7616 2009-02-12  Ben Elliston  <bje@au.ibm.com>
7617
7618         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
7619         patterns when updating the back chain.  Missed in the 2009-02-10
7620         change.
7621
7622 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
7623
7624         * doc/extend.texi (Decimal Floating Types): Update identifier of
7625         draft TR and list of missing support.
7626
7627 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
7628
7629         PR middle-end/39154
7630         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
7631         bit to variable length decl's flags, add it also to its
7632         pointer replacement variable.
7633
7634 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
7635             Jakub Jelinek  <jakub@redhat.com>
7636
7637         PR target/39118
7638         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
7639         (memory_blockage): New expander.
7640         (*memory_blockage): New insn pattern.
7641         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
7642         instead of general blockage at the end of function prologue when
7643         frame pointer is used to access red zone area.  Do not emit blockage
7644         when profiling, it is emitted in generic code.
7645         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
7646         function epilogue when frame pointer is used to access red zone area.
7647
7648 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
7649
7650         PR target/38824
7651         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
7652         by arithmetic with memory operands.
7653         * config/i386/predicates.md (commutative_operator): New.
7654
7655 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
7656
7657         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
7658         bulleted lists.
7659
7660 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
7661
7662         * alias.h (record_alias_subset): Declare.
7663         * alias.c (record_alias_subset): Make global.
7664
7665 2009-02-10  Nick Clifton  <nickc@redhat.com>
7666
7667         * tree-parloops.c: Change license to GPLv3.
7668         * ipa-struct-reorg.c: Change license to GPLv3.
7669         * ipa-struct-reorg.h: Change license to GPLv3.
7670
7671 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
7672
7673         PR c/39084
7674         * c-decl.c (start_struct): Return NULL on error.
7675
7676 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
7677
7678         PR middle-end/39124
7679         * cfgloopmanip.c (remove_path): Call remove_bbs after
7680         cancel_loop_tree, not before it.
7681
7682         PR target/39139
7683         * function.h (struct function): Add has_local_explicit_reg_vars bit.
7684         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
7685         VAR_DECLs were seen.
7686         * tree-ssa-live.c (remove_unused_locals): Recompute
7687         cfun->has_local_explicit_reg_vars.
7688         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
7689         copies or clearings if cfun->has_local_explicit_reg_vars.
7690
7691 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
7692
7693         PR target/39118
7694         * config/i386/i386.c (expand_prologue): Emit blockage at the end
7695         of function prologue when frame pointer is used to access
7696         red zone area.
7697
7698 2009-02-10  Richard Guenther  <rguenther@suse.de>
7699
7700         PR middle-end/39127
7701         * gimplify.c (gimple_regimplify_operands): Always look if
7702         we need to create a temporary.
7703
7704 2009-02-10  Richard Guenther  <rguenther@suse.de>
7705
7706         PR tree-optimization/39132
7707         * tree-loop-distribution.c (todo): New global var.
7708         (generate_memset_zero): Trigger TODO_rebuild_alias.
7709         (tree_loop_distribution): Return todo.
7710
7711 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
7712
7713         PR target/39119
7714         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
7715         (x86_64_reg_class_name): Removed.
7716         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
7717         first one isn't X86_64_SSE_CLASS or any other ones aren't
7718         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
7719         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
7720         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
7721         and 3 X86_64_SSEUP_CLASS.
7722         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
7723         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
7724
7725 2009-02-10  Ben Elliston  <bje@au.ibm.com>
7726
7727         * config/rs6000/rs6000.md (allocate_stack): Always use an update
7728         form instruction to update the stack back chain word, even if the
7729         user has disabled the generation of update instructions.
7730         (movdi_<mode>_update_stack): New.
7731         (movsi_update_stack): Likewise.
7732         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
7733         always use an update form instruction to update the stack back
7734         chain word.
7735
7736 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
7737
7738         PR middle-end/38953
7739         * graphite.c (if_region_set_false_region): After moving a region in
7740         the false branch of a condition, remove the empty dummy basic block.
7741         (gloog): Remove wrong fix for PR38953.
7742
7743 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7744
7745         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
7746         generation due to implicit sign extension.
7747
7748 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
7749
7750         PR middle-end/38981
7751         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
7752         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
7753
7754 2009-02-09  Richard Guenther  <rguenther@suse.de>
7755
7756         PR middle-end/35202
7757         * convert.c (convert_to_real): Disable (float)fn((double)x)
7758         to fnf(x) conversion if errno differences may occur and
7759         -fmath-errno is set.
7760
7761 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
7762
7763         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
7764         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
7765         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
7766
7767 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
7768
7769         PR c/35434
7770         * c-common.c (handle_alias_attribute): Disallow attribute for
7771         anything not a FUNCTION_DECL or VAR_DECL.
7772
7773 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
7774
7775         PR c/39035
7776         * real.c (do_compare): Special-case compare of zero against
7777         decimal float value.
7778
7779 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
7780
7781         PR c/36432
7782         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
7783         as indicating flexible array members unless the field itself is
7784         being declarared as the incomplete array.
7785
7786 2009-02-06  Jan Hubicka  <jh@suse.cz>
7787
7788         PR tree-optimization/38844
7789         * ipa-inline.c (try_inline): Stop inlining recursion when edge
7790         is already inlined.
7791
7792 2009-02-06  Richard Guenther  <rguenther@suse.de>
7793
7794         PR middle-end/38977
7795         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
7796         fork because we may expand it as __gcov_fork.
7797
7798 2009-02-06  Nick Clifton  <nickc@redhat.com>
7799
7800         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
7801
7802 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
7803
7804         PR tree-optimization/35659
7805         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
7806         vn_phi_eq): Shortcut if hashcode does not match.
7807         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
7808         NULL operands.
7809         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
7810         and avoid iterative_hash_expr.
7811         (FOR_EACH_VALUE_ID_IN_SET): New.
7812         (value_id_compare): Remove.
7813         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
7814         sort expressions by value id.
7815
7816 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
7817
7818         PR target/38991
7819         * config/sh/predicates.md (general_movsrc_operand): Don't check
7820         the subreg of system registers here.
7821
7822 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
7823
7824         PR c++/39106
7825         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
7826         on the copied decl.
7827
7828 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
7829
7830         PR rtl-optimization/39110
7831         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
7832         addresses, not aligned ones.
7833
7834 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
7835             Richard Guenther  <rguenther@suse.de>
7836
7837         PR tree-optimization/39100
7838         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
7839         comment says and add edges.
7840
7841 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
7842
7843         PR c/35435
7844         * c-common.c (handle_tls_model_attribute): Ignore attribute for
7845         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
7846
7847 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
7848
7849         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
7850         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
7851         register_bb_in_sese, new_sese, free_sese): Moved.
7852         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
7853         outermost_loop_in_scop, build_scop_iteration_domain,
7854         expand_scalar_variables_ssa_name, get_vdef_before_scop,
7855         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
7856         Use loop_in_sese_p instead of loop_in_scop_p.
7857         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
7858         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
7859         (scopdet_basic_block_info): Fix bug in scop detection.
7860         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
7861         eq_loop_to_cloog_loop): Remove.
7862         (nb_loops_around_loop_in_scop, nb_loop
7863         ref_nb_loops): Moved here...
7864         * graphite.h (ref_nb_loops): ... from here.
7865         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
7866         (loop_domain_dim, loop_iteration_vector_dim): Remove.
7867         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
7868         * testsuite/gcc.dg/graphite/scop-19.c: New
7869
7870 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
7871             Hans-Peter Nilsson  <hp@axis.com>
7872
7873         PR rtl-optimization/37889
7874         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
7875         Move offset handling from PLUS to before the switch.  Use new
7876         arguments when considering SYMBOL_REFs too.
7877         (rtx_addr_can_trap_p): Pass dummy offset and size.
7878         (enum may_trap_p_flags): Remove.
7879         (may_trap_p_1): Pass size from MEM_SIZE.
7880
7881         PR rtl-optimization/38921
7882         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
7883         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
7884         * rtlanal.c (may_trap_after_code_motion_p): Delete.
7885         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
7886
7887 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
7888
7889         AVX Programming Reference (January, 2009)
7890         * config/i386/sse.md (*vpclmulqdq): New.
7891
7892 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
7893
7894         PR tree-optimization/38977
7895         PR gcov-profile/38292
7896         * calls.c (special_function_p): Disregard __builtin_ prefix.
7897
7898 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
7899
7900         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
7901         non-indexable addresses even before reload.
7902
7903 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
7904
7905         PR c/29129
7906         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
7907         as having variable size.  Do not give an error for unnamed
7908         parameters with [*] declarators.  Give a warning for type names
7909         with [*] declarators and mark them as variable size.
7910         * c-parser.c (c_parser_sizeof_expression): Do not give an error
7911         for sizeof applied to [*] type names.
7912
7913 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7914
7915         PR C++/36607
7916         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
7917
7918 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
7919
7920         * gcc.c (process_command): Update copyright notice dates.
7921         * gcov.c (print_version): Likewise.
7922         * gcov-dump.c (print_version): Likewise.
7923         * mips-tfile.c (main): Likewise.
7924         * mips-tdump.c (main): Likewise.
7925
7926 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
7927
7928         PR c/35433
7929         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
7930         for composite type involving a zero-length array type.
7931
7932 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
7933
7934         PR target/35318
7935         * function.c (match_asm_constraints_1): Skip over
7936         initial optional % in the constraint.
7937
7938         PR inline-asm/39059
7939         * c-parser.c (c_parser_postfix_expression): If fixed point is not
7940         supported, don't accept FIXED_CSTs.
7941         * c-decl.c (finish_declspecs): Error if fixed point is not supported
7942         and _Sat is used without _Fract/_Accum.  Set specs->type to
7943         integer_type_node for cts_fract/cts_accum if fixed point is not
7944         supported.
7945
7946 2009-02-02  Catherine Moore  <clm@codesourcery.com>
7947
7948         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
7949
7950 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
7951
7952         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
7953         (ABI_HAS_64BIT_SYMBOLS): Use it.
7954         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
7955
7956 2009-02-02  Paul Brook  <paul@codesourcery.com>
7957
7958         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
7959
7960 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
7961
7962         PR inline-asm/39058
7963         * recog.h (asm_operand_ok): Add constraints argument.
7964         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
7965         recurse on matching constraint.
7966         (check_asm_operands): Pass constraints as 3rd argument to
7967         asm_operand_ok.  Don't look up matching constraint here.
7968         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
7969         to asm_operand_ok.
7970
7971 2009-02-02  Ben Elliston  <bje@au.ibm.com>
7972
7973         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
7974         TARGET_NARROW_VOLATILE_BITFIELD macro names.
7975
7976 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7977
7978         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
7979         information.  Remove some obsolete information.  Reorganize.
7980
7981         * config/pa/fptr.c: Revert license to GPL 2.
7982         * config/pa/milli64.S: Likewise.
7983
7984 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
7985
7986         PR target/38904
7987         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
7988         LIBRARY name in, instead of hard-coding it.
7989         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
7990         extra target make frag to tmake_files according to EH model.
7991         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
7992         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
7993         frags that define makefile variable EH_MODEL appropriately.
7994         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
7995         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
7996         to "-sjlj" according to type of EH configured.
7997         (LIBGCC_SONAME):  Concatenate it to shared library base name.
7998         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
7999         to "_sjlj" according to type of EH configured.
8000         (LIBGCC_SONAME):  Concatenate it to shared library base name.
8001         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
8002         (SHLIB_LINK):  Add missing semicolon to if-else construct.
8003         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
8004         string value of "pe_dll" command-line option.
8005         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
8006         (SHLIB_SONAME):  Use it when overriding t-cygming default.
8007         (SHLIB_IMPLIB):  Override t-cygming default.
8008         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
8009         string value of "pe_dll" command-line option.
8010
8011 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
8012
8013         PR target/38952
8014         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
8015         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
8016
8017 2009-01-31  Richard Guenther  <rguenther@suse.de>
8018
8019         PR tree-optimization/38937
8020         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
8021         computing the transitive closure.
8022
8023 2009-01-30  Richard Guenther  <rguenther@suse.de>
8024
8025         PR tree-optimization/39041
8026         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
8027         Propagate variable indices only if the types match for this stmt.
8028
8029 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
8030
8031         PR target/39013
8032         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
8033         inline but never defined.
8034
8035 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
8036
8037         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
8038         (*insv_h_di_reg_extimm): New insn.
8039         (*insv_l<mode>_reg_extimm): New insn.
8040
8041 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
8042
8043         * config/picochip/picochip.c (flag_conserve_stack): set
8044         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
8045         fconserve-stack. Reduce call-overhead used by inliner.
8046
8047 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
8048
8049         PR/38157
8050         * common.opt (flag_conserve_stack): Initialised to zero.
8051
8052 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
8053
8054         PR/39002
8055         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
8056         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
8057         method.
8058
8059 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
8060
8061         * ira-color.c (allocno_reload_assign): Update comments.
8062         * regmove.c (regmove_optimize): Likewise.
8063
8064         * ra.h: Removed.
8065
8066 2009-01-29  Robert Millan  <rmh@aybabtu.com>
8067
8068         * gcc/config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
8069         * gcc/config/i386/kopensolaris-gnu.h: New file.  Undefine
8070         `MD_UNWIND_SUPPORT'.
8071         * gcc/config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
8072
8073 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
8074
8075         PR tree-optimization/39007
8076         * tree-loop-distribution.c (generate_builtin): Use
8077         recompute_dominator to compute the immediate dominator of the
8078         basic block just after the loop.
8079
8080 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8081
8082         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
8083         (ASM_OUTPUT_DWARF_PCREL): Define.
8084
8085 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
8086
8087         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
8088         * doc/passes.texi: Remove entries about regclass, local-alloc, and
8089         global.  Modify entries about regmove and IRA.
8090
8091         * ra-conflict.c: Remove the file.
8092
8093         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
8094
8095         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
8096         (pass_regclass_init): Rename to pass_reginfo_init.
8097
8098         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
8099
8100         * toplev.h (flag_ira): Remove.
8101
8102         * caller-save.c (setup_save_areas): Remove flag_ira.
8103
8104         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
8105
8106         * global.c: Remove the file.
8107
8108         * opts.c (decode_options): Remove flag_ira.
8109
8110         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
8111
8112         * regmove.c: Modify file description.
8113         (find_use_as_address, try_auto_increment): Define them only if
8114         AUTO_INC_DEC is defined.
8115         (replacement_quality, replace_in_call_usage, fixup_match_1,
8116         stable_and_no_regs_but_for_p): Remove.
8117         (reg_set_in_bb): Make it static.
8118         (regmove_optimize): Remove flag_ira and code which worked for
8119         !flag_ira.
8120
8121         * local-alloc.c: Remove the file.
8122
8123         * common.opt (fira): Remove.
8124
8125         * ira.c: Include except.h.
8126         (eliminable_regset): Move from global.c.
8127         (mark_elimination): Ditto.  Remove flag_ira.
8128         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
8129         equiv_mem_modified, validate_equiv_mem_from_store,
8130         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
8131         contains_replace_regs, memref_referenced_p, memref_used_between_p,
8132         no_equiv, recorded_label_ref): Move from local-alloc.c.
8133         (update_equiv_regs): Ditto.  Make it static.
8134         (print_insn_chain, print_insn_chains): Move it from global.c.
8135         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
8136         (build_insn_chain): Ditto.  Make it static.
8137         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
8138         Rename to init_live_subregs.
8139         (gate_ira): Remove flag_ira.
8140
8141         * regclass.c: Rename reginfo.c.  Change file description.
8142         (FORBIDDEN_INC_DEC_CLASSES): Remove.
8143         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
8144         (init_reg_sets_1): Remove code for evaluation of
8145         reg_class_superclasses and losing_caller_save_reg_set.
8146         (init_regs): Remove init_reg_autoinc.
8147         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
8148         ok_for_base_p_nonstrict): Remove.
8149         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
8150         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
8151         corresponding entries.
8152         (dump_regclass, record_operand_costs, scan_one_insn,
8153         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
8154         record_address_regs, auto_inc_dec_reg_p): Remove.
8155         (gt-regclass.h): Rename to gt-reginfo.h.
8156
8157         * rtl.h (dump_global_regs, retry_global_alloc,
8158         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
8159
8160         * Makefile.in (RA_H): Remove.
8161         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
8162         Rename regclass.o to reginfo.o.
8163         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
8164         gt-reginfo.h.
8165         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
8166         (GTFILES): Rename regclass.c to reginfo.c.
8167
8168         * passes.c (init_optimization_passes): Remove pass_local_alloc and
8169         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
8170
8171         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
8172         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
8173         Remove flag_ira.
8174         (finish_spills): Ditto.  Remove code for !flag_ira.
8175
8176 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
8177
8178         PR middle-end/35854
8179         * doc/invoke.texi (rtl debug options): Complete rewrite.
8180         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
8181         to auto_inc_dec".
8182         * mode-switching.c (pass_mode_switching): Rename pass from
8183         "mode-sw" to "mode_sw".
8184         * except.c (pass_convert_to_eh_ranges): Rename pass from
8185         "eh-ranges" to "eh_ranges".
8186         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
8187         to "subreg1".
8188
8189
8190 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
8191             Alexander Monakov  <amonakov@ispras.ru>
8192
8193         PR middle-end/38857
8194         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
8195         register.
8196         (move_exprs_to_boundary): Change return type and pass through
8197         should_move from move_op.  Relax assert.  Update usage ...
8198         (schedule_expr_on_boundary): ... here.  Use should_move instead of
8199         cant_move.
8200         (move_op_orig_expr_found): Indicate that insn was disconnected from
8201         stream.
8202         (code_motion_process_successors): Do not call after_merge_succs
8203         callback if original expression was not found when traversing any of
8204         the branches.
8205         (code_motion_path_driver): Change return type.  Update prototype.
8206         (move_op): Update comment.  Add a new parameter (should_move).  Update
8207         prototype.  Set *should_move based on indication provided by
8208         move_op_orig_expr_found.
8209
8210 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
8211
8212         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
8213         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
8214         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
8215         * config/rs6000/rs6000.c (rs6000_override_options): Default
8216         avoid-indexed-addresses on for Power6, off for everything else.
8217         (avoiding_indexed_address_p): New function.
8218         (rs6000_legitimize_address): Use it.
8219         (rs6000_legitimate_address): Likewise.
8220         * config/rs6000/rs6000.md (movXX_updateX): Likewise
8221
8222 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
8223
8224         PR tree-optimization/38997
8225         * tree-loop-distribution.c (generate_memset_zero): Use
8226         POINTER_PLUS_EXPR for a pointer addition.
8227
8228 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
8229
8230         * config/s390/s390.md (bswap<mode>2): New pattern added.
8231
8232 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
8233
8234         * config/s390/s390.md (*tls_load_31): Added type attribute.
8235
8236 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
8237
8238         * config/s390/s390.md: Fix a few comments.
8239
8240 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
8241
8242         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
8243         (*tm<mode>_full): Fixed z10prop attribute.
8244         (*tst<mode>_extimm): Fixed z10prop attribute.
8245         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
8246         (*tstqiCCT_cconly): Fixed z10prop attribute.
8247         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
8248         (*movsi_larl): Fixed z10prop attribute.
8249         (*movsi_zarch): Fixed z10prop attribute.
8250         (*movsi_eas): Fixed z10prop attribute.
8251         (*movhi): Fixed z10prop attribute.
8252         (*movqi): Fixed z10prop attribute.
8253         (*movstrictqi): Fixed z10prop attribute.
8254         (*mov<mode>): Fixed z10prop attribute.
8255         (*movcc): Fixed z10prop attribute.
8256         (*sethighpartdi_64): Fixed z10prop attribute.
8257         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
8258         (*negdi2_sign_cc): Fixed z10prop attribute.
8259         (*negdi2_sign): Fixed z10prop attribute.
8260         (*absdi2_sign_cc): Fixed z10prop attribute.
8261         (*absdi2_sign): Fixed z10prop attribute.
8262         (*negabsdi2_sign_cc): Fixed z10prop attribute.
8263         (*negabsdi2_sign): Fixed z10prop attribute.
8264         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
8265         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
8266         (doloop_si64): Fixed z10prop attribute.
8267         (doloop_si31): Fixed z10prop attribute.
8268         (doloop_long): Fixed z10prop attribute.
8269         (indirect_jump): Fixed z10prop attribute.
8270         (nop): Fixed z10prop attribute.
8271         (main_base_64): Fixed z10prop attribute.
8272         (reload_base_64): Fixed z10prop attribute.
8273
8274 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
8275
8276         PR rtl-optimization/38740
8277         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
8278         if !optimize.
8279         * config/mips/mips.c (mips_reorg): Likewise.
8280
8281 2009-01-28  Richard Guenther  <rguenther@suse.de>
8282
8283         PR tree-optimization/38926
8284         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
8285         with the correct value id to a value.
8286         (do_regular_insertion): Use the value number of edoubleprime
8287         for the value number of the expr.
8288
8289         Revert
8290         2008-08-21  Richard Guenther  <rguenther@suse.de>
8291
8292         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
8293         a PHI ask VN if it is already available.
8294         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
8295         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
8296
8297 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
8298
8299         PR middle-end/38934
8300         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
8301         set to varying whenever max has TREE_OVERFLOW set, similarly
8302         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
8303
8304 2009-01-28  Richard Guenther  <rguenther@suse.de>
8305
8306         PR middle-end/38908
8307         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
8308         uninitialized aggregate uses in call arguments.
8309
8310 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
8311
8312         PR tree-optimization/38984
8313         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
8314         the nothing_id variable if -fno-delete-null-pointer-checks.
8315
8316 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
8317
8318         PR target/38988
8319         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
8320         (set_got_offset_rex64): Ditto.
8321
8322 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
8323
8324         PR target/38941
8325         * doc/extend.texi: Improve local variable with asm reg.
8326
8327 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
8328
8329         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
8330         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
8331         was not supplied then set warn_packed_bitfield_compat to the
8332         default value of 1.
8333         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
8334         against 1.
8335
8336 2009-01-27  Richard Guenther  <rguenther@suse.de>
8337
8338         PR tree-optimization/38503
8339         * cfgexpand.c (expand_gimple_basic_block): Ignore
8340         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
8341         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
8342         variables that cannot have TBAA applied.
8343         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
8344         statements.
8345
8346 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
8347
8348         PR middle-end/38969
8349         * calls.c (initialize_argument_information): Do not wrap complex
8350         arguments in SAVE_EXPR.
8351
8352 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
8353
8354         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
8355         (INSTALL_LIBGCC): Revert typo commit.
8356
8357 2009-01-26  Richard Guenther  <rguenther@suse.de>
8358
8359         PR tree-optimization/38745
8360         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
8361         from special handling.
8362
8363 2009-01-26  Richard Guenther  <rguenther@suse.de>
8364
8365         PR tree-optimization/38745
8366         * tree-ssa.c (execute_update_addresses_taken): Do not include
8367         variables that cannot possibly be a register in not_reg_needs.
8368         Do not clear TREE_ADDRESSABLE on vars that may not become
8369         registers.
8370         * tree-ssa.c (update_alias_info_1): Include those in the set
8371         of addressable vars.
8372
8373 2009-01-26  Richard Guenther  <rguenther@suse.de>
8374
8375         PR middle-end/38851
8376         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
8377         * tree-ssa-dse.c: Include langhooks.h
8378         (execute_simple_dse): Remove stores with zero size.
8379
8380 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
8381
8382         PR c/38957
8383         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
8384         as PLUS_EXPR.
8385
8386 2009-01-24  Julian Brown  <julian@codesourcery.com>
8387
8388         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
8389         config/arm/linux-atomic.c.
8390         * config/arm/linux-atomic.c: New.
8391
8392 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
8393
8394         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
8395         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
8396         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
8397
8398 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
8399
8400         PR c/38938
8401         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
8402         properly.
8403
8404 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
8405
8406         PR tree-optimization/38953
8407         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
8408         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
8409         (gloog): Split the exit of the scop when the scop exit is a loop exit.
8410         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
8411         changed the CFG.
8412
8413 2009-01-24  Paul Brook  <paul@codesourcery.com>
8414
8415         * config/arm/neon.md (neon_type): Move to arm.md.
8416         (neon_mov<VSTRUCT>): Add neon_type attribute.
8417         * config/arm/arm.md (neon_type): Move to here.
8418         (conds): Add "unconditioal" and use as default for NEON insns.
8419
8420 2009-01-24  Ben Elliston  <bje@au.ibm.com>
8421
8422         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
8423         void *' warning from -Wc++-compat.
8424         * Makefile.in (dominance.o-warn): Remove.
8425
8426 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
8427
8428         PR tree-optimization/38932
8429         * fold-const.c (fold_unary_ignore_overflow): New.
8430         * tree.h (fold_unary_ignore_overflow): Declare.
8431         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
8432         * tree-ssa-sccvn.c (visit_reference_op_load,
8433         simplify_unary_expression): Likewise.
8434
8435 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
8436
8437         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
8438         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
8439         regardless of their type.
8440         * c-common.c (handle_packed_attribute): Don't ignore packed on
8441         bitfields.
8442         * c.opt (Wpacked-bitfield-compat): New warning option.
8443         * stor-layout.c (place_field): Warn if offset of a field changed.
8444         * doc/extend.texi (packed): Mention the ABI change.
8445         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
8446         (Warning Options): Add it to the list.
8447
8448 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
8449
8450         * c-opts.c (c_common_post_options): Fix a typo in comments.
8451
8452 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
8453
8454         PR middle-end/38615
8455         * gimplify.c (gimplify_init_constructor): Fix promotion of const
8456         variables to static.
8457         * doc/invoke.texi (-fmerge-all-constants): Update description.
8458
8459 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
8460
8461         PR target/38931
8462         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
8463         (*movdi_1_rex64): Use type "mmx" for alternative 5.
8464
8465 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
8466
8467         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
8468         a word boundary.
8469         (LOCAL_ALIGNMENT): Similarly.
8470
8471 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
8472             Joseph Myers  <joseph@codesourcery.com>
8473
8474         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
8475         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
8476         * config/arm/arm-tune.md: Regenerate.
8477         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
8478         -march=iwmmxt2.
8479
8480 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
8481
8482         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
8483         version number to five.
8484
8485 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
8486
8487         PR c++/38930
8488         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
8489         * c-common.c (set_underlying_type): Likewise.
8490         (is_typedef_decl ): Likewise
8491         * tree.h: Likewise
8492         (set_underlying_type): Likewise.
8493         (is_typedef_type): Likewise.
8494
8495 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
8496
8497         PR middle-end/38587
8498         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
8499         crossing setjmps.
8500
8501 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
8502
8503         PR bootstrap/37660
8504         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
8505         (LIBGCC_SPEC):  Don't define.
8506         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
8507
8508 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
8509
8510         PR rtl-optimization/38879
8511         * alias.c (base_alias_check): Unaligned access via AND address can
8512         alias all surrounding object types except those with sizes equal
8513         or wider than the size of unaligned access.
8514
8515 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
8516
8517         PR c++/26693
8518         * c-decl.c (clone_underlying_type): Move this ...
8519         * c-common.c (set_underlying_type): ... here.
8520         Also, make sure the function properly sets TYPE_STUB_DECL() on
8521         the newly created typedef variant type.
8522         (is_typedef_decl ): New entry point.
8523         * tree.h: Added a new member member_types_needing_access_check to
8524         struct tree_decl_non_common.
8525         (set_underlying_type): New entry point.
8526         (is_typedef_type): Likewise.
8527
8528 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
8529
8530         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
8531         Check whether two instructions have memory references that
8532         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
8533         are helper functions for traversing.
8534         * alias.h (insn_alias_sets_confilict_p): New prototypes.
8535         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
8536         not to draw dependency edge for instructions with non-conflicting
8537         alias sets.
8538
8539 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
8540
8541         PR other/38758
8542         * longlong.h: Update copyright years.  Use soft-fp license notice.
8543         Sync __clz_tab declaration with glibc.
8544
8545 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
8546
8547         PR target/30687
8548         * doc/extend.texi (syscall_linkage): New.
8549         (version_id): Modify.
8550
8551 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8552             Richard Guenther  <rguenther@suse.de>
8553
8554         PR tree-optimization/38747
8555         PR tree-optimization/38748
8556         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
8557         conversion if the base address is an indirect reference and the
8558         aliasing sets could cause issues.
8559
8560 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
8561
8562         * common.opt (fgraphite, fgraphite-identity): Add comment for
8563         explaining why these options are not documented.
8564
8565 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
8566
8567         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
8568         gimple_call_lhs is NULL.
8569
8570 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
8571
8572         PR target/38868
8573         * emit-rtl.c (adjust_address_1): Make sure memref is never
8574         overwritten.
8575
8576 2009-01-20  Ben Elliston  <bje@au.ibm.com>
8577
8578         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
8579         const qualifier from arg parameter. Remove unnecessary cast to char *.
8580         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
8581         const qualifier from arg 2.
8582
8583 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
8584
8585         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
8586
8587 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
8588
8589         PR c/38869
8590         * rtl.h (reinit_regs): New prototype.
8591         * regclass.c: Include ira.h.
8592         (reinit_regs): New.
8593         * Makefile.in (regclass.o): Add ira.h.
8594         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
8595
8596 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
8597
8598         PR target/38736
8599         * c-common.c (handle_aligned_attribute): Use
8600         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
8601         default alignment value.
8602
8603         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
8604
8605         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
8606         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
8607
8608         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
8609         __BIGGEST_ALIGNMENT__.
8610
8611         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
8612
8613 2009-01-18  Richard Guenther  <rguenther@suse.de>
8614
8615         PR tree-optimization/38819
8616         * tree-flow.h (operation_could_trap_helper_p): Declare.
8617         * tree-eh.c (operation_could_trap_helper_p): Export.
8618         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
8619         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
8620         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
8621         are about to insert a possibly trapping instruction and fail
8622         in this case.
8623
8624 2009-01-18  Andreas Schwab  <schwab@suse.de>
8625
8626         * doc/install.texi (Configuration): Remove obsolete paragraph
8627         about use of --with-gnu-ld with --with-gnu-as.
8628
8629 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
8630
8631         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
8632         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
8633         Follow spelling conventions.
8634
8635 2009-01-18  Ben Elliston  <bje@au.ibm.com>
8636
8637         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
8638         C++ warning about implicit conversion from void * to struct
8639         bitmap_head_def *.
8640         (bitmap_obstack_free): Likewise for bitmap_element *.
8641         * Makefile.in (bitmap.o-warn): Remove.
8642
8643 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
8644
8645         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
8646
8647 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
8648             Tobias Grosser  <tobi.grosser@amd.com>
8649
8650         * graphite.c (graphite_trans_scop_block): Do not block single
8651         nested loops.
8652
8653 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
8654
8655         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
8656         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
8657         test with assertion.
8658
8659 2009-01-16  Richard Guenther  <rguenther@suse.de>
8660
8661         PR tree-optimization/38835
8662         PR middle-end/36227
8663         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
8664         and INT + PTR -> (INT)(PTR p+ INT) folding.
8665         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
8666
8667 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
8668
8669         PR target/38554
8670         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
8671         the subreg from a lowpart subreg if it is also casting the value.
8672
8673 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
8674             Tobias Grosser  <tobi.grosser@amd.com>
8675
8676         * graphite.c (compare_prefix_loops): New.
8677         (build_scop_canonical_schedules): Rewritten.
8678         (graphite_transform_loops): Move build_scop_canonical_schedules
8679         after build_scop_iteration_domain.
8680
8681 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
8682             Tobias Grosser  <tobi.grosser@amd.com>
8683
8684         * graphite.c (add_conditions_to_domain): Add the loops to
8685         the dimension of the iteration domain.  Do copy the domain
8686         only when it exists.
8687         (build_scop_conditions_1): Do not call add_conditions_to_domain.
8688         (add_conditions_to_constraints): New.
8689         (can_generate_code_stmt, can_generate_code): Removed.
8690         (gloog): Do not call can_generate_code.
8691         (graphite_transform_loops): Call add_conditions_to_constraints
8692         after building the iteration domain.
8693
8694 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
8695
8696         PR tree-optimization/38789
8697         * tree-ssa-threadedge.c
8698         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
8699         __builtin_constant_p.
8700
8701 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
8702
8703         * dce.c (delete_unmarked_insns): Reversed the order that insns are
8704         examined before deleting them.
8705
8706 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
8707
8708         * function.c (aggregate_value_p): Correctly extract the function
8709         type from CALL_EXPR_FN lookup.
8710
8711 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
8712
8713         * config/picochip/picochip.c (picochip_override_options): Revert
8714         CFI asm flag disable commited previously.
8715
8716 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
8717             Tobias Grosser  <tobi.grosser@amd.com>
8718             Jan Sjodin  <jan.sjodin@amd.com>
8719
8720         * graphite.c (scan_tree_for_params): On substractions negate
8721         all the coefficients of the term.
8722         (clast_to_gcc_expression_red): New.  Handle reduction expressions
8723         of more than two operands.
8724         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
8725         (get_vdef_before_scop): Handle also the case of default definitions.
8726
8727 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
8728
8729         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
8730         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
8731         Also use them when walking CALL_INSN_FUNCTION_USAGE.
8732
8733 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
8734             Joey Ye  <joey.ye@intel.com>
8735
8736         PR middle-end/37843
8737         * cfgexpand.c (expand_stack_alignment): Don't update stack
8738         boundary nor check incoming stack boundary here.
8739         (gimple_expand_cfg): Update stack boundary and check incoming
8740         stack boundary here.
8741
8742 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
8743
8744         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
8745
8746 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
8747
8748         PR rtl-optimization/38245
8749         * calls.c (expand_call): Add stack arguments to
8750         CALL_INSN_FUNCTION_USAGE even for pure calls (when
8751         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
8752         in regs and partially in memory or BLKmode arguments.
8753         (emit_library_call_value_1): Add stack arguments to
8754         CALL_INSN_FUNCTION_USAGE even for pure calls (when
8755         ACCUMULATE_OUTGOING_ARGS).
8756         * dce.c: Include tm_p.h.
8757         (find_call_stack_args): New function.
8758         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
8759         argument.
8760         (mark_insn): Call find_call_stack_args for CALL_Ps.
8761         (prescan_insns_for_dce): Walk insns backwards in bb rather than
8762         forwards.  Allocate and free arg_stores bitmap if needed, pass it
8763         down to deletable_insn_p, don't mark stores set in arg_stores
8764         bitmap, clear the bitmap at the beginning of each bb.
8765         * Makefile.in (dce.o): Depend on $(TM_P_H).
8766
8767 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
8768
8769         PR target/22599
8770         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
8771         to make sure the insn is a conditional test (bug 22599).  Reformat a
8772         few long lines.
8773
8774 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
8775
8776         PR middle-end/38431
8777         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
8778         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
8779         (gloog): Do not call cleanup_tree_cfg.
8780         (graphite_transform_loops): Call cleanup_tree_cfg after all
8781         scops have been code generated.
8782
8783 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
8784         * doc/gty.texi (Invoking the garbage collector): Added new node
8785         and section documenting ggc_collect.
8786
8787 2009-01-14  Richard Guenther  <rguenther@suse.de>
8788
8789         PR tree-optimization/38826
8790         PR middle-end/38477
8791         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
8792         initialization notes only if we actually emitted a warning.
8793         (intra_create_variable_infos): Add constraints for a result decl
8794         that is passed by hidden reference.
8795         (build_pred_graph): Mark all related variables non-direct on
8796         address-taking.
8797
8798 2009-01-14  Nick Clifton  <nickc@redhat.com>
8799
8800         * ira-conflicts.c: Include addresses.h for the definition of
8801         base_reg_class.
8802         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
8803         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
8804
8805 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
8806
8807         PR target/38811
8808         * Makefile.in (ira-lives.o): Add except.h.
8809
8810         * ira-lives.c: Include except.h.
8811         (process_bb_node_lives): Process can_throw_internal.
8812
8813 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
8814
8815         PR rtl-optimization/38774
8816         * combine.c (simplify_set): When undoing cc_use change, don't do
8817         PUT_CODE on the newly created comparison, but instead put back the
8818         old comparison.
8819
8820 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
8821
8822         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
8823         values.  Remove duplicate arm8 entry.
8824
8825 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
8826
8827         PR tree-optimization/38786
8828         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
8829         the SSA_NAME case of expand_scalar_variables_expr.
8830         Set the type of an expression to the type of its assign statement.
8831         (expand_scalar_variables_expr): Also gather the scalar computation
8832         used to index the memory access.  Do not pass loop_p.
8833         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
8834         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
8835         the gimple_stmt_iterator where it inserts new code.
8836         Do not pass loop_p.
8837         (copy_bb_and_scalar_dependences): Do not pass loop_p.
8838         (translate_clast): Update call to copy_bb_and_scalar_dependences.
8839
8840 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
8841
8842         * graphite.h (debug_value): Removed.
8843         * graphite.c (debug_value): Removed.
8844
8845 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
8846
8847         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
8848         ldrd/strd with two 32-bit instructions.
8849
8850 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
8851
8852         * config/arm/arm.c (struct processors): Pass for speed down into
8853         cost helper functions.
8854         (const_ok_for_op): Handle COMPARE and inequality nodes.
8855         (arm_rtx_costs_1): Rewrite.
8856         (arm_size_rtx_costs): Update prototype.
8857         (arm_rtx_costs): Pass speed down to helper functions.
8858         (arm_slowmul_rtx_costs): Rework cost calculations.
8859         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
8860         (arm_9e_rtx_costs): Likewise.
8861
8862 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
8863
8864         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
8865         relocations of local symbols wider than UNITS_PER_WORD are not valid.
8866         (alpha_legitimize_address): Do not split local symbols wider than
8867         UNITS_PER_WORD into HIGH/LO_SUM parts.
8868
8869 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
8870
8871         PR bootstrap/38580
8872         * gcc.c (process_command): Replace call to execvp with calls
8873         to pex_one and exit.
8874
8875 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
8876
8877         PR target/29141
8878         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
8879         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
8880         variant for devices with 3-byte PC.
8881         (__tablejump_elpm__): New.
8882
8883 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
8884
8885         PR c/32041
8886         * c-parser.c (c_parser_postfix_expression): Allow `->' in
8887         offsetof member-designator, handle it as `[0].'.
8888
8889 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8890
8891         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
8892         function when not using named sections on targets with named sections
8893         if branch distance is less than 262132.
8894
8895 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
8896
8897         * combine.c (combine_instructions):  Recompute
8898         optimize_this_for_speed_p  for each BB in the main combine loop.
8899
8900 2009-01-12  Tomas Bily  <tbily@suse.cz>
8901
8902         PR middlend/38385
8903         * tree-loop-distribution.c (prop_phis): New function.
8904         (generate_builtin): Call prop_phis.
8905         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
8906
8907 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
8908
8909         PR tree-optimization/38807
8910         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
8911         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
8912
8913 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
8914
8915         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
8916         subreg of op0 to the original op0.
8917
8918 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
8919
8920         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
8921
8922 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
8923
8924         PR debug/7055
8925         * gcc/mips-tfile.c (parse_def): Fix parsing of def strings
8926         starting with digits.
8927
8928 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
8929
8930         PR target/38695
8931         * config/arm/arm.c (arm_is_long_call_p): Don't call
8932         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
8933
8934 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
8935
8936         * regrename.c (regrename_optimize): Fix dumping.
8937         (find_oldest_value_reg): Preserve REG_POINTER.
8938         (copy_hardreg_forward_1): Likewise.
8939
8940 2009-01-09  Diego Novillo  <dnovillo@google.com>
8941
8942         * gimple.h (struct gimple_statement_base) <uid>: Document
8943         the restrictions on its use.
8944         (gimple_uid): Tidy.
8945         (gimple_set_uid): Tidy.
8946
8947 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
8948
8949         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
8950         zero guard even if align_bytes != 0 and count is smaller than
8951         size_needed.
8952
8953 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
8954
8955         PR rtl-optimization/38495
8956         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
8957         (add_range_and_copies_from_move_list): Print all added ranges.
8958         Add ranges to memory optimized destination.
8959
8960 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
8961
8962         PR target/38686
8963         PR target/38708
8964         * config/i386/i386.c (override_options): Reject
8965         -mstringop-strategy=rep_8byte with -m32.
8966         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
8967         to 1.  Do count comparison against epilogue_size_needed at compile
8968         time even when count_exp was constant forced into register.  For
8969         size_needed don't jump to epilogue, instead just avoid aligning
8970         and invoke the body algorithm.  If need_zero_guard, add zero guard
8971         even if count is non-zero, but smaller than size_needed + number of
8972         bytes that could be stored for alignment.
8973         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
8974         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
8975         but smaller than size_needed + number of bytes that could be stored
8976         for alignment.  Compare size_needed with epilogue_size_needed instead
8977         of desired_align - align, don't adjust size_needed, pass
8978         epilogue_size_needed to the epilogue expanders.
8979
8980         PR c/35742
8981         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
8982
8983 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8984
8985         * pa.c (last_address): Change to unsigned.
8986         (update_total_code_bytes): Change argument to unsigned.  Don't
8987         check if insn addresses are set.
8988         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
8989         addresses are not set.
8990         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
8991
8992 2009-01-09  Nick Clifton  <nickc@redhat.com>
8993
8994         * config/sh/symbian.c: Replace uses of DECL_INLINE with
8995         DECL_DECLARED_INLINE_P.
8996
8997 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
8998
8999         PR middle-end/38347
9000         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
9001         GET_MODE (op0) in operand_subword_force calls.
9002
9003         PR middle-end/38771
9004         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
9005         fold_convert arg0 operands to TREE_TYPE (op0) first.
9006
9007 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
9008
9009         * params.def (ira-max-conflict-table-size): Decrease default value
9010         to 1000.
9011
9012 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
9013
9014         PR tree-optimization/37031
9015         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
9016         on parameter_set.
9017         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
9018         allocate it using gc instead of heap, use VEC_quick_push instead of
9019         VEC_safe_push.
9020         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
9021         instead of heap, use VEC_quick_push instead of VEC_safe_push.
9022         * tree-data-ref.h (struct access_matrix): Change matrix to gc
9023         allocated vector from heap allocated.
9024         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
9025         * tree-loop-linear.c (linear_transform_loops): Allocate nest
9026         vector only after perfect_loop_nest_depth call.
9027
9028 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
9029             Jan Sjodin  <jan.sjodin@amd.com>
9030
9031         PR tree-optimization/38559
9032         * graphite.c (debug_value, copy_constraint,
9033         swap_constraint_variables, scale_constraint_variable, ): New.
9034         (get_lower_bound, get_upper_bound): Removed.
9035         (graphite_trans_bb_strip_mine): Clean up this code that works
9036         only for constant number of iterations.  Fully copy upper and
9037         lower bound constraints, not only the constant part of them.
9038         * graphite.h (debug_value): Declared.
9039
9040 2009-01-08  Ira Rosen  <irar@il.ibm.com>
9041
9042         PR tree-optimization/37194
9043         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
9044         Don't add the cost of cost model guard in prologue to scalar
9045         outside cost in case of known number of iterations.
9046
9047 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
9048             Alan Modra  <amodra@bigpond.net.au>
9049
9050         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
9051         non-word-aligned REG+CONST addressing.
9052
9053 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
9054
9055         PR target/38706
9056         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
9057         free_after_compilation when outputting a thunk.
9058         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
9059         Do not call free_after_compilation here.
9060
9061 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
9062
9063         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
9064         (ix86_valid_target_attribute_inner_p): Ditto.
9065
9066 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
9067
9068         PR tree-optimization/38492
9069         PR tree-optimization/38498
9070         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
9071         * tree-chrec.h (scev_is_linear_expression): Declared.
9072         * graphite.c (graphite_cannot_represent_loop_niter): New.
9073         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
9074         (graphite_loop_normal_form): Use gcc_assert.
9075         (scan_tree_for_params): Use CASE_CONVERT.
9076         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
9077         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
9078         Use gcc_assert.  Discard scops that contain unhandled cases.
9079         (build_scop_conditions): Return a boolean status for unhandled cases.
9080         (strip_mine_profitable_p): Print the loop number, not its depth.
9081         (is_interchange_valid): Pass the depth of the loop nest, don't
9082         recompute it wrongly.
9083         (graphite_trans_bb_block): Same.
9084         (graphite_trans_bb_block): Print tentative of loop blocking.
9085         (graphite_trans_scop_block): Do not print that the loop has been
9086         blocked.
9087         (graphite_transform_loops): Do not handle scops that contain condition
9088         scalar phi nodes.
9089
9090 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
9091
9092         AVX Programming Reference (December, 2008)
9093         * config/i386/avxintrin.h (_mm256_stream_si256): New.
9094         (_mm256_stream_pd): Likewise.
9095         (_mm256_stream_ps): Likewise.
9096
9097         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
9098         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
9099         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
9100         (bdesc_special_args): Add __builtin_ia32_movntdq256,
9101         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
9102         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
9103         (ix86_expand_special_args_builtin): Likewise.
9104
9105         * config/i386/sse.md (AVXMODEDI): New.
9106         (avx_movnt<mode>): Likewise.
9107         (avx_movnt<mode>): Likewise.
9108         (<sse>_movnt<mode>): Remove AVX support.
9109         (sse2_movntv2di): Likewise.
9110
9111 2009-01-07  Richard Guenther  <rguenther@suse.de>
9112
9113         PR middle-end/38751
9114         * fold-const.c (extract_muldiv): Remove obsolete comment.
9115         (fold_plusminus_mult_expr): Undo MINUS_EXPR
9116         to PLUS_EXPR canonicalization for the canonicalization.
9117
9118 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
9119
9120         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
9121         hosted cross-compilers generating less efficient code.
9122
9123 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
9124
9125         * function.h (rtl_data): Add a dbr_scheduled_p field.
9126         * reorg.c (dbr_schedule): Set it.
9127         (gate_handle_delay_slots): Check it.
9128         * config/mips/mips.c (mips_base_delayed_branch): Delete.
9129         (mips_reorg): Check flag_delayed_branch instead of
9130         mips_base_delayed_branch.
9131         (mips_override_options): Don't set mips_base_delayed_branch
9132         or flag_delayed_branch.
9133
9134 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
9135
9136         PR rtl-optimization/38426.
9137         * ira.c (ira): Set current_function_is_leaf earlier.
9138
9139 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
9140
9141         PR rtl-optimization/38722
9142         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
9143         too early, only set a flag and modify after last possible
9144         undo_all point.
9145
9146 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
9147
9148         PR c/34252
9149         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
9150         * real.c (decimal_single_format): Correct values of emin and emax.
9151         (decimal_double_format): Ditto.
9152         (decimal_quad_format): Ditto.
9153         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
9154         computation of DECnn_MIN and DECnn_MAX for corrected values of
9155         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
9156         __DECnn_MIN__, and adjust its computation for the corrected value
9157         of emin.
9158
9159 2009-01-06  Jan Hubicka  <jh@suse.cz>
9160
9161         PR target/38744
9162         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
9163
9164 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
9165
9166         * doc/contrib.texi (Contributors): Slightly adjust the end note.
9167         Add Robert Clark to the list of testers.
9168
9169 2009-01-06  Jan Hubicka  <jh@suse.cz>
9170             Kai Tietz  <kai.tietz@onevision.com>
9171
9172         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
9173         * config/i386/i386.c (ix86_expand_call): Add clobbers.
9174
9175 2009-01-06  Jan Hubicka  <jh@suse.cz>
9176             Kai Tietz  <kai.tietz@onevision.com>
9177
9178         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
9179         for w64 ABI.
9180         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
9181         (ix86_nsaved_regs): Count only general purpose regs.
9182         (ix86_nsaved_sseregs): New.
9183         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
9184         to 16 for w64; compute padding and size of sse reg save area.
9185         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
9186         general purpose regs.
9187         (ix86_emit_save_sse_regs_using_mov): New.
9188         (ix86_expand_prologue): Save SSE regs if needed.
9189         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
9190         (ix86_emit_restore_sse_regs_using_mov): New.
9191         (ix86_expand_epilogue): Save SSE regs if needed.
9192
9193 2009-01-06  Jan Hubicka  <jh@suse.cz>
9194             Kai Tietz  <kai.tietz@onevision.com>
9195
9196         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
9197         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
9198         functions when accumulate outgoing args is off.
9199
9200 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
9201
9202         PR bootstrap/38742
9203         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
9204         before using pseudos_have_intersected_live_ranges_p.
9205
9206         * ira-int.h (ira_assert): Always define.
9207
9208 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
9209
9210         AVX Programming Reference (December, 2008)
9211         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
9212         (_mm256_permute2_pd): Likewise.
9213         (_mm_permute2_ps): Likewise.
9214         (_mm256_permute2_ps): Likewise.
9215         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
9216         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
9217
9218         * config/i386/i386.c (ix86_builtins): Remove
9219         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
9220         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
9221         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
9222         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
9223         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
9224         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
9225         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
9226         __builtin_ia32_vpermil2ps256.
9227         (ix86_init_mmx_sse_builtins): Updated.
9228         (ix86_expand_args_builtin): Likewise.
9229
9230 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9231
9232         * pa.c (output_call): Relocate non-jump insns in the delay slot of
9233         long absolute calls when generating PA 2.0 code.
9234
9235 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
9236
9237         PR rtl-optimization/38583
9238         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
9239
9240         * params.def (ira-max-conflict-table-size): New.
9241
9242         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
9243
9244         * ira.h (ira_conflicts_p): New external definition.
9245
9246         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
9247         table.  Report this.  Return result of building.
9248         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
9249         building conflict table.
9250
9251         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
9252         (ira_color): Use ira_conflicts_p.
9253
9254         * global.c: Include ira.h.
9255         (pseudo_for_reload_consideration_p, build_insn_chain): Use
9256         ira_conflicts_p.
9257
9258         * Makefile.in (global.o): Add ira.h.
9259
9260         * ira-build.c (mark_all_loops_for_removal,
9261         propagate_some_info_from_allocno): New.
9262         (remove_unnecessary_allocnos): Call
9263         propagate_some_info_from_allocno.
9264         (remove_low_level_allocnos): New.
9265         (remove_unnecessary_regions): Add parameter.  Call
9266         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
9267         parameter to remove_unnecessary_regions.
9268         (ira_build): Remove all regions but root if the conflict table was
9269         not built.  Update conflict hard regs for allocnos crossing calls.
9270
9271         * ira.c (ira_conflicts_p): New global.
9272         (ira): Define and use ira_conflicts_p.
9273
9274         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
9275         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
9276         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
9277
9278 2009-01-06  Ben Elliston  <bje@au.ibm.com>
9279
9280         * gengtype-lex.l (YY_NO_INPUT): Define.
9281
9282 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9283
9284         PR c/34911
9285         * c-common.c (handle_vector_size_attribute): Also reject
9286         BOOLEAN_TYPE types.
9287
9288 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
9289
9290         PR tree-optimization/38492
9291         * graphite.c (rename_map_elt, debug_rename_elt,
9292         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
9293         rename_map_elt_info, eq_rename_map_elts,
9294         get_new_name_from_old_name, bb_in_sese_p): Moved around.
9295         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
9296         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
9297         (sese_build_livein_liveouts): New.
9298         (new_sese, free_sese): New.
9299         (new_scop): Call new_sese.
9300         (free_scop): Call free_sese.
9301         (rename_variables_from_edge, rename_phis_end_scop): Removed.
9302         (register_old_new_names): Renamed register_old_and_new_names.
9303         (register_scop_liveout_renames, add_loop_exit_phis,
9304         insert_loop_close_phis, struct igp,
9305         default_liveout_before_guard, add_guard_exit_phis,
9306         insert_guard_phis, copy_renames): New.
9307         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
9308         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
9309         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
9310         (scop_adjust_phis_for_liveouts): New.
9311         (gloog): Call scop_adjust_phis_for_liveouts.
9312
9313         * graphite.h (struct sese): Documented.  Added fields liveout,
9314         num_ver and livein.
9315         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
9316         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
9317         (struct scop): Added field liveout_renames.
9318         (SCOP_LIVEOUT_RENAMES): New.
9319
9320 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
9321
9322         PR tree-optimization/38510
9323         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
9324         (translate_clast): Call recompute_all_dominators before
9325         graphite_verify.
9326         (gloog): Call recompute_all_dominators before graphite_verify.
9327
9328 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
9329             Jan Sjodin  <jan.sjodin@amd.com>
9330
9331         PR tree-optimization/38500
9332         * graphite.c (create_sese_edges): Call fix_loop_structure after
9333         splitting blocks.
9334
9335 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
9336
9337         * config.gcc: Add m32r*-*-rtems*.
9338         * config/m32r/rtems.h: New file.
9339
9340 2009-01-05  Ben Elliston  <bje@au.ibm.com>
9341
9342         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
9343         (.po.pox): Likewise.
9344         (po/gcc.pot): Likewise.
9345
9346 2009-01-04  David S. Miller  <davem@davemloft.net>
9347
9348         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
9349         (STARTING_FRAME_OFFSET): Always set to zero.
9350
9351 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
9352
9353         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
9354         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
9355         fixed-point types, and vectors of the same.
9356
9357 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
9358
9359         * config/mips/sync.md (*mb_barrier): Rename to...
9360         (*memory_barrier): ...this.
9361
9362 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
9363
9364         * doc/extend.texi (Function Attributes): Move @cindex after @item
9365         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
9366         and put in alphabetical order. Fix 'target' name and put in order.
9367         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
9368         typos.
9369
9370 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
9371
9372         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
9373         (memory_barrier): Expand as unspec instead of unspec_volatile.
9374         Remove mem:BLK from insn operands.  Use Pmode scratch register.
9375         (*memory_barrier): Define as unspec instead of unspec_volatile.
9376         Use (match_dup 0) as input operand.
9377
9378         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
9379         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
9380         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
9381         scratch register.  Remove operand 1.
9382         (*stbar): Define as unspec instead of unspec_volatile.
9383         Use (match_dup 0) as input operand, remove (const_int 8).
9384         (*membar): Define as unspec instead of unspec_volatile.
9385         Use (match_dup 0) as input operand, remove input operand 2.
9386
9387         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
9388         (memory_barrier): Expand as unspec instead of unspec_volatile.
9389         Remove mem:BLK from insn operands.  Use Pmode scratch register.
9390         (*memory_barrier): Define as unspec instead of unspec_volatile.
9391         Use (match_dup 0) as input operand.
9392
9393         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
9394         Remove mem:BLK from insn operands.  Use Pmode scratch register.
9395         Set volatile flag on operand 0.
9396         (*memory_barrier): New insn pattern.
9397
9398         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
9399         insn operands.
9400         (*memory_barrier): Use (match_dup 0) as input operand.
9401
9402         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
9403         Remove mem:BLK from insn operands.  Use Pmode scratch register.
9404         Set volatile flag on operand 0.
9405         (*mb_internal): New insn pattern.
9406
9407         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
9408
9409 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
9410
9411         PR middle-end/38586
9412         * function.c (struct temp_slot): Move to the section of the file
9413         that deals with temp slots.  Remove field 'address'.
9414         (temp_slot_address_table): New hash table of address -> temp slot.
9415         (struct temp_slot_address_entry): New struct, items for the table.
9416         (temp_slot_address_compute_hash, temp_slot_address_hash,
9417         temp_slot_address_eq, insert_temp_slot_address): Support functions
9418         for the new table.
9419         (find_temp_slot_from_address): Rewrite to use the new hash table.
9420         (remove_unused_temp_slot_addresses): Remove addresses of temp
9421         slots that have been made available.
9422         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
9423         worker function for remove_unused_temp_slot_addresses.
9424         (assign_stack_temp_for_type): Don't clear the temp slot address list.
9425         Add the temp slot address to the address -> temp slot map.
9426         (update_temp_slot_address): Update via insert_temp_slot_address.
9427         (free_temp_slots): Call remove_unused_temp_slot_addresses.
9428         (pop_temp_slots): Likewise.
9429         (init_temp_slots): Allocate the address -> temp slot map, or empty
9430         the map if it is already allocated.
9431         (prepare_function_start): Initialize temp slot processing.
9432
9433 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
9434
9435         PR middle-end/38584
9436         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
9437         Calculate the size of all stack vars assuming no packing of stack
9438         vars will happen, replacing a quadratic algorithm with a linear one.
9439
9440 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
9441
9442         PR target/38707
9443         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
9444         can't be used.
9445
9446 2009-01-03  Diego Novillo  <dnovillo@google.com>
9447
9448         * doc/contrib.texi: Update contributions.
9449
9450 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
9451
9452         PR c++/38705
9453         * builtins.c (fold_builtin_memory_op): Give up if either operand
9454         is volatile.  Set srctype or desttype to non-qualified version
9455         of the other type.
9456
9457         PR c/38700
9458         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
9459         and FUNCTION_DECLs.
9460
9461 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
9462
9463         PR rtl-optimization/35805
9464         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
9465         problem if fast dce is able to remove any instructions.
9466         * dce.c (dce_process_block): Fix dump message.
9467
9468 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
9469
9470         PR 33649
9471         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
9472
9473 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
9474
9475         PR middle-end/38690
9476         * tree-flow.h (op_code_prio, op_prio): New prototypes.
9477         * tree-pretty-print.c (op_code_prio): New function.
9478         (op_prio): No longer static.  Use op_code_prio.
9479         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
9480         Use op_prio and op_code_prio to determine if () should be
9481         printed around operand(s) or not.
9482
9483         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
9484         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
9485         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
9486         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
9487         pp_character instead of pp_string for single letter printing.
9488
9489 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9490
9491         * doc/extend.texi: Fix '#pragma GCC option' typo.
9492
9493 2009-01-02  Richard Guenther  <rguenther@suse.de>
9494
9495         * doc/install.texi (--enable-checking): Mention different
9496         default for stage1.
9497         (--enable-stage1-checking): Document.
9498
9499 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
9500
9501         PR middle-end/30142
9502         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
9503         case to be an error.
9504
9505 2009-01-02  Ben Elliston  <bje@au.ibm.com>
9506
9507         * config/fp-bit.h (pack_d): Constify argument.
9508         * config/fp-bit.c (makenan): Constify return type. Remove casts.
9509         (isnan): Constify argument.
9510         (isinf): Likewise.
9511         (iszero): Likewise.
9512         (pack_d): Likewise.
9513         (_fpadd_parts): Constify return type.
9514         (_fpmul_parts): Likewise.
9515         (_fpdiv_parts): Likewise.
9516
9517 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
9518
9519         PR c/36489
9520         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
9521         warn about overwriting initializer with side-effects or
9522         -Woverride-init if !IMPLICIT.
9523         (output_init_element): Likewise.  Pass IMPLICIT down to
9524         add_pending_init.
9525         (process_init_element): Add IMPLICIT argument.  Pass it down
9526         to output_init_element.
9527         (push_init_element, pop_init_level, set_designator): Adjust
9528         process_init_element callers.
9529         (set_nonincremental_init, set_nonincremental_init_from_string):
9530         Adjust add_pending_init callers.
9531         (output_pending_init_elements): Adjust output_init_element callers.
9532         * c-tree.h (process_init_element): Adjust prototype.
9533         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
9534         process_init_element callers.
9535
9536 \f
9537 Copyright (C) 2009 Free Software Foundation, Inc.
9538
9539 Copying and distribution of this file, with or without modification,
9540 are permitted in any medium without royalty provided the copyright
9541 notice and this notice are preserved.