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