* config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
[official-gcc.git] / gcc / ChangeLog
blob77ec0a1b2435093d98bee1da5210cbed4287ad1f
1 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
3         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
5 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
7         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
8         GCC can bootstrap on AIX with GNU Binutils 2.20.
10 2009-06-16  Ian Lance Taylor  <iant@google.com>
12         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
14 2009-06-16  Ian Lance Taylor  <iant@google.com>
16         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
17         inline, not extern inline.
18         (exact_log2): Likewise.
19         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
20         test CLZ_HWI.
21         (exact_log2): Likewise, but don't test CTZ_HWI.
23 2009-06-16  Ian Lance Taylor  <iant@google.com>
25         * bitmap.c (bitmap_clear): Don't declare as inline.
26         * gimple.c (gimplify_assign): Likewise.
27         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
28         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
29         (sched_scan_info): Remove duplicate definition.
31 2009-06-16  Ian Lance Taylor  <iant@google.com>
33         * c-common.c (skip_evaluation): Don't define.
34         (c_inhibit_evaluation_warnings): Define global variable.
35         (overflow_warning): Check c_inhibit_evaluation_warnings rather
36         than skip_evaluation.
37         (convert_and_check, warn_for_div_by_zero): Likewise.
38         * c-common.h (skip_evaluation): Don't declare.
39         (c_inhibit_evaluation_warnings): Declare.
40         * c-parser.c (c_parser_typeof_specifier): Set
41         c_inhibit_evaluation_warnings rather than skip_evaluation.
42         (c_parser_conditional_expression): Likewise.
43         (c_parser_binary_expression): Likewise.
44         (c_parser_sizeof_expression): Likewise.
45         (c_parser_alignof_expression): Likewise.
46         * c-typeck.c (build_indirect_ref): Check
47         c_inhibit_evaluation_warnings rather than skip_evaluation.
48         (build_conditional_expr, build_binary_op): Likewise.
50 2009-06-16  Richard Guenther  <rguenther@suse.de>
52         * tree-ssa-alias.c (is_escape_site): Remove.
53         * tree-ssa-alias.h (enum escape_type): Remove.
54         (is_escape_site): Likewise.
55         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
56         via casts and asms without deferring to is_escape_site.
58 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
60         PR middle-end/40446
61         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
62         use gen_lowpart if op0 has complex mode.
64 2009-06-16  Richard Guenther  <rguenther@suse.de>
66         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
67         variables add them to ESCAPED.
68         (find_func_aliases): Do not make all indirectly stored values
69         escaped.
71 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
73         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
74         make_decl_one_only.
76 2009-06-16  Martin Jambor  <mjambor@suse.cz>
78         PR tree-optimization/40432
79         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
80         check whether we need to force gimple register operand.
82 2009-06-16  Martin Jambor  <mjambor@suse.cz>
84         PR tree-optimization/40413
85         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
86         build_ref_for_offset.
87         (propagate_subacesses_accross_link): Fix a typo in a comment.
89 2009-06-16  Ira Rosen  <irar@il.ibm.com>
91         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
92         with additional parameter.
93         * tree-vectorizer.h (enum vect_def_type): Add new value 
94         vect_nested_cycle.
95         (enum vect_relevant): Add comments.
96         (vect_is_simple_reduction): Add new argument.
97         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
98         Detect nested cycles.
99         (vect_is_simple_reduction): Update documentation, add an argument to
100         distinguish inner-loop reduction from nested cycle, detect nested
101         cycles, fix printings and indentation, don't swap operands in case
102         of nested cycle.
103         (get_initial_def_for_reduction): Handle subtraction.
104         (vect_create_epilog_for_reduction): Add new argument to specify
105         reduction variable.
106         (vect_finalize_reduction): Handle subtraction, fix comments.
107         (vectorizable_reduction): Handle nested cycles. In case of nested cycle
108         keep track of the reduction variable position. Call 
109         vect_is_simple_reduction with additional parameter. Use original 
110         statement code in reduction epilogue for nested cycle. Call
111         vect_create_epilog_for_reduction with additional parameter.
112         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert inner-loop
113         vectorization.
114         (vect_recog_widen_sum_pattern): Likewise.
115         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
116         and reductions.
117         (vect_mark_stmts_to_be_vectorized): Likewise.
118         (vect_get_vec_def_for_operand): Handle nested cycles.
120 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
122         * doc/invoke.texi (Debugging Options): Fix option index entries
123         for -fdump-statistics, -frandom-seed add entries for
124         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
125         (FRV Options): Fix entries for -mTLS, -mtls.
126         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
127         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
128         (M68hc1x Options): Fix @itemx for -mnominmax.
129         (MCore Options): Fix entry for -mno-lsim.
130         (MMIX Options): Fix entry for -mabi=mmixware.
131         (PDP-11 Options): Fix entry for -mbcopy-builtin.
133 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
135         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
136         Mention the plugin mode of gengtype.
137         * doc/gty.texi (Source Files Containing Type Information):
138         Likewise.
139         * gengtype.c: Updated copyright.
140         (plugin_files, nb_plugin_files) Added new static variables.
141         (measure_input_list) Care about plugin_files.
142         (write_rtx_next): Added early return in plugin mode.
143         (create_file): Updated copyright year in generated file. Added
144         asserts.
145         (oprintf): Added early return if NULL outf.
146         (get_output_file_with_visibility): Care of plugin_files.
147         (get_output_file_name): May return null.
148         (write_local): Added early return.
149         (put_mangled_filename): Ditto.
150         (finish_root_table): Added check for base_files.
151         (write_roots): Care about null when plugins.
152         (main): Added plugin mode.
154 2009-06-15  Ian Lance Taylor  <iant@google.com>
156         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in
157         switch.
158         * gcov.c (read_count_file): Add braces around variables declared
159         before label.
161         * c.opt (Wjump-misses-init): New warning.
162         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
163         -Wall and -Wc++-compat if not already set.
164         (c_common_post_options): Clear warn_jump_misses_init if it was not
165         set.
166         * c-decl.c (struct c_binding): Change type field to a union with
167         new label field.  Make it the first field in the struct.  Update
168         references to type to use u.type instead.
169         (struct c_spot_bindings): Define.
170         (struct c_goto_bindings): Define.
171         (c_goto_bindings_p): Define, along with VECs.
172         (struct c_label_vars): Define.
173         (struct c_scope): Add has_label_bindings field.
174         (bind_label, set_spot_bindings): New static functions.
175         (decl_jump_unsafe, update_spot_bindings): New static functions.
176         (update_label_decls): New static function.
177         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
178         Update binding u.label field to shadowed field.
179         (c_binding_start_stmt_expr): New function.
180         (c_binding_end_stmt_expr): New function.
181         (pushdecl): Don't call c_begin_vm_scope.
182         (make_label): Add defining and p_label_vars parameters.  Change
183         all callers.
184         (lookup_label): Correct test for whether a label has not yet been
185         defined.  Call bind_label rather than bind.
186         (warn_about_goto): New static function.
187         (lookup_label_for_goto): New function.
188         (declare_label): Call bind_label rather than bind.
189         (check_earlier_gotos): New static function.
190         (define_label): Don't give errors about jumping into statement
191         expressions or scopes of variably modified types.  Call
192         set_spot_bindings and check_earlier_gotos.  Call bind_label
193         instead of bind.  Don't set label_context_stack_se or
194         label_context_stack_vm.
195         (c_get_switch_bindings): New function.
196         (c_release_switch_bindings): New function.
197         (c_check_switch_jump_warnings): New function.
198         (start_function): Don't set label_context_stack_se or
199         label_context_stack_vm.
200         (finish_function): Likewise.
201         * c-typeck.c (label_context_stack_se): Don't define.
202         (label_context_stack_vm): Don't define.
203         (c_finish_goto_label): Call lookup_label_for_goto rather than
204         lookup_label.  Don't give errors about jumping into a statement
205         expression or the scope of a variably modified type.  Don't set
206         label_context_stack_se or label_context_stack_vm.
207         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
208         fields.  Add bindings field.
209         (c_start_case): Don't set deleted fields.  Set bindings field.
210         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
211         or blocked_vm.  Call c_check_switch_jump_warnings.
212         (c_finish_case): Don't test blocked_stmt_expr field.  Call
213         c_release_switch_bindings.
214         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
215         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
216         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
217         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
218         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
219         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
220         (c_begin_vm_scope, c_end_vm_scope): Don't define.
221         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
222         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
223         (C_DECL_UNJUMPABLE_VM): Don't define.
224         (C_DECL_UNDEFINABLE_VM): Don't define.
225         (struct c_label_list): Don't define.
226         (struct c_label_context_se): Don't define.
227         (struct c_label_context_vm): Don't define.
228         (struct c_spot_bindings): Declare.
229         (c_bindings_start_stmt_expr): Declare.
230         (c_bindings_end_stmt_expr): Declare.
231         (lookup_label_for_goto): Declare.
232         (c_get_switch_bindings, c_release_switch_bindings): Declare.
233         (c_check_switch_jump_warnings): Declare.
234         (label_context_stack_se, label_context_stack_vm): Don't declare.
235         (c_finish_goto_label): Update declaration.
236         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
237         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
238         (Warning Options): Document -Wjump-misses-init.
240 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
242         * tree-object-size.c (addr_object_size): Fix a pasto in the last
243         change.
245 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
247         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
249 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
251         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
253 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
255         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
257 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
259         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
260         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
261         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
262         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
263         * dwarf2asm.c(dw2_force_const_mem): Update call to make_decl_one_only.
264         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
265         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
266         * langhooks.c (lhd_comdat_group): Remove.
267         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
268         * tree.h (DECL_COMDAT_GROUP): New.
269         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
270         (tree_decl_with_vis): Add comdat_group. Remove one_only.
271         (make_decl_one_only): Change signature.
272         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
273         make_decl_one_only.
274         (make_decl_one_only): Change signature.
275         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
277 2009-06-15  Richard Guenther  <rguenther@suse.de>
279         PR middle-end/40439
280         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
282 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
284         * tree-ssa-math-opts.c: Remove extra divide.
286 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
288         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
290 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
292         * passes.c: Add bswap pass.
293         * tree-pass.h: Add pass_optimize_bswap declaration.
294         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
295         Include rtl.h, expr.h and optabs.h for optab_handler check.
296         (struct symbolic_number, pass_optimize_bswap): New definition.
297         (do_shift_rotate, verify_symbolic_number_p): New functions.
298         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
299         (gate_optimize_bswap): New function.
300         * tree.c (widest_int_cst_value): New function.
301         * tree.h (widest_int_cst_value): Prototype added.
303 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
305         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
306         REG_EQUAL/REG_EQUIV notes.
308 2009-06-14  Richard Guenther  <rguenther@suse.de>
310         PR middle-end/40389
311         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
312         has its address taken if NRV was applied and it is addressable.
313         * tree-ssa-structalias.c (get_constraint_for_address_of): New
314         function split out from ...
315         (get_constraint_for_1): ... here.
316         (handle_rhs_call): Use it to mark the return slot escaped if
317         it is addressable and NRV was applied.
319 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
321         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
322         Change first argument type to location_t.
323         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
324         Do not set input_location.
325         Use loc instead of input_location throughout.
327 2009-06-13  Richard Guenther  <rguenther@suse.de>
329         PR tree-optimization/40421
330         * tree-predcom.c (should_unroll_loop_p): Remove.
331         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
333 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
335         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
336         Add location argument.
338 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
340         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
341         build_decl.
342         * config/s390/s390.c (s390_build_builtin_va_list): Same.
343         (s390_gimplify_va_arg): Pass location to create_artificial_label.
344         * config/spu/spu-protos.h: Add location to
345         spu_resolve_overloaded_builtin.
346         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
347         spu_build_builtin_va_list.
348         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
349         argument.  Pass location to build_function_call_vec.
350         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
351         build_decl.
352         (emit_fpu_switch): Same.
353         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
354         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
355         to build_decl and create_artificial_label.
356         (xtensa_gimplify_va_arg_expr): Same.
357         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
358         (xstormy16_gimplify_va_arg_expr): Same.
359         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
360         * config/arm/arm.c (arm_build_builtin_va_list): Same.
361         * config/mips/mips.c (mips_build_builtin_va_list): Same.
362         (mips16_build_function_stub): Same.
363         (mips16_build_call_stub): Same.
365 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
367         PR target/40327
368         * arm/constraints.md (Pa, Pb): New constraints.
369         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a 
370         split pattern to deal with them.
372 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
374         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
375         fix index entry for -Xpreprocessor.
377 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
379         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
380         Add location argument to build_decl call.
381         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
382         (rs6000_init_builtins): Same.
383         (spe_init_builtins): Same.
384         (rs6000_gimplify_va_arg): Add location argument to
385         create_artificial_label call.
387 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
389         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
390         * combine-stack-adj.c (pass_stack_adjustments): Use it.
391         * Makefile.in: Fix GGC dependency for gcse.o.
393 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
395         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
396         * gimple-pretty-print.c (dump_gimple_stmt): Same.
397         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
398         created.
399         * c-parser.c (c_parser_binary_expression): Use current column while
400         building binary operations.
401         * common.opt (fshow-column): Enable by default.
402         * tree-vrp.c (check_array_ref): Use warning_at.
403         (check_array_bounds): Use location from call back if expr has no
404         location.
405         * tree.h: Add location argument to maybe_fold_*.
406         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
407         (maybe_fold_offset_to_array_ref): Add location argument and use it.
408         (maybe_fold_offset_to_component_ref): Same.
409         (maybe_fold_offset_to_reference): Same.
410         (maybe_fold_offset_to_address): Same.
411         (maybe_fold_stmt_indirect): Same.
412         (maybe_fold_stmt_addition): Same.
413         (fold_stmt_r): Pass location to maybe_fold_*.
414         (fold_gimple_assign): Same.
415         * c-tree.h: Add location argument to finish_decl,
416         default_function_array_conversion, store_init_value.
417         * c-decl.c (define_label): Use error_at.
418         (c_make_fname_decl): Pass location to finish_decl.
419         (finish_decl): New location argument.
420         (build_compound_literal): Pass location to store_init_value.
421         (grokdeclarator): Pass location to finish_decl.
422         (grokfield): Same.
423         * c-typeck.c (array_to_pointer_conversion): New location argument.
424         (function_to_pointer_conversion): Same.
425         (default_function_array_conversion): Same.
426         (parser_build_unary_op): Pass location to overflow_warning.
427         (parser_build_binary_op): Same.  Use warning_at.
428         (build_unary_op): Pass location to array_to_pointer_conversion.
429         (build_c_cast): Pass location to digest_init.
430         (build_modify_expr): New location argument.
431         (convert_for_assignment): Same.
432         (store_init_value): Same.
433         (digest_init): Same.
434         (output_init_element): Pass location to digest_init and
435         array_to_pointer_conversion.
436         (c_finish_return): Pass location to convert_for_assignment.
437         * gimplify.c (gimplify_conversion): Pass location to
438         maybe_fold_offset_to_address.
439         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
440         to maybe_fold_stmt_addition.
441         * c-omp.c (c_finish_omp_atomic): Pass new location to
442         build_modify_expr.
443         (c_finish_omp_for): Same.
444         * c-common.c (overflow_warning): New argument.
445         * c-common.h: New argument to build_modify_expr, overflow_warning.
446         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
447         finish_decl.
448         (c_parser_initializer): Pass location to
449         default_function_array_conversion.
450         (c_parser_initelt): Same.
451         (c_parser_initval): Same.
452         (c_parser_asm_operands): Same.
453         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
454         (c_parser_conditional_expression): Same.
455         (c_parser_binary_expression): Add location info to stack.  Use it.
456         (c_parser_unary_expression): Pass location to
457         default_function_array_conversion, parser_build_unary_op,
458         build_indirect_ref, c_parser_postfix_expression_after_primary.
459         (c_parser_postfix_expression_after_primary): New location argument.
460         Use it.
461         (c_parser_expression_conv): Pass location to
462         default_function_array_conversion.
463         (c_parser_expr_list): Same.
464         (c_parser_omp_atomic): Same.
465         (c_parser_omp_for_loop): Same.
466         * c-tree.h: (struct c_declarator): Add comment to id_loc.
467         (build_array_declarator): New argument.
468         * c-decl.c (build_array_declarator): Add location argument.
469         (grokdeclarator): Set id_loc for cdk_array.
470         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
471         build_array_declarator.
472         * tree.c (build_omp_clause): Add location argument.
473         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
474         (OMP_CLAUSE_LOCATION): New macro.
475         (struct tree_omp_clause): Add location field.
476         (build_omp_clause): Add argument.
477         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
478         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
479         build_omp_clause.
480         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
481         (cp_parser_omp_clause_collapse): Same.
482         (cp_parser_omp_clause_default): Same.
483         (cp_parser_omp_clause_if): Same.
484         (cp_parser_omp_clause_nowait): Same.
485         (cp_parser_omp_clause_num_threads): Same.
486         (cp_parser_omp_clause_ordered): Same.
487         (cp_parser_omp_clause_schedule): Same.
488         (cp_parser_omp_clause_untied): Same.
489         (cp_parser_omp_for_loop): Same.
490         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
491         * c-tree.h (c_start_case): Add location argument.
492         (c_process_expr_stmt): Same.
493         (c_finish_goto_*): Same.
494         * tree-parloops.c (initialize_reductions): Pass location to
495         build_omp_clause.
496         (create_parallel_loop): Same.
497         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
498         (gfc_trans_omp_reduction_list): Same.
499         (gfc_trans_omp_clauses): Same.
500         (gfc_trans_omp_do): Same.
501         * c-typeck.c (c_finish_goto_label): Same.
502         (c_finish_goto_ptr): New location argument.
503         (c_start_case): Same.
504         (emit_side_effect_warnings): Same.
505         (c_process_expr_stmt): Same.
506         (c_finish_stmt_expr): Same.
507         (c_finish_omp_clauses): Use error_at instead of error.
508         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
509         build_omp_clause.
510         * c-omp.c (c_split_parallel_clauses): New location argument.
511         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
512         to build_omp_clause.
513         (convert_local_reference_stmt): Same.
514         (convert_gimple_call): Same.
515         * c-common.h (c_split_parallel_clauses): New argument.
516         * c-parser.c (c_parser_statement_after_labels): Pass location to
517         c_finish_goto_label.
518         (c_parser_switch_statement): Pass location to c_start_case.
519         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
520         and c_process_expr_stmt.
521         (c_parser_omp_variable_list): Add location argument.
522         (c_parser_omp_clause_collapse): Pass location to
523         build_omp_clause.
524         (c_parser_omp_clause_default): Same.
525         (c_parser_omp_clause_if): Same.
526         (c_parser_omp_clause_num_threads): Same.
527         (-c_parser_omp_clause_ordered): Same.
528         (c_parser_omp_clause_reduction): Pass location to
529         c_parser_omp_variable_list.
530         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
531         (c_parser_omp_clause_untied): Same.
532         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
533         (c_parser_omp_parallel): Pass location to
534         c_split_parallel_clauses.
536         * c-tree.h (check_for_loop_decls, undeclared_variable,
537         build_component_ref, build_array_ref, build_external_ref,
538         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
539         build_conditional_expr, build_compound_expr, c_cast_expr,
540         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
541         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
542         argument.
543         * c-semantics.c (build_stmt): Same.
544         (build_case_label): Same.
545         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
546         (undeclared_variable): New argument.
547         (make_label): Same.
548         (lookup_label): Pass location on down.
549         (define_label): Same.
550         (finish_decl): Same.
551         (build_compound_literal): Same.
552         (finish_struct): Same.
553         (finish_function): Do not set location here.
554         (check_for_loop_decls): New argument.
555         * tree.c (save_expr): Set location.
556         (build_empty_stmt): New argument.
557         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
558         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
559         * builtins.c (gimplify_va_arg_expr): Use locations.
560         (expand_builtin_sync_operation): Same.
561         * c-typeck.c (build_component_ref): New argument.
562         (build_array_ref): Same.
563         (build_external_ref): Same.
564         (c_expr_sizeof_expr): Same.
565         (c_expr_sizeof_type): Same.
566         (parser_build_unary_op): Same.
567         (build_conditional_expr): Same.
568         (build_compound_expr): Pass location on down.
569         (build_compound_expr): New argument.
570         (build_c_cast): Same.
571         (c_cast_expr): Same.
572         (build_asm_expr): Same.
573         (c_finish_return): Same.
574         (c_process_expr_stmt): Pass location on down.
575         (c_finish_stmt_expr): New argument.
576         (push_clenaup): Same.
577         (c_finish_omp_parallel): Same.
578         (c_finish_omp_task): Same.
579         * gimplify.c (gimplify_call_expr): Pass location on down.
580         * c-omp.c (c_finish_omp_master): New argument.
581         (c_finish_omp_critical): Same.
582         (c_finish_omp_ordered): Same.
583         (c_finish_omp_barrier): Same.
584         (-c_finish_omp_taskwait): Same.
585         (c_finish_omp_atomic): Same.
586         (c_finish_omp_flush): Same.
587         * tree-inline.c (copy_tree_body_r): Pass location on down.
588         (inline_forbidden_p): Remove use of input_location.
589         * c-gimplify.c (c_build_bind_expr): New argument.
590         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
591         (c_sizeof_or_alignof_type): New argument.
592         (c_alignof_expr): Same.
593         (build_va_arg): Same.
594         (c_add_case_label): Same.
595         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
596         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
597         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
598         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
599         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
600         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
601         New argument.
602         * stub-objc.c (objc_build_selector_expr): Same.
603         (objc_build_throw_stmt): Same.
604         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
605         (c_parser_initelt): Same.
606         (c_parser_compound_statement): Same.
607         (c_parser_compound_statement_nostart): Same.
608         (c_parser_label): Same.
609         (c_parser_statement_after_labels): Same.
610         (c_parser_if_body): Same.
611         (c_parser_else_body): Same.
612         (c_parser_if_statement): Same.
613         (c_parser_switch_statement): Same.
614         (c_parser_while_statement): Same.
615         (c_parser_do_statement): Same.
616         (c_parser_for_statement): Same.
617         (c_parser_asm_statement): Same.
618         (c_parser_conditional_expression): Same.
619         (c_parser_binary_expression): Same.
620         (c_parser_cast_expression): Same.
621         (c_parser_unary_expression): Same.
622         (c_parser_sizeof_expression): Same.
623         (c_parser_alignof_expression): Same.
624         (c_parser_postfix_expression): Same.
625         (c_parser_expression): Same.
626         (c_parser_objc_receiver): Same.
627         (c_parser_omp_variable_list): Same.
628         (c_parser_omp_structured_block): Same.
629         (c_parser_omp_atomic): New argument.
630         (c_parser_omp_barrier): Same.
631         (c_parser_omp_critical): Same.
632         (c_parser_omp_flush): Pass location on down.
633         (c_parser_omp_for_loop): New argument.
634         (c_parser_omp_for): Same.
635         (c_parser_omp_master): Same.
636         (c_parser_omp_ordered): Same.
637         (c_parser_omp_sections_scope): Same.
638         (c_parser_omp_sections): Same.
639         (c_parser_omp_parallel): Same.
640         (c_parser_omp_single): Same.
641         (c_parser_omp_task): Same.
642         (c_parser_omp_taskwait): Pass location on down.
643         (c_parser_omp_construct): Same.
644         (c_parser_omp_threadprivate): Same.
645         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
646         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
647         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
648         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
649         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
650         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
651         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
652         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
653         config/i386/i386.c, stmt.c:
654         Add location argument to the following function definitions and/or
655         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
656         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
657         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
658         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
659         do_case, c_finish_bc_stmt, build_compound_literal,
660         build_function_call.
661         * c-decl.c (build_compound_literal): Add location argument.
662         Make all diagnostic calls use location.
663         (start_struct): Same.
664         (finish_struct): Same.
665         (start_enum): Same.
666         (build_enumerator): Same.
667         (start_function): Same.
668         (grokdeclarator): Make all diagnostic calls use location.
669         (store_parm_decls_oldstyle): Same.
670         * c-typeck.c (build_function_call): Add location argument.
671         Make all diagnostic calls use location.
672         (do_case): Same.
673         (c_finish_bc_stmt): Same.
674         * tree-nested.c (get_trampoline_type): Add argument.
675         Pass location to build_decl.
676         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
677         * rtl.h (RTL_LOCATION): New.
678         * c-common.c (c_add_case_label): Add location argument.
679         Make all diagnostic calls use location.
680         * c-common.h: Add location argument to make_fname_decl, do_case,
681         c_add_case_label, build_function_call, resolve_overloaded_builtin.
682         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
683         Set it appropriately for every case.  Pass enum_loc to start_enum
684         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
685         parser_xref_tag.
686         (c_parser_struct_or_union_specifier): Save location.  Use it for
687         start_struct, finish_struct, and parser_xref_tag.
689 2009-06-12  Ian Lance Taylor  <iant@google.com>
691         * fold-const.c (fold_unary): Rename local variable and to
692         and_expr.
694         * c-opts.c (c_common_handle_option): For -Wc++-compat set
695         cpp_opts->warn_cxx_operator_names.
697 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
699         PR tree-opt/38865
700         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
701         is returns NULL and OP is a VCE, look through the VCE.
703 2009-06-12  Ian Lance Taylor  <iant@google.com>
705         PR bootstrap/40430
706         * collect2.c (main): Use CONST_CAST2 in code inside #if
707         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
709 2009-06-12  Joey Ye  <joey.ye@intel.com>
711         PR middle-end/39146
712         * cfgexpand.c (get_decl_align_unit): Update
713         max_used_stack_slot_alignment with align instead of
714         stack_alignment_needed.
716         * function.c (assign_stack_local_1): Update
717         max_used_stack_slot_alignment with alignment_in_bits instead
718         of stack_alignment_needed.
719         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
720         here.
722 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
724         * dwarf2out.c (last_var_location_insn): New variable.
725         (dwarf2out_end_epilogue): Clear last_var_location_insn.
726         (dwarf2out_var_location): Don't record anything after last real
727         insn.  Only change labels if there were any real instructions
728         in between last note and this one, or if changed sections.
730 2009-06-11  Richard Henderson  <rth@redhat.com>
732         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
733         note when storing the frame pointer in a register.
734         (FRP): Don't redefine to nothing for epilogue.
735         (alpha_expand_epilogue): Mark register and sp restores.
736         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
738         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
739         when gen_lowpart is needed.
741 2009-06-11  Richard Henderson  <rth@redhat.com>
743         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
745         * dwarf2out.c (need_data_align_sf_opcode): New.
746         (div_data_align): Move earlier.
747         (def_cfa_1, reg_save): Use it.
749 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
751         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
752         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
753         (ix86_handle_option): Handle OPT_mcrc32.
754         (ix86_target_string): Add -mcrc32.
755         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
757         * config/i386/i386.h (TARGET_CRC32): New.
759         * config/i386/i386.md (sse4_2_crc32<mode>): Also check
760         TARGET_CRC32.
761         (sse4_2_crc32di): Likewise.
763         * config/i386/i386.opt (mcrc32: New.
765         * doc/invoke.texi: Document -mcrc32.
767 2009-06-11  Richard Henderson  <rth@redhat.com>
769         * common.opt (gdwarf-): Accept a version number.
770         * doc/invoke.texi (gdwarf-): Update docs.
771         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
772         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
773         version level, and record it.
775         * dwarf2.h (DW_CIE_VERSION): Remove.
776         * dwarf2out.c (DWARF_VERSION): Remove.
777         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
778         (output_call_frame_info): Use CIE version 3 for dwarf3,
779         or if the return register column is out of range for version 1.
780         (dwarf_stack_op_name): Add all dwarf3 values.
781         (DEBUG_PUBTYPES_SECTION): New.
782         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
783         encoding change for dwarf3.
784         (output_die) [dw_val_class_die_ref]: Likewise.
785         (output_compilation_unit_header): Emit correct version for dwarf3.
786         (output_line_info): Likewise.
787         (output_pubnames): Update for DWARF_VERSION removal.
788         (output_aranges): Likewise.
789         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
790         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
791         (dwarf2out_finish): Likewise.
793 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
795         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
796         in r148403.
798 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
800         PR c/39252
801         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
802         * builtins.c (expand_builtin_unreachable): New function.
803         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
804         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
805         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
806         successors.
807         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
808         searching for missing barriers.
810 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
812         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
813         when -fprofile-generate* was passed.
814         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
816 2009-06-11  Anthony Green  <green@moxielogic.com>
818         * config/moxie/moxie.md: Define length attribute for all
819         instructions.
820         (rCC): Define.
821         (*b<cond:code>): Support limited branch ranges for new PC-relative
822         branch instructions.
823         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
825 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
827         * config/i386/i386.c (min_insn_size): Use get_attr_length
828         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
829         For __asm return 0.
831         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
832         instead of emit_insn_before.
834 2009-06-10  Ian Lance Taylor  <iant@google.com>
836         PR bootstrap/40408
837         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
838         GIMPLE_SWITCH.
840 2009-06-10  Revital Eres  <eres@il.ibm.com>
842         * passes.c (init_optimization_passes): Reschedule
843         predictive-commoning pass before complete unroll pass.
845 2009-06-10  Martin Jambor  <mjambor@suse.cz>
847         * cgraph.c (cgraph_node_can_be_local_p): New function.
848         (cgraph_make_node_local): New function.
849         * cgraph.h (cgraph_node_can_be_local_p): Declare.
850         (cgraph_make_node_local): Declare.
852 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
854         * tree.h (tree_base): Add packed_flag and user_align fields.
855         Decrease size of spare field.
856         (TYPE_USER_ALIGN): Use user_align from tree_base.
857         (DECL_USER_ALIGN): Likewise.
858         (TYPE_PACKED): Use packed_flag from tree_base.
859         (DECL_PACKED): Likewise.
860         (tree_type): Delete packed_flag and user_align fields.  Widen
861         precision field.  Widen mode field and shuffle fields to align
862         mode on an 8-bit boundary.
863         (tree_decl_common): Delete decl_flag_1 and user_align fields.
864         Renumber decl_flag_* fields.  Fix comments.  Widen
865         decl_common_unused field.
866         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_*
867         fields.
868         (DECL_EXTERNAL): Likewise.
869         (DECL_BIT_FIELD): Likewise.
870         (DECL_NONADDRESSABLE_P): Likewise.
871         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
872         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
874 2009-06-10  Ian Lance Taylor  <iant@google.com>
876         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
877         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
878         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
879         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
880         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
881         DEF_VEC_ALLOC_FUNC_P.
882         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
883         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
884         DEF_VEC_ALLOC_FUNC_O.
885         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
886         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
887         DEF_VEC_ALLOC_FUNC_I.
888         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
889         (vec_stack_p_reserve_exact_1): Declare.
890         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
891         (vec_stack_free): Declare.
892         (VEC_stack_alloc): Define.
893         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
894         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
895         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
896         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
897         for void_p.
898         (stack_vecs): New static variable.
899         (vec_stack_p_reserve_exact_1): New function.
900         (vec_stack_o_reserve_1): New static function.
901         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
902         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
903         (vec_stack_free): New function.
904         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
905         (VEC_df_ref_stack_alloc): Define.
906         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
907         DEF_VEC_ALLOC_P_STACK.
908         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
909         (struct df_collection_rec): Change _vec fields to VEC.  Remove
910         _use fields.
911         (df_free_collection_rec): Adjust for new fields.
912         (df_insn_rescan): Use new df_collection_rec fields.
913         (df_notes_rescan, df_canonize_collection_rec): Likewise.
914         (df_ref_create_structure, df_ref_record): Likewise.
915         (df_get_conditional_uses, df_get_call_refs): Likewise.
916         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
917         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
918         (df_record_exit_block_uses, df_bb_verify): Likewise.
919         (df_swap_refs): Change ref_vec parameter to VEC.  Change all
920         callers.
921         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
922         Remove count parameter.  Change return type to void.  Change all
923         callers.
924         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
925         Remove count parameter.  Change return type to void.  Change all
926         callers.
927         (df_install_refs): Change old_vec parameter to VEC.  Remove count
928         parameter.  Change all callers.
929         (df_install_mws): Change old_vec parameter to VEC.  Remove count
930         parameter.  Change all callers.
931         (df_refs_verify): Change new_rec parameter to VEC.  Change call
932         callers.
933         (df_mws_verify): Likewise.
935 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
937         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
939 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
941         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
943 2009-06-10  Anthony Green  <green@moxielogic.com>
945         * config/moxie/crti.asm: New file.
946         * config/moxie/crtn.asm: New file.
947         * config/moxie/moxie.c: New file.
948         * config/moxie/moxie.h: New file.
949         * config/moxie/sfp-machine.h: New file.
950         * config/moxie/moxie-protos.h: New file.
951         * config/moxie/t-moxie: Created.
952         * config/moxie/t-moxie-softfp: Created.
953         * config/moxie/moxie.md: Created.
954         * config/moxie/constraints.md: Created.
955         * config.gcc: Add moxie support.
956         * doc/md.texi (Machine Constraints): Add moxie constraints.
957         * doc/contrib.texi (Contributors): Mention moxie port.
958         * doc/install.texi (Specific): Mention the moxie port.
960 2009-06-09  Ian Lance Taylor  <iant@google.com>
962         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
963         compiling with C++.
964         * optabs.c (optab_table): Only use designated initializers if
965         HAVE_DESIGNATED_INITIALIZERS is defined.
966         (convert_optab_table): Likewise.
967         (init_optabs): Always call init_insn_codes if
968         HAVE_DESIGNATED_INITIALIZERS is not defined.
970 2009-06-09  Ian Lance Taylor  <iant@google.com>
972         * targhooks.c (default_builtin_vectorized_function): Change fn
973         parameter to unsigned int.
974         (default_builtin_vectorized_conversion): Change code parameter to
975         unsigned int.
976         (default_builtin_reciprocal): Change fn parameter to unsigned int.
977         * targhooks.h: Update declarations.
978         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
979         parameter to unsigned int.
981         * c-typeck.c (comptypes_check_enum_int): New static function.
982         (comptypes_internal): Add enum_and_int_p parameter.  Change all
983         callers.
984         (comp_target_types): Add location parameter.  Change all callers.
985         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
986         Change all callers.
987         (function_types_compatible_p, type_lists_compatible_p): Likewise.
988         (build_conditional_expr): Add colon_loc parameter.  Change all
989         callers.
990         (convert_for_assignment): Add location parameter.  Change all
991         callers.
992         * c-parser.c (c_parser_conditional_expression): Pass location of
993         colon to build_conditional_expr.
994         * c-tree.h (build_conditional_expr): Update declaration.
996 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
998         * graphite.c: Revert previous patch.
1000 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
1002         PR bootstrap/40103
1003         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
1005 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
1007         * tree-ssa-loop-prefetch.c
1008         (loop_prefetch_arrays): Fixed a portability problem in printf format
1009         string.
1011 2009-06-09  Martin Jambor  <mjambor@suse.cz>
1013         PR tree-optimization/40351
1014         * tree-sra.c (propagate_subacesses_accross_link): Check that a refrence
1015         to a potential artifical subaccess can be constructed.
1017 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
1019         * config/sh/sh-protos.h (sh_optimization_options): Declare.
1020         (sh_override_options): Likewise.
1021         * config/sh/sh.c: Include params.h.
1022         (sh_optimization_options): New.
1023         (sh_override_options): Likewise.
1024         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
1025         (OVERRIDE_OPTIONS): Use sh_override_options.
1027 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
1029         * dwarf2out.c (emit_cfa_remember): New variable.
1030         (add_fde_cfi): If emit_cfa_remember, recurse to add
1031         DW_CFA_remember_state first.
1032         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
1033         instead just set emit_cfa_remember.
1035 2009-06-08  Jan Hubicka  <jh@suse.cz>
1037         PR debug/40126
1038         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
1040 2009-06-08  Jan Hubicka  <jh@suse.cz>
1042         PR middle-end/39834
1043         * cgraphunit.c (save_inline_function_body): Do not copy transform hooks
1044         for saved inline bodies.
1045         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
1046         for given function.
1048 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
1050         * jump.c (returnjump_p): Handle delayed branches.  Add missing
1051         function comment.
1053 2009-06-08  Jan Hubicka  <jh@suse.cz>
1055         PR middle-end/40102
1056         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
1057         original node might've been modified.
1058         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
1060 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
1062         * tree-object-size.c (addr_object_size): Add OSI argument.
1063         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
1064         (compute_builtin_object_size, expr_object_size): Adjust callers.
1065         (plus_stmt_object_size): Call addr_object_size instead of
1066         compute_builtin_object_size.
1068 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
1069             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1070         
1071         * tree-ssa-loop-prefetch.c 
1072         (gather_memory_references): Introduced a counter for the number of 
1073         memory references.
1074         (anything_to_prefetch_p): Introduced a counter for the number of 
1075         prefetches.
1076         (is_loop_prefetching_profitable): New function with a cost model 
1077         for prefetching.
1078         (loop_prefetch_arrays): Use the new cost model to determine if 
1079         prefetching is profitable.
1080         * params.def (MIN_INSN_TO_PREFETCH_RATIO, 
1081         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
1082         * params.h (MIN_INSN_TO_PREFETCH_RATIO, 
1083         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
1084         * doc/invoke.texi (MIN_INSN_TO_PREFETCH_RATIO, 
1085         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
1086         
1087 2009-06-08  Michael Matz  <matz@suse.de>
1089         PR debug/40012
1090         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
1091         partitions use the same.
1092         (expand_one_var): Deal with DECL_RTL sometimes begin set also
1093         for basevars of SSA_NAMEs.
1094         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
1095         to not expand them twice.
1096         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
1097         multiple places.
1099 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
1101         * common.opt (fcompare-debug=, fcompare-debug-second): New.
1102         (fdump-final-insns=, gtoggle): New.
1103         * doc/invoke.texi: Document them.
1104         * final.c (rest_of_clean_state): Dump final insn stream.
1105         * gcc.c (invoke_as): Hook in -fcompare-debug.
1106         (static_spec_functions): Add compare-debug-dump-opt,
1107         compare-debug-self-opt and compare-debug-auxbase-opt.
1108         (compare_debug, compare_debug_second, compare_debug_opt): New.
1109         (switches_debug_check, n_switches_debug_check): New.
1110         (debug_auxbase_opt, debug_check_temp_file): New.
1111         (process_command): Handle -fno-compare-debug, -fcompare-debug and
1112         -fcompare-debug=*.
1113         (do_self_spec): Handle arguments after switches.
1114         (do_spec_1): Add .gk extension to temp file basenames for compare.
1115         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
1116         (cc1_options): Use it instead of normal auxbase computation for
1117         the second compare-debug compilation.
1118         (compare_files): New.
1119         (main): Set up and implement compare debug mode.
1120         (compare_debug_dump_opt_spec_function): New.
1121         (compare_debug_self_opt_spec_function): New.
1122         (compare_debug_auxbase_opt_spec_function): New.
1123         * toplev.c (process_options): Handle flag_gtoggle,
1124         flag_dump_final_insns.
1125         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
1126         during -fcompare-debug-second compilation.
1128 2009-06-07  Ian Lance Taylor  <iant@google.com>
1130         * dwarf2.h (enum dwarf_location_atom): Add
1131         INTERNAL_DW_OP_tls_addr.
1132         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
1134         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
1135         with no default node.  Change warning with %H to warning_at.
1136         Don't clear warn_switch around case checking.
1137         * doc/invoke.texi (Warning Options): Clarify distinction between
1138         -Wswitch and -Wswitch-enum.
1140 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1142         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
1144 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1146         * gbl-ctors.h: Add header guard.
1148 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1150         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
1151         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
1152         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
1153         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
1154         prototypes for removed functions.
1155         (expressions_equal_p): Move to ...
1156         * tree-ssa-sccvn.h: ... here and ...
1157         * matrix-reorg.c: ... adjust includes.
1159 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1161         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
1163 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1165         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
1166         (finish_function): Remove erroneous whitespace.
1168 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1170         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
1171         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
1173 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1175         * errors.c (internal_error): Commentary typo fix.
1176         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
1177         * tree-ssa-pre.c: Ditto.
1179 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1181         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
1182         them is supposed to hold actual statements.
1184 2009-06-06  Ian Lance Taylor  <iant@google.com>
1186         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
1187         empty statements can now have attributes.
1189 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
1191         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
1192         * config/mips/mips.md: Ditto.
1194 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
1196         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
1197         _RELOCATABLE.
1198         (__eabi_uconvert): Likewise.
1200 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
1202         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
1203         CFI_* definitions with IN_GCC.
1205 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
1207         * xcoffout.h (xcoffout_source_line): Update prototype.
1209 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1211         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
1212         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
1214 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
1216         PR middle-end/40340
1217         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
1218         inlined_function_outer_scope_p blocks for artificial inlines
1219         even at -g0/-g1.
1220         * tree.c (tree_nonartificial_location): Rewrite using
1221         block_nonartificial_location.
1223 2009-06-05  Revital Eres  <eres@il.ibm.com>
1224             Leehod Baruch  <leehod@il.ibm.com>
1226         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
1227         (expand_expr_real_1): Remove comment.
1228         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1229         Vectorize misaligned access when the target supports it.
1230         (vect_supportable_dr_alignment): Check for unaligned access
1231         support.
1232         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
1233         and remove asset.
1235 2009-06-05  Julian Brown  <julian@codesourcery.com>
1237         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
1238         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
1240 2009-06-05  Richard Guenther  <rguenther@suse.de>
1242         PR bootstrap/40350
1243         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
1244         as possibly unused.
1246 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
1248         * config/s390/s390.c (global_not_special_regno_p): New static inline.
1249         (save_gprs): Don't tell unwinder when a global register is saved.
1250         (s390_emit_epilogue): Emit needed epilogue unwind info.
1252 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
1254         * dwarf2out.c (deferred_asm_name): New.
1255         (add_name_and_src_coords_attributes): Defer creation of
1256         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
1257         computed yet.
1258         (move_linkage_attr): New.
1259         (dwarf2out_finish): Revisit deferrals and emit attributes at the
1260         right place.
1262 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
1264         * tree-nested.c (finalize_nesting_tree_1): Declare the
1265         frame_decl in the binding tree.
1267 2009-06-04  Cary Coutant  <ccoutant@google.com>
1269         * basic-block.h (struct basic_block_def): Add discriminator field.
1270         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
1271         callers.
1272         * debug.c (do_nothing_debug_hooks): Add additional entry.
1273         (debug_nothing_int_charstar_int): New function.
1274         * debug.h (struct gcc_debug_hooks): Add parameter to source_line
1275         hook.
1276         (debug_nothing_int_charstar_int): New declaration.
1277         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
1278         discriminator value in .loc directive.
1279         * final.c (last_discriminator): New variable.
1280         (discriminator): New variable.
1281         (final_start_function): Initialize above variables, pass current
1282         discriminator to debug hook.
1283         (notice_source_line): Check for discriminator change.
1284         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
1285         * sdbout.c (sdbout_source_line): New parameter.
1286         * tree-cfg.c (struct locus_discrim_map): New structure type.
1287         (discriminator_per_locus): New hash table.
1288         (build_gimple_cfg): Allocate and free discriminator hash table.
1289         (make_edges): Call assign_discriminator.
1290         (locus_map_hash): New function.
1291         (locus_map_eq): New function.
1292         (next_discriminator_for_locus): New function.
1293         (same_line_p): New function.
1294         (assign_discriminator): New function.
1295         (make_cond_expr_edges): Call assign_discriminator.
1296         (make_gimple_switch_edges): Likewise.
1297         (first_non_label_stmt): New function.
1298         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
1299         all callers.
1300         * xcoffout.c (xcoffout_source_line): Add new parameter.
1302         * configure.ac (gcc_cv_as_discriminator): New configury check for
1303         gas support for discriminator.
1304         * configure: Regenerate.
1305         * config.in: Regenerate.
1307 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1309         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
1310         val after checking for integers.
1312 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
1314         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
1315         X64_REGPARM_MAX.
1316         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
1317         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
1318         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
1319         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
1320         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
1321         X64_SSE_REGPARM_MAX.
1322         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
1323         X64_SSE_REGPARM_MAX.
1325 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
1327         * gcc.c (report_times_to_file): New.
1328         (execute): Implement it.
1329         (process_command): Support -time=.
1330         * doc/invoke.texi: Document it.
1332 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
1334         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
1335         that have value exprs.
1337 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
1339         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
1340         declarations for constants until...
1341         (dw2_output_indirect_constant_1): ... this point.
1343 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
1345         PR target/10242
1346         * arm.md (arm_addsi3): Don't try to split an add with an
1347         eliminable register until after reload has completed.
1349 2009-06-03  Ian Lance Taylor  <iant@google.com>
1351         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
1352         * genattrtab.c (write_length_unit_log): Likewise.
1353         * genchecksum.c (dosum): Likewise.
1354         * gengtype.c (write_rtx_next): Likewise.
1355         (finish_root_table, write_roots): Likewise.
1356         * gimple.c (gimple_ops_offset_): Likewise.
1357         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
1358         * config/arc/arc.c (arc_attribute_table): Likewise.
1359         * config/arm/arm.c (arm_attribute_table): Likewise.
1360         * config/avr/avr.c (avr_attribute_table): Likewise.
1361         * config/crx/crx.c (crx_attribute_table): Likewise.
1362         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
1363         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
1364         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
1365         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
1366         * config/sh/sh.c (sh_attribute_table): Likewise.
1367         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
1368         * config/spu/spu.c (spu_attribute_table): Likewise.
1369         * config/v850/v850.c (v850_attribute_table): Likewise.
1371         * config/alpha/alpha.c (vms_attribute_table): Make static.
1372         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
1373         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
1374         * config/mips/mips.c (mips_attribute_table): Likewise.
1376         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
1377         $(SYSTEM_H).
1378         (cc1-checksum.o): Likewise.
1380 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
1382         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
1384 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
1386         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
1387         insn if it is changing sp.  Use gen_add3_insn instead of
1388         conditionally gen_addsi3 and gen_adddi3.
1389         (offset_below_red_zone_p): New static inline function.
1390         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
1391         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
1392         * config/rs6000/ppc-asm.h: Include auto-host.h.
1393         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
1394         CFI_RESTORE): Define.
1395         * config/rs6000/crtresxgpr.asm: Add unwind info.
1396         * config/rs6000/crtresxfpr.asm: Likewise.
1397         * config/rs6000/crtresgpr.asm: Likewise.
1398         * config/rs6000/crtresfpr.asm: Likewise.
1399         * config/rs6000/crtsavgpr.asm: Likewise.
1400         * config/rs6000/crtsavfpr.asm: Likewise.
1402         * dwarf2out.c (output_cfi_directive): Pass 1 instead of
1403         0 to second argument of DWARF2_FRAME_REG_OUT macros.
1405 2009-06-03  Julian Brown  <julian@codesourcery.com>
1407         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
1408         words or less (including TImode) in core registers.
1410 2009-06-03  Richard Guenther  <rguenther@suse.de>
1412         PR middle-end/40328
1413         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
1415 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
1417         * statistics.c (statistics_counter_event): Do not record event 
1418         in pass dump if its number == -1.
1419         (curr_statistics_hash): Add assert that we never get passes 
1420         with static number == -1.
1422 2009-06-03  Richard Guenther  <rguenther@suse.de>
1423             Andrey Belevantsev  <abel@ispras.ru>
1425         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only 
1426         non-BLKmode arrays addressable.
1428 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
1430         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
1431         * config/m68k/m68k.h: ... here.
1432         * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
1433         m68k and fido.
1435 2009-06-03  Martin Jambor  <mjambor@suse.cz>
1437         PR tree-optimization/40323
1438         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
1439         assignment.
1441 2009-06-03  Richard Guenther  <rguenther@suse.de>
1443         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
1444         consistently.
1446 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
1448         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
1449         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
1450         JUMP_TABLE_DATA_P where applicable.
1451         * config/sh/sh.c: Ditto.
1452         * config/sh/sh.h: Ditto.
1453         * config/sh/sh.md: Ditto.
1454         * config/sh/symbian.c: Ditto.
1456 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
1458         * config/i386/driver-i386.c (describe_cache): Optimize
1459         concatenation of strings.  Use snprintf instead of sprintf.
1460         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
1461         target when not compiling with GCC.
1463 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
1465         * config/sh/sh.c: Revert last change.
1466         (sh_expand_epilogue): Emit a blockage insn before the frame
1467         pointer adjustment unconditionally.
1469 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1471         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
1472         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
1473         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
1474         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
1475         to COLLECT_GCC_OPTIONS.
1477 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1479         * collect2.c (target_system_root): New variable.
1480         (main): Handle --sysroot=.
1481         (ignore_library): Strip the sysroot from the library path.
1483 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1485         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
1486         (collect2.o): Depend on collect2-aix.h.
1487         (collect2-aix.o): New rule.
1488         * collect2-aix.h: New file.
1489         * collect2-aix.c: Likewise.
1490         * collect2.c: Include collect2-aix.h.  Don't undefine
1491         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
1492         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
1493         Use TARGET_AIX_VERSION instead of _AIX51.
1494         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
1495         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
1496         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
1497         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
1498         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
1500 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1502         * collect2.c (ignore_library): Avoid premature post-increment
1503         and null deference.
1505 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1507         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
1508         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
1509         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
1510         CROSS_DIRECTORY_STRUCTURE too.
1511         (LINK_LIBG_SPEC): Likewise.
1512         (LIB_SPEC): Add %R to sysroot paths.
1513         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
1514         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
1515         * config/rs6000/aix51.h: As for aix43.h.
1516         * config/rs6000/aix52.h: Likewise.
1517         * config/rs6000/aix53.h: Likewise.
1518         * config/rs6000/aix61.h: Likewise.
1519         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
1520         to the beginning of sysroot paths.
1522 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
1524         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
1525         INSN_LISTs that are out of the REG_NOTE range.
1527 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
1529         * loop-unroll.c (struct iv_to_split): Add pointer to next.
1530         (struct var_to_expand): Likewise.
1531         (struct opt_info): Add head and tail for linked lists of the above.
1532         (analyze_insn_to_expand_var): Initialize next.
1533         (analyze_iv_to_split_insn): Likewise.
1534         (analyze_insns_in_loop): Create linked lists.
1535         (allocate_basic_variable): Simplify for use without hash table.
1536         (insert_var_expansion_initialization): Likewise, make it type-safer.
1537         (combine_var_copies_in_loop_exit): Likewise.
1538         (apply_opt_in_copies): Walk lists rather than hash tables.
1539         (release_var_copies): Simplified and inlined by hand into...
1540         (free_opt_info): ... this function.
1542 2009-06-02  Richard Guenther  <rguenther@suse.de>
1544         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
1545         for field decls.
1547 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
1549         * cfgexpand.c (gimple_expand_cfg): Discard the source location
1550         only for builtins that are not overridden.
1552 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
1554         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
1555         label string.
1557 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
1559         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
1561 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
1563         * combine.c (move_deaths): Compare LUIDs within the same BB only.
1565 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
1567         * common.opt (fdump-unnumbered-links): New.
1568         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
1569         * print-rtl.c (flag_dump_unnumbered_links): New.
1570         (print_rtx): Test it.
1572 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
1574         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
1575         push/pop multiple to 8-byte alignment.
1577 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
1579         * config/i386/i386.c (queued_cfa_restores): New static variable.
1580         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
1581         functions.
1582         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
1583         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
1584         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
1585         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
1586         note unconditionally.
1587         (ix86_emit_restore_regs_using_mov): Likewise.
1588         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1589         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
1590         it through to ix86_emit_restore_reg_using_pop.
1591         (ix86_emit_leave): Add RED_OFFSET argument.  Call
1592         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
1593         instead of adding REG_CFA_OFFSET note unconditionally.
1594         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
1595         the above functions.  Call ix86_add_queued_cfa_restore_notes when
1596         needed.
1598         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
1599         force output of the label even for dwarf2out_do_cfi_asm.
1600         (add_fde_cfi): If -g2 and above and cfi might change CFA,
1601         force creation of CFI label and chain DW_CFA_set_loc jumping to it
1602         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
1603         caller.
1604         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
1605         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
1606         dwarf2out_cfi_label callers.
1607         * tree.h (dwarf2out_cfi_label): Adjust prototype.
1608         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
1609         Adjust dwarf2out_cfi_label callers.
1610         * config/vax/vax.c (vax_output_function_prologue): Likewise.
1612         * config/i386/i386.h (struct machine_cfa_state,
1613         struct machine_function): Guard with ifndef USED_FOR_TARGET
1614         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
1616         PR other/40024
1617         * emutls.c (__emutls_get_address): Change arr->size to mean number
1618         of allocated arr->data entries instead of # of slots + 1.
1620         PR middle-end/40316
1621         * recog.c (peep2_reinit_state): New function.
1622         (peephole2_init_state): Use it at the end of a basic block and also
1623         when seeing a RTX_FRAME_RELATED_P insn.
1625 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
1627         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
1628         fixuns_truncrfdi2): New.
1629         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
1630         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
1631         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
1632         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
1633         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
1634         *recip_approx): Remove.
1635         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
1636         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
1637         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
1638         move to div.md.
1639         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
1640         setf_exp_rf): New.
1642 2009-06-01  Ian Lance Taylor  <iant@google.com>
1644         * attribs.c (register_attribute): Use CONST_CAST.
1645         * collect2.c (main): Use CONST_CAST2.
1646         (scan_prog_file): Likewise.
1647         * gcc.c (process_command, main): Likewise.
1648         * toplev.c (toplev_main): Likewise.
1650         * c-typeck.c (handle_warn_cast_qual): New static function,
1651         partially broken out of build_c_cast.
1652         (build_c_cast): Call handle_warn_cast_qual.
1653         * doc/invoke.texi (Warning Options): Document new effect of
1654         -Wcast-qual.
1656 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
1658         * diagnostic.c (diagnostic_build_prefix): Always print columns.
1659         (diagnostic_report_current_module): Print columns.
1660         * common.opt (flag_show_column): Enable by default.
1662 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
1664         * alias.c (find_base_term): Check for NULL term before returning.
1666 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
1668         Revert due to PR40320:
1669         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
1670         * calls.c (emit_library_call_value_1): Don't force_operand for move
1671         and push insns.
1673 2009-06-01  Olivier Hainque  <hainque@adacore.com>
1674             Eric Botcazou  <ebotcazou@adacore.com>
1676         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
1677         to be processed as a bitfield for constructor output purposes.
1678         * output.h (initializer_constant_valid_for_bitfield_p): Declare
1679         new function.
1680         * varasm.c (oc_local_state): New type, output_constructor
1681         local state to support communication with helpers.
1682         (oc_outer_state): New type, output_constructor outer state of
1683         relevance in recursive calls.
1684         (output_constructor_array_range): New output_constructor helper,
1685         extracted code for an array range element.
1686         (output_constructor_regular_field): New output_constructor helper,
1687         extracted code for an element that is not a bitfield.
1688         (output_constructor_bitfield): New output_constructor helper,
1689         extracted code for a bitfield element.  Accept an OUTER state
1690         argument for recursive processing.  Recurse on record or array
1691         CONSTRUCTOR values, possibly past noop conversions.
1692         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
1693         VALUE is a valid constant-valued expression for use in a static
1694         bit-field initializer.
1695         (output_constructor): Rework to use helpers.  Accept and honor an
1696         OUTER state argument for recursive calls.  Return total size.  Be
1697         prepared for nested constructors initializing bitfields.
1698         (output_constant): Feed OUTER in calls to output_constructor.
1700 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
1702         * calls.c (emit_library_call_value_1): Don't force_operand for move
1703         and push insns.
1705 2009-06-01  Nick Clifton  <nickc@redhat.com>
1707         * doc/invoke.texi (IA-64 Options): Fix typo.
1709 2009-06-01  Ira Rosen  <irar@il.ibm.com>
1711         PR tree-optimization/39129
1712         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the 
1713         printed message.
1714         (vect_do_peeling_for_loop_bound): Use 
1715         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
1716         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
1717         (vect_loop_versioning): Likewise.
1718         (vect_create_cond_for_alias_checks): Fix indentation.
1719         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the 
1720         macros.
1721         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
1722         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
1723         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to 
1724         "control flow in loop".
1725         (vect_estimate_min_profitable_iters): Use 
1726         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
1727         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
1728         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
1729         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
1730         * tree-vect-stmts.c (vectorizable_store): Replace the check that the 
1731         statement belongs to a group of strided accesses with the exact code 
1732         check.
1733         (vectorizable_load): Likewise.
1734         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
1735         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
1737 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
1739         * config/freebsd-stdint.h: New file.
1740         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
1741         Add freebsd-stdint.h to tm_file.
1743 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
1745         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
1746         (thumb2_extendhidi2): Likewise.
1748 2009-05-31  Ian Lance Taylor  <iant@google.com>
1750         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
1752 2009-05-31  Ian Lance Taylor  <iant@google.com>
1754         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
1755         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
1756         (ipa-reference.o): Depend upon gt-ipa-reference.h.
1758 2009-05-31  Jason Merrill  <jason@redhat.com>
1760         * tree-pretty-print.c (print_call_name): Take the callee, not the
1761         call itself.  Make non-static.  Use dump_function_name for functions.
1762         (dump_generic_node): Adjust.
1763         * diagnostic.h: Declare print_call_name.
1764         * gimple-pretty-print.c (dump_gimple_call): Use it.
1766 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
1768         * config/sh/sh.md (ashldi3_std): New define_expand.
1769         (ashldi3): Use it.
1771 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
1773         PR target/40313
1774         * config/sh/sh.c: Include debug.h.
1775         (sh_expand_epilogue): Emit a blockage insn before the frame
1776         pointer adjustment also when dwarf2out_do_frame returns true.
1778 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
1780         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
1781         (thumb2_extendqidi2): New pattern.
1783 2009-05-31  Ira Rosen  <irar@il.ibm.com>
1785         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
1786         mark phis for renaming.
1787         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
1788         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
1789         Call mark_sym_for_renaming.
1790         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
1791         * tree-vect-loop.c (vect_transform_loop): Remove
1792         vect_memsyms_to_rename initialization and a call to
1793         mark_set_for_renaming.
1795 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
1797         PR middle-end/40304
1798         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
1799         frame related even if !set_cfa && style < 0.
1801 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
1803         * config/i386/mingw-tls.c: New file.
1804         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
1805         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
1806         defining _WIN32 but not __CYGWIN__.
1808 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1810         * configure.ac: Add MPC support.
1811         
1812         * config.in, configure: Regenerate.     
1814 2009-05-29  Richard Henderson  <rth@redhat.com>
1816         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
1817         NOTE_INSN_BASIC_BLOCK.
1818         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
1819         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
1820         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
1821         to be deleted.
1822         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
1823         add in_use field.
1824         (add_cfi): Disable check redefining cfa away from drap.
1825         (lookup_cfa_1): Add remember argument; handle remember/restore.
1826         (lookup_cfa): Pass remember argument.
1827         (cfa_remember): New.
1828         (compute_barrier_args_size_1): Remove sibcall check.
1829         (dwarf2out_frame_debug_def_cfa): New.
1830         (dwarf2out_frame_debug_adjust_cfa): New.
1831         (dwarf2out_frame_debug_cfa_offset): New.
1832         (dwarf2out_frame_debug_cfa_register): New.
1833         (dwarf2out_frame_debug_cfa_restore): New.
1834         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
1835         (dwarf2out_begin_epilogue): New.
1836         (dwarf2out_frame_debug_restore_state): New.
1837         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
1838         DW_CFA_restore_state.
1839         (output_cfi_directive): Likewise.
1840         (convert_cfa_to_fb_loc_list): Likewise.
1841         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
1842         * dwarf2out.h: Update.
1843         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
1844         (copy_insn_1): Early out for null.
1845         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
1846         and dwarf2out_frame_debug_restore_state.
1847         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
1848         (prologue_insn_hash, epilogue_insn_hash): New.
1849         (free_after_compilation): Adjust freeing accordingly.
1850         (record_insns): Create hash table if needed; push insns into
1851         hash instead of array.
1852         (maybe_copy_epilogue_insn): New.
1853         (contains): Search hash table instead of array.
1854         (sibcall_epilogue_contains): Remove.
1855         (thread_prologue_and_epilogue_insns): Split eh_return insns
1856         and mark them as epilogues.
1857         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
1858         scanning in terms of basic blocks.
1859         * insn-notes.def (CFA_RESTORE_STATE): New.
1860         * jump.c (returnjump_p_1): Accept EH_RETURN.
1861         (eh_returnjump_p_1, eh_returnjump_p): New.
1862         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
1863         CFA_REGISTER, CFA_RESTORE): New.
1864         * rtl.def (EH_RETURN): New.
1865         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
1867         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
1868         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
1870         * config/i386/i386.c (gen_push): Update cfa state.
1871         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
1872         add a CFA_ADJUST_CFA note.
1873         (ix86_dwarf_handle_frame_unspec): Remove.
1874         (ix86_expand_prologue): Update cfa state.
1875         (ix86_emit_restore_reg_using_pop): New.
1876         (ix86_emit_restore_regs_using_pop): New.
1877         (ix86_emit_leave): New.
1878         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
1879         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
1880         * config/i386/i386.h (struct machine_cfa_state): New.
1881         (ix86_cfa_state): New.
1882         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
1883         (eh_return_internal): Merge from eh_return_<mode>,
1884         use eh_return rtx, split w/ epilogue.
1886 2009-05-29  Ian Lance Taylor  <iant@google.com>
1888         * builtins.c (validate_gimple_arglist): Don't use va_arg with
1889         enum type.
1890         * calls.c (emit_library_call_value_1): Likewise.
1892         * c-typeck.c (c_build_va_arg): New function.
1893         * c-tree.h (c_build_va_arg): Declare.
1894         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
1895         instead of build_va_arg.
1897 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
1899         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
1900         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
1901         (ptr_difference_cost): Use affine combinations to compute it.
1902         (difference_cost): Likewise.
1903         (get_computation_cost_at): Compute more accurate cost for addresses
1904         if the ratio is a multiplier allowed in addresses.
1905         For non-addresses, consider that an additional offset or symbol is
1906         added only once.
1908 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
1910         * config/i386/i386.c (ix86_decompose_address): Avoid useless
1911         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
1913         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
1914         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
1915         (prefix_rex): For UNIT_MMX don't imply the prefix by default
1916         if MODE_DI.
1917         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
1918         to 1 for TYPE_SSE{IADD1,CVT1}.
1919         (prefix_vex_imm8): Removed.
1920         (length_vex): Only pass 1 as second argument to
1921         ix86_attr_length_vex_default if prefix_extra is 0.
1922         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
1923         (length): For prefix vex computation use length_immediate
1924         attribute instead of prefix_vex_imm8.
1925         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
1926         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
1927         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
1928         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
1929         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
1930         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
1931         a space in between the operands.
1932         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
1933         if one operand is 0xff and the other one si, di, bp or sp.
1934         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
1935         other one si, di, bp or sp.
1936         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
1937         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
1938         type and mode attributes.
1939         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
1940         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
1941         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
1942         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
1943         prefix_data16 attribute iff MODE_DF.
1944         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
1945         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
1946         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
1947         constm128_operand in length_immediate computation.
1948         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
1949         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
1950         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
1951         length_immediate attribute to 1.
1952         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
1953         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
1954         for certain alternatives.
1955         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
1956         prefix_data16 attribute if MODE_V1DF.
1957         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
1958         length_immediate to 1.
1959         (set_got_rex64, set_rip_rex64): Remove length attribute, set
1960         length_address to 4, set mode attribute to MODE_DI.
1961         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
1962         (fxam<mode>2_i387): Set length attribute to 4.
1963         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
1964         *prefetch_3dnow_rex): Override length_address attribute.
1965         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
1966         attributes.
1967         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
1968         (constm128_operand): Removed.
1969         * config/i386/i386.c (memory_address_length): For
1970         disp && !index && !base in 64-bit mode account for SIB byte if
1971         print_operand_address can't optimize disp32 into disp32(%rip)
1972         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
1973         for fs: or gs: segment.
1974         (ix86_attr_length_immediate_default): When checking if shortform
1975         is possible, truncate immediate to the length of the non-shortened
1976         immediate.
1977         (ix86_attr_length_address_default): Ignore MEM_P operands
1978         with X constraint.
1979         (ix86_attr_length_vex_default): Only check for DImode on
1980         GENERAL_REG_P operands.
1981         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
1982         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
1983         (sse_cvttps2pi): Clear prefix_rep attribute.
1984         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
1985         attribute.
1986         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
1987         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
1988         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
1989         iff operand 2 is const_int_operand.
1990         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
1991         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
1992         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
1993         instead of vex.
1994         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
1995         prefix_data16.
1996         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
1997         prefix_data16 attribute for movlpd and movhpd instructions.
1998         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
1999         length_immediate for shufpd instruction.
2000         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
2001         (avx_cmpp<avxmodesuffixf2c><mode>3,
2002         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
2003         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
2004         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
2005         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
2006         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
2007         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
2008         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
2009         prefix_data16 attribute for the first alternative to 1.
2010         (*avx_loadlps): Override length_immediate for the first alternative.
2011         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
2012         attributes for second alternative.
2013         (*vec_concatv2sf_sse4_1): Override length_immediate and
2014         prefix_data16 attributes for second alternative.
2015         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
2016         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
2017         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
2018         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
2019         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
2020         prefix_data16 and length_immediate to 1.
2021         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
2022         to 1.
2023         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
2024         prefix_extra attribute for variants that don't have 0f prefix alone.
2025         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
2026         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
2027         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
2028         *sse4_1_pextrd): Set length_immediate to 1.
2029         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
2030         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
2031         to 1.
2032         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
2033         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
2034         length_immediate to 1 for second alternative.
2035         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
2036         prefix_extra and length_immediate attributes for the first
2037         alternative.
2038         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
2039         first alternative.
2040         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
2041         to 1 for the first and third alternative.
2042         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
2043         alternative.
2044         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
2045         attribute.
2046         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
2047         attribute to 0.
2048         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
2049         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
2050         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
2051         *avx_psign<mode>3): Set prefix_extra attribute to 1.
2052         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
2053         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
2054         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
2055         ssse3_psign<mode>3): Override prefix_rex attribute.
2056         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
2057         (ssse3_palignrti): Override length_immediate to 1.
2058         (ssse3_palignrdi): Override length_immediate to 1, override
2059         prefix_rex attribute.
2060         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
2061         (sse4a_extrqi): Override length_immediate to 2.
2062         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
2063         (sse4a_insertq): Override prefix_data16 to 0.
2064         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
2065         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
2066         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
2067         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
2068         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
2069         and length_immediate to 1.
2070         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
2071         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
2072         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
2073         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
2074         and length_immediate to 1.
2075         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
2076         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
2077         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
2078         avx_ptest256): Override prefix_extra to 1.
2079         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
2080         Override prefix_data16 and length_immediate to 1.
2081         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
2082         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
2083         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
2084         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
2085         prefix_data16 to 0 and prefix_extra to 2.
2086         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
2087         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
2088         attribute.
2089         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
2090         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
2091         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
2092         and prefix_extra to 2.
2093         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
2094         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
2095         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
2096         avx_vpermilvar<mode>3,
2097         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
2098         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
2099         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
2100         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
2101         Override prefix_extra to 1.
2102         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
2103         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
2104         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
2105         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
2106         prefix_extra and length_immediate to 1.
2107         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
2108         modrm to 0.
2109         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
2110         to 1 for the first alternative.
2111         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
2112         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
2113         cases.
2114         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
2115         *movv2sf_internal_avx, *movv2sf_internal): Override
2116         prefix_rep attribute for certain alternatives.
2117         (*mov<mode>_internal): Override prefix_rep or prefix_data16
2118         attributes for certain alternatives.
2119         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
2120         attributes for certain alternatives.
2121         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
2122         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
2123         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
2124         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
2125         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
2126         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
2127         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
2128         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
2129         length_immediate to 1 if operand 2 is const_int_operand.
2130         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
2131         *vec_extractv2si_1): Set length_immediate attribute to 1.
2132         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
2133         using old 3DNOW insn rather than SSE/3DNOW_A.
2134         (mmx_emms, mmx_femms): Clear modrm attribute.
2136 2009-05-29  Martin Jambor  <mjambor@suse.cz>
2138         * tree-sra.c:  New implementation of SRA.
2140         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
2141         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
2142         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
2143         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
2144         (SRA_MAX_STRUCTURE_COUNT): Removed.
2145         (SRA_FIELD_STRUCTURE_RATIO): Removed.
2146         * doc/invoke.texi (sra-max-structure-size): Removed.
2147         (sra-field-structure-ratio): Removed.
2149 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2151         PR middle-end/40291
2152         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
2153         before expansion.
2155 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
2157         PR rtl-optimization/40101
2158         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
2159         seqno.  Adjust comment.
2160         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when 
2161         inserting bookkeeping before a jump, the jump is not scheduled.
2162         When no positive seqno found, provide a value.  Add comment.
2164 2009-05-29  Richard Guenther  <rguenther@suse.de>
2166         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
2167         short-cutting on the first component.
2169 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2171         PR middle-end/39958
2172         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
2173         for trees other than decls/types.
2175 2009-05-29  Richard Guenther  <rguenther@suse.de>
2177         * tree-ssa-operands.c (get_expr_operands): Do not handle
2178         INDIRECT_REFs in the handled-component case.  Remove
2179         unused get_ref_base_and_extent case.
2180         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
2181         tree_low_cst and host_integerp where possible.
2182         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
2183         codes for equivalence.
2184         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
2186 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
2188         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
2189         to tmake_file for i[34567]86-*-cygwin*. 
2191 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2193         PR target/40017
2194         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
2195         (altivec_categorize_keyword, init_vector_keywords,
2196         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
2197         similar to bool.
2199 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
2201         * tree.c (handle_dll_attribute): Check if node is
2202         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
2204 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
2206         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
2207         component.
2208         (thumb2_zero_extendqidi2): Likewise.
2210 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
2212         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
2213         instead of gen_movrt.
2214         * config/sh/sh.md (movrt): Remove.
2216 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
2218         * doc/invoke.texi (IA-64 Options):
2219         Add -msdata, -mfused-madd, -mno-inline-float-divide, 
2220         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
2221         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
2222         -msched-prefer-non-control-spec-insns,
2223         -msched-stop-bits-after-every-cycle,
2224         -msched-count-spec-in-critical-path,
2225         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
2226         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
2227         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
2228         and -msched-spec-verbose.
2230 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
2232         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
2233         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
2234         error if used.
2235         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
2237 2009-05-28  Richard Guenther  <rguenther@suse.de>
2239         * tree-ssa-alias.c (ao_ref_init): New function.
2240         (ao_ref_base): Likewise.
2241         (ao_ref_base_alias_set): Likewise.
2242         (ao_ref_alias_set): Likewise.
2243         (refs_may_alias_p_1): Change signature.
2244         (refs_may_alias_p): Adjust.
2245         (refs_anti_dependent_p): Likewise.
2246         (refs_output_dependent_p): Likewise.
2247         (call_may_clobber_ref_p_1): Change signature.
2248         (call_may_clobber_ref_p): Adjust.
2249         (stmt_may_clobber_ref_p_1): New function split out from ...
2250         (stmt_may_clobber_ref_p): ... here.
2251         (maybe_skip_until): Adjust signature.
2252         (get_continuation_for_phi): Likewise.
2253         (walk_non_aliased_vuses): Likewise.
2254         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
2255         (ao_ref_init): Declare.
2256         (ao_ref_base): Likewise.
2257         (ao_ref_alias_set): Likewise.
2258         (stmt_may_clobber_ref_p_1): Likewise.
2259         (walk_non_aliased_vuses): Adjust.
2260         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
2261         (get_ref_from_reference_ops): remove.
2262         (vn_reference_lookup_2): Adjust signature.
2263         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
2264         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
2265         (vn_reference_lookup): Adjust.
2266         (vn_reference_insert): Likewise.
2267         (vn_reference_insert_pieces): Adjust signature.
2268         (visit_reference_op_call): Adjust.
2269         * tree-ssa-pre.c (get_expr_type): Simplify.
2270         (phi_translate_1): Adjust.
2271         (compute_avail): Likewise.
2272         (translate_vuse_through_block): Do not re-build trees.
2273         (value_dies_in_block_x): Likewise.
2274         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
2275         fields.
2276         (vn_reference_lookup_pieces): Adjust declaration.
2277         (vn_reference_insert_pieces): Likewise.
2279 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
2281         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
2282         with checking disabled.
2284 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
2286         PR target/37216
2288         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
2289         macro definition for support of three-operand format aligned
2290         .comm directive in assembler on cygwin/pe/mingw target OS.
2291         * configure:  Regenerate.
2292         * config.h:  Regenerate.
2294         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
2295         aligned form of .comm directive if -mpe-aligned-commons is in effect.
2296         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
2298         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
2299         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
2301 2009-05-28  Ira Rosen  <irar@il.ibm.com>
2303         PR tree-optimization/40254
2304         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
2305         in analysis of basic blocks.
2307 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
2309         PR middle-end/33699
2310         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
2311         * target-def.h (TARGET_CONST_ANCHOR): New macro.
2312         (TARGET_INITIALIZER): Use it.
2313         * cse.c (CHEAPER): Move it up to the other macros.
2314         (insert): Rename this ...
2315         (insert_with_costs): ... to this.  Add cost parameters.  Update
2316         function comment.
2317         (insert): New function.  Call insert_with_costs.
2318         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
2319         find_reg_offset_for_const, try_const_anchors): New functions.
2320         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
2321         when using a const-anchor.  Call insert_const_anchors.
2322         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
2323         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
2325 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
2327         * tree-inline.c (remap_decls): Enable nonlocalized variables
2328         when not optimizing.
2330 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
2332         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
2333         Simplify other tests involving optimize.
2335 2009-05-27  Tom Tromey  <tromey@redhat.com>
2337         * unwind-dw2.c (_Unwind_DebugHook): New function.
2338         (uw_install_context): Call _Unwind_DebugHook.
2340 2009-05-27  Tom Tromey  <tromey@redhat.com>
2342         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
2344 2009-05-27  Ian Lance Taylor  <iant@google.com>
2346         * Makefile.in (LINKER, LINKER_FLAGS): Define.
2347         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
2348         (ALL_LINKERFLAGS): Define.
2349         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
2350         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
2351         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
2352         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
2353         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
2354         $(LINKER_FOR_BUILD).
2355         (build/gcov-iov$(build_exeext)): Likewise.
2357 2009-05-27  Julian Brown  <julian@codesourcery.com>
2359         * gcse.c (target.h): Include.
2360         (can_assign_to_reg_without_clobbers_p): Check that the target allows
2361         copy of argument to a pseudo register.
2363 2009-05-27  Diego Novillo  <dnovillo@google.com>
2365         * tree-ssa-live.c (dump_scope_block): Document arguments.
2366         (dump_scope_blocks): Document.
2367         (debug_scope_blocks): New.
2368         * tree-flow.h (debug_scope_blocks): Declare.
2370 2009-05-21  Denis Chertykov  <denisc@overta.ru>
2372         * doc/contrib.texi (Contributors): Add myself to the list.
2374 2009-05-27  Olivier Hainque  <hainque@adacore.com>
2376         * expr.c (target_align): New function.  Alignment the TARGET of an
2377         assignment may be assume to have.
2378         (highest_pow2_factor_for_target): Use it instead of relying on
2379         immediate tree attributes of TARGET, not necessarily honored when
2380         intermediate bitfields are involved.
2381         
2382 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
2384         PR target/40266
2385         * config/i386/driver-i386.c (host_detect_local_cpu): Support
2386         AVX, SSE4, AES, PCLMUL and POPCNT.
2388 2009-05-27  Diego Novillo  <dnovillo@google.com>
2390         * tree-pretty-print.c (dump_location): New.
2391         (dump_generic_node): Call it.
2392         Factor code to handle BLOCK nodes ...
2393         (dump_block_node): ... here.
2395 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
2397         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
2398         with it.
2399         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
2400         included.
2401         * gcc-plugin.h: Include config.h and system.h.
2402         (IN_GCC): Define if not defined.
2404 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
2406         PR middle-end/40249
2407         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
2408         with -fno-inline.
2410 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
2412         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
2413         applicable.
2414         * config/m32r/m32r.h: Ditto.
2415         * config/m32r/m32r.md: Ditto.
2416         * config/m32r/predicates.md: Ditto.
2418 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
2420         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
2422 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
2424         * doc/plugins.texi
2425         (Loading plugins): typo.
2426         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
2427         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
2428         (Interacting with the GCC Garbage Collector): Added new section.
2429         (Giving information about a plugin): Added new section for
2430         PLUGIN_INFO.
2431         * ggc.h (ggc_register_root_tab): Added declaration.
2432         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
2433         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
2434         (register_callback): Improved comment in declaration.
2435         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
2436         (extra_root_vec) Added static variable for dynamic roots registration.
2437         (ggc_register_root_tab) Added new routine.
2438         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
2439         PLUGIN_GGC_MARKING event.
2440         * ggc-zone.c: Include plugin.h.
2441         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
2442         * ggc-page.c: Include plugin.h.
2443         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
2444         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
2445         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
2446         (register_callback): check lack of callbacks for
2447         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
2448         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
2449         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
2450         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
2451         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
2452         dependency on plugin.h.
2453         (plugin.o): Added dependency on ggc.h...
2455 2009-05-26  Richard Guenther  <rguenther@suse.de>
2457         PR middle-end/40248
2458         Revert
2459         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
2460         with mismatched comparison modes.
2462         * expr.c (expand_expr_real_1): Expand the operand of a
2463         VIEW_CONVERT_EXPR in its natural mode.
2465 2009-05-26  Ian Lance Taylor  <iant@google.com>
2467         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
2468         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
2469         (ALL_COMPILERFLAGS): Define.
2470         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
2471         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
2472         (collect2$(exeext), collect2.o): Likewise.
2473         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
2474         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
2475         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
2476         (libbackend.o, intl.o, cppdefault.o): Likewise.
2477         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
2478         (build/%.o): Use $(COMPILER_FOR_BUILD).
2479         (build/gen%$(build_exeext)): Likewise.
2480         (build/gcov-iov$(build_exeext)): LIkewise.
2481         * config/t-darwin (darwin.o): Use $(COMPILER).
2482         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
2483         * config/t-sol2 (sol2-c.o): Likewise.
2484         (sol2.o): Likewise.
2485         * config/t-vxworks (vxworks.o): Likewise.
2486         * config/x-darwin (host-darwin.o): Likewise.
2487         * config/x-hpux (host-hpux.o): Likewise.
2488         * config/x-linux (host-linux.o): Likewise.
2489         * config/x-solaris (host-solaris.o): Likewise.
2490         * config/alpha/x-alpha (driver-alpha.o): Likewise.
2491         * config/arm/t-arm (arm-c.o): Likewise.
2492         * config/arm/t-pe (pe.o): Likewise.
2493         * config/arm/t-wince-pe (pe.o): Likewise.
2494         * config/i386/t-cygming (winnt.o): Likewise.
2495         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
2496         * config/i386/t-cygwin (cygwin1.o): Likewise.
2497         (cygwin2.o): Likewise.
2498         * config/i386/t-i386 (i386-c.o): Likewise.
2499         * config/i386/t-interix (winnt.o): Likewise.
2500         * config/i386/t-netware (netware.o): Likewise.
2501         * config/i386/t-nwld (nwld.o): Likewise.
2502         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
2503         * config/i386/x-i386 (driver-i386.o): Likewise.
2504         * config/i386/x-cygwin (host-cygwin.o): Likewise.
2505         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
2506         * config/ia64/t-ia64 (ia64-c.o): Likewise.
2507         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
2508         * config/mips/x-native (driver-native.o): Likewise.
2509         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
2510         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
2511         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
2512         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
2513         * config/score/t-score-elf (score7.o): Likewise.
2514         (score3.o): Likewise.
2515         * config/sh/t-sh (sh-c.o): Likewise.
2516         * config/sh/t-symbian (sh-c.o): Likewise.
2517         (symbian.o): Likewise.
2518         * config/spu/t-spu-elf (spu-c.o): Likewise.
2519         * config/v850/t-v850 (v850-c.o): Likewise.
2520         * config/v850/t-v850e (v850-c.o): Likewise.
2522 2009-05-26  Richard Guenther  <rguenther@suse.de>
2524         PR tree-optimization/40122
2525         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
2526         VECTOR_CSTs if possible.
2527         (fold_gimple_assign): Likewise.
2529 2009-05-26  Richard Guenther  <rguenther@suse.de>
2531         PR middle-end/40252
2532         * fold-const.c (fold_binary): Use the correct types for building
2533         rotates.
2535 2009-05-26  Richard Guenther  <rguenther@suse.de>
2537         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
2538         redundant calls to merge_alias_info.
2539         (bump_vector_ptr): Likewise.
2540         * tree-ssa-copy.c (merge_alias_info): Remove.
2541         (replace_exp_1): Remove call to merge_alias_info.
2542         (propagate_tree_value): Likewise.
2543         (fini_copy_prop): Propagate points-to info.
2544         * tree-flow.h (merge_alias_info): Remove.
2546 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
2548         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
2550 2009-05-25  Jan Hubicka  <jh@suse.cz>
2552         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
2553         * cgraph.h (struct inline_summary): New filed self_wize,
2554         size_inlining_benefit, self_time and time_inlining_benefit.
2555         (struct cgraph_global_info): Replace insns by time ans size fields.
2556         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
2557         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
2558         (ipcp_update_callgraph): Do not touch function bodies.
2559         * ipa-inline.c: Include except.h
2560         (MAX_TIME): New constant.
2561         (overall_insns): Remove.
2562         (leaf_node_p): New.
2563         (overall_size, max_benefit): New static variables.
2564         (cgraph_estimate_time_after_inlining): New function.
2565         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
2566         (cgraph_clone_inlined_nodes): Update size.
2567         (cgraph_mark_inline_edge): Update size.
2568         (cgraph_estimate_growth): Use size info.
2569         (cgraph_check_inline_limits): Check size.
2570         (cgraph_default_inline_p): Likewise.
2571         (cgraph_edge_badness): Compute badness based on benefit and size cost.
2572         (cgraph_decide_recursive_inlining): Check size.
2573         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
2574         and times.
2575         (cgraph_decide_inlining): Likewise.
2576         (cgraph_decide_inlining_incrementally): Likewise; honor
2577         PARAM_EARLY_INLINING_INSNS.
2578         (likely_eliminated_by_inlining_p): New predicate.
2579         (estimate_function_body_sizes): New function.
2580         (compute_inline_parameters): Use it.
2581         * except.c (must_not_throw_labels): New function.
2582         * except.h (must_not_throw_labels): Declare.
2583         * tree-inline.c (init_inline_once): Kill inlining_weigths
2584         * tree-ssa-structalias.c: Avoid uninitialized warning.
2585         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
2586         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
2587         (PARAM_INLINE_CALL_COST): Remove.
2588         (PARAM_EARLY_INLINING_INSNS): New.
2590 2009-05-25  Richard Guenther  <rguenther@suse.de>
2592         PR tree-optimization/36327
2593         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
2594         callback for reference translation or lookup at the point of may-defs.
2595         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
2596         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
2597         for union COMPONENT_REFs.
2598         (vn_reference_lookup_3): New callback.  Lookup from memset
2599         and CONSTRUCTOR assignment, translate through struct copies.
2600         (vn_reference_lookup_pieces): Make sure to not free the
2601         passed operands array.  Adjust walk_non_aliased_vuses call.
2602         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
2603         make sure we do not leak memory.
2605 2009-05-25  Richard Guenther  <rguenther@suse.de>
2607         * tree-ssa-alias.h (dump_points_to_solution): Declare.
2608         * tree-inline.c (expand_call_inline): Reset the escaped and
2609         callused solutions.
2610         * tree-ssa-structalias.c (pass_build_ealias): New.
2611         * tree-pass.h (pass_build_ealias): Declare.
2612         * passes.c (init_optimization_passes): Add PTA during 
2613         early optimizations.
2614         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
2615         and CALLUSED solutions.
2616         (dump_points_to_solution): New function, split out from ...
2617         (dump_points_to_info_for): ... here.
2618         * tree-parloops.c (parallelize_loops): Reset the escaped and
2619         callused solutions.
2621 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2623         PR bootstrap/40027
2624         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
2625         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
2627 2009-05-25  Ira Rosen  <irar@il.ibm.com>
2629         PR tree-optimization/40238
2630         * tree-vect-stmts.c (vect_init_vector): Insert initialization
2631         statements after basic block's labels.
2632         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info() 
2633         to free the allocated memory.
2635 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
2637         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
2638         return address with a USE.
2640 2009-05-24  Richard Guenther  <rguenther@suse.de>
2642         PR middle-end/40233
2643         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
2644         array type from the main variant of the inner type.
2646 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2648         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
2649         definition to bool (from int) to un-break build.
2650         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
2652 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
2654         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
2655         discard_stmt_changes): Delete.
2656         * tree-ssa-operands.c (scb_stack): Delete.
2657         (init_ssa_operands): Do not initialize it.
2658         (fini_ssa_operands): Do not free it.
2659         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
2661         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with 
2662         update_stmt, remove the others.  Fix comments.
2663         * tree-dfa.c (optimize_stack_restore): Likewise.
2664         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
2665         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
2666         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
2667         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
2668         Likewise.
2669         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2670         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
2671         (dom_opt_finalize_block): Likewise, adjusting access to
2672         stmts_to_rescan.
2673         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
2674         (stmts_to_rescan): Change item type to gimple.
2675         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
2677 2009-05-24  Ira Rosen  <irar@il.ibm.com>
2679         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
2680         * tree-pass.h (pass_slp_vectorize): New pass.
2681         * params.h (SLP_MAX_INSNS_IN_BB): Define.
2682         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
2683         * tree-vectorizer.c (timevar.h): Include.
2684         (user_vect_verbosity_level): Declare.
2685         (vect_location): Fix comment.
2686         (vect_set_verbosity_level): Update user_vect_verbosity_level
2687         instead of vect_verbosity_level.
2688         (vect_set_dump_settings): Add an argument. Ignore user defined
2689         verbosity if dump flags require higher level of verbosity. Print to
2690         stderr only for loop vectorization.
2691         (vectorize_loops): Update call to vect_set_dump_settings.
2692         (execute_vect_slp): New function.
2693         (gate_vect_slp): Likewise.
2694         (struct gimple_opt_pass pass_slp_vectorize): New.
2695         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
2696         access its members.
2697         (vec_info_for_bb): New function.
2698         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
2699         (VECTORIZATION_ENABLED): New macro.
2700         (SLP_ENABLED, SLP_DISABLED): Likewise.
2701         (vect_is_simple_use): Add bb_vec_info argument.
2702         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
2703         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
2704         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
2705         vect_schedule_slp, vect_analyze_slp): Likewise.
2706         (vect_analyze_stmt): Add slp_tree argument.
2707         (find_bb_location): Declare.
2708         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
2709         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
2710         (vect_analyze_loop_operations, vect_analyze_loop,
2711         get_initial_def_for_induction, vect_create_epilog_for_reduction,
2712         vect_finalize_reduction, vectorizable_reduction,
2713         vectorizable_live_operation, vect_transform_loop): Likewise.
2714         * tree-data-ref.c (dr_analyze_innermost): Update comment,
2715         skip evolution analysis if analyzing a basic block.
2716         (dr_analyze_indices): Likewise.
2717         (initialize_data_dependence_relation): Skip the test whether the
2718         object is invariant for basic blocks.
2719         (compute_all_dependences): Skip dependence analysis for data
2720         references in basic blocks.
2721         (find_data_references_in_stmt): Don't fail in case of invariant
2722         access in basic block.
2723         (find_data_references_in_bb): New function.
2724         (find_data_references_in_loop): Move code to
2725         find_data_references_in_bb and add a call to it.
2726         (compute_data_dependences_for_bb): New function.
2727         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
2728         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
2729         that STEP is 0.
2730         (vect_analyze_data_ref_dependence): Check for interleaving in case of
2731         unknown dependence in basic block and fail in case of dependence in
2732         basic block.
2733         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
2734         dependence instances from either loop or basic block vectorization
2735         info.
2736         (vect_compute_data_ref_alignment): Check if it is loop vectorization
2737         before calling nested_in_vect_loop_p.
2738         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
2739         dependence instances from either loop or basic block vectorization
2740         info.
2741         (vect_verify_datarefs_alignment): Likewise.
2742         (vect_enhance_data_refs_alignment): Adjust function calls.
2743         (vect_analyze_data_refs_alignment): Likewise.
2744         (vect_analyze_group_access): Fix printing. Skip different checks if
2745         DR_STEP is 0. Keep strided stores either in loop or basic block
2746         vectorization data structure. Fix indentation.
2747         (vect_analyze_data_ref_access): Fix comments, allow zero step in
2748         basic blocks.
2749         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
2750         dependence instances from either loop or basic block vectorization
2751         info.
2752         (vect_analyze_data_refs): Update comment. Call
2753         compute_data_dependences_for_bb to analyze basic blocks.
2754         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
2755         case of loop vectorization. In case of basic block vectorization use
2756         data-ref itself as a base.
2757         (vect_create_data_ref_ptr): In case of basic block vectorization:
2758         don't advance the pointer, add new statements before the current
2759         statement.  Adjust function calls.
2760         (vect_supportable_dr_alignment): Support only aligned accesses in
2761         basic block vectorization.
2762         * common.opt (ftree-slp-vectorize): New flag.
2763         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
2764         (vect_pattern_recog_1): Likewise.
2765         * tree-vect-stmts.c (process_use): Likewise.
2766         (vect_init_vector): Add new statements in the beginning of the basic
2767         block in case of basic block SLP.
2768         (vect_get_vec_def_for_operand): Adjust function calls.
2769         (vect_finish_stmt_generation): Likewise.
2770         (vectorizable_call): Add assert that it is loop vectorization, adjust
2771         function calls.
2772         (vectorizable_conversion, vectorizable_assignment): Likewise.
2773         (vectorizable_operation): In case of basic block SLP, take
2774         vectorization factor from statement's type and skip the relevance
2775         check. Adjust function calls.
2776         (vectorizable_type_demotion): Add assert that it is loop
2777         vectorization, adjust function calls.
2778         (vectorizable_type_promotion): Likewise.
2779         (vectorizable_store): Check for outer loop only in case of loop
2780         vectorization. Adjust function calls. For basic blocks, skip the
2781         relevance check and don't advance pointers.
2782         (vectorizable_load): Likewise.
2783         (vectorizable_condition): Add assert that it is loop vectorization,
2784         adjust function calls.
2785         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
2786         that it is not reduction, get vector type, call only supported
2787         functions, skip loop specific parts.
2788         (vect_transform_stmt): Check for outer loop only in case of loop
2789         vectorization.
2790         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
2791         (vect_is_simple_use): Fix comment, add new argument, fix conditions
2792         for external definition.
2793         * passes.c (pass_slp_vectorize): New pass.
2794         * tree-vect-slp.c (find_bb_location): New function.
2795         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
2796         check for patterns only in loops.
2797         (vect_build_slp_tree): Add argument, adjust function calls, fail in
2798         case of multiple types in basic block SLP.
2799         (vect_mark_slp_stmts_relevant): New function.
2800         (vect_supported_load_permutation_p): Fix comment.
2801         (vect_analyze_slp_instance): Add argument. In case of basic block
2802         SLP, take vectorization factor from statement's type, check that
2803         unrolling factor is 1. Adjust function call. Save SLP instance in
2804         either loop or basic block vectorization structure. Return FALSE,
2805         if SLP failed.
2806         (vect_analyze_slp): Add argument. Get strided stores groups from
2807         either loop or basic block vectorization structure. Return FALSE
2808         if basic block SLP failed.
2809         (new_bb_vec_info): New function.
2810         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
2811         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
2812         (vect_schedule_slp): Add argument. Get SLP instances from either
2813         loop or basic block vectorization structure. Set vectorization factor
2814         to be 1 for basic block SLP.
2815         (vect_slp_transform_bb): New function.
2816         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
2818 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
2820         * final.c (shorten_branches): Do not align labels for jump tables.
2821         (final_scan_insn): Use JUMP_TABLE_DATA_P.
2823 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2825         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
2826         Remove outdated reference to flow.c and fix nits.
2827         * doc/gccint.texi: Tweak RTL description.
2828         * doc/rtl.texi: Likewise.
2830 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
2832         * config/avr/avr.c: Change my email address.
2833         * config/avr/avr.h: Likewise.
2834         * config/avr/avr.md: Likewise.
2835         * config/avr/avr-protos.h: Likewise.
2836         * config/avr/libgcc.S: Likewise.
2838 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
2840         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
2841         (spu_split_load, spu_split_store): Change return type to int.
2842         (spu_split_convert): Declare.
2843         * config/spu/predicates.md (spu_mem_operand): Remove.
2844         (spu_mov_operand): Update.
2845         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
2846         * config/spu/spu.c (regno_aligned_for_load): Remove.
2847         (reg_aligned_for_addr, spu_expand_load): Define.
2848         (spu_expand_extv): Reimplement and handle MEM.
2849         (spu_expand_insv): Handle MEM.
2850         (spu_sched_reorder): Handle insn's with length 0.
2851         (spu_legitimate_address_p): Reimplement.
2852         (store_with_one_insn_p): Return TRUE for any mode with size
2853         larger than 16 bytes.
2854         (address_needs_split): Define.
2855         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
2856         operands.
2857         (spu_convert_move): Define.
2858         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
2859         (spu_split_store): Change all MEM's to TImode.
2860         (spu_init_expanders): Preallocate registers that correspond to
2861         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
2862         mark_reg_pointer.
2863         (spu_split_convert): Define.
2864         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
2865         (_move<mode>, _movdi, _movti): Update predicate and condition.
2866         (load, store): Change to define_split.
2867         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
2868         extend<mode>ti2.
2869         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
2870         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
2871         define_insn_and_split of lshr<mode>3.
2872         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
2873         (<v>ashr<mode>3_imm): Define.
2874         (extv, extzv, insv): Allow MEM operands.
2875         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
2876         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
2877         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
2878         (_spu_convert2): Change to define_insn_and_split and remove the
2879         corresponding define_peephole2.
2880         (stack_protect_set, stack_protect_test, stack_protect_test_si):
2881         Change predicates to memory_operand.
2883 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
2885         * config/arm/thumb2.md: Add 16-bit multiply instructions.
2887 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
2889         PR tree-optimization/40219
2890         * tree.c (iterative_hash_expr): Make sure the builtin function is
2891         a normal builtin function and not a front end or back end builtin
2892         before indexing into the built_in_decls array.
2894 2009-05-22  Richard Guenther  <rguenther@suse.de>
2896         PR middle-end/38964
2897         * alias.c (write_dependence_p): Do not use TBAA for answering
2898         anti-dependence or output-dependence.
2899         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
2900         (emit_pointer_definition): Remove.
2901         (emit_alias_warning): Likewise.
2902         (find_what_var_points_to): Remove TBAA pruning code.
2903         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
2904         violations.
2905         (compute_points_to_sets): Remove code computing the set of
2906         dereferenced pointers.
2907         * tree-data-ref.c (dr_may_alias_p): Properly use the split
2908         oracle for querying anti and output dependencies.
2909         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
2910         if TBAA may be applied.
2911         (refs_anti_dependent_p): New function.
2912         (refs_output_dependent_p): Likewise.
2913         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
2914         (refs_output_dependent_p): Likewise.
2915         * doc/tree-ssa.texi (Memory model): New section.
2916         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
2917         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
2918         * cfgexpand.c (expand_gimple_basic_block): Do not handle
2919         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
2920         * expr.c (expand_expr_real_1): Likewise.
2921         * gimple-low.c (lower_stmt): Likewise.
2922         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
2923         (dump_gimple_cdt): Remove.
2924         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
2925         (gimple_size): Likewise.
2926         (walk_gimple_op): Likewise.
2927         (is_gimple_stmt): Likewise.
2928         (walk_stmt_load_store_addr_ops): Likewise.
2929         (gimple_build_cdt): Remove.
2930         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
2931         * gimple.h (gimple_cdt_new_type): Remove.
2932         (gimple_cdt_new_type_ptr): Likewise.
2933         (gimple_cdt_set_new_type): Likewise.
2934         (gimple_cdt_location): Likewise.
2935         (gimple_cdt_location_ptr): Likewise.
2936         (gimple_cdt_set_location): Likewise.
2937         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
2938         * tree-cfg.c (remove_useless_stmts_1): Do not handle
2939         GIMPLE_CHANGE_DYNAMIC_TYPE.
2940         (verify_types_in_gimple_stmt): Likewise.
2941         * tree-inline.c (estimate_num_insns): Likewise.
2942         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
2943         (copy_decl_to_var): Likewise.
2944         (copy_result_decl_to_var): Likewise.
2945         * tree-pretty-print.c (dump_generic_node): Do not handle
2946         CHANGE_DYNAMIC_TYPE_EXPR.
2947         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
2948         * tree-ssa-operands.c (get_expr_operands): Likewise.
2949         * tree-ssa-structalias.c (struct variable_info): Remove
2950         no_tbaa_pruning member.
2951         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
2952         (unify_nodes): Do not copy it.
2953         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
2954         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
2955         (set_uids_in_ptset): Do not check it.
2956         (find_what_var_points_to): Likewise.
2957         (compute_tbaa_pruning): Remove.
2958         (compute_points_to_sets): Do not call it.
2959         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
2960         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
2961         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
2962         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
2963         (DECL_NO_TBAA_P): Likewise.
2964         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
2965         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
2966         (expand_omp_atomic_pipeline): Do not set it.
2967         * print-tree.c (print_node): Do not dump it.
2968         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
2969         redundant check.
2971 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
2973         PR target/39856
2974         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
2975         for clobber.
2977 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
2979         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
2980         non-external.
2982 2009-05-22  Ben Elliston  <bje@au.ibm.com>
2984         * Makefile.in (bversion.h, s-bversion): New targets.
2985         (TOPLEV_H): Add bversion.h.
2986         * toplev.h: Include "bversion.h".
2987         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
2988         the __format__ attribute only if compiling with the same version
2989         of GCC as the sources (the "build version").
2991 2009-05-22  Ben Elliston  <bje@au.ibm.com>
2993         * c-format.c (handle_format_attribute): Fix comment typo.
2995 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
2997         PR target/37846
2998         * config/ia64/ia64.opt (mfused-madd): New.
2999         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
3000         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
3001         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
3002         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
3003         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
3004         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
3005         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
3006         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms 
3007         instruction if !TARGET_FUSED_MADD.
3008         (fpma, fpms): Remove colon from name.
3010 2009-05-22  Richard Guenther  <rguenther@suse.de>
3012         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
3013         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
3014         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
3015         TARGET_MEM_REF.
3016         (create_expression_by_pieces): Only convert if necessary.
3017         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
3018         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
3020 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
3022         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
3023         regular pattern from a template and rename it ...
3024         (*extzv_truncsi_exts): ... to this.
3026 2009-05-21  Richard Guenther  <rguenther@suse.de>
3028         * cgraph.h (struct cgraph_node): Remove inline_decl member.
3029         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
3030         (cgraph_default_inline_p): Likewise.
3031         (cgraph_decide_inlining_incrementally): Likewise.
3033 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3034             Uros Bizjak  <ubizjak@gmail.com>
3036         * config/i386/cpuid.h (bit_MOVBE): New.
3038         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
3040         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
3041         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
3042         (ix86_handle_option): Handle OPT_mmovbe.
3043         (ix86_target_string): Add -mmovbe.
3044         (pta_flags): Add PTA_MOVBE.
3045         (processor_alias_table): Add PTA_MOVBE to "atom".
3046         (override_options): Handle PTA_MOVBE.
3048         * config/i386/i386.h (TARGET_MOVBE): New.
3050         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
3051         (*bswapsi_movbe): New.
3052         (*bswapdi_movbe): Likewise.
3053         (bswapdi2): Renamed to ...
3054         (*bswapdi_1): This.
3055         (bswapdi2): New expander.
3057         * config/i386/i386.opt (mmovbe): New.
3059         * doc/invoke.texi: Document -mmovbe.
3061 2009-05-21  Taras Glek  <tglek@mozilla.com>
3063         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
3064         * gcc-plugin.h (plugin_init): Updated signature.
3065         * gcc-plugin.h (plugin_name_args): Moved to this header.
3066         * doc/plugins.texi (plugin_init): Updated documention to reflect
3067         API change.
3068         * doc/plugins.texi (plugin_name_args): Added to documention.
3070 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
3072         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
3073         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
3075 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
3077         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
3078         JUMP_TABLE_DATA_P predicates where applicable.
3079         * config/i386/predicates.md: Ditto.
3080         * config/i386/sse.md: Ditto.
3082 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
3084         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
3085         operand2 -128 override length_immediate attribute to 1.
3086         * config/i386/predicates.md (constm128_operand): New predicate.
3088         * config/i386/i386.c (memory_address_length): Handle %r12
3089         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
3090         also check REGNO.
3091         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
3092         mode look through optional ZERO_EXTEND and SUBREG.
3093         * config/i386/i386.md (R12_REG): New define_constant.
3094         (prefix_data16): For sse unit set also for MODE_TI insns.
3095         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
3096         insns set if operand 1 is ext_QIreg_operand.
3097         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
3098         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
3099         immediate.
3100         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
3101         mode from MODE_DI to MODE_SI.
3102         (movdi_1_rex64): Override modrm and length_immediate attributes
3103         only for movabs (TYPE_IMOV, alternative 2).
3104         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
3105         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3106         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3107         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3108         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
3109         prefix_rex attribute if DImode.
3110         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
3111         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
3112         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
3113         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
3114         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
3115         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
3116         Likewise.  For TYPE_IMOV clear length_immediate attribute.
3117         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
3118         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
3119         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
3120         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
3121         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
3122         or one operand TYPE_ISHIFT.
3123         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
3124         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
3125         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
3126         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
3127         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
3128         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
3129         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
3130         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
3131         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
3132         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
3133         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
3134         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
3135         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
3136         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
3137         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
3138         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
3139         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
3140         set mode attribute, don't override length attribute.
3141         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
3142         to 1.
3143         (return_internal_long): Set length attribute to 2 instead of 1.
3144         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
3145         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
3146         prefix_rex attribute.
3147         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
3148         New predicates.
3149         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
3151 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3153         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
3155 2009-05-20  Ian Lance Taylor  <iant@google.com>
3157         * tree.c (build_tree_list_vec_stat): New function.
3158         (ctor_to_vec): New function.
3159         (build_nt_call_vec): New function.
3160         (build_call_array): Change args to be a const pointer.
3161         (build_call_vec): New function.
3162         * tree.h (build_nt_call_vec): Declare.
3163         (build_tree_list_vec_stat): Declare.
3164         (build_tree_list_vec): Define.
3165         (build_call_array): Update declaration.
3166         (build_call_vec): Declare.
3167         (ctor_to_vec): Declare.
3168         * c-common.c (tree_vector_cache): New static variable.
3169         (make_tree_vector): New function.
3170         (release_tree_vector): New function.
3171         (make_tree_vector_single): New function.
3172         (make_tree_vector_copy): New function.
3173         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
3174         (make_tree_vector_single, make_tree_vector_copy): Declare.
3175         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
3176         (c_parser_expr_list): Don't manage cache here, instead call
3177         make_tree_vector.
3178         (c_parser_release_expr_list): Remove static function.
3179         (c_parser_vec_to_tree_list): Remove static function.
3180         (c_parser_attributes): Call build_tree_list_vec instead of
3181         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
3182         c_parser_release_expr_list.
3183         (c_parser_postfix_expression_after_primary): Likewise.
3184         (c_parser_objc_keywordexpr): Likewise.
3186 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
3188         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
3189         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
3190         TARGET_CONVERT_TO_TYPE.
3191         * hooks.c (hook_tree_const_tree_null): Define.
3192         * hooks.h (hook_tree_const_tree_null): Declare.
3193         * target.h (struct gcc_target):  Add invalid_parameter_type,
3194         invalid_return_type, promoted_type, and convert_to_type fields.
3195         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
3196         (TARGET_INVALID_RETURN_TYPE): Define.
3197         (TARGET_PROMOTED_TYPE): Define.
3198         (TARGET_CONVERT_TO_TYPE): Define.
3199         (TARGET_INITIALIZER): Update for new fields.
3200         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
3201         (grokparms): Check targetm.invalid_parameter_type.
3202         * c-typeck.c (default_conversion): Check targetm.promoted_type.
3203         * c-convert.c (convert): Check targetm.convert_to_type.
3205 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
3207         * config/mips/mips.md (*extenddi_truncate<mode>,
3208         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
3209         defintions.
3210         (*extendhi_truncateqi): New define_insn_and_sptit.
3212 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
3214         PR middle-end/40204
3215         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
3216         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
3218 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
3220         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
3221         the operand of VIEW_CONVERT_EXPR.
3223 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3225         * config/i386/driver-i386.c (host_detect_local_cpu): Check
3226         extended family and model for Intel processors.  Support Intel Atom.
3228 2009-05-20  Olivier Hainque  <hainque@adacore.com>
3230         * gstab.h (stab_code_type): Define, to be used instead of the
3231         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
3232         notice.
3233         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
3234         occurrences by stab_code_type.
3235         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
3237 2009-05-20  Martin Jambor  <mjambor@suse.cz>
3239         * tree-flow.h (insert_edge_copies_seq): Undeclare.
3240         (sra_insert_before): Likewise.
3241         (sra_insert_after): Likewise.
3242         (sra_init_cache): Likewise.
3243         (sra_type_can_be_decomposed_p): Likewise.
3244         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
3245         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
3246         (sra_insert_before): Likewise.
3247         (sra_insert_after): Likewise.
3248         (sra_init_cache): Likewise.
3249         (insert_edge_copies_seq): Made static and moved upwards.
3251         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
3252         case.
3254         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
3256         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
3257         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
3258         simple copies.
3260 2009-05-20  Richard Guenther  <rguenther@suse.de>
3262         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
3263         with mismatched comparison modes.
3265 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3267         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
3268         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
3269         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
3270         with shifts for Thumb2.
3271         (orsi_notsi): New for orn.
3272         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
3273         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
3274         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
3275         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
3276         Don't invert remainder for IOR.
3277         
3278 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
3280         PR tree-optimization/40087
3281         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
3282         number_of_iterations_ne): Rename never_infinite argument.
3283         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
3284         number_of_iterations_le): Handle pointer-type ivs when
3285         exit_must_be_taken is false.
3286         (number_of_iterations_cond):  Do not always assume that
3287         exit_must_be_taken if the control variable is a pointer.
3289 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3291         * c-typeck.c (build_binary_op): Allow % on integal vectors.
3292         * doc/extend.texi (Vector Extension): Document that % is allowed too.
3294 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
3296         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
3297         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
3299 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3301         PR c/40172
3302         * c.opt (Wlogical-op): Disabled by default.
3303         * c-opt (c_common_post_options): Do not enable Wlogical-op with
3304         Wextra.
3305         * doc/invoke.texi (Wlogical-op): Likewise.
3306         
3307 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
3309         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
3310         into CASE_CONVERT.
3311         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
3312         Propagate the type of the first operand.
3313         <ASSERT_EXPR>: Simplify.
3314         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
3315         Rewrite using the RHS code as discriminant.
3316         <NOP_EXPR>: Turn into CASE_CONVERT.
3317         <PLUS_EXPR>: Propagate the type of the first operand.
3319 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
3321         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
3322         (ia64_dconst_0_375): New.
3323         * config/ia64/ia64.c (ia64_override_options): Remove
3324         -minline-sqrt-min-latency warning.
3325         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
3326         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
3327         * config/ia64/ia64.md (*sqrt_approx): Remove.
3328         (sqrtsf2): Remove #if 0.
3329         (sqrtsf2_internal_thr): Rewrite and move to div.md.
3330         (sqrtdf): Remove assert.
3331         (sqrtdf2_internal_thr): Rewrite and move to div.md.
3332         (sqrtxf2): Remove #if 0.
3333         (sqrtxf2_internal_thr): Rewrite and move to div.md.
3334         * div.md (sqrt_approx_rf): New.
3335         (sqrtsf2_internal_thr): New implementation.
3336         (sqrtsf2_internal_lat): New.
3337         (sqrtdf2_internal_thr: New implementation.
3338         (sqrtxf2_internal): New implementation.
3340 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
3341             Hans-Peter Nilsson  <hp@axis.com>
3343         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
3344         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
3345         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
3346         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
3347         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
3348         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
3349         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
3350         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
3351         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
3352         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
3353         * c-common.c: ...from here.
3355 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3357         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
3359 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3361         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
3363 2009-05-19  Ben Elliston  <bje@au.ibm.com>
3365         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
3366         assignments with memcpy calls.
3367         (add_fdes): Likewise.
3368         (binary_search_unencoded_fdes): Likewise.
3369         (linear_search_fdes): Eliminate type puns.
3370         
3371 2009-05-19  Richard Guenther  <rguenther@suse.de>
3373         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
3374         not falsely claim to have propagated into all uses.
3376 2009-05-19  Ben Elliston  <bje@au.ibm.com>
3378         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
3379         version to v3.0.
3381 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3383         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
3384         * config/sh/sh.c (sh_legitimate_address_p): Make static.
3385         (TARGET_LEGITIMATE_ADDRESS_P): New.
3386         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3387         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
3388         
3389 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
3391         PR debug/40109
3392         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
3393         child of the containing namespace's DIE.
3395 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
3397         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
3398         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
3399         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
3400         extend patterns.
3402 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3404         PR target/39942
3405         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
3406         gen_align with gen_pad.
3407         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
3408         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
3410         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
3411         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
3413         * config/i386/i386.md (align): Renamed to ...
3414         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
3415         ASM_OUTPUT_MAX_SKIP_PAD.
3417 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
3419         * config.gcc: Fix variable syntax.
3421         PR target/39531
3422         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
3423         before calling exact_log2.
3424         (output_iorsi3): Likewise.
3425         (output_xorsi3): Likewise.
3427 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3429         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
3430         for the none zero constant operand except for EQ and NE
3431         comprisons even when the first operand is R0.
3433 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
3435         * config/s390/2064.md: Remove trailing whitespaces.
3436         * config/s390/2084.md: Likewise.
3437         * config/s390/constraints.md: Likewise.
3438         * config/s390/fixdfdi.h: Likewise.
3439         * config/s390/libgcc-glibc.ver: Likewise.
3440         * config/s390/s390-modes.def: Likewise.
3441         * config/s390/s390-protos.h: Likewise.
3442         * config/s390/s390.c: Likewise.
3443         * config/s390/s390.h: Likewise.
3444         * config/s390/s390.md: Likewise.
3445         * config/s390/tpf-unwind.h: Likewise.
3447 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
3449         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
3451 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
3453         M68K TLS support.
3454         * configure.ac (m68k-*-*): Check if binutils support TLS.
3455         * configure: Regenerate.
3456         * config/m68k/predicates.md (symbolic_operand): Extend comment.
3457         * config/m68k/constraints.md (Cu): New constraint.
3458         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
3459         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
3460         (movsi): Handle TLS symbols.
3461         (addsi3_5200): Handle XTLS symbols, indent.
3462         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
3463         (m68k_tls_reference_p): Declare.
3464         (m68k_legitimize_address): Declare.
3465         (m68k_unwrap_symbol): Declare.
3466         * config/m68k/m68k.opt (mxtls): New option.
3467         * config/m68k/m68k.c (ggc.h): Include.
3468         (m68k_output_dwarf_dtprel): Implement hook.
3469         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
3470         (m68k_expand_prologue): Load GOT pointer when function needs it.
3471         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
3472         (m68k_legitimate_constant_address_p): Same.
3473         (m68k_decompose_address): Handle TLS references.
3474         (m68k_get_gp): New static function.
3475         (enum m68k_reloc): New contants.
3476         (TLS_RELOC_P): New macro.
3477         (m68k_wrap_symbol): New static function.
3478         (m68k_unwrap_symbol): New function.
3479         (m68k_final_prescan_insn_1): New static function.
3480         (m68k_final_prescan_insn): New function.
3481         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
3482         functions.
3483         (legitimize_pic_address): Handle TLS references..
3484         (m68k_tls_get_addr, m68k_get_tls_get_addr)
3485         (m68k_libcall_value_in_a0_p)
3486         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
3487         (m68k_call_m68k_read_tp): Helper variables and functions for ...
3488         (m68k_legitimize_tls_address): Handle TLS references.
3489         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
3490         New functions.
3491         (m68k_legitimize_address): Handle TLS symbols.
3492         (m68k_get_reloc_decoration): New static function.
3493         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
3494         UNSPEC_RELOC32.
3495         (m68k_output_dwarf_dtprel): Implement hook.
3496         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
3497         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
3498         m68k_call_* routines.
3499         (sched_attr_op_type): Handle TLS symbols.
3500         (gt-m68k.h): Include.
3501         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
3502         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
3504 2009-05-18  Martin Jambor  <mjambor@suse.cz>
3506         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
3507         (visit_store_addr_for_mod_analysis): New function.
3508         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
3509         (determine_cst_member_ptr): Use gimple_assign_single_p.
3510         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
3511         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
3512         operands.  Don't check number of operands of a NOP_EXPR.
3514 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
3516         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
3518 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3520         PR c/40172
3521         * c-common.c (warn_logical_operator): Don't warn if one of
3522         expression isn't always true or false.
3524 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
3526         * config/i386/biarch32.h: New file.
3527         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
3529 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
3531         * config/mips/mips.md (*zero_extend<mode>_trunchi,
3532         *zero_extend<mode>_truncqi): Merge these into ...
3533         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
3534         Name the pattern following this as *zero_extendhi_truncqi.
3536 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
3538         PR middle-end/39301
3539         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
3540         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
3541         (output_info): Make field HOST_WIDEST_INT.
3542         (print_statistics): Use HOST_WIDEST_INT_PRINT.
3543         (dump_bitmat_statistics): Same.
3545 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
3547         * config.gcc (use_gcc_stdint):  Set to wrap.
3548         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
3549         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
3550         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
3551         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
3552         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
3553         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
3554         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
3555         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
3557 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
3559         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
3560         tune_64.
3561         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
3562         Move definitions earlier.
3563         (OPT_ARCH64, OPT_ARCH32): Define.
3564         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
3565         and tune_64.
3567 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
3569         PR target/40153
3570         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
3571         implies.
3573 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
3575         * arm.md (movdi2): Copy non-reg values to DImode registers.
3577 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
3579         PR target/39942
3580         * final.c (label_to_max_skip): New function.
3581         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
3582         CODE_LABEL_NUMBER <= max_labelno.
3583         * output.h (label_to_max_skip): New prototype.
3584         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
3585         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
3586         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
3587         Handle CODE_LABELs with >= 16 byte alignment or with
3588         max_skip == (1 << align) - 1.
3589         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
3590         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
3592         PR target/39942
3593         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
3594         .p2align 3 if MAX_SKIP is smaller than 7.
3595         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3597 2009-05-15  Ian Lance Taylor  <iant@google.com>
3599         * alias.c (struct alias_set_entry_d): Rename from struct
3600         alias_set_entry.  Change all uses.
3601         * except.c (struct call_site_record_d): Rename from struct
3602         call_site_record.  Change all uses.
3603         * except.h (struct eh_region_d): Rename from struct eh_region.
3604         Change all uses.
3605         * gcse.c (struct hash_table_d): Rename from struct hash_table.
3606         Change all uses.
3607         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
3608         ivtype_map_elt.  Change all uses.
3609         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
3610         Change all uses.
3611         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
3612         * graphite.h (struct name_tree_d): Rename from struct name_tree.
3613         Change all uses.
3614         (struct sese_d): Rename from struct sese.  Change all uses.
3615         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
3616         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
3617         * optabs.h (struct optab_d): Rename from struct optab.  Change all
3618         uses.
3619         (struct convert_optab_d): Rename from struct convert_optab.
3620         Change all uses.
3621         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
3622         ipa_opt_pass.  Change all uses.
3623         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
3624         all uses.
3626         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
3627         defined as a typedef.
3628         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
3629         defined as a tag.
3631 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3633         PR 16302
3634         * fold-const.c (make_range,build_range_check,merge_ranges): Move
3635         declaration to...
3636         (merge_ranges): Returns bool. 
3637         * tree.h (make_range): .. to here.
3638         (build_range_check): Likewise.
3639         (merge_ranges): Likewise. Renamed from merge_ranges.
3640         * c-typeck.c (parser_build_binary_op): Update calls to
3641         warn_logical_operator.
3642         * c-common.c (warn_logical_operator): Add new warning.
3643         * c-common.h (warn_logical_operator): Update declaration.
3644         
3645 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3647         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
3648         
3649 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3651         * doc/install.texi: Document MPC requirements, flags etc.
3653         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
3654         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
3655         Evaluate constant arguments.
3656         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
3657         (fold_builtin_1): Likewise, also evaluate constant arguments.
3658         Remove superfluous break.
3659         (do_mpc_ckconv): New.
3660         * real.h: Include mpc.h.
3661         * toplev.c (print_version): Output MPC version info if available.
3663 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
3665         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
3667 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3669         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
3670         only once.
3672 2009-05-15  Jan Hubicka  <jh@suse.cz>
3674         * doc/invoke.texi (max-early-inliner-iterations): New flag.
3675         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
3676         (try_inline): Fix return value.
3677         (cgraph_decide_inlining_incrementally): Honor new value.
3678         (cgraph_early_inlining): Handle indirect inlining.
3679         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
3681 2009-05-15  Jan Hubicka  <jh@suse.cz>
3683         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
3684         * cgraphunit.c (cgraph_finalize_function): Set it.
3685         (cgraph_expand_function): Use it.
3687 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
3689         * real.c (encode_ieee_half): Define.
3690         (decode_ieee_half): Define.
3691         (ieee_half_format): Define.
3692         (arm_half_format): Define.
3693         * real.h (ieee_half_format): Declare.
3694         (arm_half_format): Declare.
3696 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
3698         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
3699         swapped, and reversed optabs exist before trying to use them.
3701 2009-05-15  Paul Brook  <paul@codesourcery.com>
3702             Sandra Loosemore  <sandra@codesourcery.com>
3704         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
3705         loads.  Allow PRE_DEC.
3706         (output_move_neon): Handle PRE_DEC.
3707         (arm_print_operand): Add 'A' for neon structure loads.
3708         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
3709         * config/arm/neon.md (neon_mov): Update comment.
3710         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
3711         calls.
3712         (Um): New constraint.
3714 2009-05-15  Jan Hubicka  <jh@suse.cz>
3716         Revert the following patch until testsuite fallout is fixed:
3717         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
3718         * cgraph.h (struct inline_summary): New filed self_wize,
3719         size_inlining_benefit, self_time and time_inlining_benefit.
3720         (struct cgraph_global_info): Replace insns by time ans size fields.
3721         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
3722         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
3723         (ipcp_update_callgraph): Do not touch function bodies.
3724         * ipa-inline.c: Include except.h
3725         (MAX_TIME): New constant.
3726         (overall_insns): Remove
3727         (overall_size, max_benefit): New static variables.
3728         (cgraph_estimate_time_after_inlining): New function.
3729         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
3730         (cgraph_clone_inlined_nodes): Update size.
3731         (cgraph_mark_inline_edge): Update size.
3732         (cgraph_estimate_growth): Use size info.
3733         (cgraph_check_inline_limits): Check size.
3734         (cgraph_default_inline_p): Likewise.
3735         (cgraph_edge_badness): Compute badness based on benefit and size cost.
3736         (cgraph_decide_recursive_inlining): Check size.
3737         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
3738         and times.
3739         (cgraph_decide_inlining): Likewise.
3740         (cgraph_decide_inlining_incrementally): Likewise; honor
3741         PARAM_EARLY_INLINING_INSNS.
3742         (likely_eliminated_by_inlining_p): New predicate.
3743         (estimate_function_body_sizes): New function.
3744         (compute_inline_parameters): Use it.
3745         * except.c (must_not_throw_labels): New function.
3746         * except.h (must_not_throw_labels): Declare.
3747         * tree-inline.c (init_inline_once): Kill inlining_weigths
3748         * tree-ssa-structalias.c: Avoid uninitialized warning.
3749         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
3750         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
3751         (PARAM_INLINE_CALL_COST): Remove.
3752         (PARAM_EARLY_INLINING_INSNS): New.
3754 2009-05-15  Richard Guenther  <rguenther@suse.de>
3756         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
3757         not TODO_update_ssa.
3759 2009-05-15  Richard Guenther  <rguenther@suse.de>
3761         PR tree-optimization/39999
3762         * gimple.h (gimple_expr_type): Use the expression type looking
3763         through useless conversions.
3764         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
3765         (vn_nary_op_insert_stmt): Likewise.
3766         (simplify_binary_expression): Likewise.
3768 2009-05-15  Richard Guenther  <rguenther@suse.de>
3770         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
3771         New options, enabled by default.
3772         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
3773         Document.
3774         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
3775         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
3776         * tree-ssa-structalias.c (gate_tree_pta): New function.
3777         (pass_build_alias): Use it.
3779 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
3781         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
3782         recurse on an invariant address if a conversion from a pointer
3783         type to a wider integer type is involved.
3785 2009-05-15  Jan Hubicka  <jh@suse.cz>
3787         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
3788         * cgraph.h (struct inline_summary): New filed self_wize,
3789         size_inlining_benefit, self_time and time_inlining_benefit.
3790         (struct cgraph_global_info): Replace insns by time ans size fields.
3791         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
3792         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
3793         (ipcp_update_callgraph): Do not touch function bodies.
3794         * ipa-inline.c: Include except.h
3795         (MAX_TIME): New constant.
3796         (overall_insns): Remove
3797         (overall_size, max_benefit): New static variables.
3798         (cgraph_estimate_time_after_inlining): New function.
3799         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
3800         (cgraph_clone_inlined_nodes): Update size.
3801         (cgraph_mark_inline_edge): Update size.
3802         (cgraph_estimate_growth): Use size info.
3803         (cgraph_check_inline_limits): Check size.
3804         (cgraph_default_inline_p): Likewise.
3805         (cgraph_edge_badness): Compute badness based on benefit and size cost.
3806         (cgraph_decide_recursive_inlining): Check size.
3807         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
3808         and times.
3809         (cgraph_decide_inlining): Likewise.
3810         (cgraph_decide_inlining_incrementally): Likewise; honor
3811         PARAM_EARLY_INLINING_INSNS.
3812         (likely_eliminated_by_inlining_p): New predicate.
3813         (estimate_function_body_sizes): New function.
3814         (compute_inline_parameters): Use it.
3815         * except.c (must_not_throw_labels): New function.
3816         * except.h (must_not_throw_labels): Declare.
3817         * tree-inline.c (init_inline_once): Kill inlining_weigths
3818         * tree-ssa-structalias.c: Avoid uninitialized warning.
3819         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
3820         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
3821         (PARAM_INLINE_CALL_COST): Remove.
3822         (PARAM_EARLY_INLINING_INSNS): New.
3823         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
3824         (inline-call-cost): Remove.
3825         (early-inlining-insns): New.
3827 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
3829         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
3830         for bounds.
3831         (print_int_cst_bounds_in_octal_p): Likewise.
3832         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
3833         with subtypes.
3834         * dwarf2out.c (base_type_die): Likewise.
3835         (is_subrange_type): Delete.
3836         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
3837         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
3838         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
3839         if the destination type is boolean.
3840         (build_range_check): Do not special-case subtypes.
3841         (fold_sign_changed_comparison): Likewise.
3842         (fold_unary): Likewise.
3843         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
3844         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
3845         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
3846         * tree.c (subrange_type_for_debug_p): New predicate based on the
3847         former is_subrange_type.
3848         * tree.h (subrange_type_for_debug_p): Declare.
3849         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
3850         (convert_affine_scev): Remove call to above function.
3851         (chrec_convert_aggressive): Likewise.
3852         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
3853         false for conversions involving subtypes.
3854         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
3855         (vrp_val_min): Likewise.
3856         (needs_overflow_infinity): Likewise.
3857         (extract_range_from_unary_expr): Likewise.
3859 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
3861         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
3862         * config/frv/frv.c: Likewise.
3863         * config/s390/s390.c: Likewise.
3864         * config/sparc/sparc.h: Likewise.
3865         * config/i386/i386.h: Likewise.
3866         * config/i386/i386.c: Likewise.
3867         * config/crx/crx.c: Likewise.
3868         * config/m68hc11/m68hc11.h: Likewise.
3869         * config/iq2000/iq2000.c: Likewise.
3870         * config/mn10300/mn10300.h: Likewise.
3871         * config/mn10300/mn10300.c: Likewise.
3872         * config/m68k/m68k.c: Likewise.
3873         * config/rs6000/rs6000.c: Likewise.
3874         * config/rs6000/xcoff.h: Likewise.
3875         * config/rs6000/linux64.h: Likewise.
3876         * config/rs6000/sysv4.h: Likewise.
3877         * config/score/score3.c: Likewise.
3878         * config/score/score7.c: Likewise.
3879         * config/score/score.c: Likewise.
3880         * config/arm/arm.md: Likewise.
3881         * config/mips/mips.c: Likewise.
3882         * config/mips/mips.md: Likewise.
3883         * config/bfin/bfin.h: Likewise.
3884         * config/pa/pa.c: Likewise.
3885         * config/pa/constraints.md: Likewise.
3887         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
3888         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
3889         * config/pdp11/pdp11.h: Use memory_address_p instead.
3891 2009-05-14  Ian Lance Taylor  <iant@google.com>
3893         * passes.c (finish_optimization_passes): Change i to int.
3894         * plugin.c (plugins_active_p): Change event to int.
3895         (dump_active_plugins): Likewise.
3896         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
3897         Add cast.
3898         * tree.c (tree_range_check_failed): Change c to unsigned int.
3899         (omp_clause_range_check_failed): Likewise.
3900         (build_common_builtin_nodes): Change mode to int.  Add cast.
3901         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
3902         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
3904         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
3905         ++ or -- with a variable of enum type.
3907 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3909         PR driver/40144
3910         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
3912 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3914         * store-motion.c: Do not include params.h
3915         * Makefile.in: Fix dependencies for various files.
3917 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3919         * auto-inc-dec.c: Fix pass description, remove apparent
3920         accidental duplication.
3922 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3924         PR middle-end/40147
3925         * ipa-utils.h (memory_identifier_string): Moved to ...
3926         * tree.h (memory_identifier_string): Here.  Add GTY(()).
3928 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
3930         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
3931         in the former documentation of...
3932         (GO_IF_LEGITIMATE_ADDRESS): ... this.
3933         * ira-conflicts.c (get_dup_num): Use address_operand.
3934         * targhooks.c (default_legitimate_address_p): New.
3935         * targhooks.h (default_legitimate_address_p): New.
3936         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
3937         Call hook.
3938         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
3939         * target.h (struct target): Add legitimate_address_p.
3940         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
3941         (TARGET_INITIALIZER): Include it.
3943         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3944         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
3945         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
3946         (TARGET_LEGITIMATE_ADDRESS_P): New.
3948         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3949         (REG_OK_STRICT_P): Delete.
3950         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
3951         (frv_legitimate_address_p_1): ... this.
3952         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
3953         (frv_legitimate_address_p_1): ... the renamed old
3954         frv_legitimate_address_p.
3955         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
3956         (TARGET_LEGITIMATE_ADDRESS_P): New.
3958         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3959         * config/s390/s390-protos.h (legitimate_address_p): Remove.
3960         * config/s390/s390.c (legitimate_address_p): Rename to...
3961         (s390_legitimate_address_p): ... this, make static.
3962         (legitimize_address): Adjust call.
3963         (TARGET_LEGITIMATE_ADDRESS_P): New.
3964         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
3966         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3967         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
3968         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
3969         (TARGET_LEGITIMATE_ADDRESS_P): New.
3971         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3972         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
3973         * config/spu/spu.c (spu_legitimate_address): Rename to...
3974         (spu_legitimate_address_p): ... this, make static.
3975         (TARGET_LEGITIMATE_ADDRESS_P): New.
3977         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3978         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
3979         * config/sparc/sparc.c (legitimate_address_p): Rename to...
3980         (sparc_legitimate_address_p): ... this, make static and return bool.
3981         (legitimize_address): Adjust call.
3982         (TARGET_LEGITIMATE_ADDRESS_P): New.
3984         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3985         * config/i386/i386-protos.h (legitimate_address_p): Remove.
3986         * config/i386/i386.c (legitimate_address_p): Rename to...
3987         (ix86_legitimate_address_p): ... this, make static.
3988         (constant_address_p): Move after it, adjust call.
3989         (TARGET_LEGITIMATE_ADDRESS_P): New.
3991         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3992         * config/avr/avr-protos.h (legitimate_address_p): Remove.
3993         * config/avr/avr.c (legitimate_address_p): Rename to...
3994         (avr_legitimate_address_p): ... this, make static.
3995         (legitimize_address): Adjust call.
3996         (TARGET_LEGITIMATE_ADDRESS_P): New.
3998         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3999         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
4000         * config/crx/crx.c (crx_legitimate_address_p): Make static.
4001         (TARGET_LEGITIMATE_ADDRESS_P): New.
4003         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4004         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
4005         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
4006         (TARGET_LEGITIMATE_ADDRESS_P): New.
4008         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4009         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
4010         Remove.
4011         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
4012         Make static.
4013         (TARGET_LEGITIMATE_ADDRESS_P): New.
4015         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4016         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
4017         Remove.
4018         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
4019         Rename to...
4020         (m68hc11_legitimate_address_p): ... this, make static.
4021         (go_if_legitimate_address_internal): Rename to...
4022         (m68hc11_legitimate_address_p_1): ... this.
4023         (legitimize_address): Adjust call.
4024         (TARGET_LEGITIMATE_ADDRESS_P): New.
4026         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4027         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
4028         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
4029         (TARGET_LEGITIMATE_ADDRESS_P): New.
4031         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4032         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
4033         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
4034         (mn10300_legitimate_address_p): ... this, make static.
4035         (TARGET_LEGITIMATE_ADDRESS_P): New.
4037         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4038         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
4039         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
4040         (TARGET_LEGITIMATE_ADDRESS_P): New.
4042         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4043         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
4044         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
4045         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4046         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
4047         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
4048         (rs6000_legitimate_address_p): ... this, make static.
4049         (TARGET_LEGITIMATE_ADDRESS_P): New.
4050         (REG_MODE_OK_FOR_BASE_P): Delete.
4051         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
4053         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4054         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
4055         Delete.
4056         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
4057         static, adjust types.
4058         (TARGET_LEGITIMATE_ADDRESS_P): New.
4060         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4061         * config/score/score.c (score_address_p): Rename to...
4062         (score_legitimate_address_p): ... this.
4063         (TARGET_LEGITIMATE_ADDRESS_P): New.
4064         * config/score/score3.c (score3_address_p): Rename to...
4065         (score3_legitimate_address_p): ... this.
4066         * config/score/score7.c (score7_address_p): Rename to...
4067         (score7_legitimate_address_p): ... this.
4069         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
4070         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
4071         GO_IF_LEGITIMATE_ADDRESS): Delete.
4072         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
4073         thumb2_legitimate_address_p): Delete.
4074         (arm_legitimate_address_p): Rename to...
4075         (arm_legitimate_address_outer_p): ... this.
4076         * config/arm/constraints.md ("Uq"): Adjust call.
4077         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
4078         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
4079         to...
4080         (arm_legitimate_address_outer_p): ... this.
4081         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
4082         static.
4083         (TARGET_LEGITIMATE_ADDRESS_P): New.
4085         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4086         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
4087         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
4088         (TARGET_LEGITIMATE_ADDRESS_P): New.
4090         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4091         * config/vax/vax-protos.h (legitimate_address_p): Remove.
4092         * config/vax/vax.c (legitimate_address_p): Rename to...
4093         (vax_legitimate_address_p): ... this, make static.
4094         (TARGET_LEGITIMATE_ADDRESS_P): New.
4096         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4097         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
4098         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
4099         (TARGET_LEGITIMATE_ADDRESS_P): New.
4101         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4102         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
4103         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
4104         (mmix_legitimate_address_p): ... this, make static.
4105         (TARGET_LEGITIMATE_ADDRESS_P): New.
4107         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4108         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
4109         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
4110         (TARGET_LEGITIMATE_ADDRESS_P): New.
4112 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
4114         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
4115         of MODE_COMPLEX_INT.
4117 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4119         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
4120         LCT_NORMAL in function call.
4121         * mips-tdump.c (print_file_desc): Add cast to enum type.
4122         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
4123         (mark_stabs): Add casts to enum types.
4124         (parse_stabs_common): Add casts to enum types.
4126 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
4128         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
4129         Check for invalid values of LETTER.
4131 2009-05-13  Taras Glek  <tglek@mozilla.com>
4133         * attribs.c (register_attribute): moved out attribute registration
4134         into register_attribute.
4135         * doc/plugins.texi: Documented register_attribute and
4136         PLUGIN_ATTRIBUTES.
4137         * gcc-plugin.h: Added forward decl for register_attribute.
4138         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
4139         * plugin.c (register_callback, invoke_plugin_callbacks): Added
4140         PLUGIN_ATTRIBUTES boilerplate.
4142 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
4144         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
4145         values even in sentinel and empty entries.
4146         (ms_printf_flag_specs):  Likewise.
4147         (ms_scanf_flag_specs):  Likewise.
4148         (ms_strftime_flag_specs):  Likewise.
4149         (ms_print_char_table):  Likewise.
4150         (ms_scan_char_table):  Likewise.
4151         (ms_time_char_table):  Likewise.
4153 2009-05-13  Doug Kwan  <dougkwan@google.com>
4155         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
4157 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
4159         * config/mips/mips.md (store): Add attributes for QI and HI.
4160         Update comment.
4161         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
4162         (truncdi<mode>2): ... this new pattern.
4164 2009-05-13  Brad Hards  <bradh@kde.org>
4166         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
4168 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
4169             Ben Elliston <bje@au.ibm.com>
4171         PR middle-end/40035
4172         * dse.c (check_mem_read_rtx): Guard against width == -1.
4174 2009-05-13  Michael Matz  <matz@suse.de>
4176         PR middle-end/39976
4177         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
4178         (trivially_conflicts_p): New function.
4179         (insert_backedge_copies): Use it.
4181 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
4183         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
4184         (handle_stdc_pragma): Use new enum constant names.
4185         (handle_pragma_float_const_decimal64): Ditto.
4187 2009-05-13  Ian Lance Taylor  <iant@google.com>
4189         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
4190         tree.def.
4192 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
4194         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
4195         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
4196         multilibs.
4197         * config/m68k/m68k.h (FL_UCLINUX): Define.
4199 2009-05-13  Jan Hubicka  <jh@suse.cz>
4201         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
4203 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
4205         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
4206         unless -fschedule-insns is specified.
4208 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
4210         PR target/39561
4211         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
4212         TARGET_EXPAND_CBRANCHDI4.
4213         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
4214         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
4215         (cmpeqdi): Fix comment.
4217 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
4219         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
4220         (sh_legitimate_address_p): Likewise.
4221         * config/sh/sh.c (sh_legitimate_index_p): New.
4222         (sh_legitimate_address_p): Likewise.
4223         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
4224         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
4225         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
4226         (MAYBE_BASE_REGISTER_RTX_P): New macro.
4227         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
4228         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
4229         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
4230         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
4231         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
4233 2009-05-12  Jan Hubicka  <jh@suse.cz>
4235         * tree-inline.c (estimate_operator_cost): Add operands;
4236         when division happens by constant, it is cheap.
4237         (estimate_num_insns): Loads and stores are not having cost of 0;
4238         EH magic stuff is cheap; when computing runtime cost of switch,
4239         use log2 base of amount of its cases; builtin_expect has cost of 0;
4240         compute cost for moving return value of call.
4241         (init_inline_once): Initialize time_based flags.
4242         * tree-inline.h (eni_weights_d): Add time_based flag.
4244 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
4246         * df-core.c: Update head documentation.
4248 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4250         PR bootstrap/40118
4251         * rs6000.c (rs6000_generate_compare): Use op1b instead of
4252         shadowing exisiting variable op1.
4254 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
4256         PR target/37179
4257         * config/i386/driver-i386.c (processor_signatures): New enum.
4258         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
4259         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
4260         processor signature to detect geode processor.
4262 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
4264         Revert:
4266         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
4268         * optabs.c (prepare_cmp_insn): Temporarily disable test that
4269         causes spurious differences between trunk and cond-optab branch.
4271 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
4273         * dojump.c (compare_from_rtx): Delete.
4274         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
4275         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
4276         if the comparison does not satisfy the predicate; test predicates for
4277         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
4278         further if one existing pattern fails.
4279         * expr.h (compare_from_rtx): Delete.
4280         (prepare_operand): Declare it.
4281         * optabs.c: Change "lib call" to "libcall" throughout.
4282         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
4283         HAVE_conditional_trap, emit_cmp_insn): Delete.
4284         (can_compare_p): Delete cmp_optab case.
4285         (prepare_float_lib_cmp): Return an rtx and a machine mode.
4286         Accept other parameters by value.
4287         (prepare_operand): Make non-static.
4288         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
4289         other parameters by value.  Try to widen operands here based on
4290         an optab_methods argument and looking at cbranch_optab.
4291         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
4292         loop.  Use cbranch_optab directly.
4293         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
4294         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
4295         assertion.
4296         (emit_conditional_move, emit_conditional_add): Inline what's needed
4297         of compare_from_rtx, using new prepare_cmp_insn for the rest.
4298         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
4299         with COMPARE.  Move cmov_optab and cstore_optab above
4300         with cbranch_optab, move cmp_optab down with ucmp_optab,
4301         remove tst_otpab.  Do not initialize trap_rtx.
4302         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
4303         for trap code.  Do not check HAVE_conditional_trap.  Use
4304         prepare_cmp_insn.  Accept no predicate for operand 3.
4305         * optabs.h (OTI_cmp): Mark as used only for libcalls.
4306         (OTI_ctrap, ctrap_optab): New.
4307         (tst_optab): Delete.
4308         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
4309         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
4310         with lookup of ctrap_optab.
4311         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
4312         Delete.
4313         (ctrap_optab): New.
4315         * combine.c (combine_simplify_rtx, simplify_set): Do not
4316         special case comparing against zero for cc0 machines.
4317         * simplify-rtx.c (simplify_binary_operation_1): Never remove
4318         COMPARE on cc0 machines.
4319         (simplify_relational_operation): Return a new expression when
4320         a COMPARE could be removed.
4321         * final.c (final_scan_insn): Compare cc_status values
4322         against LHS of a (compare FOO (const_int 0)) cc0 source.
4323         Also check if cc_status.value is the full compare.
4325         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
4326         (cstoreMM4): Document.
4327         (conditional_trap): Document ctrapMM4 instead.
4328         (sync_compare_and_swapMM): Refer to cbranchcc4.
4329         (Dependent Patterns): Eliminate obsolete information referring to
4330         the old jump optimization phase.
4331         (Canonicalization): Include cbranchcc4 case, omit canonicalization
4332         of compares with 0 on cc0 machines.
4333         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
4334         avoiding references to cc0.  Remove text about storing operands
4335         in cmpMM.
4336         * doc/tm.texi (Condition Codes): Include blurb on different
4337         condition code representations, separate into subsections for
4338         CC0, MODE_CC and conditional execution.
4340         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
4341         alpha_emit_setcc): Accept operands and a machine mode.
4342         * config/alpha/alpha.c (alpha_emit_conditional_branch):
4343         Get code/op0/op1 from operands, use machine mode argument
4344         instead of alpha_compare.fp_p.  Emit the branch here.
4345         (alpha_emit_setcc): Likewise, and return boolean.
4346         (alpha_emit_conditional_move): Likewise.  Assert that
4347         cmp_op_mode == cmp_mode, and simplify accordingly.
4348         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
4349         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
4350         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
4351         Delete.
4352         (stack probe test): Use cbranchdi4.
4353         * config/alpha/predicates.md (alpha_cbranch_operator): New.
4355         * config/arc/arc.c (gen_compare_reg): Do not emit cmp. 
4356         * config/arc/arc.h (movsicc, movsfcc): Use it.
4357         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
4358         (cbranchsi4, cstoresi4): New.
4359         (cmpsi, bCC and sCC expanders): Remove. 
4361         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
4362         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
4363         * config/arm/predicates.md (arm_comparison_operator): Only include
4364         floating-point operators if there is a hardware floating-point unit.
4365         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
4366         deferring to cbranch_cc and cstore_cc respectively.
4367         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
4368         cbranch_cc, cstore_cc): New.
4369         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
4370         arm_compare_op1.
4371         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
4373         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
4374         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
4375         as an argument.
4376         (adjust_insn_length): Adjust calls.
4377         (avr_reorg): Handle (compare (foo) (const_int 0)).
4378         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
4379         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
4380         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
4381         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
4382         (bCC): Remove.
4383         (cbranchqi4, cbranchhi4, cbranchsi4): New.
4384         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
4386         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
4387         (cbranchsi4, cstorebi4, cstoresi4): New.
4388         (movbisi): This insn is duplicate, split it to zero_extend.
4389         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
4390         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
4391         (bfin_optimize_loop): Use cbranch expander.
4392         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
4393         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
4394         (bfin_bimode_comparison_operator): ... this.
4395         (bfin_direct_comparison_operator): New.
4397         * config/cris/cris.c (cris_normal_notice_update_cc): Look
4398         inside (compare FOO (const_int 0)).
4399         (cris_rtx_costs): Handle ZERO_EXTRACT.
4400         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
4401         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
4402         (*tstdi_v32): Delete.
4403         (*cmpdi_non_v32): Add M alternative for operand 1.
4404         (cmpsi, cmp<mode>): Make private.
4405         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
4406         with COMPARE.
4407         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
4409         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
4410         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
4411         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
4412         (cc_reg_operand): New.
4413         (any_cond): Delete.
4414         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
4415         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
4416         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
4417         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
4418         crx_expand_scond): Delete.
4420         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
4421         (cbranchsi4): New.
4422         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
4423         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
4425         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
4426         cstoresi4, cstoresf4, cstoredf4): New.
4427         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
4428         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
4429         Receive the entire operands array.
4430         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
4431         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
4432         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
4433         Get test/op0/op1 from the operands array.
4434         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
4436         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
4437         (h8300_expand_store): New.
4438         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
4439         (const_int 0)).
4440         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
4441         (h8300_expand_store): New.
4442         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
4443         or do not try to produce (set (cc0) REG).
4444         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
4445         change a compare into a move to a scratch register.  Disable some
4446         peepholes when comparing with zero.
4447         (tstsi, tsthi, tstsi, cmpqi): Make private.
4448         (cmphi): Delete.
4449         (bCC, sCC): Delete.
4450         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
4451         cstoresi4): New.
4453         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
4454         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
4455         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
4456         (ix86_emit_i387_log1p): Use cbranchxf2.
4457         (ix86_expand_setcc): Return void.
4458         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
4459         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
4460         cmp<MODEF>, cmpcc): Remove.
4461         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
4462         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
4463         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
4464         (sCC and bCC expanders): Remove.
4465         (stack_protect_test): Use cbranchcc4.
4467         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
4468         Delete.
4469         (ia64_expand_compare): Accept three rtx by reference and return void.
4470         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
4471         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
4472         from *expr.  Update *expr with the BImode comparison to do.
4473         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
4474         cmptf, bCC, sCC, conditional_trap): Delete.
4475         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4, 
4476         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
4477         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
4478         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
4479         * config/ia64/predicates.md (ia64_cbranch_operator): New.
4481         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
4482         type of last argument.
4483         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
4484         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
4485         use machine mode argument instead of branch_type.  Remove dead
4486         code for floating-point comparisons.
4487         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
4488         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
4489         Remove.
4490         (cbranchsi4, cstoresi4): New.
4491         * config/iq2000/predicates.md (reg_or_const_operand): New.
4493         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
4494         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
4495         (b<code>_op): Rewrite to...
4496         (bcc_op): ... this, using match_operator.
4497         (s<code>_op): Rewrite to...
4498         (scc_op): ... this, using match_operator.
4499         (s<code>_24_op): Rewrite to...
4500         (scc_op_24): ... this, using match_operator.
4501         (s<code>_<mode>): Rewrite to...
4502         (cstore<mode>4): ... this, using match_operator.
4503         (s<code>_<mode>_24): Rewrite to...
4504         (cstore<mode>4_24): ... this, using match_operator.
4505         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
4506         m32c_unpend_compare, m32c_expand_scc): Delete.
4507         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
4508         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
4509         (m32c_expand_movcc): Change NE to EQ if necessary.
4510         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
4512         * config/m32r/m32r-protos.h (gen_cond_store): New.
4513         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
4514         (gen_cond_store): New, from sCC patterns.
4515         (m32r_expand_block_move): Use cbranchsi4.
4516         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
4517         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
4518         (cbranchsi4, cstoresi4): New.
4519         
4520         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
4521         Delete.
4522         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
4523         (m68hc11_notice_update_cc): Look into a compare with 0.
4524         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
4525         Delete.
4526         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
4527         cmphi, cmpqi, bCC): Delete.
4528         (cbranchsi4, cbranchhi4, cbranchqi4): New.
4529         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
4530         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
4531         sets with COMPARE.
4533         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
4534         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
4535         * config/m68k/constraints.md (H): New.
4536         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
4537         the define_insn below.
4538         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
4539         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
4540         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
4541         patterns): Wrap RHS with COMPARE.
4542         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
4543         (*cmpdi_internal): Name this pattern.
4544         (cmpdi): Change to define_insn.
4545         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
4546         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
4547         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
4548         predicate.
4549         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
4550         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
4551         (conditional_trap): Change to...
4552         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
4553         (*conditional_trap): Use the ordered_comparison_operator and
4554         const1_operand predicates.
4555         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
4556         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
4557         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
4558         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
4560         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
4561         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
4562         (mcore_gen_compare): New. 
4563         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
4564         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
4565         (mcore_gen_compare): ... this.
4566         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
4567         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
4568         (stack probe pattern): Use cbranchsi4.
4570         * config/mips/predicates.md (mips_cstore_operator): New.
4571         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
4572         * config/mips/mips.md (any_cond): Delete.
4573         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
4574         always succeed.
4575         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
4576         fixuns_truncsfdi2): Use cbranch patterns.
4577         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete. 
4578         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
4579         Adjust call to mips_expand_conditional_branch.
4580         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
4581         cstore<GPR:mode>4.
4582         * config/mips/mips-protos.h (mips_expand_conditional_branch,
4583         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
4584         * config/mips/mips.c (cmp_operands): Delete.
4585         (mips_emit_compare): Get comparison operands from *op0/*op1.
4586         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
4587         that it succeeds.  Use op0/op1 instead of cmp_operands.
4588         (mips_expand_conditional_branch, mips_expand_conditional_move,
4589         mips_expand_conditional_trap): Likewise.
4590         (mips_block_move_loop): Use cbranch patterns. 
4591         * config/mips/mips.h (cmp_operands): Delete.
4593         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
4594         (mmix_gen_compare_reg): Just return a register in the right CC mode.
4595         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
4596         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
4597         (*cmpcc_folded): Rename to...
4598         (*cmpdi_folded): this.
4599         (*cmpcc): Rename to...
4600         (*cmps): ... this.
4601         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
4602         (bCC): Remove.
4603         (cbranchdi4): New.
4604         (cbranchdf4): New.  Handle invalid comparisons here.
4605         * config/mmix/predicates.md (float_comparison_operator): New.
4607         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
4608         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
4609         * config/mn10300/mn10300.md (tst): Delete.
4610         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
4611         Name these patterns and wrap RHS in a compare.
4612         (*cmpsi): Make this pattern private.  Include tst.
4613         (*cmpsf): Make this pattern private.
4614         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
4615         (compare with zero peepholes): Likewise.
4616         (bCC): Remove.
4617         (cbranchsi4, cbranchsf4): New.
4618         (casesi): Use cbranchsi4.
4620         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
4621         hppa_branch_type): Delete.
4622         (return_addr_rtx): Use cbranchsi4.
4623         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
4624         Emit CCFPmode comparison here.
4625         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
4626         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
4627         hppa_branch_type): Delete.
4628         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
4629         (movsicc, movdicc): Remove references to hppa_compare_op0,
4630         hppa_compare_op1 and compare_from_rtx.
4631         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
4632         (casesi): Use cbranchsi4.
4634         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
4635         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
4636         * config/pdp11/pdp11.md (register_or_const0_operand): New.
4637         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
4638         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
4639         (bCC): Delete.
4640         (cbranchdf4, cbranchhi4, cbranchqi4): New.
4641         (*branch, *branch_inverted): New.
4643         * config/picochip/picochip.md (cbranchhi4): Use
4644         ordered_comparison_operator.
4645         (cmphi, bCC): Remove.
4647         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
4648         (trap_comparison_operator): Delete.
4649         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
4650         rs6000_emit_cbranch): Accept mode and operands.
4651         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
4652         rs6000_compare_fp_p): Delete.   
4653         (rs6000_generate_compare): Accept mode and comparison.  Extract code
4654         and op0/op1 from there.  Replace references to rs6000_compare_op0
4655         and rs6000_compare_op1.
4656         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
4657         extract result from passed operands.
4658         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
4659         extract loc from passed operands.
4660         (rs6000_emit_cmove): Likewise.
4661         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
4662         rs6000_compare_fp_p): Delete.
4663         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
4664         (cbranch<GPR>4, cbranch<FP>4): New.
4665         (cstore<mode>4): New.  Consolidate here all choices about when to use
4666         portable or specialized sCC sequences.
4667         (stack_protect_test): Use cbranchsi4.
4668         (conditional_trap): Replace with ctrap<GPR>4.
4669         (conditional trap insn): Replace trap_comparison_operator with
4670         ordered_comparison_operator. 
4672         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
4673         (s390_emit_prologue): Use ctrap.
4674         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
4675         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
4676         New predicates replacing...
4677         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
4678         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
4679         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
4680         (add<mode>cc): Do not use s390_compare_op0/op1.
4681         (s<code>): Change to...
4682         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
4683         (seq): Change to...
4684         (cstorecc4): ... this.  Handle EQ or NE equally.
4685         (*sne): Un-privatize for use in cstorecc4.
4686         (b<code>): Change to...
4687         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
4688         (conditional_trap): Replace with...
4689         (ctrap<GPR>4, ctrap<FP>4): ... these.
4690         (stack_protect): Use cbranchcc4.
4692         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
4693         * config/score/score-protos.h (score_gen_cmp): Delete.
4694         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
4695         (score_block_move-loop): Use cbranchsi4.
4696         * config/score/score.md (cbranchsi4): New.
4697         (cmpsi, bCC): Delete.
4698         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
4699         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
4700         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
4701         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
4702         * config/score/score3.h (score3_gen_cmp): Delete.
4703         * config/score/score7.h (score7_gen_cmp): Delete.
4705         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
4706         (sh_emit_scc_to_t): ... this.  Return void.
4707         (from_compare): Rename to...
4708         (sh_emit_compare_and_branch): ... this.
4709         (sh_emit_compare_and_set): New.
4710         (sh_expand_t_scc): Accept operands.
4711         * config/sh/predicates.md (sh_float_comparison_operator): New.
4712         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
4713         (prepare_scc_operands): Rename to...
4714         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
4715         arguments.
4716         (sh_emit_cheap_store_flag): New.
4717         (sh_emit_set_t_insn): New.
4718         (from_compare): Rename to...
4719         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
4720         handling of TARGET_SH2E floating point to avoid recursive call.
4721         Generate branch here.
4722         (sh_emit_compare_and_set): New.
4723         (sh_expand_t_scc): Get op0/op1 from arguments.
4724         (sh_emit_cheap_store_flag): New.
4725         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
4726         cases.
4727         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
4728         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
4729         (movsicc, movdicc): Do nothing when it recreated operands from
4730         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
4731         prepare_scc_operands (now sh_emit_scc_to_t).
4732         (udivdi3): Use cstoresi4.
4733         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
4734         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
4735         (cbranchint4_media, cbranchfp4_media): New.
4736         (casesi): Use cbranchdi4.
4737         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
4738         Delete.
4739         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
4740         (movnegt): Remove second operand.
4741         (cbranchsf4, cbranchdf4): New.
4742         (stack_protect): Use cbranchdi4/cbranchsi4.
4744         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
4745         (gen_compare_reg): Accept comparison, extract part of it to...
4746         (gen_compare_reg_1): ... this. 
4747         (gen_compare_operator): Delete.
4748         (gen_v9_scc): Accept separate destination, comparison code and arms.
4749         Do not use sparc_compare_op0/sparc_compare_op1.
4750         (emit_scc_insn, emit_conditional_branch_insn): New.
4751         (emit_v9_brxx): Make static.  Remove useless assertion.
4752         (sparc_emit_float_lib_cmp): Return RTL instead of calling
4753         emit_cmp_insn.
4754         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
4755         * config/sparc/sparc-protos.h (gen_compare_reg,
4756         sparc_emit_float_lib_cmp): Adjust prototype.
4757         (emit_scc_insn, emit_conditional_branch_insn): New.
4758         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
4759         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
4760         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
4761         iterators to the top.
4762         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
4763         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
4764         snedi_special_trunc): Delete.
4765         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
4766         and snedi_special_trunc.
4767         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
4768         cbranchdi4, cbranch<F:mode>4): New.
4769         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
4770         here.  Use gen_compare_reg instead of gen_compare_operator.
4771         (conditional_trap): Replace with...
4772         (ctrapsi4, ctrapdi4): ... this.
4773         (stack_protect_test): Use cbranchcc4.
4775         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
4776         argument to rtx.
4777         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove. 
4778         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
4779         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
4780         from operands[0] or operands[3] depending on is_set.
4781         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
4782         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
4783         cmpdf, bCC), sCC: Remove.
4784         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4, 
4785         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
4786         cstoredf4): New.
4787         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
4788         spu_emit_branch_or_set.
4790         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
4791         Add two arguments.
4792         * config/stormy16/stormy16.h (xstormy16_compare_op0,
4793         xstormy16_compare_op1): Delete.
4794         * config/stormy16/stormy16.c (xstormy16_compare_op0,
4795         xstormy16_compare_op1): Delete. 
4796         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
4797         Adjust calls.
4798         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
4799         (cmphi, cmpsi, bCC): Remove.
4801         * config/v850/v850.md (tstsi, cmpsi): Fold into...
4802         (*cmpsi): ... this one.
4803         (cbranchsi4, cstoresi4): New.
4804         (bCC expanders): Delete.
4805         (sCC insns): Fold into...
4806         (*setcc): ... this one.
4807         (casesi): Do not use gen_cmpsi and gen_bgtu. 
4808         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
4809         (movsicc): Simplify.
4810         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
4812         * config/vax/vax-protos.h (cond_name): New.
4813         (vax_output_conditional_branch): Remove.
4814         * config/vax/vax.c (cond_name): New.
4815         (vax_output_conditional_branch): Remove.
4816         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
4817         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
4818         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
4819         (bit<VAXint>): Wrap source with (compare).
4820         (b<code> and following unnamed pattern): Rename to *branch and
4821         *branch_reversed.  Change macroization to match_operator.
4822         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
4824         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
4825         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
4826         Change last argument to machine_mode.
4827         (xtensa_expand_scc): Add machine_mode argument.
4828         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
4829         (gen_conditional_move, xtensa_expand_conditional_branch,
4830         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
4831         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
4832         Adjust operand numbers.
4833         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
4834         Delete.
4835         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
4836         (cmpsi, cmpsf, b<code>, s<code>): Delete.
4837         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
4839 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
4841         * optabs.c (prepare_cmp_insn): Temporarily disable test that
4842         causes spurious differences between trunk and cond-optab branch.
4844 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
4846         PR target/37137
4847         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
4849 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
4851         * tree.c (iterative_hash_pointer): Delete.
4852         (iterative_hash_expr): Short-circuit handling of NULL pointer.
4853         Hash UIDs and versions of SSA names.  Don't special-case built-in
4854         function declarations.
4856 2009-05-11  Ian Lance Taylor  <iant@google.com>
4858         PR bootstrap/40103
4859         * graphite.c: Force -Wc++-compat to only be a warning before
4860         #including "cloog/cloog.h".
4862 2009-05-11  Martin Jambor  <mjambor@suse.cz>
4864         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
4865         
4866 2009-05-11  Jan Hubicka  <jh@suse.cz>
4868         * tree-ssa-loop-ivcanon.c: Include target.h
4869         (struct loop_size): new structure.
4870         (constant_after_peeling): New predicate.
4871         (tree_estimate_loop_size): New function.
4872         (estimated_unrolled_size): Rewrite for new estimates.
4873         (try_unroll_loop_completely): Use new estimates.
4874         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
4876 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4878         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
4879         libcpp interface change.
4880         (spu_macro_to_expand): Likewise.
4882 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
4884         PR tree-optimization/40026
4885         * gimplify.c (gimplify_init_constructor): Change initial conditional
4886         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
4887         optimize_compound_literals_in_ctor.
4889 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
4891         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
4892         New devices.
4893         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
4895 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
4897         * tree-vect-data-refs.c (vect_analyze_group_access): Use
4898         HOST_WIDE_INT for gap.
4900 2009-05-11  Ira Rosen  <irar@il.ibm.com>
4902         PR tree-optimization/40074
4903         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
4904         account in group size and step comparison.
4906 2009-05-11  Richard Guenther  <rguenther@suse.de>
4908         * passes.c (init_optimization_passes): Strip now incorrect comment.
4909         (execute_function_todo): Do not set PROP_alias.
4910         * tree-pass.h (PROP_alias): Remove.
4911         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
4912         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
4913         * tree-nrv.c (pass_return_slot): Likewise.
4914         * tree-object-size.c (pass_object_sizes): Likewise.
4915         * tree-ssa-dom.c (pass_dominator): Likewise.
4916         (pass_phi_only_cprop): Likewise.
4917         * tree-ssa-dse.c (pass_dse): Likewise.
4918         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
4919         (pass_cselim): Likewise.
4920         * tree-ssa-pre.c (pass_pre): Likewise.
4921         (pass_fre): Likewise.
4922         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
4923         * tree-ssa-sink.c (pass_sink_code): Likewise.
4924         * tree-stdarg.c (pass_stdarg): Likewise.
4925         * tree-tailcall.c (pass_tail_calls): Likewise.
4926         * tree-vrp.c (pass_vrp): Likewise.
4928 2009-05-10  Ian Lance Taylor  <iant@google.com>
4930         * basic-block.h (enum profile_status): Break out of struct
4931         control_flow_graph.
4932         * cgraph.h (struct inline_summary): Break out of struct
4933         cgraph_local_info.
4934         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
4935         of struct cgraph_order_sort.
4936         * combine.c (enum undo_kind): New enum, broken out of struct undo.
4937         * cse.c (struct branch_path): Break out of struct
4938         cse_basic_block_data.
4939         * except.h (enum eh_region_type): Break out of struct eh_region.
4940         * gcc.c (enum add_del): Break out of struct modify_target.
4941         * genrecog.c (enum decision_type): Break out of struct decision_test.
4942         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
4943         ggc_pch_data.
4944         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
4945         * regmove.c (enum match_use): New enum, broken out of struct match.
4946         * sched-int.h (enum post_call_group): New enum, broken out of
4947         struct deps.
4948         (struct deps_reg): Break out of struct deps.
4949         * target.h (struct asm_int_op): Break out of struct gcc_target.
4950         * tree-eh.c (struct goto_queue_node): Break out of struct
4951         leh_tf_state.
4952         * tree-inline.h (enum copy_body_cge_which): Break out of
4953         copy_body_data.
4954         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
4956         * c-decl.c (in_struct, struct_types): New static variables.
4957         (pushtag): Add loc parameter.  Change all callers.
4958         (lookup_tag): Add ploc parameter.  Change all callers.
4959         (check_compound_literal_type): New function.
4960         (parser_xref_tag): Add loc parameter.  Change all callers.  If
4961         -Wc++-compat, warn about struct/union/enum types defined within a
4962         struct or union.
4963         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
4964         and loc parameters.  Change all callers.  Change error calls to
4965         error_at, using loc.  For a redefinition, if the location of the
4966         original definition is known, report it.  Set in_struct and
4967         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
4968         (finish_struct): Add new parameters enclosing_in_struct and
4969         enclosing_struct_types.  Change all callers.  Set
4970         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
4971         in the struct.  If in a struct, add this struct to struct_types.
4972         (start_enum): Add loc parameter.  Change all callers.  Use
4973         error_at for errors, using loc.  For a redefinition, if the
4974         location of the original definition is known, report it.  If in a
4975         struct, add this enum type to struct_types.  If -Wc++-compat warn
4976         if in sizeof, typeof, or alignof.
4977         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
4978         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
4979         (c_parser_enum_specifier): Get enum location for start_enum.
4980         (c_parser_struct_or_union_specifier): Get struct location for
4981         start_struct.  Save in_struct and struct_types status between
4982         start_struct and finish_struct.
4983         (c_parser_cast_expression): Get location of cast.
4984         (c_parser_alignof_expression): Get location of type.
4985         (c_parser_postfix_expression): Likewise.
4986         (c_parser_postfix_expression_after_paren_type): Add type_loc
4987         parameter.  Change all callers.  Call check_compound_literal_type.
4988         Use type_loc for error about variable size type.
4989         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
4990         of an enum constant from an enum type defined in a struct or union.
4991         (c_cast_expr): Add loc parameter.  Change all callers.  If
4992         -Wc++-compat, warn about defining a type in a cast.
4993         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
4994         (start_enum, start_struct, finish_struct): Update declarations.
4995         (parser_xref_tag, c_cast_expr): Update declarations.
4996         (check_compound_literal_type): Declare.
4998 2009-05-11  Ben Elliston  <bje@au.ibm.com>
5000         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
5001         for recent libcpp interface change.
5002         (rs6000_macro_to_expand): Likewise.
5004 2009-05-10  Michael Matz  <matz@suse.de>
5006         PR target/40031
5007         * config/arm/arm.c (require_pic_register): Emit on entry edge,
5008         not at entry of function.
5010 2009-05-10  Richard Guenther  <rguenther@suse.de>
5012         PR tree-optimization/40081
5013         Revert
5014         * tree-sra.c (instantiate_element): Instantiate scalar replacements
5015         using the main variant of the element type.  Do not fiddle with
5016         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
5018         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
5019         structs with volatile fields.
5021 2009-05-10  Jan Hubicka  <jh@suse.cz>
5023         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
5024         (estimate_move_cost): Assert that it does not get called for
5025         VOID_TYPE_P.
5026         (estimate_num_insns): Skip VOID types in argument handling.
5027         (optimize_inline_calls): Delete unreachable blocks and verify that
5028         callgraph is valid.
5030 2009-05-10  Jan Hubicka  <jh@suse.cz>
5032         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
5033         * cgraph.c (cgraph_mark_address_taken_node): New function.
5034         (dump_cgraph_node): Dump new flag.
5035         * cgraph.h (struct cgraph_node): Add address_taken.
5036         (cgraph_mark_address_taken_node): New function.
5037         * ipa.c (cgraph_postorder): Prioritize functions with address taken
5038         since new direct calls can be born.
5040 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
5042         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
5043         tok->val.node.node.
5045 2009-05-10  Jan Hubicka  <jh@suse.cz>
5047         PR middle-end/40084
5048         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
5049         argument; rewrite.
5050         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
5051         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
5052         * tree-inline.c (copy_bb): Set frequency correctly.
5053         (fold_marked_statements): Update call to
5054         cgraph_update_edges_for_call_stmt.
5056 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
5058         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
5059         identifiers in diagnostics.
5060         * config/arm/arm.c (arm_handle_fndecl_attribute,
5061         arm_handle_isr_attribute): Likewise.
5062         * config/avr/avr.c (avr_handle_progmem_attribute,
5063         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
5064         * config/bfin/bfin.c (handle_int_attribute,
5065         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
5066         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
5067         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
5068         Likewise.
5069         * config/darwin.c (darwin_handle_kext_attribute,
5070         darwin_handle_weak_import_attribute): Likewise.
5071         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
5072         h8300_handle_eightbit_data_attribute,
5073         h8300_handle_tiny_data_attribute): Likewise.
5074         * config/i386/i386.c (ix86_handle_cconv_attribute,
5075         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
5076         * config/i386/winnt.c (ix86_handle_shared_attribute,
5077         ix86_handle_selectany_attribute): Likewise.
5078         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
5079         * config/m32c/m32c.c (function_vector_handler): Likewise.
5080         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
5081         m68hc11_handle_fntype_attribute): Likewise.
5082         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
5083         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
5084         * config/mips/mips.c (mips_insert_attributes,
5085         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
5086         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
5087         rs6000_handle_struct_attribute): Likewise.
5088         * config/sh/sh.c (sh_insert_attributes,
5089         sh_handle_resbank_handler_attribute,
5090         sh_handle_interrupt_handler_attribute,
5091         sh2a_handle_function_vector_handler_attribute,
5092         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
5093         Likewise.
5094         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
5095         * config/spu/spu.c (spu_handle_fndecl_attribute,
5096         spu_handle_vector_attribute): Likewise.
5097         * config/stormy16/stormy16.c
5098         (xstormy16_handle_interrupt_attribute): Likewise.
5099         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
5100         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
5102 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
5104         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
5105         (pp_translate_identifiers): New.
5106         (pp_identifier): Only conditionally translate identifier to locale
5107         character set.
5108         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
5109         (pp_base_tree_identifier): Only conditionally translate identifier
5110         to locale character set.
5111         * c-pretty-print.c (M_): Define.
5112         (pp_c_type_specifier, pp_c_primary_expression): Mark English
5113         fragments for conditional translation with M_.
5114         * tree-pretty-print.c (maybe_init_pretty_print): Disable
5115         identifier translation.
5117 2009-05-10  Richard Guenther  <rguenther@suse.de>
5119         PR tree-optimization/40081
5120         * tree-sra.c (instantiate_element): Instantiate scalar replacements
5121         using the main variant of the element type.  Do not fiddle with
5122         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
5124 2009-05-09  Jan Hubicka  <jh@suse.cz>
5126         PR middle-end/40080
5127         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
5128         indirect calls; verify cgraph afterwards.
5130 2009-05-09  Jan Hubicka  <jh@suse.cz>
5132         PR bootstrap/40082
5133         * ipa.c (update_inlined_to_pointer): New function.
5134         (cgraph_remove_unreachable_nodes): Use it.
5136 2009-05-09  Jan Hubicka  <jh@suse.cz>
5138         * tree-eh.c (struct leh_state): Remove prev_try.
5139         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
5140         not track prev_try.
5141         * except.c (gen_eh_region_cleanup, duplicate_eh_regions, 
5142         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
5143         remove_eh_handler_and_replace, foreach_reachable_handler,
5144         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
5145         * except.h (struct eh_region): Remove eh_region_u_cleanup.
5146         (gen_eh_region_cleanup): Update prototype.
5148 2009-05-09  Jan Hubicka  <jh@suse.cz>
5150         PR middle-end/40043
5151         * except.c (copy_eh_region): Always set prev_try.
5152         (redirect_eh_edge_to_label): Find outer try.
5153         (foreach_reachable_handler): When looking for prev try
5154         handle case where previous try is not going to be taken.
5156 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
5158         PR tree-optimization/40049
5159         * tree-vect-stmts.c (vectorizable_operation): If the machine has
5160         only vector/vector shifts, convert the type of the constant to the
5161         appropriate type to avoid building incorrect trees, which
5162         eventually have problems with garbage collection.
5164 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
5166         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
5167         -1 for complex floating-point types if honoring signed zeros.
5169 2009-05-08  Jan Hubicka  <jh@suse.cz>
5171         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
5172         argument; handle correctly when profile is absent.
5173         (build_cgraph_edges): Update.
5174         (rebuild_cgraph_edges): Update.
5175         * cgraph.c: Do not include varray.h.
5176         (cgraph_set_call_stmt_including_clones): New function.
5177         (cgraph_create_edge_including_clones): Likewise
5178         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
5179         (cgraph_update_edges_for_call_stmt): Handle clones.
5180         (cgraph_remove_node): Handle clone tree.
5181         (cgraph_remove_node_and_inline_clones): New function.
5182         (dump_cgraph_node): Dump clone tree.
5183         (cgraph_clone_node): Handle clone tree.
5184         (clone_function_name): Bring here from tree-inline.c.
5185         (cgraph_create_virtual_clone): New function.
5186         * cgraph.h (ipa_replace_map): Move here from ipa.h.
5187         (cgraph_clone_info): New function.
5188         (strut cgraph_node): Add clone_info and new clone tree pointers.
5189         (cgraph_remove_node_and_inline_clones,
5190         cgraph_set_call_stmt_including_clones,
5191         cgraph_create_edge_including_clones,
5192         cgraph_create_virtual_clone): Declare.
5193         (cgraph_function_versioning): Use VEC argument.
5194         (compute_call_stmt_bb_frequency): Update prototype.
5195         (cgraph_materialize_all_clones): New function.
5196         * ipa-cp.c (ipcp_update_cloned_node): Remove.
5197         (ipcp_create_replace_map): Update to VECtors.
5198         (ipcp_update_callgraph): Use virtual clones.
5199         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
5200         (ipcp_update_profiling): Do not update local profiling.
5201         (ipcp_insert_stage): Use VECtors and virtual clones.
5202         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
5203         (clone_of_p): New function.
5204         (cgraph_preserve_function_body_p): Use clone tree.
5205         (cgraph_optimize): Materialize clones.
5206         (cgraph_function_versioning): Update for VECtors.
5207         (save_inline_function_body): Use clone tree.
5208         (cgraph_materialize_clone): New function.
5209         (cgraph_materialize_all_clones): Likewise.
5210         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
5211         * ipa.c: Include gimple.h.
5212         (cgraph_remove_unreachable_nodes): Use clone tree.
5213         * ipa-prop.c (ipa_note_param_call): Update call to
5214         compute_call_stmt_bb_frequencycall.
5215         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
5216         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
5217         (copy_bb): Handle updating of clone tree; add new edge when new call
5218         appears.
5219         (expand_call_inline): Be strict about every call having edge.
5220         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
5221         (delete_unreachable_blocks_update_callgraph): New function.
5222         (tree_function_versioning): Use VECtors; always remove unreachable
5223         blocks and fold conditionals.
5224         * tree-inline.h: Do not include varray.h.
5225         (tree_function_versioning): Remove.
5226         * Makefile.in (GTFILES): Remove tree-inline.c
5227         * passes.c (do_per_function): Do only functions having body.
5228         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
5229         tree.
5231 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
5232             Andrew Morrow  <acm@google.com>
5234         PR c/36892
5235         * c-common.c (c_common_attribute_table): Permit deprecated
5236         attribute to take an optional argument.
5237         (handle_deprecated_attribute): If the optional argument to
5238         __attribute__((deprecated)) is not a string ignore the attribute
5239         and emit a warning.
5241         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
5242         * c-typeck.c (build_component_ref): Likewise.
5243         (build_external_ref): Likewise.
5245         * toplev.c (warn_deprecated_use): Add an attribute argument.
5246         Emit the message associated with __attribute__((deprecated)).
5248         * toplev.h (warn_deprecated_use): Updated.
5250         * doc/extend.texi: Document new optional parameter to
5251         __attribute__((deprecated))
5253 2009-05-08  Michael Eager <eager@eagercon.com>
5255         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
5256         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
5258 2009-05-08  Richard Guenther  <rguenther@suse.de>
5260         PR tree-optimization/40062
5261         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
5262         Avoid exponential behavior.
5264 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
5266         PR rtl-optimization/33928
5267         PR 26854
5268         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
5269         process_uses, build_single_def_use_links): New.
5270         (update_df): Update use_def_ref.
5271         (forward_propagate_into): Use get_def_for_use instead of use-def
5272         chains.
5273         (fwprop_init): Call build_single_def_use_links and let it initialize
5274         dataflow.
5275         (fwprop_done): Free use_def_ref.
5276         (fwprop_addr): Eliminate duplicate call to df_set_flags.
5277         * df-problems.c (df_rd_simulate_artificial_defs_at_top, 
5278         df_rd_simulate_one_insn): New.
5279         (df_rd_bb_local_compute_process_def): Update head comment.
5280         (df_chain_create_bb): Use the new RD simulation functions.
5281         * df.h (df_rd_simulate_artificial_defs_at_top, 
5282         df_rd_simulate_one_insn): New.
5283         * opts.c (decode_options): Enable fwprop at -O1.
5284         * doc/invoke.texi (-fforward-propagate): Document this.
5286 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
5288         PR c/24581
5289         * c-typeck.c (build_binary_op): Handle arithmetic between one real
5290         and one complex operand specially.
5291         * tree-complex.c (some_nonzerop): Do not identify a real value as
5292         zero if flag_signed_zeros.
5294 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
5296         PR rtl-optimization/33928
5297         * loop-invariant.c (record_use): Fix && vs. || mishap.
5299 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
5301         PR rtl-optimization/33928
5302         * loop-invariant.c (struct use): Add addr_use_p.
5303         (struct def): Add n_addr_uses.
5304         (struct invariant): Add cheap_address.
5305         (create_new_invariant): Set cheap_address.
5306         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
5307         (record_uses): Pass df_ref to record_use.
5308         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
5309         used only as such.
5311 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5313         * config/sh/sh.c: Do not include c-pragma.h.
5315 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5317         * config/spu/spu.c: Remove include of c-common.h.
5319 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
5321         PR c/39037
5322         * c-common.h (mark_valid_location_for_stdc_pragma,
5323         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
5324         clear_float_const_decimal64, float_const_decimal64_p): New.
5325         * c.opt (Wunsuffixed-float-constants): New.
5326         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
5327         unsuffixed float constant, handle new warning.
5328         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
5329         * c-decl.c (c_scope): New flag float_const_decimal64.
5330         (set_float_const_decimal64, clear_float_const_decimal64,
5331         float_const_decimal64_p): New.
5332         (push_scope): Set new flag.
5333         * c-parser.c (c_parser_translation_unit): Mark when it's valid
5334         to use STDC pragmas.
5335         (c_parser_external_declaration): Ditto.
5336         (c_parser_compound_statement_nostart): Ditto.
5337         * c-pragma.c (valid_location_for_stdc_pragma,
5338         mark_valid_location_for_stdc_pragma,
5339         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
5340         handle_pragma_float_const_decimal64): New.
5341         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
5342         * cp/semantics.c (valid_location_for_stdc_pragma_p,
5343         set_float_const_decimal64, clear_float_const_decimal64,
5344         float_const_decimal64_p): New dummy functions.
5345         * doc/extend.texi (Decimal Float): Remove statement that the
5346         pragma, and suffix for double constants, are not supported.
5347         * doc/invoke.texi (Warning Options): List new option.
5348         (-Wunsuffixed-float-constants): New.
5350 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
5352         * config/i386/i386.c: Do not include c-common.h.
5354 2009-05-07  Mark Heffernan  <meheff@google.com>
5356         * doc/invoke.texi (Debugging Options): Document change of debugging
5357         dump location.
5358         * opts.c (decode_options): Make dump_base_name relative to
5359         aux_base_name directory.
5361 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
5363         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
5364         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
5366 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
5368         * Makefile.in (install-plugin): Simplify a bit.
5370 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
5372         * Makefile.in (OBJS-common): Add regcprop.o.
5373         (regcprop.o): New.
5374         * timevar.def (TV_CPROP_REGISTERS): New.
5375         * regrename.c (regrename_optimize): Return 0.
5376         (rest_of_handle_regrename): Delete.
5377         (pass_rename_registers): Point to regrename_optimize.
5378         (struct value_data_entry, struct value_data, 
5379         kill_value_one_regno, kill_value_regno, kill_value,
5380         set_value_regno, init_value_data, kill_clobbered_value,
5381         kill_set_value, kill_autoinc_value, copy_value,
5382         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
5383         replace_oldest_value_reg, replace_oldest_value_addr,
5384         replace_oldest_value_mem, copyprop_hardreg_forward_1,
5385         debug_value_data, validate_value_data): Move...
5386         * regcprop.c: ... here.
5387         (rest_of_handle_cprop): Delete.
5388         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
5390 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
5392         PR middle-end/40057
5393         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
5394         GEN_INT for 1 << bitnum.
5395         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
5396         build_int_cst_type.
5398 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
5400         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
5401         Remove wrong description of "nand" operation.
5403 2009-05-06  Richard Guenther  <rguenther@suse.de>
5404             Adam Nemet  <anemet@caviumnetworks.com>
5406         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
5407         comment.  Add that if LHS is not a gimple register, then RHS1 has
5408         to be a single object (GIMPLE_SINGLE_RHS).
5410 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
5412         * expr.c (get_def_for_expr): Move it up in the file.
5413         (store_field): When expanding a bit-field store, look at the
5414         defining gimple stmt for the masking conversion.
5416 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
5418         PR middle-end/39986
5419         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
5420         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
5421         32-bit memcpy into long.
5423 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
5425         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
5426         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
5427         new_reg_loc_descr.
5428         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
5429         instead of appending DW_OP_deref*.
5431 2009-05-06  Michael Matz  <matz@suse.de>
5433         PR middle-end/40021
5434         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
5435         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
5437 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
5439         * Makefile.in (install-plugin): Fix srcdir handling.
5441 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
5443         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
5444         when processing for not_regs_needed bitmap.
5445         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
5446         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while 
5447         handling it for rhs. 
5449 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
5451         * config/i386/i386.md (unnamed inc/dec peephole): Use
5452         optimize_insn_for_size_p instead of optimize_size.
5453         * config/i386/predicates.md (incdec_operand): Likewise.
5454         (aligned_operand): Likewise.
5455         * config/i386/sse.md (divv8sf3): Likewise.
5456         (sqrtv8sf2): Likewise.
5458 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
5460         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
5462         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
5464 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
5466         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
5467         ssemodesuffixf2c with avxmodesuffixf2c.
5469 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
5471         PR c/40032
5472         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
5474 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
5476         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
5477         (struct tree_base): Adjust spacing for 8 bit boundaries.
5478         (struct tree_decl_common): Add decl_by_reference_flag bit.
5479         (DECL_BY_REFERENCE): Adjust.
5480         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
5481         print DECL_BY_REFERENCE bit.
5482         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
5483         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
5484         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
5485         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
5486         unconditionally.
5488         PR middle-end/39666
5489         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
5490         range of the type, but default label is missing, add it with one
5491         of the existing labels instead of adding a new label for it.
5493 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
5495         * dwarf.h: Remove.
5497 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
5499         * Makefile.in (enable_plugin, plugin_includedir): New.
5500         (install): Depend on install-plugin.
5501         (PLUGIN_HEADERS): New.
5502         (install-plugin): New.
5503         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
5505 2009-05-05  Richard Guenther  <rguenther@suse.de>
5507         PR tree-optimization/40022
5508         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
5509         the only vuse.
5510         (phivn_valid_p): Fix tuplification error, simplify.
5511         (phiprop_insert_phi): Add dumps.
5512         (propagate_with_phi): Simplify.
5514 2009-05-05  Richard Guenther  <rguenther@suse.de>
5516         PR middle-end/40023
5517         * builtins.c (gimplify_va_arg_expr): Properly build the address.
5519 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
5521         * tree.h (strip_float_extensions): Remove duplicate declaration.
5522         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
5523         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
5524         block_ultimate_origin): Rearrange the declarations line to match the
5525         comment that indicates the .c file which the functions are defined.
5526         (dwarf2out_*, set_decl_rtl): Add comment.
5527         (get_base_address): Adjust comment.
5528         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
5529         declarations line and add comment.
5530         (is_builtin_name): Add blank after function name, for clarity.
5532 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
5534         * attribs.c (decl_attributes): Use %qE for identifiers in
5535         diagnostics.
5536         * cgraphunit.c (verify_cgraph_node): Translate function names to
5537         locale character set in diagnostics.
5538         * coverage.c (get_coverage_counts): Use %qE for identifiers in
5539         diagnostics.
5540         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
5541         Document that functions are named in UTF-8.
5542         * expr.c (expand_expr_real_1): Translate function names to locale
5543         character set in diagnostics.
5544         * gimplify.c (omp_notice_variable, omp_is_private,
5545         gimplify_scan_omp_clauses): Use %qE for identifiers in
5546         diagnostics.
5547         * langhooks.c (lhd_print_error_function): Translate function names
5548         to locale character set.
5549         * langhooks.h (decl_printable_name): Document that return value is
5550         in internal character set.
5551         * stmt.c: Include pretty-print.h
5552         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
5553         diagnostics.
5554         (resolve_operand_name_1): Translate named operand name to locale
5555         character set.
5556         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
5557         diagnostics.
5558         * toplev.c (announce_function): Translate function names to locale
5559         character set.
5560         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
5561         (default_tree_printer): Use pp_identifier or translate identifiers
5562         to locale character set.  Mark "<anonymous>" for translation.
5563         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
5564         for identifiers in diagnostics.
5565         * tree.c (handle_dll_attribute): Use %qE for identifiers in
5566         diagnostics.
5567         * varasm.c (output_constructor): Use %qE for identifiers in
5568         diagnostics.
5570 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
5572         * configure.ac: use ` ` instead of $()
5573         * configure: Regenerate.
5575 2009-05-05  Ben Elliston  <bje@au.ibm.com>
5577         * config/pa/linux-atomic.c: Eliminate conditional include of
5578         errno.h on non-LP64 systems to simplify build requirements.
5580 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
5582         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
5583         diagnostics.
5584         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
5585         and pass value to identifier_to_locale.
5586         (warn_variable_length_array): Make name a tree.
5587         (grokdeclarator): Separate diagnostic texts for named and unnamed
5588         declarators.  Use %qE for named declarators.
5589         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
5590         diagnostics.
5591         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
5592         identifiers in diagnostics.
5593         * c-typeck.c (push_member_name, start_init): Pass identifiers to
5594         identifier_to_locale.  Mark "anonymous" strings for translation.
5596 2009-05-04  Michael Eager <eager@eagercon.com>
5598         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
5599         address for DImode/DFmode only if double-precision FP regs.
5601 2009-05-04  Michael Eager <eager@eagercon.com>
5603         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
5604         TARGET_SINGLE_FLOAT check.
5606 2009-05-04  Michael Eager <eager@eagercon.com>
5608         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
5610 2009-05-04  Michael Eager <eager@eagercon.com>
5612         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
5613         * config/rs6000/t-xilinx: New
5615 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
5617         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
5618         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
5619         * gcc/explow.c (memory_address): Use target hook.
5620         * gcc/targhooks.c (default_legitimize_address): New.
5621         * gcc/targhooks.h (default_legitimize_address): New.
5622         * gcc/target.h (legitimize_address): New.
5623         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
5624         (TARGET_INITIALIZER): Include it.
5625         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
5627         * config/bfin/bfin-protos.h (legitimize_address): Remove.
5628         * config/bfin/bfin.c (legitimize_address): Remove.
5629         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
5630         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
5631         Remove.
5632         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
5633         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
5635         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
5636         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
5637         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
5638         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
5639         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
5640         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
5641         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
5642         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
5643         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
5644         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
5645         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
5646         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
5647         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
5648         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
5649         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
5650         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
5651         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
5652         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
5653         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
5654         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
5655         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
5656         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
5657         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
5659         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
5660         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
5661         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
5662         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
5663         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
5664         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
5665         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
5666         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
5667         (thumb_legitimize_address): Delete.
5668         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
5669         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
5670         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
5671         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
5672         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
5673         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
5674         Delete.
5675         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
5676         Delete.
5678         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
5679         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
5680         * config/m32r/m32r.c (m32r_legitimize_address): New.
5681         * config/m68k/m68k.c (m68k_legitimize_address): New.
5682         * config/score/score.c (score_legitimize_address): Standardize.
5683         * config/score/score3.c (score3_legitimize_address): Standardize.
5684         * config/score/score3.h (score3_legitimize_address): Adjust.
5685         * config/score/score7.c (score7_legitimize_address): Standardize.
5686         * config/score/score7.h (score7_legitimize_address): Adjust.
5687         * config/sh/sh.c (sh_legitimize_address): New.
5688         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
5690         * gcc/config/s390/s390.c (legitimize_address): Rename to...
5691         (s390_legitimize_address): ... this.
5692         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
5693         (sparc_legitimize_address): ... this.
5694         * gcc/config/i386/i386.c (legitimize_address): Rename to...
5695         (ix86_legitimize_address): ... this.
5696         * gcc/config/avr/avr.c (legitimize_address): Rename to...
5697         (avr_legitimize_address): ... this.
5698         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
5699         (mn10300_legitimize_address): ... this.
5700         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
5701         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
5702         (alpha_expand_mov): Adjust call.
5704         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
5705         * config/spu/spu.c (spu_legitimize_address): Likewise.
5706         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
5707         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
5709 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
5711         * intl.c (locale_encoding, locale_utf8): New.
5712         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
5713         * intl.h (locale_encoding, locale_utf8): Declare.
5714         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
5715         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
5716         New.
5717         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
5718         argument.
5719         (pp_tree_identifier): Define to call pp_base_tree_identifier.
5720         (pp_base_tree_identifier): Declare as function.
5721         (identifier_to_locale): Declare.
5722         * Makefile.in (pretty-print.o): Update dependencies.
5723         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
5725 2009-05-04  Richard Guenther  <rguenther@suse.de>
5727         PR middle-end/40015
5728         * builtins.c (fold_builtin_memory_op): Do not decay to element
5729         type if the size matches the whole array.
5731 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
5733         * expmed.c (synth_mult): When trying out a shift, pass the result
5734         of a signed shift.
5736 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
5738         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
5739         (shiftsub1_cost): New.
5740         (init_expmed): Compute shiftsub1_cost.
5741         (synth_mult): Optimize multiplications by constants of the form
5742         -(2^^m-1) for some constant positive integer m.
5744 2009-05-03  Richard Guenther  <rguenther@suse.de>
5746         PR c/39983
5747         * c-typeck.c (array_to_pointer_conversion): Do not built
5748         ADDR_EXPRs of arrays of pointer-to-element type.
5749         * c-gimplify.c (c_gimplify_expr): Revert change fixing
5750         up wrong ADDR_EXPRs after-the-fact.
5751         * c-common.c (strict_aliasing_warning): Strip pointer
5752         conversions for obtaining the original type.
5753         * builtins.c (fold_builtin_memset): Handle array types.
5754         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
5755         and array types
5757 2009-05-03  Richard Guenther  <rguenther@suse.de>
5759         PR middle-end/23329
5760         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
5761         Do not lose casts from array types with unknown extent to array
5762         types with known extent.
5763         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
5764         alias set compatibility.
5766 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5768         * flags.h (extra_warnings): Delete.
5769         * toplev.c (process_options): Handle Wuninitialized here.
5770         * opts.c (extra_warnings): Delete.
5771         (set_Wextra): Delete.
5772         (common_handle_option): -Wextra can be handled automatically.
5773         * c-opts.c (c_common_handle_option): Delete obsolete code.
5774         (c_common_post_options): Simplify comment.
5775         * common.opt (W): Add Var.
5776         (Wextra): Add Var.
5777         (Wuninitialized): Initialize to -1.
5779 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
5780             Richard Guenther  <rguenther@suse.de>
5782         * expr.c (get_def_for_expr): New function.
5783         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
5784         SSA rather than trees.
5785         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
5786         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
5787         
5788 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
5790         * c-common.c (reswords): Add _Imaginary.
5791         * c-common.c (enum rid): Add RID_IMAGINARY.
5793 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
5795         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
5796         Patch by Richard Guenther.
5798 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
5800         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
5801         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
5802         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
5803         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
5804         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
5805         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
5806         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
5807         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
5808         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
5809         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
5810         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
5811         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
5812         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
5813         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
5814         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
5815         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
5816         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
5817         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
5819 2009-05-02  Richard Guenther  <rguenther@suse.de>
5821         PR tree-optimization/39940
5822         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
5823         doing so.
5825 2009-05-02  Richard Guenther  <rguenther@suse.de>
5827         PR middle-end/40001
5828         * tree-ssa.c (execute_update_addresses_taken): Properly check
5829         if we can mark a variable DECL_GIMPLE_REG_P.
5830         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
5831         back to the end of the function.
5832         (is_gimple_reg_type): Remove complex type special casing.
5833         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
5834         if not optimizing.
5836 2009-05-02  Ben Elliston  <bje@au.ibm.com>
5838         * doc/collect2.texi (Collect2): Document search path behaviour
5839         when configured with --with-ld.
5841 2009-05-02  Jan Hubicka  <jh@suse.cz>
5843         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
5844         parameter; update callers.
5845         (coalesce_cost_edge): EH edges are costier because they needs
5846         splitting even if not critical and even more costier when there are
5847         multiple EH predecestors.
5849 2009-05-02  Jan Hubicka  <jh@suse.cz>
5851         * except.c (remove_eh_handler_and_replace): Handle updating after
5852         removing TRY blocks.
5854 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
5856         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
5858 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
5860         * varasm.c: Do not include c-pragma.h.
5861         * attribs.c: Do not incude c-common.h.
5863 2009-05-01  Michael Matz  <matz@suse.de>
5865         * calls.c (initialize_argument_information): Handle SSA names like
5866         decls with a non MEM_P DECL_RTL.
5868 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
5870         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
5871         * ipa-utils.c: Likewise.
5872         * ipa-type-escape.c: Likewise.
5873         * cgraphunit.c Do not include c-common.h.
5874         * ipa-pure-const.c: Likewise.
5875         * tree-if-conv.c: Likewise.
5876         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
5877         * ipa-struct-reorg.c: Likewise.
5878         * tree-nomudflap.c: Likewise.
5879         * tree-ssa-structalias.c: Likewise.
5881 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
5883         * store-motion.c: Many cleanups to make this pass a first-class
5884         citizen instead of an appendix to gcse load motion.  Add TODO list
5885         to make this pass faster/cleaner/better.
5887         (struct ls_expr): Post gcse.c-split cleanups.
5888         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
5889         "stores" field to "avail_stores".
5890         (pre_ldst_mems): Rename to store_motion_mems.
5891         (pre_ldst_table): Rename to store_motion_mems_table.
5892         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
5893         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
5894         (ldst_entry): Rename to st_expr_entry, update users.
5895         (free_ldst_entry): Rename to free_st_expr_entry, update users.
5896         (free_ldst_mems): Rename to free_store_motion_mems, update users.
5897         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
5898         update caller.
5899         (first_ls_expr): Rename to first_st_expr, update users.
5900         (next_ls_expr): Rename to next_st_expr, update users.
5901         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
5902         fields properly for store motion instead of names inherited from load
5903         motion in gcse.c.
5904         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
5905         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
5906         are done with it.
5908         (ae_kill): Rename to st_kill, update users.
5909         (ae_gen): Rename to st_avloc, update users.
5910         (transp): Rename to st_transp, update users.
5911         (pre_insert_map): Rename to st_insert_map, update users.
5912         (pre_delete_map): Rename to st_delete_map, update users.
5913         (insert_store, build_store_vectors, free_store_memory,
5914         one_store_motion_pass): Update for abovementioned changes.
5916         (gcse_subst_count, gcse_create_count): Remove.
5917         (one_store_motion_pass): New statistics counters "n_stores_deleted"
5918         and "n_stores_created", local variables.
5920         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
5921         use for_each_rtx.
5923         (regvec, compute_store_table_current_insn): Remove.
5924         (reg_set_info, reg_clear_last_set): Remove.
5925         (compute_store_table): Use DF caches instead of local dataflow
5926         solvers.
5928 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
5930         * c-objc-common.c (c_tree_printer): Print identifiers with
5931         pp_identifier, not pp_string.  Mark "({anonymous})" for
5932         translation.
5933         * c-pretty-print.c (pp_c_ws_string): New.
5934         (pp_c_cv_qualifier, pp_c_type_specifier,
5935         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
5936         pp_c_storage_class_specifier, pp_c_function_specifier,
5937         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
5938         pp_c_primary_expression, pp_c_postfix_expression,
5939         pp_c_unary_expression, pp_c_shift_expression,
5940         pp_c_relational_expression, pp_c_equality_expression,
5941         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
5942         use pp_string and pp_c_ws_string in place of pp_identifier and
5943         pp_c_identifier for non-identifiers.  Mark English strings for
5944         translation.
5945         * c-pretty-print.h (pp_c_ws_string): Declare.
5947 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
5948             Roland McGrath <roland@redhat.com>
5950         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
5951         (ENABLE_LD_BUILDID): New configuration option.
5952         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
5953         (LINK_BUILDID_SPEC): New macro.
5954         (init_spec): If defined, prepend it between LINK_EH_SPEC and
5955         link_spec.
5956         * doc/install.texi: Document --enable-linker-build-id option.
5957         * configure: Rebuild.
5958         * config.in: Rebuild.
5960 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
5962         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
5963         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
5964         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
5965         MIPS_GP_SAVE_AREA_SIZE.
5966         * config/mips/mips.c (struct mips_frame_info): Update comment
5967         before arg_pointer_offset and hard_frame_pointer_offset.
5968         (mips_compute_frame_info): Update diagram before function: to
5969         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
5970         indicate the position of frame_pointer_rtx with -fstack-protector and
5971         to show args_size.  Don't allocate cprestore area for leaf functions
5972         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
5973         cprestore_size.
5974         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
5976 2009-04-30  Michael Matz  <matz@suse.de>
5978         PR tree-optimization/39955
5979         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
5981 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
5983         * ira.c (setup_cover_and_important_classes):  Use safe macro
5984         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
5985         directly.
5986         * genpreds.c (write_tm_preds_h):  Output suitable definition of
5987         REG_CLASS_FOR_CONSTRAINT.
5989 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
5991         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
5992         instead of an int.
5993         * bitmap.c (bitmap_descriptor): Likewise.
5994         * ggc-common.c (loc_descriptor): Likewise.
5995         * varray.c (varray_descriptor): Likewise.
5996         * vec.c (vec_descriptor): Likewise.
5998 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
6000         * Makefile.in (dce.o): Add $(EXCEPT_H).
6001         * dce.c: Include except.h and delete redundant vector definitions.
6002         (deletable_insn_p): Return false for non-call insns that can throw
6003         if DF is running.
6005 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
6007         * gcse.c (ae_gen): Remove.
6008         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
6009         and make non-static function to make it available in store-motion.c.
6010         Update call sites with search-and-replace.
6011         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
6012         extract_mentioned_regs, extract_mentioned_regs_helper,
6013         find_moveable_store, compute_store_table, load_kills_store, find_loads,
6014         store_killed_in_insn, store_killed_after, store_killed_before,
6015         build_store_vectors, insert_insn_start_basic_block, insert-store,
6016         remove_reachable_equiv_notes, replace_store_insn, delete_store,
6017         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
6018         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
6019         * store-motion.c: ...new file.  Also copy data structures from gcse.c
6020         and clean up to remove parts not used by store motion.
6021         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
6022         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
6024 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6026         PR target/38571
6027         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
6028         when optimizing for size.
6030 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
6032         * gcse.c (gcse_constant_p): Fix typo in last change.
6034 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
6036         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
6038 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
6040         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
6042 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
6044         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
6045         CONST_HIGH_PART result.
6047 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
6049         * config/avr/avr.c (initial_elimination_offset): Rename to
6050         avr_initial_elimination_offset.
6051         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
6052         change return type to bool.
6053         (avr_can_eliminate): New function.
6054         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
6055         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
6056         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
6057         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
6058         avr_initial_elimination_offset.
6059         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
6060         (avr_initial_elimination_offset): Define.
6062 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
6063             Steven Bosscher  <steven@gcc.gnu.org>
6065         PR rtl-optimization/39938
6066         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
6067         * cfgrtl.c: Include insn-attr.h.
6068         (rest_of_pass_free_cfg): New function.
6069         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
6070         * resource.c (init_resource_info): Remove call to df_analyze.
6072 2009-04-29  Richard Guenther  <rguenther@suse.de>
6074         PR target/39943
6075         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
6076         allow conversion to signed integers.
6078 2009-04-29  Richard Guenther  <rguenther@suse.de>
6080         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
6081         shifts of floating point vectors if the shift amount is
6082         a constant multiple of the element size.
6084 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
6085             Michael Matz  <matz@suse.de>
6087         PR middle-end/39927
6088         PR bootstrap/39929
6089         * tree-outof-ssa.c (emit_partition_copy): New function.
6090         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
6091         insert_part_to_rtx_on_edge): Perform the partition base var
6092         copy using emit_partition_copy.
6093         (insert_value_copy_on_edge): Convert constants to the right mode.
6094         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
6095         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
6097 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
6099         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
6100         scan backwards to try to find a constant to initialize it.
6102         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
6103         insn before the loop_end instruction, don't look past labels.
6105 2009-04-29  Richard Guenther  <rguenther@suse.de>
6107         PR middle-end/39937
6108         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
6109         loose type conversions.
6110         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
6111         stmts only if there are no uses of its definition.
6113 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
6115         * config/bfin/bfin.h (splitting_loops): Declare.
6116         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
6117         Reorder bit definitions to be ascending.
6118         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
6119         * config/bfin/bfin.c (splitting_loops): New variable.
6120         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
6121         (struct loop_info): Remove members INIT and LOOP_INIT.
6122         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
6123         the LSETUP sequence.  Allow LC to be loaded from any register, but
6124         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
6125         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
6126         set to 1.
6127         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
6128         of reload_completed.
6130         From Jie Zhang:
6131         * config/bfin/bfin.md (movsi_insn): Refine constraints.
6133 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
6135         * Makefile.in (PLUGIN_VERSION_H): New.
6136         (OBJS-common): Remove plugin-version.o.
6137         (plugin.o): Depend on (PLUGIN_VERSION_H).
6138         (plugin-version.o): Remove.
6139         * configure: Regenerate
6140         * configure.ac: Create plugin-version.h.
6141         * gcc-plugin.h (plugin_gcc_version): Remove.
6142         (plugin_default_version_check): Change signature.
6143         * plugin-version.c: Remove.
6144         * plugin.c: Include plugin-version.h.
6145         (str_plugin_gcc_version_name): Remove.
6146         (try_init_one_plugin): Pass gcc version to plugin_init.
6147         (plugin_default_version_check): Both gcc and plugin versions are now
6148         arguments.
6150 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
6151         
6152         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
6153         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
6154         Remove special case testing for last insn of inner loops. Don't fail
6155         if the loop ends with a jump, emit an extra nop instead.
6157         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
6158         DREGS rather than comparing directly.  Remove code that tries to
6159         account for latencies.
6161 2009-04-29  Richard Guenther  <rguenther@suse.de>
6163         PR tree-optimization/39941
6164         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
6165         eliminating an indirect call.
6167 2009-04-29  Richard Guenther  <rguenther@suse.de>
6169         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
6170         parameter.  Allow invariants as base if !require_lvalue.
6171         (verify_gimple_assign_single): Adjust.
6173 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
6175         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
6176         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
6177         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
6178         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
6179         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
6180         a VEC_SELECT.
6181         * config/bfin/bfin.c (bfin_expand_builtin,
6182         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
6184 2009-04-28  Richard Guenther  <rguenther@suse.de>
6186         * tree-vect-loop.c (get_initial_def_for_induction): Use
6187         correct types for pointer increment.
6189 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6191         * toplev.c (print_version): Update GMP version string calculation.
6193 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
6195         PR rtl-optimization/39938
6196         * resource.c (init_resource_info): Add call to df_analyze.
6198 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
6200         * config/alpha/alpha.md (usegp): Cast the result of
6201         alpha_find_lo_sum_using_gp to enum attr_usegp.
6202         * config/alpha/alpha.c (override_options): Remove end-of-structure
6203         marker element from cpu_table.  Use array size of cpu_table to handle
6204         -mcpu and -mtune options.
6205         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
6207 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
6209         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
6210         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
6211         tune_32 and tune_64.
6212         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
6213         support on PowerPC.
6214         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
6215         * config/rs6000/option-defaults.h: ... here.  New file.
6216         (OPT_64, OPT_32): Define.
6217         (MASK_64BIT): Define to 0 if not already defined.
6218         (OPT_ARCH64, OPT_ARCH32): Define.
6219         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
6220         and tune_64.
6222 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6224         * config/arm/arm.c (arm_override_options): Emit error on using
6225         fpa with AAPCS.
6227 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
6229         PR rtl-optimization/39914
6230         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
6231         registers for allocnos created from user-defined variables only
6232         when not optimizing.
6234 2009-04-28  Richard Guenther  <rguenther@suse.de>
6236         PR middle-end/39937
6237         * fold-const.c (fold_binary): Use distribute_real_division only
6238         on float types.
6240 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
6242         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
6243         add hpux-stdint.h to tm_file.
6244         (hppa[12]*-*-hpux11*): Ditto.
6245         (ia64*-*-hpux*): Ditto.
6246         * config/hpux-stdint.h: New.
6247         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
6248         __STDC_EXT__ for all compiles.
6249         * config/pa/pa-hpux.h: Ditto.
6250         * config/pa/pa-hpux10.h: Ditto.
6251         * config/pa/pa-hpux11.h: Ditto.
6253 2009-04-28  Catherine Moore  <clm@codesourcery.com>
6255         * debug.h (set_name): Add comment.
6257 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
6259         PR target/39929
6260         * config/darwin.c (machopic_gen_offset): Check
6261         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
6262         * config/arm/arm.c (require_pic_register): Likewise.
6264 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
6266         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
6267         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
6268         m32c_promote_prototypes): Delete.
6270 2009-04-28  Michael Matz  <matz@suse.de>
6272         PR middle-end/39922
6273         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
6274         constants.
6276 2009-04-28  Richard Guenther  <rguenther@suse.de>
6278         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
6280 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6282         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
6283         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
6284         * config/arm/arm-tune.md: Regenerate.
6286 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
6288         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
6289         block if there are complex incoming edges.
6290         (sel_merge_blocks): Remove useless assert.
6291         (sel_redirect_edge_and_branch): Check that edge was redirected.
6292         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
6293         (sel_find_rgns): Delete declaration.
6294         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
6295         the region when it is not a preheader.
6297 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
6299         PR c/39323
6300         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
6302 2009-04-28  Richard Guenther  <rguenther@suse.de>
6304         * tree.h (SSA_NAME_VALUE): Remove.
6305         (struct tree_ssa_name): Remove value_handle member.
6306         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
6307         array for jump threading.
6308         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
6309         SSA_NAME_VALUEs.
6310         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
6311         * tree-flow.h (threadedge_initialize_values): Declare.
6312         (threadedge_finalize_values): Likewise.
6313         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
6314         (SSA_NAME_VALUE): Define.
6315         (threadedge_initialize_values): New function.
6316         (threadedge_finalize_values): Likewise.
6317         * tree-ssa-dom.c (ssa_name_values): New global variable.
6318         (SSA_NAME_VALUE): Define.
6319         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
6321 2009-04-28  Ira Rosen  <irar@il.ibm.com>
6323         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6324         Use REPORT_VECTORIZED_LOCATIONS instead 
6325         REPORT_VECTORIZED_LOOPS.
6326         * tree-vectorizer.c (vect_verbosity_level): Make static.
6327         (vect_loop_location): Rename to vect_location.
6328         (vect_set_verbosity_level): Update comment.
6329         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
6330         and vect_location.
6331         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
6332         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
6333         instead REPORT_UNVECTORIZED_LOOPS.
6334         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
6335         and vect_loop_def to vect_external_def and vect_internal_def.
6336         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
6337         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and 
6338         REPORT_UNVECTORIZED_LOCATIONS.
6339         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
6340         and vect_used_in_loop and to vect_unused_in_scope and 
6341         vect_used_in_scope.
6342         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
6343         (vect_verbosity_level): Remove declaration.
6344         (vect_analyze_operations): Likewise.
6345         (vect_analyze_stmt): Declare.
6346         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
6347         REPORT_UNVECTORIZED_LOCATIONS.
6348         (vect_get_loop_niters): Fix indentation.
6349         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
6350         (vect_analyze_loop_operations): New function.
6351         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
6352         vect_analyze_operations.
6353         (vect_is_simple_reduction): Use new names.
6354         (vectorizable_live_operation, vect_transform_loop): Likewise.
6355         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
6356         to specify whether the data references can be a part of interleaving
6357         chain.
6358         (vect_analyze_data_ref_dependence): Use new names.
6359         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
6360         (vect_create_addr_base_for_vector_ref): Remove redundant code.
6361         * tree-vect-patterns.c (widened_name_p): Use new names.
6362         (vect_recog_dot_prod_pattern): Likewise.
6363         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
6364         (process_use, vect_mark_stmts_to_be_vectorized, 
6365         vect_model_simple_cost, vect_model_store_cost,
6366         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
6367         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
6368         vectorizable_operation, vectorizable_type_demotion,
6369         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
6370         vectorizable_condition): Likewise.
6371         (vect_analyze_operations): Split into vect_analyze_loop_operations
6372         and ...
6373         (vect_analyze_stmt): ... new function.
6374         (new_stmt_vec_info): Use new names.
6375         (vect_is_simple_use): Use new names and fix comment.
6376         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
6377         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
6379 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
6381         PR target/39911
6382         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
6383         and integer modes for x87 operands.  Do not ICE for unsupported size,
6384         generate error instead.  Generate error for unsupported operand types.
6385         ['z']: Do not handle HImode memory operands specially.  Warning
6386         for floating-point operands.  Fallthru to 'Z' for unsupported operand
6387         types.  Do not ICE for unsupported size, generate error instead.
6388         (output_387_binary_op): Use %Z to output operands.
6389         (output_fp_compare): Ditto.
6390         (output_387_reg_move): Ditto.
6392 2009-04-28  Ben Elliston  <bje@au.ibm.com>
6394         PR c++/35652
6395         Revert:
6397         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6399         * builtins.c (c_strlen): Do not warn here.
6400         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
6401         * c-common.c (pointer_int_sum): Take an explicit location.
6402         Warn about offsets out of bounds.
6403         * c-common.h (pointer_int_sum): Adjust declaration.
6405 2009-04-27  Ian Lance Taylor  <iant@google.com>
6407         * collect2.c (is_ctor_dtor): Change type of ret field in struct
6408         names to symkind.
6409         * dce.c (run_fast_df_dce): Change type of old_flags to int.
6410         * df-core.c (df_set_flags): Change return type to int.  Change
6411         type of old_flags to int.
6412         (df_clear_flags): Likewise.
6413         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
6414         (df_get_conditional_uses): Likewise.
6415         * df.h (df_set_flags, df_clear_flags): Update declarations.
6416         * dwarf2out.c (struct indirect_string_node): Change type of form
6417         field to enum dwarf_form.
6418         (AT_string_form): Change return type to enum dwarf_form.
6419         * fixed-value.c (fixed_compare): Add cast to enum type.
6420         * fwprop.c (update_df): Change 0 to VOIDmode.
6421         * gensupport.c: Change 0 to UNKNOWN.
6422         * gimple.h (gimple_cond_code): Add cast to enum type.
6423         * haifa-sched.c (reemit_notes): Add cast to enum type.
6424         * hooks.c (hook_int_void_no_regs): Remove function.
6425         * hooks.h (hook_int_void_no_regs): Remove declaration.
6426         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
6427         * predict.c (combine_predictions_for_insn): Add casts to enum type.
6428         * real.c (real_arithmetic): Add cast to enum type.
6429         (real_compare): Likewise.
6430         * target.h (struct gcc_target): Change return type of
6431         branch_target_register_class to enum reg_class.
6432         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
6433         default_branch_target_register_class.
6434         * targhooks.c (default_branch_target_register_class): New function.
6435         * targhooks.h (default_branch_target_register_class): Declare.
6436         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
6437         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
6438         cast to int.
6439         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
6440         ERROR_MARK.
6441         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
6442         vect_uninitialized_def.  Change 0 to ERROR_MARK.
6443         * tree-vect-stmts.c (supportable_widening_operation): Don't
6444         initialize icode1 and icode2.
6445         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
6446         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
6447         and to STD_C89.
6448         (cmn_err_flag_specs): Change 0 to STD_C89.
6449         (cmn_err_char_table): Likewise.
6450         * config/arm/arm.c (get_arm_condition_code): Change type of code
6451         to enum arm_cond_code.
6452         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
6453         (IWMMXT_BUILTIN2): Likewise.
6454         (neon_builtin_type_bits): Don't define typedef.
6455         (neon_builtin_datum): Change type of bits field to int.
6456         (arm_expand_neon_args): Add cast to enum type.
6457         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
6458         TLS_MODEL_NONE.
6459         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
6460         casts to enum type.
6461         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
6462         MIPS_FP_COND_f.
6463         * config/mips/mips.md (jal_macro): Return enum constant.
6464         (single_insn): Likewise.
6465         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
6466         CODE_FOR_nothing.
6467         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6468         casts to enum type.
6469         * config/s390/s390.c (s390_tune_flags): Change type to int.
6470         (s390_arch_flags): Likewise.
6471         (s390_handle_arch_option): Change flags field of struct pta to int.
6472         * config/s390/s390.h (s390_tune_flags): Update declaration.
6473         (s390_arch_flags): Likewise.
6474         * config/sh/sh.c (prepare_move_operands): Compare
6475         tls_symbolic_operand result with enum constant.
6476         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
6477         (sh_expand_prologue): Add cast to enum type.
6478         (sh_expand_epilogue): Likewise.
6479         (tls_symbolic_operand): Change return type to enum tls_model.
6480         (fpscr_set_from_mem): Add cast to enum type.
6481         (legitimize_pic_address): Compare tls_symbolic_operand result with
6482         enum constant.
6483         (sh_target_reg_class): Change return type to enum reg_class.
6484         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
6485         PROCESSOR_xxx.
6486         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
6487         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
6488         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
6489         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
6490         (delayed_branch, tls_call_delay): Likewise.
6491         (eligible_for_sibcall_delay): Likewise.
6492         (eligible_for_return_delay): Likewise. 
6493         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
6494         (spu_expand_builtin_1): Likewise.
6496         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
6497         for all types of conversions.
6498         (output_init_element): Issue -Wc++-compat warning if needed when
6499         initializing a bitfield with enum type.
6500         * c-parser.c (c_parser_expression): Set original_type to
6501         original_type of right hand operand of comman operator.
6503 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6505         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
6506         grammar nits.
6507         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
6508         * doc/cpp.texi (Standard Predefined Macros)
6509         (Implementation-defined behavior): Likewise.
6510         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
6511         * doc/gimple.texi (GIMPLE Exception Handling)
6512         (@code{GIMPLE_ASSIGN}): Likewise.
6513         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
6514         * doc/invoke.texi (Warning Options, Optimize Options)
6515         (AVR Options, Darwin Options): Likewise.
6516         (Optimize Options): Reformulate -fwhole-program description.
6517         * doc/loop.texi (Lambda): Likewise.
6518         * doc/md.texi (Output Template, Define Constraints)
6519         (Standard Names, Insn Splitting): Likewise.
6520         * doc/options.texi (Option properties): Likewise.
6521         * doc/passes.texi (Tree-SSA passes): Likewise.
6522         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
6523         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
6524         (File Names and DBX): Likewise.
6525         * doc/trouble.texi (Incompatibilities): Likewise.
6527 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
6529         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
6530         instruction is correct.
6532 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
6534         Allow non-constant arguments to conversion intrinsics.
6535         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
6536         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
6537         * spu.c (print_operand): Handle 'v' and 'w'.
6538         (exp2_immediate_p, spu_gen_exp2): Define.
6539         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
6540         spu_convtf_1): Update parameter descriptions.
6541         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
6542         * constraints.md ('v', 'w'): New.
6543         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
6544         Remove.
6545         (i2f, I2F): New define_mode_attr.
6546         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
6547         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
6548         fixuns_truncv4sfv4si2):  Update to use mode attribute.
6549         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
6550         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
6551         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
6552         patterns for combine.
6554 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
6556         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
6557         (cprop, hoist, pre, store_motion): New debug counters.
6558         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
6559         is not an RTL pass anymore.
6560         (pass_profiling): Remove extern decl for pass removed in 2005.
6561         (pass_gcse, pass_jump_bypass): Remove.
6562         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
6563         to 0 for clean state.
6564         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
6565         * cse.c (gate_handle_cse_after_global_opts,
6566         rest_of_handle_cse_after_global_opts): New functions.
6567         (pass_cse_after_global_opts): New pass, does local CSE.
6568         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
6569         (TV_CPROP): New timevar.
6570         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
6571         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
6572         (gcse_main, recompute_all_luids): Remove.
6573         (compute_hash_table_work): Call max_reg_num instead of reading
6574         max_gcse_regno.
6575         (cprop_jump): Don't set run_jump_opt_after_gcse.
6576         (constprop_register): Always allow to alter jumps.
6577         (cprop_insn): Likewise.
6578         (do_local_cprop): Likewise.
6579         (local_cprop_pass): Likewise.  Return non-zero if something changed.
6580         (cprop): Remove function, fold interesting bits into one_cprop_pass.
6581         (find_implicit_sets): Add note about missed optimization opportunity.
6582         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
6583         pass_rtl_cprop execute function.
6584         Don't bother tracking the pass number, each pass gets its own dumpfile
6585         now anyway.
6586         Always allow to alter jumpsand bypass jumps.
6587         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
6588         will just find no suitable set.
6589         (pre_edge_insert): Fix dumping, this function is for PRE only.
6590         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
6591         pass_rtl_pre execute function.
6592         (hoist_code): Return non-zero if something changed.  Keep track of
6593         substitutions and insertions for statistics gathering similar to PRE.
6594         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
6595         called from the pass_rtl_hoist execute function.  Show pass statistics.
6596         (compute_store_table): Use max_reg_num directly instead of using the
6597         formerly global max_gcse_regno.
6598         (build_store_vectors): Likewise.
6599         (replace_store_insn): Fix dumping.
6600         (store_motion): Rename to ...
6601         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
6602         pass, called from the pass_rtl_store_motion execute function.  Keep
6603         track of substitutions and insertions for statistics gathering similar
6604         to PRE.
6605         (bypass_jumps): Remove, fold interesting bits into ...
6606         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
6607         from the pass_rtl_cprop execute function.
6608         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
6609         pass_jump_bypass): Remove.
6610         (gate_handle_gcse, rest_of_handle_gcse): Remove.
6611         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
6612         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
6613         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
6614         (gate_rtl_store_motion, execute_rtl_store_motion,
6615         pass_rtl_store_motion): New.
6616         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
6617         make it clear that -fcse-skip-blocks is a no-op for backward compat.
6618         * passes.c (init_optimization_passes): Remove pass_gcse and
6619         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
6620         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
6621         instead of pass_jump_bypass.
6623 2009-04-27  Richard Guenther  <rguenther@suse.de>
6625         PR middle-end/39928
6626         * gimplify.c (gimplify_expr): If we are required to create
6627         a temporary make sure it ends up as register.
6629 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
6631         PR target/39903
6632         * config/i386/i386.c (construct_container): Don't call
6633         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
6634         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
6636 2009-04-27  Michael Matz  <matz@suse.de>
6638         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
6639         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
6640         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
6641         (dump_replaceable_exprs): Take a bitmap.
6642         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
6643         array.
6644         (expand_gimple_basic_block): Likewise.
6645         * tree-ssa-ter.c (struct temp_expr_table_d): Make
6646         replaceable_expressions member a bitmap.
6647         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
6648         (mark_replaceable): Likewise.
6649         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
6650         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
6652 2009-04-27  Richard Guenther  <rguenther@suse.de>
6654         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
6655         (verify_stmts): Dispatch to gimple/type verification code.
6656         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
6657         issue with call argument types.
6659 2009-04-27  Michael Matz  <matz@suse.de>
6661         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
6662         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
6663         to above.
6665 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
6666             Eric Botcazou  <ebotcazou@adacore.com>
6668         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
6669         a label's basic block.
6670         (mark_target_live_regs): Tidy and rework obsolete comments.
6671         Change back DF problem to LIVE.  If a label starts a basic block,
6672         assume that all registers that used to be live then still are.
6673         (init_resource_info): If a label starts a basic block, set its
6674         BLOCK_FOR_INSN accordingly.
6675         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
6677 2009-04-27  Richard Guenther  <rguenther@suse.de>
6679         * tree-flow-inline.h (function_ann): Remove.
6680         (get_function_ann): Likewise.
6681         * tree-dfa.c (create_function_ann): Remove.
6682         * tree-flow.h (struct static_var_ann_d): Remove.
6683         (struct function_ann_d): Likewise.
6684         (union tree_ann_d): Remove fdecl member.
6685         (function_ann_t): Remove.
6686         (function_ann, get_function_ann, create_function_ann): Remove
6687         declarations.
6689 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
6691         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
6693 2009-04-27  Jan Hubicka  <jh@suse.cz>
6695         * ipa-pure-const.c (struct funct_state_d): New fields
6696         state_previously_known, looping_previously_known; remove
6697         state_set_in_source.
6698         (analyze_function): Use new fields.
6699         (propagate): Avoid assumption that state_set_in_source imply
6700         nonlooping.
6702         * tree-ssa-loop-niter.c (finite_loop_p): New function.
6703         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
6704         * cfgloop.h (finite_loop_p): Declare.
6706 2009-04-26  Michael Matz  <matz@suse.de>
6708         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
6710 2009-04-26  Michael Matz  <matz@suse.de>
6712         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
6713         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
6714         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
6715         pass_mark_used_blocks): Remove.
6716         * tree-optimize.c (pass_free_datastructures,
6717         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
6718         * passes.c (init_optimization_passes): Don't call
6719         pass_mark_used_blocks, remove dead code.
6721 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
6723         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
6724         * tree-ssa-live.h (register_ssa_partition): Likewise.
6726 2009-04-26  Michael Matz  <matz@suse.de>
6728         Expand from SSA.
6729         * builtins.c (fold_builtin_next_arg): Handle SSA names.
6730         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
6731         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
6732         SSA names. 
6733         (compare_pairs): Swap cost comparison.
6734         (coalesce_ssa_name): Don't use change_partition_var.
6735         * tree-nrv.c (struct nrv_data): Add modified member.
6736         (finalize_nrv_r): Set it.
6737         (tree_nrv): Use it to update statements.
6738         (pass_nrv): Require PROP_ssa.
6739         * tree-mudflap.c (mf_decl_cache_locals,
6740         mf_build_check_statement_for): Use make_rename_temp.
6741         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
6742         * alias.c (find_base_decl): Handle SSA names.
6743         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
6744         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
6745         * rtl.h (set_reg_attrs_for_parm): Declare.
6746         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
6747         to "optimized", remove unused locals at finish.
6748         (execute_free_datastructures): Make global, call
6749         delete_tree_cfg_annotations.
6750         (execute_free_cfg_annotations): Don't call
6751         delete_tree_cfg_annotations.
6753         * ssaexpand.h: New file.
6754         * expr.c (toplevel): Include ssaexpand.h.
6755         (expand_assignment): Handle SSA names the same as register variables.
6756         (expand_expr_real_1): Expand SSA names.
6757         * cfgexpand.c (toplevel): Include ssaexpand.h.
6758         (SA): New global variable.
6759         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
6760         (SSAVAR): New macro.
6761         (set_rtl): New helper function.
6762         (add_stack_var): Deal with SSA names, use set_rtl.
6763         (expand_one_stack_var_at): Likewise.
6764         (expand_one_stack_var): Deal with SSA names.
6765         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
6766         before unique numbers.
6767         (expand_stack_vars): Use set_rtl.
6768         (expand_one_var): Accept SSA names, add asserts for them, feed them
6769         to above subroutines.
6770         (expand_used_vars): Expand all partitions (without default defs),
6771         then only the local decls (ignoring those expanded already).
6772         (expand_gimple_cond): Remove edges when jumpif() expands an
6773         unconditional jump.
6774         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
6775         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
6776         SSA name.
6777         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
6778         members of SA; deal with PARM_DECL partitions here; expand
6779         all PHI nodes, free tree datastructures and SA.  Commit instructions
6780         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
6781         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
6782         info and statements at start, collect garbage at finish.
6783         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
6784         (VAR_ANN_PARTITION) Remove.
6785         (change_partition_var): Don't declare.
6786         (partition_to_var): Always return SSA names.
6787         (var_to_partition): Only accept SSA names.
6788         (register_ssa_partition): Only check argument.
6789         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
6790         member.
6791         (delete_var_map): Don't free it.
6792         (var_union): Only accept SSA names, simplify.
6793         (partition_view_init): Mark only useful SSA names as used.
6794         (partition_view_fini): Only deal with SSA names.
6795         (change_partition_var): Remove.
6796         (dump_var_map): Use ssa_name instead of partition_to_var member.
6797         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
6798         basic blocks.
6799         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
6800         (struct _elim_graph): New member const_dests; nodes member vector of
6801         ints.
6802         (set_location_for_edge): New static helper.
6803         (create_temp): Remove.
6804         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
6805         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
6806         (new_elim_graph): Allocate const_dests member.
6807         (clean_elim_graph): Truncate const_dests member.
6808         (delete_elim_graph): Free const_dests member.
6809         (elim_graph_size): Adapt to new type of nodes member.
6810         (elim_graph_add_node): Likewise.
6811         (eliminate_name): Likewise.
6812         (eliminate_build): Don't take basic block argument, deal only with
6813         partition numbers, not variables.
6814         (get_temp_reg): New static helper.
6815         (elim_create): Use it, deal with RTL temporaries instead of trees.
6816         (eliminate_phi): Adjust all calls to new signature.
6817         (assign_vars, replace_use_variable, replace_def_variable): Remove.
6818         (rewrite_trees): Only do checking.
6819         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
6820         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
6821         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
6822         contains_tree_r, MAX_STMTS_IN_LATCH,
6823         process_single_block_loop_latch, analyze_edges_for_bb,
6824         perform_edge_inserts): Remove.
6825         (expand_phi_nodes): New global function.
6826         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
6827         functions, initialize new parameter, remember partitions having a
6828         default def.
6829         (finish_out_of_ssa): New global function.
6830         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
6831         don't reset in_ssa_p here, don't disable TER when mudflap.
6832         (pass_del_ssa): Remove.
6833         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
6834         partition members.
6835         (execute_free_datastructures): Declare.
6836         * Makefile.in (SSAEXPAND_H): New variable.
6837         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
6838         * basic-block.h (commit_one_edge_insertion): Declare.
6839         * passes.c (init_optimization_passes): Move pass_nrv and
6840         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
6841         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
6842         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
6843         (redirect_branch_edge): Deal with super block when expanding, split
6844         out jump patching itself into ...
6845         (patch_jump_insn): ... here, new static helper.
6847 2009-04-26  Michael Matz  <matz@suse.de>
6849         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
6850         beyond num_ssa_names.
6851         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
6852         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
6854 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
6856         PR inline-asm/39543
6857         * fwprop.c (forward_propagate_asm): New function.
6858         (forward_propagate_and_simplify): Propagate also into __asm, if it
6859         doesn't increase the number of referenced registers.
6861         PR c/39889
6862         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
6864 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
6866         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
6867         note_nonlocal_vla_type for nonlocal VLAs.
6868         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
6869         contains_remapped_vars, remap_vla_decls): New functions.
6870         (convert_nonlocal_reference_stmt): If not optimizing, call
6871         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
6872         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
6873         if it wasn't found in var_map.
6874         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
6875         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
6876         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
6877         declare_vars.
6878         * gimplify.c (nonlocal_vlas): New variable.
6879         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
6880         referenced VLAs.
6881         (gimplify_body): Create and destroy nonlocal_vlas.
6883         * dwarf2out.c (loc_descr_plus_const): New function.
6884         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
6885         mem_loc_descriptor, loc_descriptor_from_tree_1,
6886         descr_info_loc, gen_variable_die): Use it.
6888         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
6889         !TREE_STATIC VAR_DECLs.
6890         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
6891         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
6892         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
6893         DECL_BY_REFERENCE is valid.
6894         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
6895         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
6896         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
6897         Copy DECL_BY_REFERENCE.
6898         (struct nesting_copy_body_data): New type.
6899         (nesting_copy_decl): New function.
6900         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
6901         if they have variable length.
6903 2009-04-26  Michael Matz  <matz@suse.de>
6905         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
6906         mark new temporaries for renaming.
6908 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
6910         PR c/39581
6911         * c-decl.c (global_bindings_p): Return negative value.
6912         (c_variable_size): New.  Based on variable_size from
6913         stor-layout.c.
6914         (grokdeclarator): Call c_variable_size not variable_size.
6916 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
6918         * config/i386/i386.c (print_operand) ['z']: Fix typo.
6920 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
6922         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
6923         Redefine it to just use mingw/include.
6924         (ASM_SPEC): Rules for -m32 and -m64.
6925         (LINK_SPEC): Use Likewise.
6926         (SPEC_32): New define.
6927         (SPEC_64): Likewise.
6928         (SUB_LINK_SPEC): Likewise.
6929         (MULTILIB_DEFAULTS): New define.
6930         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
6931         Add multilib options.
6932         (MULTILIB_DIRNAMES): Likewise.
6933         (MULTILIB_OSDIRNAMES): Likewise.
6934         (LIBGCC): Likewise.
6935         (INSTALL_LIBGCC): Likewise.
6937 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
6939         PR c/39556
6940         * c-tree.h (enum c_inline_static_type): New.
6941         (record_inline_static): Declare.
6942         * c-decl.c (struct c_inline_static, c_inline_statics,
6943         record_inline_static, check_inline_statics): New.
6944         (pop_file_scope): Call check_inline_statics.
6945         (start_decl): Call record_inline_static instead of pedwarning
6946         directly for static in inline function.
6947         * c-typeck.c (build_external_ref): Call record_inline_static
6948         instead of pedwarning directly for static referenced in inline
6949         function.
6951 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
6953         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
6954         not new but only being rescanned.
6955         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
6956         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
6957         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
6958         record_set_info, compute_set, grealloc): Remove.
6959         (recompute_all_luids): New function.
6960         (gcse_main): Don't compute sets, and don't do related memory
6961         allocations/free-ing.  If something changed before the end of the
6962         pass, update LUIDs using recompute_all_luids.
6963         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
6964         (free_gcse_mem): Don't free it either.
6965         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
6966         Use the df insn LUIDs.
6967         (load_killed_in_block): Likewise.
6968         (compute_hash_table_work): Don't compute reg_set_in_block.
6969         (compute_transp): Use DF_REG_DEF_CHAINs.
6970         (local_cprop_pass): Don't use compute_sets and related functions.
6971         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
6972         Use get_max_uid() instead of max_cuid.
6973         (insert_insn_end_basic_block, pre_insert_copy_insn,
6974         update_ld_motion_stores): Don't try to
6975         keep reg_set tables up to date.
6976         (pre_insert_copies): Use df insn LUIDs.
6977         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
6978         (reg_set_info): Don't use extra bitmap argument.
6979         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
6980         information to compute regs_set_in_block.
6981         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
6982         (bypass_jumps): Don't use compute_sets and friends.
6984 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6986         PR testsuite/39710
6987         * opts.c (undocumented_msg): Do not leave blank even with
6988         ENABLE_CHECKING.
6990 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
6992         * c-decl.c (build_enumerator): Allow values folding to integer
6993         constants but not integer constant expressions with a pedwarn if
6994         pedantic.
6996 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
6998         PR c/39582
6999         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
7000         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
7001         type is an integer constant.
7003 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
7005         PR target/39897
7006         * config/i386/i386.c (print_operand) ['z']: Revert handling of
7007         HImode operands.
7009 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
7011         PR c/39564
7012         * c-decl.c (grokdeclarator): Diagnose declarations of functions
7013         with variably modified return type and no storage class
7014         specifiers, except for the case of nested functions.  Distinguish
7015         extern declarations of functions with variably modified return
7016         types from those of objects with variably modified types.
7018 2009-04-25  Jan Hubicka  <jh@suse.cz>
7020         * tree.c (list_equal_p): New function.
7021         * tree.h (list_equal_p): Declare.
7022         * coretypes.h (edge_def, edge, const_edge, basic_block_def
7023         basic_block_def, basic_block, const_basic_block): New.
7024         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
7025         (redirect_eh_edge): New function.
7026         (make_eh_edge_update_phi): EH edges are not abnormal.
7027         * except.c: Include tree-flow.h.
7028         (list_match): New function.
7029         (eh_region_replaceable_by_p): New function.
7030         (replace_region): New function.
7031         (hash_type_list): New function.
7032         (hash_eh_region): New function.
7033         (eh_regions_equal_p): New function.
7034         (merge_peers): New function.
7035         (remove_unreachable_regions): Verify EH tree when checking;
7036         merge peers.
7037         (copy_eh_region_1): New function.
7038         (copy_eh_region): New function.
7039         (push_reachable_handler): New function.
7040         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
7041         regions without label but with live RESX.
7042         * except.h (redirect_eh_edge_to_label): New.
7043         * tree-flow.h (redirect_eh_edge): New.
7044         * coretypes.h (edge_def, edge, const_edge, basic_block_def
7045         basic_block_def, basic_block, const_basic_block): Remove.
7046         * Makefile.in (except.o): Add dependency on tree-flow.h
7047         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
7048         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
7049         Remove.
7051 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
7053         PR bootstrap/39645
7054         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
7055         on the destination of memcpy.
7057 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
7059         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
7060         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
7061         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
7063 2009-04-25  Jan Hubicka  <jh@suse.cz>
7065         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
7066         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
7067         to be reached by different label than left.
7068         (update_eh_edges): Update comment; remove edge_to_remove if possible
7069         and return true if suceeded.
7070         (cleanup_empty_eh): Accept sharing map; handle shared regions.
7071         (cleanup_eh): Compute sharing map.
7072         * except.c (remove_eh_handler_and_replace): Add argument if we should
7073         update regions.
7074         (remove_unreachable_regions): Update for label sharing.
7075         (label_to_region_map): Likewise.
7076         (get_next_region_sharing_label): New function.
7077         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
7078         prev_try pointers.
7079         (remove_eh_handler): Update.
7080         (remove_eh_region_and_replace_by_outer_of): New function.
7081         * except.h (struct eh_region): Add next_region_sharing_label.
7082         (remove_eh_region_and_replace_by_outer_of,
7083         get_next_region_sharing_label): Declare.
7084         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
7086 2009-04-25  Jan Hubicka  <jh@suse.cz>
7088         * tree-cfg.c (split_critical_edges): Split also edges where we can't
7089         insert code even if they are not critical.
7091 2009-04-25  Jan Hubicka  <jh@suse.cz>
7093         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
7094         (gimple_can_remove_branch_p): EH edges won't remove branch by
7095         redirection.
7096         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
7097         updating of non-abnormal EH edges.
7098         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
7099         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
7100         (split_critical_edges): Split also edges where emitting code on them
7101         will lead to splitting later.
7103 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
7104             H.J. Lu  <hongjiu.lu@intel.com>
7106         PR target/39590
7107         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
7108         the configured assembler supports fildq and fistpq mnemonics.
7109         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
7110         * configure: Regenerated.
7111         * config.in: Ditto.
7113         * config/i386/i386.c (print_operand): Handle 'Z'.
7114         ['z']: Remove handling of special fild/fist suffixes.
7115         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
7116         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
7117         suffix of fild insn.
7118         (*floatsi<mode>2_vector_mixed): Ditto.
7119         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
7120         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
7121         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
7122         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
7123         * config/i386/gas.h (GAS_MNEMONICS): Remove.
7125 2009-04-25  Ben Elliston  <bje@au.ibm.com>
7127         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
7128         the source of a set operation.
7130 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
7132         * target.h (struct gcc_target): Add case_values_threshold field.
7133         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
7134         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
7135         * targhooks.c (default_case_values_threshold): New function.
7136         * targhooks.h (default_case_values_threshold): Declare function.
7137         * stmt.c (expand_case): Use case_values_threshold target hook.
7138         * expr.h (case_values_threshold): Remove declartation.
7139         * expr.c (case_values_threshold): Remove function.
7140         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
7142         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
7143         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
7144         (avr_case_values_threshold): Declare as static.
7145         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
7147         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
7148         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
7149         (mn10300_case_values_threshold): New function.
7151 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
7153         * ira.c (setup_cover_and_important_classes): Add enum cast.
7155 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7157         * genpreds.c (write_enum_constraint_num): Output definition of
7158         CONSTRAINT_NUM_DEFINED_P macro.
7159         * ira.c (setup_cover_and_important_classes): Use
7160         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
7161         
7162 2009-04-24  DJ Delorie  <dj@redhat.com>
7164         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
7165         __SH2A_SINGLE_ONLY__ also.
7167 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
7169         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
7170         (movdf_internal): Ditto.
7171         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
7172         SFmode and DFmode constants.
7173         (ia64_print_operand): Add 'G' format for printing
7174         floating point constants.
7176 2009-04-24  Richard Guenther  <rguenther@suse.de>
7178         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
7179         from unsigned additions.
7181 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
7183         * c-typeck.c (set_init_index): Allow array designators that are
7184         not integer constant expressions with a pedwarn if pedantic.
7186 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
7188         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
7189         zero if no overlap in nonzero bits between the operands.
7191 2009-04-24  Ian Lance Taylor  <iant@google.com>
7193         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
7194         (record_dead_and_set_regs): Likewise.
7195         * df.h (struct df_mw_hardreg): Change flags field to int.
7196         (struct df_base_ref): Likewise.
7197         (struct df): Change changeable_flags field to int.
7198         * df-scan.c (df_defs_record): Change clobber_flags to int.
7199         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
7200         constants rather than #define macros.
7201         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
7202         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
7203         (enum dwarf_calling_convention): Likewise.
7204         (enum dwarf_line_number_x_ops): Likewise.
7205         (enum dwarf_call_frame_info): Likewise.
7206         (enum dwarf_source_language): Likewise.
7207         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
7208         (add_calling_convention_attribute): Likewise.
7209         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
7210         (combine_comparisons): Change compcode to int.  Add cast to enum type.
7211         * genrecog.c (maybe_both_true_2): Change c to int.
7212         (write_switch): Likewise.  Add cast to enum type.
7213         * gimplify.c (gimplify_omp_for): Handle return values from
7214         gimplify_expr using MIN rather than bitwise or.
7215         (gimplify_expr): Add cast to enum type.
7216         * ipa-prop.c (update_jump_functions_after_inlining): Change
7217         IPA_BOTTOM to IPA_JF_UNKNOWN.
7218         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
7219         Add casts to enum type.
7220         (setup_cover_and_important_classes): Change cl to int.  Add casts
7221         to enum type.
7222         (setup_class_translate): Change cl and mode to int.
7223         (ira_init_once): Change mode to int.
7224         (free_register_move_costs): Likewise.
7225         (setup_prohibited_mode_move_regs): Add casts to enum type.
7226         * langhooks.c (add_builtin_function_common): Rework assertion that
7227         value fits bitfield.
7228         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
7229         * omega.c (omega_do_elimination): Avoid math on enum types.
7230         * optabs.c (expand_vec_shift_expr): Remove casts to int.
7231         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
7232         int local to handle integral_argment value.
7233         * regmove.c (try_auto_increment): Change PUT_MODE to
7234         PUT_REG_NOTE_KIND.
7235         * reload.c (push_secondary_reload): Add casts to enum type.
7236         (secondary_reload_class, find_valid_class): Likewise.
7237         * reload1.c (emit_input_reload_insns): Likewise.
7238         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
7239         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
7240         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
7241         constant.
7242         * tree.c (build_common_builtin_nodes): Add casts to enum type.
7243         * tree-complex.c (complex_lattice_t): Typedef to int rather than
7244         enum type.
7245         (expand_complex_libcall): Add casts to enum type.
7246         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
7247         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
7248         with ERROR_MARK, not NUM_TREE_CODES.
7249         (vect_create_epilog_for_reduction): Likewise.
7250         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
7251         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
7252         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
7253         enum machine_mode.
7254         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
7255         vect_unused_in_loop.  Change 0 to loop_vect.
7256         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
7257         * var-tracking.c (get_init_value): Change return type to enum
7258         var_init_status.
7259         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
7260         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
7261         arm_fp_model.
7262         (arm_override_options): Add casts to enum type.
7263         (arm_emit_tls_decoration): Likewise.
7264         * config/i386/i386.c (ix86_function_specific_restore): Add casts
7265         to enum type.
7266         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
7267         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
7268         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
7269         enum type.
7270         * config/s390/s390.c (code_for_builtin_64): Change to array of
7271         enum insn_code.
7272         (code_for_builtin_31): Likewise.
7273         (s390_expand_builtin): Change code_for_builtin to enum insn_code
7274         const *.
7275         * config/sparc/sparc.c (sparc_override_options): Change value
7276         field in struct code_model to enum cmodel.  In initializer change
7277         0 to NULL and add cast to enum type.
7279         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
7280         Change all callers.  Issue a -Wc++-compat warning using
7281         lhs_origtype if necessary.
7282         (convert_for_assignment): Issue -Wc++-compat warnings about
7283         invalid conversions to enum type on assignment.
7284         * c-common.h (build_modify_expr): Update declaration.
7286 2009-04-24  Nick Clifton  <nickc@redhat.com>
7288         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
7289         (function_arg_advance): Likewise.
7290         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
7291         5th alternative.
7293 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
7295         * config/s390/constraints.md ('I', 'J'): Fix condition.
7297 2009-04-24  Diego Novillo  <dnovillo@google.com>
7299         * gengtype-parse.c (parse_error): Add newline after message.
7301 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
7303         * config/i386/sse.md (avxmodesuffixs): Removed.
7304         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
7305         (*avx_pinsr<ssevecsize>): This.
7307 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
7309         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
7310         follow chains of regs with a single definition, and allow expressions
7311         that are function_invariant_p.
7312         (simple_rhs_p): Allow expressions that are function_invariant_p.
7314 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
7316         PR middle-end/39867
7317         * fold-const.c (fold_cond_expr_with_comparison): When folding
7318         > and >= to MAX, make sure the MAX uses the same type as the
7319         comparison's operands.
7321 2009-04-24  Nick Clifton  <nickc@redhat.com>
7323         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
7324         addressing for DImode accesses.
7325         (frv_print_operand_address): Handle PLUS case.
7326         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
7328 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
7330         PR rtl-optimization/39794
7331         * alias.c (canon_true_dependence): Add x_addr argument.
7332         * rtl.h (canon_true_dependence): Adjust prototype.
7333         * cse.c (check_dependence): Adjust canon_true_dependence callers.
7334         * cselib.c (cselib_invalidate_mem): Likewise.
7335         * gcse.c (compute_transp): Likewise.
7336         * dse.c (scan_reads_nospill): Likewise.
7337         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
7338         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
7339         canon_base_addr of the group, plus optional offset.
7340         (struct group_info): Rename canon_base_mem to
7341         canon_base_addr.
7342         (get_group_info): Set canon_base_addr to canon_rtx of base, not
7343         canon_rtx of base_mem.
7345 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
7347         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
7348         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
7350 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7352         * config/spu/spu-builtins.h: Delete file.
7354         * config/spu/spu.h (enum spu_builtin_type): Move here from
7355         spu-builtins.h.
7356         (struct spu_builtin_description): Likewise.  Add GTY marker.
7357         Do not use enum spu_function_code or enum insn_code.
7358         (spu_builtins): Add extern declaration.
7360         * config/spu/spu.c: Do not include "spu-builtins.h".
7361         (enum spu_function_code, enum spu_builtin_type_index,
7362         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
7363         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
7364         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
7365         unsigned_V2DI_type_node): Move here from spu-builtins.h.
7366         (spu_builtin_types): Make static.  Add GTY marker.
7367         (spu_builtins): Add extern declaration with GTY marker.
7368         Include "gt-spu.h".
7370         * config/spu/spu-c.c: Do not include "spu-builtins.h".
7371         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
7372         Check programmatically whether all parameters are scalar.
7374         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
7376 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
7378         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
7379         assignment from the constructor either if the target is volatile.
7381 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
7383         * config/arm/arm.md (insv): Do not share operands[0].
7385 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
7387         * config/vxlib-tls.c (active_tls_threads): Delete.
7388         (delete_hook_installed): New.
7389         (tls_delete_hook): Don't delete the delete hook.
7390         (tls_destructor): Delete it here.
7391         (__gthread_set_specific): Adjust installing the delete hook.
7392         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
7393         __gthread_leave_tsd_dtor_context.
7395 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
7397         * c-format.c (gcc_tdiag_char_table): Add support for %E.
7399 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
7401         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
7402         enum type.
7403         (alpha_rtx_costs): Ditto.
7404         (emit_unlikely_jump): Use add_reg_note.
7405         (emit_frame_store_1): Ditto.
7406         (alpha_expand_prologue): Ditto.
7407         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
7408         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
7410 2009-04-23  Nick Clifton  <nickc@redhat.com>
7412         * config/v850/v850.md (epilogue): Remove suppressed code.
7413         (return): Rename to return_simple and remove test of frame size.
7414         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
7415         to gen_return_simple.
7417 2009-04-22  Jing Yu  <jingyu@google.com>
7419         PR testsuite/39781
7420         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
7422 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7424         PR C/31499
7425         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
7426         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
7427         value is a VECTOR_CST, the element type is the element type of the
7428         vector.
7430 2009-04-22  DJ Delorie  <dj@redhat.com>
7432         * config/m32c/m32c.h: Update GTY annotations to new syntax.
7434 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
7436         * alias.c (find_base_term): Move around LO_SUM case, so that
7437         CONST falls through into PLUS/MINUS handling.
7439         PR c/39855
7440         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
7441         into 0, use omit_one_operand.
7443 2009-04-23  Ben Elliston  <bje@au.ibm.com>
7445         * config/rs6000/linux-unwind.h (get_regs): Remove type
7446         puns. Change the type of `pc' to an array of unsigned ints and
7447         update all users.  Constify frame24.
7449 2009-04-22  DJ Delorie  <dj@redhat.com>
7451         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
7452         declarations before code.
7453         (current_function_special_page_vector): Likewise.
7454         (m32c_expand_insv): Silence a warning.
7456 2009-04-21  Taras Glek  <tglek@mozilla.com>
7458         * alias.c: Update GTY annotations to new syntax.
7459         * basic-block.h: Likewise.
7460         * bitmap.h: Likewise.
7461         * c-common.h: Likewise.
7462         * c-decl.c: Likewise.
7463         * c-parser.c: Likewise.
7464         * c-pragma.c: Likewise.
7465         * c-tree.h: Likewise.
7466         * cfgloop.h: Likewise.
7467         * cgraph.h: Likewise.
7468         * config/alpha/alpha.c: Likewise.
7469         * config/arm/arm.h: Likewise.
7470         * config/avr/avr.h: Likewise.
7471         * config/bfin/bfin.c: Likewise.
7472         * config/cris/cris.c: Likewise.
7473         * config/darwin.c: Likewise.
7474         * config/frv/frv.c: Likewise.
7475         * config/i386/i386.c: Likewise.
7476         * config/i386/i386.h: Likewise.
7477         * config/i386/winnt.c: Likewise.
7478         * config/ia64/ia64.h: Likewise.
7479         * config/iq2000/iq2000.c: Likewise.
7480         * config/mips/mips.c: Likewise.
7481         * config/mmix/mmix.h: Likewise.
7482         * config/pa/pa.c: Likewise.
7483         * config/pa/pa.h: Likewise.
7484         * config/rs6000/rs6000.c: Likewise.
7485         * config/s390/s390.c: Likewise.
7486         * config/sparc/sparc.c: Likewise.
7487         * config/xtensa/xtensa.c: Likewise.
7488         * cselib.h: Likewise.
7489         * dbxout.c: Likewise.
7490         * dwarf2out.c: Likewise.
7491         * except.c: Likewise.
7492         * except.h: Likewise.
7493         * fixed-value.h: Likewise.
7494         * function.c: Likewise.
7495         * function.h: Likewise.
7496         * gimple.h: Likewise.
7497         * integrate.c: Likewise.
7498         * optabs.c: Likewise.
7499         * output.h: Likewise.
7500         * real.h: Likewise.
7501         * rtl.h: Likewise.
7502         * stringpool.c: Likewise.
7503         * tree-data-ref.c: Likewise.
7504         * tree-flow.h: Likewise.
7505         * tree-scalar-evolution.c: Likewise.
7506         * tree-ssa-address.c: Likewise.
7507         * tree-ssa-alias.h: Likewise.
7508         * tree-ssa-operands.h: Likewise.
7509         * tree.c: Likewise.
7510         * tree.h: Likewise.
7511         * varasm.c: Likewise.
7512         * varray.h: Likewise.
7513         * vec.h: Likewise.
7514         * coretypes.h: Do not define GTY macro if it is already defined.
7515         * doc/gty.texi: Update GTY documentation to new syntax.
7516         * gengtype-lex.l: Enforce attribute-like syntax for GTY
7517         annotations on structs.
7518         * gengtype-parse.c: Likewise.
7520 2009-04-22  Mark Heffernan  <meheff@google.com>
7522         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
7524 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
7526         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
7527         where appropriate.
7529 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
7531         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
7532         the same as a PLUS without a shift.  Increase the cost of a
7533         CONST_INT in MULT.
7535 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7537         * Makefile.in: Update dependencies.
7538         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
7539         * errors.h: Remove bogus comment about compatibility.
7540         (warning): Update declaration.
7541         * genautomata.c: Update all calls to warning.
7542         * gimple.c: Do not include errors.h. Include toplev.h.
7543         * tree-ssa-structalias.c: Do not include errors.h.
7544         * omega.c: Likewise.
7545         * tree-ssa-reassoc.c: Likewise.
7546         * config/spu/spu-c.c: Likewise.
7547         * config/spu/t-spu-elf: Update dependencies.
7549 2009-04-22  Richard Guenther  <rguenther@suse.de>
7551         PR tree-optimization/39824
7552         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
7553         make sure the types are compatible.
7555 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7557         PR c++/14875
7558         * c-common.c (c_parse_error): Take a token_flags parameter.
7559         Use token_type for the token type instead.
7560         Pass token_flags to cpp_type2name.
7561         * c-common.h (c_parse_error): Update declaration.
7562         * c-parser.c (c_parser_error): Pass 0 as token flags.
7564 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
7566         PR rtl-optimization/39580
7567         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. 
7568         
7569 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7571         * function.c (expand_function_end): Do not emit a jump to the "naked"
7572         return label for fall-through returns.
7573         * except.c (sjlj_emit_function_exit): Always place the call to the
7574         unregister function at the location installed by expand_function_end.
7576 2009-04-22  Richard Guenther  <rguenther@suse.de>
7578         PR tree-optimization/39845
7579         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
7580         (gen_inbound_check): Likewise.
7582 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
7584         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
7585         padding for PPC.
7586         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
7587         * config/vxlib.c (__gthread_once): Add race guard for PPC.
7589 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
7591         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
7592         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
7593         shift counts to avoid out-of-bounds array accesses.
7595 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
7597         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
7598         (Pmode): Move above.
7600 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
7602         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
7603         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
7604         GET_CODE macro.  Use IN_RANGE macro where appropriate.
7605         * config/alpha/alpha.h: Ditto.
7606         * config/alpha/alpha.md: Ditto.
7607         * config/alpha/constraints.md: Ditto.
7608         * config/alpha/predicates.md: Ditto.
7609         
7610 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
7612         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
7613         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7614         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7615         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7616         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7617         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7618         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7619         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7620         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7621         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7622         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7623         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7624         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7625         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7626         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7627         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7628         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7629         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7630         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7631         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7632         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7633         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7634         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7635         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7636         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7637         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7638         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
7640 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7642         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
7643         references from comments.
7644         * cfgbuild.c: (count_basic_blocks): Delete.
7645         (find_basic_blocks_1): Delete.
7646         (find_basic_blocks): Delete.
7647         * except.c (finish_eh_generation): Make static.  Move comment from
7648         except.h here.  Remove find_basic_blocks references from comments.
7649         * except.h (finish_eh_generation): Delete.
7650         * basic-block.h (find_basic_blocks): Delete.
7651         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
7653 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
7655         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
7656         (sdbout_parms):  Likewise.
7658 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
7660         * config/sh/sh.c (prepare_cbranch_operands): Use
7661         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
7662         (expand_cbranchdi4): Likewise.
7663         (from_compare): Add cast to enum type.
7664         (expand_cbranchsi4): Use add_reg_note.
7665         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
7666         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
7667         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
7668         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
7669         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
7670         instead of CODE_FOR_nothing.
7671         (cbranchdi4): Likewise.  Fix the order of arguments for
7672         gen_rtx_fmt_ee.
7673         (push_fpscr): Use add_reg_note.
7674         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
7675         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
7676         
7677 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
7679         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
7680         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
7681         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
7682         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
7683         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
7684         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
7685         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
7686         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
7687         config/alpha/x-vms, config/arc/t-arc,
7688         config/arm/README-interworking, config/arm/arm-c.c,
7689         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
7690         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
7691         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
7692         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
7693         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
7694         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
7695         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
7696         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
7697         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
7698         config/cris/t-elfmulti, config/crx/t-crx,
7699         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
7700         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
7701         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
7702         config/h8300/t-h8300, config/i386/athlon.md,
7703         config/i386/darwin-libgcc.10.4.ver,
7704         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
7705         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
7706         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
7707         config/i386/t-linux64, config/i386/t-nwld,
7708         config/i386/t-rtems-i386, config/i386/t-sol2-10,
7709         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
7710         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
7711         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
7712         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
7713         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
7714         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
7715         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
7716         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
7717         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
7718         config/m68k/t-uclinux, config/mcore/t-mcore,
7719         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
7720         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
7721         config/mips/crtn.asm, config/mips/irix-crti.asm,
7722         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
7723         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
7724         config/mips/mips-fixed.md, config/mips/sb1.md,
7725         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
7726         config/mips/t-iris6, config/mips/t-isa3264,
7727         config/mips/t-libgcc-mips16, config/mips/t-linux64,
7728         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
7729         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
7730         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
7731         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
7732         config/mn10300/t-linux, config/mn10300/t-mn10300,
7733         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
7734         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
7735         config/picochip/libgccExtras/clzsi2.asm,
7736         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
7737         config/rs6000/darwin-libgcc.10.4.ver,
7738         config/rs6000/darwin-libgcc.10.5.ver,
7739         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
7740         config/rs6000/t-aix43, config/rs6000/t-aix52,
7741         config/rs6000/t-darwin, config/rs6000/t-fprules,
7742         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
7743         config/rs6000/t-lynx, config/rs6000/t-netbsd,
7744         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
7745         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
7746         config/rs6000/t-rtems, config/rs6000/t-spe,
7747         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
7748         config/score/t-score-elf, config/sh/divcost-analysis,
7749         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
7750         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
7751         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
7752         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
7753         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
7754         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
7755         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
7756         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
7757         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
7758         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
7759         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
7760         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
7761         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
7762         limitx.h, version.c, xcoff.h: Add copyright and license notices.
7763         * config/h8300/genmova.sh: Include copyright and license notices
7764         in generated output.
7765         * config/h8300/mova.md: Regenerate.
7766         * doc/install.texi2html: Include word "Copyright" in copyright
7767         notice and use name "Free Software Foundation, Inc.".
7768         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
7769         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
7770         ChangeLog-2007, ChangeLog-2008: Correct dates.
7772 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
7774         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
7775         NE_EXPR operations as well.
7776         * c-parser.c (c_parser_condition): Do not set location information on
7777         the condition.
7778         (c_parser_conditional_expression): Likewise.
7779         (c_parser_binary_expression): Set location information on operators.
7780         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
7781         TRUTH_NOT_EXPR has been folded.
7782         * fold-const.c (fold_truth_not_expr): Copy location information from
7783         the incoming expression to the outgoing one.
7784         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
7785         recursive calls on the LHS of the operator but pass that of the
7786         operator to recursive calls on the RHS of the operator.  Set it
7787         on the COND_EXPR.
7788         (shortcut_cond_expr): Set the locus of the operator on the second
7789         COND_EXPR and that of the expression on the first in degenerate cases.
7790         Pass the locus of the expression to calls to shortcut_cond_r.
7791         Set the locus of the 'then' block on the associated jump, if any.
7792         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
7793         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
7794         expression to call to gimplify_boolean_expr.
7796 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
7798         * config.gcc: Add additional configuration for
7799         i686-w64-mingw* and x86_64-w64-mingw* triplet.
7800         * config/i386/mingw-w64.h: New mingw-w64 specific header.
7801         (CPP_SPEC): Redefine for allowing -municode option.
7802         (STARTFILE_SPEC): Likewise.
7803         * config/i386/t-mingw-w64: New.
7804         * config/i386/mingw-w64.opt: New.
7805         (municode): Add new target option.
7806         * doc/invoke.texi (municode): Add documentation for new option.
7808 2009-04-21  Ian Lance Taylor  <iant@google.com>
7810         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7811         Correct test for number of arguments.
7812         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
7814 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
7816         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
7817         argument of emit_library_call.
7819 2009-04-21  Richard Guenther  <rguenther@suse.de>
7821         PR middle-end/39829
7822         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
7823         inside VIEW_CONVERT_EXPRs.
7825 2009-04-21  Martin Jambor  <mjambor@suse.cz>
7827         * tree-switch-conversion.c (build_constructors): Split a long line.
7828         (constructor_contains_same_values_p): New function.
7829         (build_one_array): Create assigns of constants if possible, do not
7830         call mark_sym_for_renaming, call update_stmt.
7831         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
7832         make_rename_temp.  Do not call mark_symbols_for_renaming, call
7833         update_stmt.
7834         (gen_def_assigns): Do not call mark_symbols_for_renaming or
7835         find_new_referenced_vars, call update_stmt.
7836         (gen_inbound_check): Use create_tmp_var and create ssa names manually
7837         instead of calling make_rename_temp.  Do not call
7838         find_new_referenced_vars or mark_symbols_for_renaming, call
7839         update_stmt.
7841 2009-04-21  Richard Guenther  <rguenther@suse.de>
7843         PR tree-optimization/39827
7844         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
7845         (tree_ssa_phiprop): Pass the correct array size.
7847 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
7849         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
7851 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7853         PR 16202
7854         * c-typeck.c (lvalue_p): Move declaration ...
7855         * c-common.h (lvalue_p): ... to here.
7856         * c-common.c (candidate_equal_p): New.
7857         (add_tlist): Use it.
7858         (merge_tlist): Use it.
7859         (warn_for_collisions_1): Likewise.
7860         (warning_candidate_p): Accept more candidates.
7861         (verify_tree): A warning candidate can be an expression. Use
7862         candidate_equal_p.
7864 2009-04-21  Ben Elliston  <bje@au.ibm.com>
7866         PR target/5267
7867         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
7868         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
7869         options.  Remove -mcall-solaris documentation.
7871 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7873         PR c++/13358
7874         * doc/invoke.texi (-Wlong-long): Update description.
7875         * c-lex (interpret_integer): Only warn if there was no previous
7876         overflow and -Wlong-long is enabled.
7877         * c-decl.c (declspecs_add_type): Drop redundant flags.
7878         * c.opt (Wlong-long): Init to -1.
7879         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
7880         and front-end warn_long_long. Wlong-long only depends on other
7881         flags if it is uninitialized.
7882         * c-parser.c (disable_extension_diagnostics): warn_long_long is
7883         the same for CPP and FE.
7884         (restore_extension_diagnostics): Likewise.
7886 2009-04-20  Ian Lance Taylor  <iant@google.com>
7888         Fix enum conversions which are invalid in C++:
7889         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
7890         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
7891         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
7892         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
7893         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
7894         (dbxout_parms): Likewise.
7895         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
7896         (df_clear_flags): Likewise.
7897         * df-problems.c (df_rd_bb_local_compute_process_def): Change
7898         top_flag parameter to int.
7899         (df_chain_create_bb_process_use): Likewise.
7900         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
7901         Remove cast.
7902         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
7903         (df_ref_create_structure, df_def_record_1): Likewise.
7904         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
7905         (df_notes_rescan): Change 0 to VOIDmode in function call.
7906         (df_get_call_refs, df_insn_refs_collect): Likewise.
7907         (df_bb_regs_collect): Likewise.
7908         (df_entry_block_defs_collect): Likewise.
7909         (df_exit_block_uses_collect): Likewise.
7910         * df.h: Update declarations.
7911         * double-int.c (double_int_divmod): Add cast to enum type.
7912         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
7913         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
7914         (based_loc_descr): Likewise.
7915         (loc_descriptor_from_tree_1): Change first_op and second_op to
7916         enum dwarf_location_atom.  Add cast to enum type.
7917         * expmed.c (init_expmed): Change 0 to SET in function call.
7918         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
7919         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
7920         (do_store_flag): Likewise.
7921         * fixed-value.h (struct fixed_value): Change mode to enum
7922         machine_mode.
7923         * function.c (assign_parms): Change 0 to VOIDmode in function call.
7924         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
7925         function call.
7926         (insert_insn_decl, insert_decl, insert_state): Likewise.
7927         (automata_list_finish): Likewise.
7928         * genrecog.c (process_define_predicate): Add cast to enum type.
7929         * gensupport.c (init_predicate_table): Add cast to enum type.
7930         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
7931         function call.
7932         (gimple_build_call_1, gimple_build_label): Likewise.
7933         (gimple_build_goto, gimple_build_asm_1): Likewise.
7934         (gimple_build_switch_1, gimple_build_cdt): Likewise.
7935         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
7936         (enum fallback): Rename from enum fallback_t.
7937         (fallback_t): Typedef as int.
7938         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
7939         GSI_SAME_STMT in function call.
7940         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
7941         enum type.
7942         (setup_reg_class_relations): Likewise.
7943         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
7944         (setup_prohibited_class_mode_regs): Add cast to enum type.
7945         (setup_prohibited_mode_move_regs): Likewise.
7946         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
7947         (record_address_regs): Change i to enum reg_class.
7948         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
7949         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
7950         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
7951         (GET_MODE_2XWIDER_MODE): Likewise.
7952         (GET_CLASS_NARROWEST_MODE): Likewise.
7953         * omp-low.c (expand_omp_for): Add cast to enum type.
7954         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
7955         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
7956         * postreload.c (reload_cse_simplify_operands): Change rclass local
7957         to enum reg_class.
7958         * predict.c (combine_predictions_for_insn): Change best_predictor
7959         and predictor to enum br_predictor.
7960         (combine_predictions_for_bb): Likewise.
7961         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
7962         use SET_PREDICT_EXPR_OUTCOME.
7963         * real.c (real_arithmetic): Change icode to code in function call.
7964         * reginfo.c (init_move_cost): Add casts to enum type.
7965         (init_reg_sets_1, init_fake_stack_mems): Likewise.
7966         * regmove.c (regclass_compatible_p): Change class0 and class1 to
7967         enum reg_class.
7968         * reload.c (find_valid_class): Add casts to enum type.
7969         (push_reload): Change 0 to NO_REGS in function call.
7970         (find_reloads): Change this_alternative to array of enum
7971         reg_class.  Remove some now-unnecessary casts.
7972         (make_memloc): Change 0 to VOIDmode in function call.
7973         * reload1.c (reload): Change 0 to VOIDmode in function call.
7974         (eliminate_regs_1, elimination_effects): Likewise.
7975         (eliminate_regs_in_insn): Likewise.
7976         (emit_input_reload_insns): Add cast to enum type.
7977         (delete_output_reload): Change 0 to VOIDmode in function call.
7978         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
7979         to enum type in function call.
7980         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
7981         (SET_PREDICT_EXPR_OUTCOME): Define.
7982         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
7983         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
7984         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
7985         (dump_function): Likewise.
7986         * tree-dump.h: Update declarations.
7987         * tree-pass.h: Update declarations.
7988         * varasm.c (assemble_integer): Change mclass to enum mode_class.
7989         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
7990         enum type.
7991         (arm_rtx_costs_1): Correct parenthesization.
7992         (arm_rtx_costs): Add casts to enum type.
7993         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
7994         (vfp_emit_fstmd): Use add_rg_note.
7995         (emit_multi_reg_push, emit_sfm): Likewise.
7996         (thumb_set_frame_pointer): Likewise.
7997         (arm_expand_prologue): Likewise.
7998         (arm_regno_class): Change return type to enum reg_class.
7999         (thumb1_expand_prologue): Use add_reg_note.
8000         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
8001         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
8002         in function call.
8003         * config/arm/gentune.sh: Add cast to enum type.
8004         * config/arm/arm-tune.md: Rebuild.
8005         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
8006         (ix86_split_fp_branch, predict_jump): Likewise.
8007         (ix86_expand_multi_arg_builtin): Change sub_code from enum
8008         insn_code to enum rtx_code.
8009         (ix86_builtin_vectorized_function): Add cast to enum type.
8010         * config/i386/i386.md (truncdfsf2): Change slot to enum
8011         ix86_stack_slot.
8012         (truncxf<mode>2, isinf<mode>2): Likewise.
8013         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
8014         enum type.
8015         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
8016         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
8017         (insert_bundle_state): Change 1 to INSERT in function call.
8018         (ia64_add_bundle_selector_before): Likewise.
8019         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
8020         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
8021         (restore_stack_nonlocal): Likewise.
8022         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
8023         function call.
8024         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
8025         function call.
8026         (mips_rtx_costs): Likewise.
8027         (mips_override_options): Add casts to enum type.
8028         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
8029         in function call.
8030         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
8031         (store_reg, set_reg_plus_d): Likewise.
8032         (hppa_expand_prologue, hppa_profile_hook): Likewise.
8033         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
8034         cast to enum type.
8035         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
8036         function call.
8037         (emit_unlikely_jump): Use add_reg_note.
8038         (rs6000_emit_allocate_stack): Likewise.
8039         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
8040         (output_toc): Change 1 to INSERT in function call.
8041         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
8042         (rs6000_initialize_trampoline): Likewise.
8043         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
8044         function call.
8045         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
8046         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
8047         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
8048         (save_gprs): Use add_reg_note.
8049         (s390_emit_prologue): Likewise.
8050         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
8051         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
8052         (sparc_fold_builtin): Add cast to enum type.
8053         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
8054         enum insn_code.
8055         (spu_expand_prologue): Use add_reg_note.
8056         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
8058 2009-04-20  Ian Lance Taylor  <iant@google.com>
8060         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
8061         (c_parser_postfix_expression_after_primary): Get VEC for list of
8062         arguments.  Get original types of arguments.  Call
8063         build_function_call_vec.
8064         (cached_expr_list_1, cached_expr_list_2): New static variables.
8065         (c_parser_expr_list): Change return type to VEC *.  Add
8066         p_orig_types parameter.  Change all callers.
8067         (c_parser_release_expr): New static function.
8068         (c_parser_vec_to_tree_list): New static function.
8069         * c-typeck.c (build_function_call): Rewrite to build a VEC and
8070         call build_function_call_vec.
8071         (build_function_call_vec): New function, based on old
8072         build_function_call.
8073         (convert_arguments): Remove nargs and argarray parameters.  Change
8074         values to a VEC.  Add origtypes parameter.
8075         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
8076         (convert_for_assignment): Add origtype parameter.  Change all
8077         callers.  If warn_cxx_compat, check for conversion to an enum
8078         type when calling a function.
8079         (store_init_value): Add origtype parameter.  Change all callers.
8080         (digest_init): Likewise.
8081         (struct init_node): Add origtype field.
8082         (add_pending_init): Add origtype parameter.  Change all callers.
8083         (output_init_element): Likewise.
8084         (output_pending_init_elements): Pass origtype from init_node to
8085         output_init_element.
8086         (process_init_element): Pass origtype from c_expr to
8087         output_init_element.
8088         (c_finish_return): Add origtype parameter.  Change all callers.
8089         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
8090         caller.
8091         (sync_resolve_params): Likewise.
8092         (sync_resolve_return): Change params to first_param.  Change caller.
8093         (resolve_overloaded_builtins): Change params to VEC *.  Change
8094         callers.  Save first parameter around call to build_function_call_vec.
8095         * c-decl.c (finish_decl): Add origtype parameter.  Change all
8096         callers.  Call build_function_call_vec rather than
8097         build_function_call for cleanup.
8098         * c-tree.h: Update declarations.
8099         * c-common.h: Update declarations.
8100         * stub-objc.c (objc_rewrite_function_call): Change parameter from
8101         params to first_param.
8102         * target.h (struct gcc_target): Change resolve_overloaded_builtin
8103         params parameter from tree to void *.
8104         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8105         Change arglist parameter to have type void *, and to be a pointer
8106         to a VEC.
8107         * config/rs6000/rs6000-protos.h
8108         (altivec_resolve_overloaded_builtin): Update declaration.
8109         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
8110         fnargs parameter to have type void *, and to be a pointer to a
8111         VEC.  Call build_function_call_vec instead of
8112         build_function_call.
8113         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
8115 2009-04-20  Joey Ye  <joey.ye@intel.com>
8116             Xuepeng Guo  <xuepeng.guo@intel.com>
8117             H.J. Lu  <hongjiu.lu@intel.com>
8119         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
8121         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
8122         (IX86_LEA_PRIORITY): Likewise.
8123         (distance_non_agu_define): New function.
8124         (distance_agu_use): Likewise.
8125         (ix86_lea_for_add_ok): Likewise.
8126         (ix86_dep_by_shift_count): Likewise.
8128         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
8129         should split for LEA.
8131         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
8132         function.
8133         (ix86_dep_by_shift_count): Likewise.
8135 2009-04-20  Richard Guenther  <rguenther@suse.de>
8137         * expr.c (handled_component_p): Move ...
8138         * tree.h (handled_component_p): ... here.
8139         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
8140         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
8141         and REALPART_EXPR to be in one group.
8143 2009-04-20  Richard Guenther  <rguenther@suse.de>
8145         * basic-block.h (get_all_dominated_blocks): Declare.
8146         * dominance.c (get_all_dominated_blocks): New function.
8147         * tree-cfg.c (get_all_dominated_blocks): Remove.
8148         (remove_edge_and_dominated_blocks): Adjust.
8149         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
8150         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
8151         instead of recursing.
8153 2009-04-20  Doug Kwan  <dougkwan@google.com>
8155         * cgraph.h (cgraph_node_ptr): New type for vector functions.
8156         (struct cgraph_node_set_def): New type.
8157         (cgraph_node_set) New type. Also declare vector functions.
8158         (struct cgraph_node_set_element_def): New type.
8159         (cgraph_node_set_element): Ditto.
8160         (cgraph_node_set_iterator): New iterator type.
8161         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
8162         cgraph_node_set_remove, dump_cgraph_node_set,
8163         debug_cgraph_node_set): New prototypes.
8164         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
8165         cgraph_node_set_size): New inlines.
8166         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
8167         including cgraph.h.
8168         (struct ipa_opt_pass): Add struct cgraph_node_set_def
8169         argument to function 'write_summary'.
8170         * ipa.c: Include ggc.h.
8171         (hash_cgraph_node_set_element,
8172         eq_cgraph_node_set_element, cgraph_node_set_new,
8173         cgraph_node_set_add, cgraph_node_set_remove,
8174         cgraph_node_set_find, dump_cgraph_node_set,
8175         debug_cgraph_node_set): New functions.
8176         * Makefile.in (ipa.o): Add dependency on GGC_H.
8178 2009-04-20  Ira Rosen  <irar@il.ibm.com>
8180         PR tree-optimization/39675
8181         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
8182         check of the return code of vect_schedule_slp. Check that
8183         stmt_vec_info still exists for the statement, before checking its
8184         vectorization type.
8186 2009-04-20  Michael Matz  <matz@suse.de>
8188         * Makefile.in (generated_files): Take out $(simple_generated_c).
8190 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
8192         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
8193         (UINTPTR_TYPE):  Likewise.
8195 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
8197         PR c/37481
8198         * c-typeck.c (digest_init): Check for initializing an array with a
8199         string literal.
8201 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
8203         PR c/19771
8204         * c-semantics.c (pop_stmt_list): Propagate
8205         STATEMENT_LIST_HAS_LABEL to parent statement list.
8207 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
8209         * config/mips/mips.h (mips_tune_attr): New macro.
8210         * config/mips/mips.md (cpu): Use it.
8212 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
8214         PR c/38243
8215         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
8216         declaring a tag.
8218 2009-04-19  Diego Novillo  <dnovillo@google.com>
8220         * toplev.c (compile_file): Move call to coverage_finish ...
8221         * cgraphunit.c (ipa_passes): ... here.
8222         Call cgraph_process_new_functions.
8223         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
8224         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
8226 2009-04-19  Jan Hubicka  <jh@suse.cz>
8228         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
8229         cfun.
8230         (dump_cgraph_node): Dump can throw external flag.
8231         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
8233 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8235         PR c/32061
8236         PR c++/36954
8237         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
8238         * common.opt (Wlogical-op): Move from here...
8239         * c.opt (Wlogical-op): ... to here.
8240         * c-typeck.c (parser_build_binary_op): Update call to
8241         warn_logical_operator.
8242         * c-opts.c (c_common_post_options): Enable warn_logical_op with
8243         extra_warnings.
8244         * c-common.c (warn_logical_op): Update.
8245         * c-common.h (warn_logical_op): Update declaration.
8247 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
8249         * tree.c (protected_set_expr_location): Fix formatting.
8251 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
8253         PR c/27676
8254         * c-typeck.c (readonly_warning): new.
8255         (build_unary_op, build_modify_expr): Use readonly_warning for
8256         storing into something readonly but not const-qualified.
8258 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
8260         PR c/22367
8261         * c-typeck.c (build_unary_op): Check for taking address of
8262         expression of type void.
8264 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
8266         PR c/35210
8267         * c-typeck.c (build_function_call): Check for calling a function
8268         with qualified void return types.  Call require_complete_type when
8269         generating a trap.
8271 2009-04-18  Jan Hubicka  <jh@suse.cz>
8273         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
8274         Set nothrow flag.
8275         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
8276         can_throw_external flag.
8277         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
8278         * ipa-pure-const.c (ignore_edge): New function.
8279         (propagate): Compute order for NOTHROW computation; set NOTHROWs
8280         only over can_throw_external edges.
8281         (local_pure_const): Add nothrow flag.
8282         * ipa-utils.c (searchc): Add ignore_edge callback.
8283         (ipa_utils_reduced_inorder): Add ignore_edge callback.
8284         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
8285         (set_nothrow_function_flags): Update cgraph.
8286         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
8288 2009-04-18  Richard Guenther  <rguenther@suse.de>
8290         PR middle-end/39804
8291         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
8292         (fold_stmt): ... this and ...
8293         (fold_stmt_inplace): ... this.
8294         (fold_stmt_1): Fold references in calls and asms.
8295         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
8297 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
8299         * tree-vrp.c (ssa_name_nonzero_p): Remove.
8300         * tree.h: Remove the prototype for ssa_name_nonzero_p.
8302 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
8304         * tree.c (function_args_count): Remove.
8305         * tree.h: Remove the prototype for function_args_count.
8307 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
8309         * tree-iterator.c (expr_only): Remove.
8310         * tree.h: Remove the prototype for expr_only.
8312 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
8314         * reginfo.c (cannot_change_mode_set_regs): Remove.
8315         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
8317 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
8319         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
8320         whether operands 0 and 1 overlaps.
8322 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8324         PR middle-end/36902
8325         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
8326         pointer. Use warning_at instead of warning.
8327         (search_for_addr_array): Likewise.
8328         (check_array_bounds): Likewise.
8329         (check_all_array_refs): Check that the incoming edge is not in the
8330         list of edges to be removed.
8331         (check_all_array_refs): Avoid the temporal pointer.
8332         (vrp_visit_cond_stmt): Fix typo.
8333         (simplify_switch_using_ranges): Handle the case where the switch
8334         index is an integer constant.
8336 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
8338         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
8340 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
8342         * doc/extend.texi, doc/invoke.texi: Fix typos.
8344 2009-04-17  Cary Coutant  <ccoutant@google.com>
8346         * tree-flow-inline.h (get_lineno): Fix inverted test.
8348 2009-04-17  Diego Novillo  <dnovillo@google.com>
8350         * tree-ssa-pre.c (create_expression_by_pieces): Remove
8351         assertion for AVAIL_OUT.
8353 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
8355         PR target/38627
8356         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
8357         * config/sh/linux-atomic.asm: Likewise.
8359 2009-04-17  Diego Novillo  <dnovillo@google.com>
8361         * except.c (debug_eh_tree): New.
8362         (struct eh_region, struct eh_status): Move ...
8363         * except.h: ... here.
8364         (add_type_for_runtime): Declare extern.
8365         (lookup_type_for_runtime): Likewise.
8366         (debug_eh_tree): Declare.
8367         * Makefile.in (GTFILES): List except.h before except.c
8369 2009-04-17  Diego Novillo  <dnovillo@google.com>
8371         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
8372         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
8373         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
8374         (find_vars_r): ... here.
8375         * tree-flow.h (find_referenced_vars_in): Declare.
8376         * tree-ssa-pre.c (create_expression_by_pieces): Assert
8377         that AVAIL_OUT exists for BLOCK.
8378         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
8379         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
8380         (tree-parloops.o): Likewise.
8382 2009-04-17  Simon Baldwin  <simonb@google.com>
8384         * toplev.c (default_tree_printer): Add handling for %E format.
8386 2009-04-17  Diego Novillo  <dnovillo@google.com>
8388         * tree-pretty-print.c (dump_generic_node): Add break after
8389         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
8390         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
8391         FUNCTION_TYPE together.  Call print_struct_decl when printing
8392         structures and TDF_SLIM is not given.
8393         (print_struct_decl): Fix logic for detecting recursion.
8395 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
8397         PR 31567
8398         * gcc.c (create_at_file): New.
8399         (compile_input_file_p): New.
8400         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
8401         * main.c (main): Update call to toplev_main.
8402         * toplev.c (toplev_main): Change signature. Call expandargv.
8403         * toplev.h (toplev_main): Change signature.
8405 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
8407         * dwarf2out.c (field_byte_offset): Use the type size as the field size
8408         if the latter is not constant.
8410 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
8412         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
8414 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
8416         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
8417         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
8419 2009-04-17  Richard Guenther  <rguenther@suse.de>
8421         * tree-ssa-structalias.c (get_constraint_for_component_ref):
8422         Handle component references view-converting an invariant address.
8424 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
8426         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
8427         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
8428         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
8429         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
8430         Use @deftypevr rather than @deftypevar.
8432 2009-04-17  Richard Guenther  <rguenther@suse.de>
8434         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
8435         (get_prop_source_stmt): Likewise.
8436         (can_propagate_from): Likewise.
8438 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
8440         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
8441         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
8442         (--with-multilib-list): Add default value.
8443         * configure: Regenerate.
8444         * Makefile.in (TM_ENDIAN_CONFIG): Define.
8445         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
8446         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
8447         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
8448         Don't add default cpu to multilib list unnecessarily, but do enable
8449         the relevant compiler option..
8450         Add support for --with-multilib-list=<blank> and
8451         --with-multilib-list=!<somelib> to supress unwanted multilibs.
8452         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
8453         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
8454         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
8455         TM_MULTILIB_CONFIG.
8456         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
8457         (MULTILIB_OSDIRNAMES): New variable.
8458         * config/sh/t-1e: Delete file.
8459         * config/sh/t-mlib-sh1: Delete file.
8460         * config/sh/t-mlib-sh2: Delete file.
8461         * config/sh/t-mlib-sh2a: Delete file.
8462         * config/sh/t-mlib-sh2a-nofpu: Delete file.
8463         * config/sh/t-mlib-sh2a-single: Delete file.
8464         * config/sh/t-mlib-sh2a-single-only: Delete file.
8465         * config/sh/t-mlib-sh2e: Delete file.
8466         * config/sh/t-mlib-sh3e: Delete file.
8467         * config/sh/t-mlib-sh4: Delete file.
8468         * config/sh/t-mlib-sh4-nofpu: Delete file.
8469         * config/sh/t-mlib-sh4-single: Delete file.
8470         * config/sh/t-mlib-sh4-single-only: Delete file.
8471         * config/sh/t-mlib-sh4a: Delete file.
8472         * config/sh/t-mlib-sh4a-nofpu: Delete file.
8473         * config/sh/t-mlib-sh4a-single: Delete file.
8474         * config/sh/t-mlib-sh4a-single-only: Delete file.
8475         * config/sh/t-mlib-sh4al: Delete file.
8476         * config/sh/t-mlib-sh5-32media: Delete file.
8477         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
8478         * config/sh/t-mlib-sh5-64media: Delete file.
8479         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
8480         * config/sh/t-mlib-sh5-compact: Delete file.
8481         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
8482         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
8483         * doc/install.texi (Options specification): Add
8484         --with-multilib-list and --with-endian.
8486 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
8488         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
8489         REVISION_c.
8490         (OBJS-common): Add plugin-version.o.
8491         (plugin-version.o): New.
8492         * gcc-plugin.h (plugin_gcc_version): New.
8493         (plugin_default_version_check): New.
8494         (plugin_init_func, plugin_init): Add version argument.
8495         * plugin-version.c: New.
8496         * plugin.c (str_plugin_gcc_version_name): New.
8497         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
8498         pass it to the init function.
8499         (plugin_default_version_check): New.
8501 2009-04-17  Richard Guenther  <rguenther@suse.de>
8503         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
8504         for decl-vs-decl disambiguation.
8506 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
8508         * config/s390/s390.h (s390_tune_attr): New macro definition.
8509         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
8511 2009-04-17  Richard Guenther  <rguenther@suse.de>
8513         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
8514         (fold_stmt_r): Likewise.
8515         (maybe_fold_reference): New function.
8516         (fold_gimple_assign): Handle cases fold_stmt_r did.
8517         (fold_stmt): Do not use fold_stmt_r.
8518         (fold_stmt_inplace): Likewise.
8520 2009-04-17  Richard Guenther  <rguenther@suse.de>
8522         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
8523         (record_equivalences_from_stmt): Remove useless checks and
8524         simplifications.
8525         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
8526         the type is already suitable.
8528 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
8530         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
8532 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
8534         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
8535         (CMPtype): Define as __gcc_CMPtype.
8537 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
8539         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
8540         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
8542 2009-04-17  Richard Guenther  <rguenther@suse.de>
8544         PR tree-optimization/39746
8545         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
8546         special-casing for builtins and static variable use/def.
8547         (call_may_clobber_ref_p_1): Likewise.
8549 2009-04-16  Ian Lance Taylor  <iant@google.com>
8551         * df.h: Include "timevar.h".
8552         (struct df_problem): Change tv_id field to timevar_id_t.
8553         * tree-pass.h: Include "timevar.h".
8554         (struct opt_pass): Change tv_id field to timevar_id_t.
8555         * timevar.h (timevar_id_t): Define TV_NONE.
8556         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
8557         TV_NONE rather than tv_id != 0.
8558         (execute_one_pass): Likewise.
8559         * Makefile.in (DF_H): Add $(TIMEVAR_H).
8560         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
8561         dependencies to $(TREE_PASS_H).
8562         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
8563         to TV_NONE.
8564         (pass_branch_target_load_optimize2): Likewise.
8565         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
8566         (pass_outof_cfg_layout_mode): Likewise.
8567         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
8568         (pass_rebuild_cgraph_edges): Likewise.
8569         (pass_remove_cgraph_callee_edges): Likewise.
8570         * df-core.c (pass_df_initialize_opt): Likewise.
8571         (pass_df_initialize_no_opt): Likewise.
8572         (pass_df_finish): Likewise.
8573         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
8574         * except.c (pass_set_nothrow_function_flags): Likewise.
8575         (pass_convert_to_eh_region_ranges): Likewise.
8576         * final.c (pass_compute_alignments): Likewise.
8577         * function.c (pass_instantiate_virtual_regs): Likewise.
8578         (pass_init_function): Likewise.
8579         (pass_leaf_regs): Likewise.
8580         (pass_match_asm_constraints): Likewise.
8581         * gimple-low.c (pass_lower_cf): Likewise.
8582         (pass_mark_used_blocks): Likewise.
8583         * init-regs.c (pass_initialize_regs): Likewise.
8584         * integrate.c (pass_initial_value_sets): Likewise.
8585         * ira.c (pass_ira): Likewise.
8586         * jump.c (pass_cleanup_barriers): Likewise.
8587         * omp-low.c (pass_expand_omp): Likewise.
8588         (pass_lower_omp): Likewise.
8589         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
8590         * recog.c (pass_split_all_insns): Likewise.
8591         (pass_split_after_reload): Likewise.
8592         (pass_split_before_regstack): Likewise.
8593         (pass_split_before_sched2): Likewise.
8594         (pass_split_for_shorten_branches): Likewise.
8595         * reginfo.c (pass_reginfo_init): Likewise.
8596         (pass_subregs_of_mode_init): Likewise.
8597         (pass_subregs_of_mode_finish): Likewise.
8598         * passes.c (pass_postreload): Likewise.
8599         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
8600         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
8601         (pass_warn_function_return): Likewise.
8602         (pass_warn_function_noreturn): Likewise.
8603         * tree-complex.c (pass_lower_complex): Likewise.
8604         (pass_lower_complex_O0): Likewise.
8605         * tree-if-conv.c (pass_if_conversion): Likewise.
8606         * tree-into-ssa.c (pass_build_ssa): Likewise.
8607         * tree-mudflap.c (pass_mudflap_1): Likewise.
8608         (pass_mudflap_2): Likewise.
8609         * tree-nomudflap.c (pass_mudflap_1): Likewise.
8610         (pass_mudflap_2): Likewise.
8611         * tree-nrv.c (pass_return_slot): Likewise.
8612         * tree-object-size.c (pass_object_sizes): Likewise.
8613         * tree-optimize.c (pass_all_optimizations): Likewise.
8614         (pass_early_local_passes): Likewise.
8615         (pass_all_early_optimizations): Likewise.
8616         (pass_cleanup_cfg): Likewise.
8617         (pass_cleanup_cfg_post_optimizing): Likewise.
8618         (pass_free_datastructures): Likewise.
8619         (pass_free_cfg_annotations): Likewise.
8620         (pass_fixup_cfg): Likewise.
8621         (pass_init_datastructures): Likewise.
8622         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
8623         (pass_late_warn_uninitialized): Likewise.
8624         (pass_update_address_taken): Likewise.
8625         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
8626         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
8627         (pass_cse_sincos): Likewise.
8628         (pass_convert_to_rsqrt): Likewise.
8629         * tree-ssa-structalias.c (pass_build_alias): Likewise.
8630         * tree-stdarg.c (pass_stdarg): Likewise.
8631         * tree-tailcall.c (pass_tail_recursion): Likewise.
8632         (pass_tail_calls): Likewise.
8633         * tree-vect-generic.c (pass_lower_vector): Likewise.
8634         (pass_lower_vector_ssa): Likewise.
8635         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
8637 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
8639         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
8640         XLR entry.
8641         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
8642         Handle -march=xlr.
8643         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
8644         logical and signext.
8646 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
8648         PR target/39767
8649         * config/sh/predicates.md (arith_operand): Check if the operand
8650         of TRUNCATE is a REG.
8652 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
8654         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
8655         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
8657 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
8659         * tree-iterator.c (tsi_split_statement_list_after,
8660         tsi_split_statement_list_before): Remove.
8661         * tree-iterator.h: Remove the prototypes for
8662         tsi_split_statement_list_after and tsi_split_statement_list_before.
8664 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
8666         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
8667         * tree-ssa-propagate.h: Remove the prototype for
8668         stmt_makes_single_load.
8670 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
8672         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
8673         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
8675 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
8677         * tree-iterator.c (EXPR_LAST_BODY): Remove.
8679 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
8681         * except.c (eh_region_outer_p): Remove.
8682         * except.h: Remove the prototype for eh_region_outer_p.
8684 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
8686         * function.c (current_function_assembler_name): Remove.
8687         * function.h: Remove the prototype for
8688         current_function_assembler_name.
8690 2009-04-16  Ian Lance Taylor  <iant@google.com>
8692         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
8693         (add_reg_note): Call alloc_reg_note.
8694         * rtl.h (alloc_reg_note): Declare.
8695         * combine.c (try_combine): Use alloc_reg_note.
8696         (recog_for_combine, move_deaths): Likewise.
8697         (distribute_notes): Use alloc_reg_note and add_reg_note.
8698         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
8699         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
8700         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
8702 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
8704         PR rtl-optimization/39762
8705         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
8706         ira_may_move_out_cost): Add comments about way of their usage.
8707         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
8709         * ira-conflicts.c (process_regs_for_copy): Use function
8710         ira_get_register_move_cost instead of global
8711         ira_register_move_cost.
8713         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
8714         color_pass, move_spill_restore, update_curr_costs): Ditto.
8716         * ira-lives.c (process_single_reg_class_operands): Ditto.
8718         * ira-emit.c (emit_move_list): Ditto.
8720         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
8721         (record_reg_classes): Ditto.  Use functions
8722         ira_get_register_move_cost and ira_get_may_move_cost instead of
8723         global vars ira_register_move_cost, ira_may_move_out_cost and
8724         ira_may_move_in_cost.
8725         (record_address_regs): Don't call ira_init_register_move_cost.
8726         Use function ira_get_may_move_cost instead of global
8727         ira_may_move_in_cost.
8728         (process_bb_node_for_hard_reg_moves): Use function
8729         ira_get_register_move_cost instead of global ira_register_move_cost.
8730         (ira_costs): Don't call ira_init_register_move_cost.
8732 2009-04-16  Richard Guenther  <rguenther@suse.de>
8734         * tree-cfg.c (verify_gimple_assign_binary):
8735         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
8736         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
8737         (create_general_new_stmt): Note that this function is broken.
8739 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
8741         * common.opt (fhelp): Add Var(help_flag).
8742         * gcc-plugin.h (plugin_info): Add help.
8743         * plugin.c (plugin_name_args): Add help.
8744         (register_plugin_info): Set plugin->help.
8745         (print_help_one_plugin): New.
8746         (print_plugins_help): New.
8747         * plugin.h (print_plugins_help): New.
8748         * toplev.c (toplev_main): Call print_plugins_help if needed.
8750 2009-04-16  Richard Guenther  <rguenther@suse.de>
8752         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
8753         (gimple_ior_addresses_taken_1): New function.
8754         (gimple_ior_addresses_taken): Likewise.
8755         * gimple.h (struct gimple_statement_with_ops_base): Remove
8756         addresses_taken member.
8757         (gimple_ior_addresses_taken): Declare.
8758         (gimple_addresses_taken, gimple_addresses_taken_ptr,
8759         gimple_set_addresses_taken): Remove.
8760         * ipa-reference.c (mark_address): New function.
8761         (scan_stmt_for_static_refs): Use it for marking addresses taken.
8762         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
8763         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
8764         (gimple_add_to_addresses_taken): Remove.
8765         (get_tmr_operands): Call mark_address_taken.
8766         (get_asm_expr_operands): Likewise.
8767         (get_expr_operands): Likewise.
8768         (build_ssa_operands): Do not clear the addresses_taken bitmap.
8769         (free_stmt_operands): Do not free it.
8770         * tree-ssa.c (delete_tree_ssa): Likewise.
8771         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
8773 2009-04-16  Richard Guenther  <rguenther@suse.de>
8775         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
8776         (walk_stmt_load_store_ops): Likewise.
8777         * gimple.c (get_base_loadstore): New function.
8778         (walk_stmt_load_store_addr_ops): Likewise.
8779         (walk_stmt_load_store_ops): Likewise.
8780         * ipa-pure-const.c (check_op): Simplify.
8781         (check_load, check_store): New functions.
8782         (check_stmt): Use walk_stmt_load_store_ops.
8783         * ipa-reference.c (mark_load): Adjust signature.
8784         (mark_store): Likewise.
8785         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
8787 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
8789         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
8790         (plugin_info): New.
8791         * opts.c (common_handle_option): Don't call print_version.
8792         * plugin.c (plugin_name_args): Add version.
8793         (register_plugin_info): New.
8794         (register_callback): Handle PLUGIN_INFO.
8795         (try_init_one_plugin): New.
8796         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
8797         if failed to init.
8798         (finalize_one_plugin): New.
8799         (finalize_plugins): New.
8800         (print_one_plugin): New.
8801         (print_plugins_versions): New.
8802         * plugin.h (print_plugins_versions): New.
8803         (finalize_plugins): New.
8804         * toplev.c (compile_file): Don't call initialize_plugins.
8805         (print_version): Call print_plugins_versions.
8806         (toplev_main): Call initialize_plugins. Print version if needed.
8807         Call finalize_plugins.
8809 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
8811         * common.opt (fversion): New.
8812         * gcc.c (print_version): New.
8813         (process_command): Don't print the version. Just set print_version.
8814         (main): Print version. Call subprocesses if print_version and
8815         verbose_flag are set.
8816         * opts.c (common_handle_option): Handle OPT_fversion.
8818 2009-04-16  Richard Guenther  <rguenther@suse.de>
8819             Ira Rosen  <irar@il.ibm.com>
8821         PR tree-optimization/39698
8822         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
8823         type of the reduction variable.  Only generate the def if
8824         it is needed.
8826         * omp-low.c (expand_omp_for_generic): When converting to a pointer
8827         make sure to first convert to an integer of the same precision.
8828         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
8829         the type of the evolution correctly in computing the new
8830         induction variable base.
8832 2009-04-16  Richard Guenther  <rguenther@suse.de>
8834         PR middle-end/39625
8835         * tree-cfg.c (make_blocks): Split statements with to-be
8836         abnormal SSA names on the lhs.
8838 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
8840         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
8841         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
8842         * c-typeck.c (really_start_incremental_init): Likewise.
8843         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
8844         (TARGET_INITIALIZER): Remove it.
8845         * target.h (struct target): Remove vector_opaque_p.
8846         * tree.c (build_opaque_vector_type): New.
8847         * tree.h (TYPE_VECTOR_OPAQUE): New.
8848         (build_opaque_vector_type): Declare.
8849         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
8850         * config/rs6000/rs6000.c (build_opaque_vector_type,
8851         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
8852         (rs6000_init_builtins): Use build_opaque_vector_type for
8853         opaque_V4SI_type_node.
8855 2009-04-15  Catherine Moore  <clm@codesourcery.com>
8857         * debug.h (set_name):  Declare.
8858         * dwarf2out.c (dwarf2out_set_name): Declare.
8859         (dwarf2_debug_hooks): Add set_name.
8860         (find_AT_string): New.
8861         (add_AT_string): Call find_AT_string.
8862         (dwarf2out_set_name): New.
8863         * cp/decl.c (grokdeclarator): Call set_name.
8864         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
8865         * debug.c (do_nothing_debug_hooks):  Likewise.
8866         * dbxout.c (dbx_debug_hooks): Likewise.
8867         * sdbout.c (sdb_debug_hooks): Likewise.
8869 2009-04-15  Michael Eager  <eager@eagercon.com>
8871         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
8872         reg for single-precision FPU.
8873         * config/rs6000/rs6000.md (movsi_internal1): Only for
8874         !TARGET_SINGLE_FPU.
8875         (movsi_internal1_single): New. Add pattern to move SI values to/from
8876         single-precision FP regs.
8878 2009-04-15  Richard Guenther  <rguenther@suse.de>
8880         * omp-low.c (lower_rec_input_clauses): Build correct address
8881         expressions.
8882         (expand_omp_for_generic): Fix multiplication type.
8883         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
8884         (generate_memset_zero): Fix types.
8885         * tree-profile.c (prepare_instrumented_value): Correctly
8886         widen a pointer.
8888 2009-04-15  Ian Lance Taylor  <iant@google.com>
8890         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
8891         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
8892         for -Wall and for -Wc++-compat.
8893         (c_common_post_options): For C++, set warn_enum_compare if not
8894         already set.
8895         * c-tree.h (struct c_expr): Add field original_type.
8896         (build_external_ref): Update declaration.
8897         * c-parser.c (c_parser_braced_init): Set original_type.
8898         (c_parser_initelt): Likewise.
8899         (c_parser_expr_no_commas): Likewise.
8900         (c_parser_conditional_expression): Likewise.
8901         (c_parser_cast_expression): Likewise.
8902         (c_parser_unary_expression): Likewise.  Pull setting of
8903         original_code to top of function.
8904         (c_parser_sizeof_expression): Set original_type.
8905         (c_parser_alignof_expression): Likewise.
8906         (c_parser_postfix_expression): Likewise.  Pull setting of
8907         original_code to top of function.
8908         (c_parser_postfix_expression_after_paren_type): Set original_type.
8909         (c_parser_postfix_expression_after_primary): Likewise.
8910         (c_parser_expression): Likewise.
8911         * c-typeck.c (build_external_ref): Add type parameter.  Change all
8912         callers.
8913         (c_expr_sizeof_expr): Set original_type field.
8914         (parser_build_unary_op): Likewise.
8915         (parser_build_binary_op): Likewise.  Optionally warn about
8916         comparisons of enums of different types.
8917         (digest_init): Set original_type field.
8918         (really_start_incremental_init): Likewise.
8919         (push_init_level, pop_init_level): Likewise.
8920         * doc/invoke.texi (Warning Options): -Wenum-compare now
8921         supported in C.
8923 2009-04-15  Richard Guenther  <rguenther@suse.de>
8925         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
8926         out a necessary conversion.
8927         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
8928         names we didn't value number.
8929         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
8931 2009-04-15  Richard Guenther  <rguenther@suse.de>
8933         PR tree-optimization/39764
8934         * tree-ssa-ccp.c (get_value): Canonicalize value with
8935         canonicalize_float_value.
8937 2009-04-15  Jan Hubicka  <jh@suse.cz>
8939         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
8940         Wrong version of patch.
8942 2009-04-15  Jan Hubicka  <jh@suse.cz>
8944         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
8946 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
8948         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
8949         our distinct integral and vector types.
8951 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
8953         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
8954         * init.c (build_vtbl_address): Remove call to assemble_external.
8956 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
8958         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
8959         output for other floating point modes.
8961 2009-04-14  Diego Novillo  <dnovillo@google.com>
8963         * diagnostic.c (diagnostic_report_diagnostic): Do not
8964         warn about loaded plugins for DK_ERROR and DK_WARNING.
8965         * c-decl.c (declspecs_add_type): Move call to
8966         invoke_plugin_callbacks ...
8967         * c-parser.c (c_parser_declspecs): ... here.
8968         * plugin.c (dump_active_plugins): Tidy output.
8970 2009-04-14  Diego Novillo  <dnovillo@google.com>
8971             Le-Chun Wu  <lcwu@google.com>
8973         * configure.ac: Add --enable-plugin support.
8974         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
8975         * Makefile.in (PLUGIN_H): Define.
8976         Export ENABLE_PLUGIN and GMPINC to site.exp.
8977         Add PLUGINLIBS to link command.
8978         Add/modify dependencies for plugin.o and files including plugin.h.
8979         (plugin.o): New.
8980         * config.in: Regenerate.
8982         * opts.c (common_handle_option): Handle OPT_fplugin_ and
8983         OPT_fplugin_arg_.
8985 2009-04-14  Le-Chun Wu  <lcwu@google.com>
8987         * tree-pass.h (register_one_dump_file): Add a prototype for
8988         register_one_dump_file.
8989         * toplev.c (compile_file): Call initialize_plugins.
8990         (do_compile): Call invoke_plugin_callbacks.
8991         (toplev_main): Call invoke_plugin_callbacks.
8992         * common.opt: Add -fplugin= and -fplugin-arg-.
8993         * gcc-plugin.h: New public header file for plugins to include.
8994         * plugin.c: New source file.
8995         * plugin.h: New internal header file.
8996         * passes.c (register_one_dump_file): Make it external.
8998         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
9000 2009-04-14  Diego Novillo  <dnovillo@google.com>
9002         * doc/plugins.texi: New.
9003         * doc/gccint.texi: Add reference to Plugins chapter.
9004         * doc/invoke.texi: Document -fplugin and -fplugin-arg
9005         * diagnostic.c (diagnostic_report_diagnostic): Warn about
9006         loaded plugins, if any.
9007         * timevar.def (TV_PLUGIN_INIT): Define.
9008         (TV_PLUGIN_RUN): Define.
9009         * plugin.c: Include timevar.h
9010         (plugins_active_p): New.
9011         (dump_active_plugins): New.
9012         (debug_active_plugins): New.
9014 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
9016         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
9017         library paths.
9018         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
9020 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
9022         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
9023         the same as a minus without a shift.
9025 2009-04-14  Nick Clifton  <nickc@redhat.com>
9027         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
9028         comparisons with small integers will always produce a short
9029         branch.
9031 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
9033         Merge:
9034         2008-12-19  Diego Novillo  <dnovillo@google.com>
9036         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
9038 2009-04-14  Richard Guenther  <rguenther@suse.de>
9040         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
9041         verification.
9042         (verify_gimple_assign_binary): Likewise.  Handle shifts and
9043         rotates correctly.
9044         (verify_gimple_phi): Print the mismatched argument position.
9045         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
9046         Fix types.
9047         (vect_update_init_of_dr): Likewise.
9048         * matrix-reorg.c (transform_access_sites): Do what the
9049         comment suggests.
9050         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
9052 2009-04-13  Michael Eager  <eager@eagercon.com>
9054         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
9055         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
9056         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
9057         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
9058         remove duplicate config
9060 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
9062         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
9063         file_name:line_number type locator of the call site.
9065 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
9067         * genautomata.c: Put blank after comma.
9068         (automaton_decls): New.
9069         (struct unit_usage): Add comments to member next.
9070         (store_alt_unit_usage): Keep the list ordered.
9071         (unit_present_on_list_p, equal_alternatives_p): New.
9072         (check_regexp_units_distribution): Check units distribution
9073         correctness correctly.
9074         (main): Don't write automata if error is found.  Return correct
9075         exit code.
9077         * config/m68k/cf.md (cfv4_ds): Remove.
9078         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
9079         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
9081         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
9082         power4-load-ext, power4-store, power4-store-update,
9083         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
9084         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
9085         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
9086         power4-sqrt, power4-isync): Modify reservation to make correct
9087         unit distribution to automata.
9089         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
9090         power5-store-update, power5-two, power5-three, power5-lmul,
9091         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
9093 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
9095         * except.c (pass_set_nothrow_function_flags): Set name and add
9096         TODO_dump_func.
9097         (set_nothrow_function_flags): Mention in the dump file when
9098         changing a function to nothrow.
9100 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
9102         PR/39066
9103         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
9104         instead of unsigned long.
9106 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9108         * config/arm/arm.c (return_used_this_function): Remove.
9109         (arm_output_function_prologue): Remove use of
9110         return_used_this_function.
9111         (output_return_instruction): Replace use of
9112         return_used_this_function
9113         by cfun->machine->return_used_this_function.
9114         (arm_output_epilogue): Likewise.
9115         (arm_output_function_epilogue): Likewise.
9116         (thumb_unexpanded_epilogue): Likewise.
9117         * config/arm/arm.h (struct machine_function):
9118         New member return_used_this_function.
9120 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
9122         * doc/install.texi: Correct description of default directory for
9123         --with-gxx-include-dir.
9125 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
9127         * fold-const.c (build_range_check): Properly deal with enumeral and
9128         boolean base types.
9130 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
9132         * doc/invoke.texi (max_gcse_passes): Remove documentation.
9133         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
9134         * params.h (MAX_GCSE_PASSES): Remove.
9135         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
9136         in sequence.  Remove ability to run multiple passes.
9137         (bypass_jumps): Report run as third CPROP pass.
9139 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
9141         PR middle-end/39651
9142         * except.c (can_throw_external): Look at each insn in a SEQUENCE
9143         when deciding whether the whole SEQUENCE can throw.
9145 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
9147         PR target/39740
9148         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
9149         offseted label references.
9151 2009-04-11  Jan Hubicka  <jh@suse.cz>
9153         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
9155 2009-04-11  Richard Guenther  <rguenther@suse.de>
9157         PR middle-end/39732
9158         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
9159         return variables as TREE_ADDRESSABLE.
9161 2009-04-11  Richard Guenther  <rguenther@suse.de>
9163         PR tree-optimization/39713
9164         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
9165         reference trees have SSA_NAME operands.
9167 2009-04-11  Richard Guenther  <rguenther@suse.de>
9169         PR c/39712
9170         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
9171         address expressions.
9173 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
9175         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
9176         match changes in Cygwin 1.7
9177         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
9178         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
9180 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
9182         PR tree-optimization/39701
9183         * doc/invoke.texi (Optimization Options): Document change in
9184         meaning and initialization of -fdelete-null-pointer-checks.
9186 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9188         PR middle-end/39701
9189         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
9191         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
9192         here.
9194         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
9196 2009-04-10  Chao-ying Fu  <fu@mips.com>
9198         * doc/tm.texi (Instruction Output): Document
9199         TARGET_ASM_FINAL_POSTSCAN_INSN.
9200         * target.h (final_postscan_insn): New field in asm_out.
9201         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
9202         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
9203         * final.c (final_scan_insn): Call
9204         targetm.asm_out.final_postscan_insn after outputting
9205         an asm macro and a normal instruction.
9207         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
9208         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
9209         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
9210         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
9211         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
9213 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
9215         PR middle-end/39701
9216         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
9217         variables as non-NULL even with -fdelete-null-pointer-checks.
9219 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9221         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
9223 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9225         PR target/39678
9226         * config/i386/i386.c (classify_argument): Handle SCmode with
9227         (bit_offset % 64) != 0.
9229 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
9231         * doc/invoke.texi (Optimize Options): Add cross-reference to
9232         -Q --help=optimizers examples.
9234 2009-04-10  Ben Elliston  <bje@au.ibm.com>
9236         PR target/36800
9237         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
9238         regalign for the reg == fpr and TDmode case.
9240 2009-04-09  David Ayers  <ayers@fsfe.org>
9242         PR objc/29200
9243         * objc/objc-act.c (warn_with_method): Remove helper function.
9244         (check_duplicates): Call warning and inform directly.
9245         (really_start_method): Likewise.
9247 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
9249         * expmed.c (expand_divmod): Always use a comparison for a division
9250         by a large unsigned integer.
9252         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
9253         for things others than variables or functions as nonzero.
9255 2009-04-09  Nick Clifton  <nickc@redhat.com>
9257         * unwind-compat.c: Change copyright header to refer to version
9258         3 of the GNU General Public License with version 3.1 of the
9259         GCC Runtime Library Exception and to point readers at the
9260         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
9261         * config/alpha/crtfastmath.c: Likewise.
9262         * config/alpha/linux-unwind.h: Likewise.
9263         * config/alpha/qrnnd.asm: Likewise.
9264         * config/alpha/vms-crt0-64.c: Likewise.
9265         * config/alpha/vms-crt0.c: Likewise.
9266         * config/alpha/vms-dwarf2.asm: Likewise.
9267         * config/alpha/vms-dwarf2eh.asm: Likewise.
9268         * config/alpha/vms-psxcrt0-64.c: Likewise.
9269         * config/alpha/vms-psxcrt0.c: Likewise.
9270         * config/alpha/vms_tramp.asm: Likewise.
9271         * config/arc/initfini.c: Likewise.
9272         * config/arc/lib1funcs.asm: Likewise.
9273         * config/arm/bpabi-v6m.S: Likewise.
9274         * config/arm/bpabi.S: Likewise.
9275         * config/arm/bpabi.c: Likewise.
9276         * config/arm/crti.asm: Likewise.
9277         * config/arm/crtn.asm: Likewise.
9278         * config/arm/ieee754-df.S: Likewise.
9279         * config/arm/ieee754-sf.S: Likewise.
9280         * config/arm/lib1funcs.asm: Likewise.
9281         * config/arm/libunwind.S: Likewise.
9282         * config/arm/linux-atomic.c: Likewise.
9283         * config/arm/mmintrin.h: Likewise.
9284         * config/arm/pr-support.c: Likewise.
9285         * config/arm/unaligned-funcs.c: Likewise.
9286         * config/arm/unwind-arm.c: Likewise.
9287         * config/arm/unwind-arm.h: Likewise.
9288         * config/avr/libgcc.S: Likewise.
9289         * config/bfin/crti.s: Likewise.
9290         * config/bfin/crtlibid.s: Likewise.
9291         * config/bfin/crtn.s: Likewise.
9292         * config/bfin/lib1funcs.asm: Likewise.
9293         * config/bfin/linux-unwind.h: Likewise.
9294         * config/cris/arit.c: Likewise.
9295         * config/cris/cris_abi_symbol.c: Likewise.
9296         * config/darwin-64.c: Likewise.
9297         * config/darwin-crt2.c: Likewise.
9298         * config/darwin-crt3.c: Likewise.
9299         * config/darwin.h: Likewise.
9300         * config/dbxelf.h: Likewise.
9301         * config/dfp-bit.c: Likewise.
9302         * config/dfp-bit.h: Likewise.
9303         * config/elfos.h: Likewise.
9304         * config/fixed-bit.c: Likewise.
9305         * config/fixed-bit.h: Likewise.
9306         * config/fp-bit.c: Likewise.
9307         * config/fp-bit.h: Likewise.
9308         * config/fr30/crti.asm: Likewise.
9309         * config/fr30/crtn.asm: Likewise.
9310         * config/fr30/lib1funcs.asm: Likewise.
9311         * config/freebsd-spec.h: Likewise.
9312         * config/frv/cmovd.c: Likewise.
9313         * config/frv/cmovh.c: Likewise.
9314         * config/frv/cmovw.c: Likewise.
9315         * config/frv/frvbegin.c: Likewise.
9316         * config/frv/frvend.c: Likewise.
9317         * config/frv/lib1funcs.asm: Likewise.
9318         * config/glibc-stdint.h: Likewise.
9319         * config/h8300/clzhi2.c: Likewise.
9320         * config/h8300/crti.asm: Likewise.
9321         * config/h8300/crtn.asm: Likewise.
9322         * config/h8300/ctzhi2.c: Likewise.
9323         * config/h8300/fixunssfsi.c: Likewise.
9324         * config/h8300/lib1funcs.asm: Likewise.
9325         * config/h8300/parityhi2.c: Likewise.
9326         * config/h8300/popcounthi2.c: Likewise.
9327         * config/i386/ammintrin.h: Likewise.
9328         * config/i386/att.h: Likewise.
9329         * config/i386/avxintrin.h: Likewise.
9330         * config/i386/biarch64.h: Likewise.
9331         * config/i386/bmmintrin.h: Likewise.
9332         * config/i386/cpuid.h: Likewise.
9333         * config/i386/cross-stdarg.h: Likewise.
9334         * config/i386/crtfastmath.c: Likewise.
9335         * config/i386/crtprec.c: Likewise.
9336         * config/i386/cygming-crtbegin.c: Likewise.
9337         * config/i386/cygming-crtend.c: Likewise.
9338         * config/i386/cygwin.asm: Likewise.
9339         * config/i386/emmintrin.h: Likewise.
9340         * config/i386/gmm_malloc.h: Likewise.
9341         * config/i386/gthr-win32.c: Likewise.
9342         * config/i386/i386.h: Likewise.
9343         * config/i386/immintrin.h: Likewise.
9344         * config/i386/linux-unwind.h: Likewise.
9345         * config/i386/linux64.h: Likewise.
9346         * config/i386/mm3dnow.h: Likewise.
9347         * config/i386/mmintrin-common.h: Likewise.
9348         * config/i386/mmintrin.h: Likewise.
9349         * config/i386/nmmintrin.h: Likewise.
9350         * config/i386/pmm_malloc.h: Likewise.
9351         * config/i386/pmmintrin.h: Likewise.
9352         * config/i386/smmintrin.h: Likewise.
9353         * config/i386/sol2-c1.asm: Likewise.
9354         * config/i386/sol2-ci.asm: Likewise.
9355         * config/i386/sol2-cn.asm: Likewise.
9356         * config/i386/sol2-gc1.asm: Likewise.
9357         * config/i386/tmmintrin.h: Likewise.
9358         * config/i386/unix.h: Likewise.
9359         * config/i386/w32-unwind.h: Likewise.
9360         * config/i386/wmmintrin.h: Likewise.
9361         * config/i386/x86-64.h: Likewise.
9362         * config/i386/x86intrin.h: Likewise.
9363         * config/i386/xmmintrin.h: Likewise.
9364         * config/ia64/crtbegin.asm: Likewise.
9365         * config/ia64/crtend.asm: Likewise.
9366         * config/ia64/crtfastmath.c: Likewise.
9367         * config/ia64/crti.asm: Likewise.
9368         * config/ia64/crtn.asm: Likewise.
9369         * config/ia64/fde-glibc.c: Likewise.
9370         * config/ia64/lib1funcs.asm: Likewise.
9371         * config/ia64/linux-unwind.h: Likewise.
9372         * config/ia64/quadlib.c: Likewise.
9373         * config/ia64/unwind-ia64.c: Likewise.
9374         * config/linux.h: Likewise.
9375         * config/m32c/m32c-lib1.S: Likewise.
9376         * config/m32c/m32c-lib2-trapv.c: Likewise.
9377         * config/m32c/m32c-lib2.c: Likewise.
9378         * config/m32r/initfini.c: Likewise.
9379         * config/m68hc11/larith.asm: Likewise.
9380         * config/m68hc11/m68hc11-crt0.S: Likewise.
9381         * config/m68k/cf.md: Likewise.
9382         * config/m68k/crti.s: Likewise.
9383         * config/m68k/crtn.s: Likewise.
9384         * config/m68k/lb1sf68.asm: Likewise.
9385         * config/m68k/linux-unwind.h: Likewise.
9386         * config/mcore/crti.asm: Likewise.
9387         * config/mcore/crtn.asm: Likewise.
9388         * config/mcore/lib1.asm: Likewise.
9389         * config/mips/linux-unwind.h: Likewise.
9390         * config/mips/loongson.h: Likewise.
9391         * config/mips/mips16.S: Likewise.
9392         * config/mmix/crti.asm: Likewise.
9393         * config/mmix/crtn.asm: Likewise.
9394         * config/pa/fptr.c: Likewise.
9395         * config/pa/hpux-unwind.h: Likewise.
9396         * config/pa/lib2funcs.asm: Likewise.
9397         * config/pa/linux-atomic.c: Likewise.
9398         * config/pa/linux-unwind.h: Likewise.
9399         * config/pa/milli64.S: Likewise.
9400         * config/pa/quadlib.c: Likewise.
9401         * config/pa/stublib.c: Likewise.
9402         * config/picochip/libgccExtras/adddi3.asm: Likewise.
9403         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
9404         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
9405         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
9406         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
9407         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
9408         * config/picochip/libgccExtras/divmod15.asm: Likewise.
9409         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
9410         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
9411         * config/picochip/libgccExtras/longjmp.asm: Likewise.
9412         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
9413         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
9414         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
9415         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
9416         * config/picochip/libgccExtras/setjmp.asm: Likewise.
9417         * config/picochip/libgccExtras/subdi3.asm: Likewise.
9418         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
9419         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
9420         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
9421         * config/rs6000/750cl.h: Likewise.
9422         * config/rs6000/altivec.h: Likewise.
9423         * config/rs6000/biarch64.h: Likewise.
9424         * config/rs6000/crtresfpr.asm: Likewise.
9425         * config/rs6000/crtresgpr.asm: Likewise.
9426         * config/rs6000/crtresxfpr.asm: Likewise.
9427         * config/rs6000/crtresxgpr.asm: Likewise.
9428         * config/rs6000/crtsavfpr.asm: Likewise.
9429         * config/rs6000/crtsavgpr.asm: Likewise.
9430         * config/rs6000/darwin-asm.h: Likewise.
9431         * config/rs6000/darwin-fallback.c: Likewise.
9432         * config/rs6000/darwin-fpsave.asm: Likewise.
9433         * config/rs6000/darwin-ldouble.c: Likewise.
9434         * config/rs6000/darwin-tramp.asm: Likewise.
9435         * config/rs6000/darwin-unwind.h: Likewise.
9436         * config/rs6000/darwin-vecsave.asm: Likewise.
9437         * config/rs6000/darwin-world.asm: Likewise.
9438         * config/rs6000/e500crtres32gpr.asm: Likewise.
9439         * config/rs6000/e500crtres64gpr.asm: Likewise.
9440         * config/rs6000/e500crtres64gprctr.asm: Likewise.
9441         * config/rs6000/e500crtrest32gpr.asm: Likewise.
9442         * config/rs6000/e500crtrest64gpr.asm: Likewise.
9443         * config/rs6000/e500crtresx32gpr.asm: Likewise.
9444         * config/rs6000/e500crtresx64gpr.asm: Likewise.
9445         * config/rs6000/e500crtsav32gpr.asm: Likewise.
9446         * config/rs6000/e500crtsav64gpr.asm: Likewise.
9447         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
9448         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
9449         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
9450         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
9451         * config/rs6000/eabi-ci.asm: Likewise.
9452         * config/rs6000/eabi-cn.asm: Likewise.
9453         * config/rs6000/eabi.asm: Likewise.
9454         * config/rs6000/linux-unwind.h: Likewise.
9455         * config/rs6000/linux64.h: Likewise.
9456         * config/rs6000/paired.h: Likewise.
9457         * config/rs6000/paired.md: Likewise.
9458         * config/rs6000/ppc64-fp.c: Likewise.
9459         * config/rs6000/ppu_intrinsics.h: Likewise.
9460         * config/rs6000/rs6000.h: Likewise.
9461         * config/rs6000/si2vmx.h: Likewise.
9462         * config/rs6000/sol-ci.asm: Likewise.
9463         * config/rs6000/sol-cn.asm: Likewise.
9464         * config/rs6000/spe.h: Likewise.
9465         * config/rs6000/spu2vmx.h: Likewise.
9466         * config/rs6000/sysv4.h: Likewise.
9467         * config/rs6000/tramp.asm: Likewise.
9468         * config/rs6000/vec_types.h: Likewise.
9469         * config/s390/linux-unwind.h: Likewise.
9470         * config/s390/tpf-unwind.h: Likewise.
9471         * config/score/crti.asm: Likewise.
9472         * config/score/crtn.asm: Likewise.
9473         * config/sh/crt1.asm: Likewise.
9474         * config/sh/crti.asm: Likewise.
9475         * config/sh/crtn.asm: Likewise.
9476         * config/sh/divtab-sh4-300.c: Likewise.
9477         * config/sh/divtab-sh4.c: Likewise.
9478         * config/sh/divtab.c: Likewise.
9479         * config/sh/lib1funcs-4-300.asm: Likewise.
9480         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
9481         * config/sh/lib1funcs.asm: Likewise.
9482         * config/sh/lib1funcs.h: Likewise.
9483         * config/sh/linux-atomic.asm: Likewise.
9484         * config/sh/linux-unwind.h: Likewise.
9485         * config/sh/shmedia.h: Likewise.
9486         * config/sh/sshmedia.h: Likewise.
9487         * config/sh/ushmedia.h: Likewise.
9488         * config/sparc/crtfastmath.c: Likewise.
9489         * config/sparc/linux-unwind.h: Likewise.
9490         * config/sparc/sol2-c1.asm: Likewise.
9491         * config/sparc/sol2-ci.asm: Likewise.
9492         * config/sparc/sol2-cn.asm: Likewise.
9493         * config/spu/divmodti4.c: Likewise.
9494         * config/spu/divv2df3.c: Likewise.
9495         * config/spu/float_disf.c: Likewise.
9496         * config/spu/float_unsdidf.c: Likewise.
9497         * config/spu/float_unsdisf.c: Likewise.
9498         * config/spu/float_unssidf.c: Likewise.
9499         * config/spu/mfc_multi_tag_release.c: Likewise.
9500         * config/spu/mfc_multi_tag_reserve.c: Likewise.
9501         * config/spu/mfc_tag_release.c: Likewise.
9502         * config/spu/mfc_tag_reserve.c: Likewise.
9503         * config/spu/mfc_tag_table.c: Likewise.
9504         * config/spu/multi3.c: Likewise.
9505         * config/spu/spu_internals.h: Likewise.
9506         * config/spu/spu_intrinsics.h: Likewise.
9507         * config/spu/spu_mfcio.h: Likewise.
9508         * config/spu/vec_types.h: Likewise.
9509         * config/spu/vmx2spu.h: Likewise.
9510         * config/stormy16/stormy16-lib2.c: Likewise.
9511         * config/svr4.h: Likewise.
9512         * config/sync.c: Likewise.
9513         * config/v850/lib1funcs.asm: Likewise.
9514         * config/vxlib-tls.c: Likewise.
9515         * config/vxlib.c: Likewise.
9516         * config/vxworks-dummy.h: Likewise.
9517         * config/xtensa/crti.asm: Likewise.
9518         * config/xtensa/crtn.asm: Likewise.
9519         * config/xtensa/ieee754-df.S: Likewise.
9520         * config/xtensa/ieee754-sf.S: Likewise.
9521         * config/xtensa/lib1funcs.asm: Likewise.
9522         * config/xtensa/lib2funcs.S: Likewise.
9523         * config/xtensa/linux-unwind.h: Likewise.
9524         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
9525         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
9526         * coretypes.h: Likewise.
9527         * crtstuff.c: Likewise.
9528         * defaults.h: Likewise.
9529         * dwarf2.h: Likewise.
9530         * emutls.c: Likewise.
9531         * gbl-ctors.h: Likewise.
9532         * gcov-io.h: Likewise.
9533         * ginclude/float.h: Likewise.
9534         * ginclude/iso646.h: Likewise.
9535         * ginclude/stdarg.h: Likewise.
9536         * ginclude/stdbool.h: Likewise.
9537         * ginclude/stddef.h: Likewise.
9538         * ginclude/stdfix.h: Likewise.
9539         * ginclude/stdint-gcc.h: Likewise.
9540         * ginclude/tgmath.h: Likewise.
9541         * gthr-aix.h: Likewise.
9542         * gthr-dce.h: Likewise.
9543         * gthr-gnat.c: Likewise.
9544         * gthr-gnat.h: Likewise.
9545         * gthr-lynx.h: Likewise.
9546         * gthr-mipssde.h: Likewise.
9547         * gthr-nks.h: Likewise.
9548         * gthr-posix.c: Likewise.
9549         * gthr-posix.h: Likewise.
9550         * gthr-posix95.h: Likewise.
9551         * gthr-rtems.h: Likewise.
9552         * gthr-single.h: Likewise.
9553         * gthr-solaris.h: Likewise.
9554         * gthr-tpf.h: Likewise.
9555         * gthr-vxworks.h: Likewise.
9556         * gthr-win32.h: Likewise.
9557         * gthr.h: Likewise.
9558         * libgcc2.c: Likewise.
9559         * libgcc2.h: Likewise.
9560         * libgcov.c: Likewise.
9561         * tsystem.h: Likewise.
9562         * typeclass.h: Likewise.
9563         * unwind-c.c: Likewise.
9564         * unwind-compat.h: Likewise.
9565         * unwind-dw2-fde-compat.c: Likewise.
9566         * unwind-dw2-fde-darwin.c: Likewise.
9567         * unwind-dw2-fde-glibc.c: Likewise.
9568         * unwind-dw2-fde.c: Likewise.
9569         * unwind-dw2-fde.h: Likewise.
9570         * unwind-dw2.c: Likewise.
9571         * unwind-dw2.h: Likewise.
9572         * unwind-generic.h: Likewise.
9573         * unwind-pe.h: Likewise.
9574         * unwind-sjlj.c: Likewise.
9575         * unwind.inc: Likewise.
9576         * config/arm/neon-gen.ml: Change generated copyright header to
9577         refer to version 3 of the GNU General Public License with
9578         version 3.1 of the GCC Runtime Library Exception and to point
9579         readers at the COPYING3 and COPYING3.RUNTIME files and the
9580         FSF's license web page.
9581         * config/arm/arm_neon.h: Regenerate.
9583 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
9585         * config/cris/cris.md: Change copyright header to refer to version
9586         3 of the GNU General Public License.
9587         * doc/install.texi2html: Change copyright header to refer to version
9588         3 of the GNU General Public License and to point readers at the
9589         COPYING3 file and the FSF's license web page.
9590         * config/vax/linux.h: Likewise.
9592 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
9594         * config/i386/i386.md (cmpcc): New.
9595         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
9596         (sync_compare_and_swap_cc*): Delete.
9598         * config/s390/s390.c (s390_compare_emitted): Remove.
9599         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
9600         s390_compare_emitted used to be handled.  Assert that modes match.
9601         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
9602         refer to sync_compare_and_swap_ccsi.
9603         * config/s390/s390.h (s390_compare_emitted): Remove.
9604         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
9605         instead of s390_compare_emitted.
9606         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
9607         instead of s390_compare_emitted.
9608         * config/s390/s390.md (cmpcc): New.
9609         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
9610         CC_REGNUM, do not pretend it's set.
9611         (sync_compare_and_swap_cc*): Delete.
9612         * config/s390/predicates.md (cc_reg_operand): New.
9614         * expr.c (sync_compare_and_swap_cc): Delete.
9615         * optabs.h (sync_compare_and_swap_cc): Delete.
9616         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
9617         is being used with can_compare_p.
9618         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
9619         (find_cc_set): New.
9620         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
9621         look for a MODE_CC set instead.  Use emit_store_flag.
9622         (expand_compare_and_swap_loop): Likewise, with some additional
9623         complication to avoid a force_reg when useless.  Use
9624         emit_cmp_and_jump_insns.
9625         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
9626         * doc/md.texi (sync_compare_and_swap_cc): Merge with
9627         sync_compare_and_swap documentation.
9629 2009-04-09  Jan Hubicka  <jh@suse.cz>
9631         * except.c (find_prev_try): Break out from ....
9632         (duplicate_eh_regions): ... here; properly update prev_try pointers
9633         when duplication part of tree.
9634         (dump_eh_tree): Improve dumping.
9635         (verify_eh_region): New.
9636         (verify_eh_tree): Use it.
9638 2009-04-06  Richard Guenther  <rguenther@suse.de>
9640         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
9641         &ARRAY addresses by adjusting their types and prepending
9642         a conversion.
9643         * tree-cfg.c (verify_gimple_assign_single): Verify that
9644         addresses are correct.
9646 2009-04-09  Richard Guenther  <rguenther@suse.de>
9648         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
9649         indices into an array reference if possible.
9650         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
9651         Fold POINTER_PLUS_EXPR statements with invariant address.
9653 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
9655         PR target/39634
9656         * config.gcc (powerpc64-*-linux*): Always build biarch.
9658 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
9660         PR c/39613
9661         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
9662         it and pedwarn if this results in an INTEGER_CST.
9664 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9666         * doc/install.texi: Update minimum GMP version.  Remove obsolete
9667         text in MPFR section.
9669 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
9671         * dwarf2out.c (class_scope_p): New static inline.
9672         (class_or_namespace_scope_p): Use it.
9673         (gen_variable_die): Use DW_TAG_member tag for static data member
9674         declarations instead of DW_TAG_variable.
9676         PR middle-end/39573
9677         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
9678         variables.
9680 2009-04-08  Richard Guenther  <rguenther@suse.de>
9682         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
9683         valueize random data.
9685 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
9687         * config.gcc (aix tm_file):  Add aix-stdint.h.
9688         (aix tm clause use_gcc_stdint):  Set to wrap.
9689         * config/rs6000/aix-stdint.h:  New file.
9691 2009-04-08  Richard Guenther  <rguenther@suse.de>
9693         PR middle-end/36291
9694         * tree-dfa.c (add_referenced_var): Do not recurse into
9695         global initializers.
9696         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
9697         exposed variables.
9698         (fold_const_aggregate_ref): Likewise.
9700 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
9702         * recog.c (ordered_comparison_operator): New.
9703         * gensupport.c (std_preds): Add it.
9704         * doc/md.texi (Machine-Independent Predicates): Document it.
9706 2009-04-08  Jan Hubicka  <jh@suse.cz>
9708         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
9709         * function.h (rtl_eh): Remove exception_handler_label_map.
9710         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
9711         remove_exception_handler_label, for_each_eh_label_1): Remove.
9712         (rtl_remove_unreachable_regions): Remove.
9713         (convert_from_eh_region_ranges): Do not remove unreachable regions.
9714         (find_exception_handler_labels): Don't build the hashtable.
9715         (maybe_remove_eh_handler): Remove.
9716         (for_each_eh_label): Rewrite to walk the tree.
9717         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
9718         * except.h (maybe_remove_eh_handler): Remove.
9719         * passes.c (init_optimization_passes): Schedule second EH cleanup
9720         before out-of-ssa.
9721         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
9722         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
9724 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
9726         * genoutput.c (validate_optab_operands): New.
9727         (gen_insn, gen_expand): Call it.
9729         * genflags.c (gen_insn): Detect misused iterators.
9730         (main): Pass line_no to gen_insn, exit with status 1 on error.
9732         * genextract.c (line_no): Make global.
9733         (VEC_safe_set_locstr): Change assertion to error message.
9734         (main): Exit with status 1 on error.
9736 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
9738         PR c/39614
9739         PR c/39673
9740         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
9741         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
9742         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
9743         * c-convert.c (convert): Do not call fold on results of conversion
9744         functions when the result is a C_MAYBE_CONST_EXPR.
9745         * c-parser.c (c_parser_postfix_expression): Do not fold condition
9746         of __builtin_choose_expr.
9747         * c-typeck.c (remove_c_maybe_const_expr): New.
9748         (build_unary_op, build_conditional_expr, build_compound_expr,
9749         build_binary_op, c_objc_common_truthvalue_conversion): Call
9750         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
9751         integer operands.
9753 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
9755         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
9756         CODE to produce a new one. Add a prototype to use fold_convert_const
9758 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
9760         PR bootstrap/39660
9761         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
9762         mix declarations and code.
9764 2009-04-08  Ben Elliston  <bje@au.ibm.com>
9766         * gcc.c: Replace `CC' with `GCC' throughout.
9768 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
9770         * doc/invoke.texi: Document Atom support.
9772 2009-04-07  Jason Merrill  <jason@redhat.com>
9774         PR c++/25185
9775         * c-common.h, c-common.c: Add flag_pretty_templates.
9776         * c-opts.c (c_common_handle_option): Set it.
9777         * c.opt: Add -fno-pretty-templates.
9778         * doc/invoke.texi (C++ Dialect Options): Likewise.
9780 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
9782         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
9783         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
9784         (ia64_expand_builtin): Likewise.
9786 2009-04-07  Martin Jambor  <mjambor@suse.cz>
9788         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
9789         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
9790         ADDR_EXPRS are include too.
9792 2009-04-07  Richard Guenther  <rguenther@suse.de>
9794         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
9795         decls are only used if passes as parameters or if they are
9796         local statics and the call is not to a builtin.
9797         (call_may_clobber_ref_p_1): Likewise.
9799 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
9801         * expr.c (do_store_flag): Remove last argument.  Simplify code
9802         to avoid duplication of tests already done by can_compare_p.
9803         (expand_expr_real_1): Adjust caller.
9805 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
9807         * optabs.c (can_compare_p): Test the predicate of a
9808         cbranch and cstore pattern.
9810 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
9812         * expr.c (convert_move): Use emit_store_flag instead of
9813         "emulating" it.
9815 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
9817         * config/i386/i386.c (ix86_compare_emitted): Remove.
9818         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
9819         ix86_compare_op0 like ix86_compare_emitted used to be handled.
9820         * config/i386/i386.h (ix86_compare_emitted): Remove.
9821         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
9822         instead of ix86_compare_emitted.
9823         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
9825 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
9827         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
9828         Add t-sysroot-suffix to tmake_file.
9829         * config/print-sysroot-suffix.sh: New file.
9830         * config/t-sysroot-suffix: New file.
9832 2009-04-07  Ben Elliston  <bje@au.ibm.com>
9834         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
9835         as the latter produces a warning when the target does not support
9836         infinity.
9838 2009-04-07  Ben Elliston  <bje@au.ibm.com>
9840         * dfp.c: Replace type punning assignments with memcpy throughout.
9841         * Makefile.in (dfp.o-warn): Remove.
9843 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
9845         PR target/39634
9846         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
9847         Include soft-fp/t-softfp after rs6000/t-linux64.
9849 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
9851         * stor-layout.c (set_sizetype): Use the full precision of their
9852         machine mode for bitsize types.
9854 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9856         * config/i386/i386.md: Revert 2 accidental checkins.
9858 2009-04-06  Joey Ye  <joey.ye@intel.com>
9859             Xuepeng Guo  <xuepeng.guo@intel.com>
9860             H.J. Lu  <hongjiu.lu@intel.com>
9862         Atom pipeline model, tuning and insn selection.
9863         * config.gcc (atom): Add atom config options and target.
9865         * config/i386/atom.md: New.
9867         * config/i386/i386.c (atom_cost): New cost.
9868         (m_ATOM): New macro flag.
9869         (initial_ix86_tune_features): Set m_ATOM.
9870         (x86_accumulate_outgoing_args): Likewise.
9871         (x86_arch_always_fancy_math_387): Likewise.
9872         (processor_target): Add Atom cost.
9873         (cpu_names): Add Atom cpu name.
9874         (override_options): Set Atom ISA.
9875         (ix86_issue_rate): New case PROCESSOR_ATOM.
9876         (ix86_adjust_cost): Likewise.
9878         * config/i386/i386.h (TARGET_ATOM): New target macro.
9879         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
9880         (TARGET_OPT_AGU): New target option.
9881         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
9882         (processor_type): Add PROCESSOR_ATOM.
9884         * config/i386/i386.md (cpu): Add new value "atom".
9885         (use_carry, movu): New attr.
9886         (atom.md): Include atom.md.
9887         (adddi3_carry_rex64): Set attr "use_carry".
9888         (addqi3_carry): Likewise.
9889         (addhi3_carry): Likewise.
9890         (addsi3_carry): Likewise.
9891         (*addsi3_carry_zext): Likewise.
9892         (subdi3_carry_rex64): Likewise.
9893         (subqi3_carry): Likewise.
9894         (subhi3_carry): Likewise.
9895         (subsi3_carry): Likewise.
9896         (x86_movdicc_0_m1_rex64): Likewise.
9897         (*x86_movdicc_0_m1_se): Likewise.
9898         (x86_movsicc_0_m1): Likewise.
9899         (*x86_movsicc_0_m1_se): Likewise.
9900         (*adddi_1_rex64): Emit add insn as much as possible.
9901         (*addsi_1): Likewise.
9902         (return_internal): Set atom_unit.
9903         (return_internal_long): Likewise.
9904         (return_pop_internal): Likewise.
9905         (*rcpsf2_sse): Set atom_sse_attr attr.
9906         (*qrt<mode>2_sse): Likewise.
9907         (*prefetch_sse): Likewise.
9909         * config/i386/i386-c.c (ix86_target_macros_internal): New case
9910         PROCESSOR_ATOM.
9911         (ix86_target_macros_internal): Likewise.
9913         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
9914         (*prefetch_sse_rex): Likewise.
9915         (sse_rcpv4sf2): Likewise.
9916         (sse_vmrcpv4sf2): Likewise.
9917         (sse_sqrtv4sf2): Likewise.
9918         (<sse>_vmsqrt<mode>2): Likewise.
9919         (sse_ldmxcsr): Likewise.
9920         (sse_stmxcsr): Likewise.
9921         (*sse_sfence): Likewise.
9922         (sse2_clflush): Likewise.
9923         (*sse2_mfence): Likewise.
9924         (*sse2_lfence): Likewise.
9925         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
9926         (<sse>_movup<ssemodesuffixf2c>): Likewise.
9927         (avx_movdqu<avxmodesuffix>): Likewise.
9928         (avx_lddqu<avxmodesuffix>): Likewise.
9929         (sse2_movntv2di): Change attr "type" to "ssemov".
9930         (sse2_movntsi): Likewise.
9931         (rsqrtv8sf2): Change attr "type" to "sseadd".
9932         (sse3_addsubv2df3): Set attr "atom_unit".
9933         (sse3_h<plusminus_insn>v4sf3): Likewise.
9934         (*sse2_pmaddwd): Likewise.
9935         (*vec_extractv2di_1_rex64): Likewise.
9936         (*vec_extractv2di_1_avx): Likewise.
9937         (sse2_psadbw): Likewise.
9938         (ssse3_phaddwv8hi3): Likewise.
9939         (ssse3_phaddwv4hi3): Likewise.
9940         (ssse3_phadddv4si3): Likewise.
9941         (ssse3_phadddv2si3): Likewise.
9942         (ssse3_phaddswv8hi3): Likewise.
9943         (ssse3_phaddswv4hi3): Likewise.
9944         (ssse3_phsubwv8hi3): Likewise.
9945         (ssse3_phsubwv4hi3): Likewise.
9946         (ssse3_phsubdv4si3): Likewise.
9947         (ssse3_phsubdv2si3): Likewise.
9948         (ssse3_phsubswv8hi3): Likewise.
9949         (ssse3_phsubswv4hi3): Likewise.
9950         (ssse3_pmaddubsw128): Likewise.
9951         (sse3_pmaddubsw: Likewise.
9952         (ssse3_palignrti): Likewise.
9953         (ssse3_palignrdi): Likewise.
9955 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
9957         * doc/install.texi (Specific): Fix two cross-references to MinGW.
9959 2009-04-06  Richard Guenther  <rguenther@suse.de>
9961         PR tree-optimization/28868
9962         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
9963         of which PHI results we inserted.
9964         (insert_into_preds_of_block): Record inserted PHIs.
9965         (eliminate): Eliminate redundant PHI nodes.
9966         (init_pre): Init inserted_phi_names.
9968 2009-04-06  Richard Guenther  <rguenther@suse.de>
9970         PR tree-optimization/39643
9971         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
9972         IMAGPART_EXPRs of complex constants.
9973         (execute_fold_all_builtins): If we folded a call queue
9974         TODO_update_address_taken.
9976 2009-04-06  Jan Hubicka  <jh@suse.cz>
9978         PR middle-end/39659
9979         * except.c (remove_unreachable_regions): Propagate may_contain_throw
9980         flag.
9982 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
9984         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
9985         delay slot.
9986         (ic_invalidate_array): Likewise.
9988 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
9990         * calls.c (emit_library_call_value_1): Fix a problem with parameter
9991         alignment for library calls.
9993 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
9995         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
9996         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
9997         * config/i386/mingw-stdint.h:  New file.
9999 2009-04-05  Richard Guenther  <rguenther@suse.de>
10001         PR tree-optimization/39648
10002         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
10003         our &A vs. &A[0] IL deficiencies.
10005 2009-04-04  Jan Hubicka  <jh@suse.cz>
10007         * except.c (sjlj_find_directly_reachable_regions): Be ready for
10008         removed toplevel regions.
10009         (sjlj_mark_call_sites): Likewise.
10011 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
10013         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
10014         (cygwin tm clause use_gcc_stdint):  Set to wrap.
10015         * config/i386/cygwin-stdint.h:  New file.
10017 2009-04-04  Richard Guenther  <rguenther@suse.de>
10019         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
10020         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
10021         single-argument PHIs if we are in loop-closed SSA form.
10022         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
10023         for the pre-condition.
10024         (slpeel_tree_peel_loop_to_edge): Likewise.
10025         (vect_build_loop_niters): Take an optional sequence to append stmts.
10026         (vect_generate_tmps_on_preheader): Likewise.
10027         (vect_do_peeling_for_loop_bound): Take extra guards for the
10028         pre-condition.
10029         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
10030         the cost model check.
10031         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
10032         guards if we are going to peel.  Do not apply versioning in that case.
10033         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
10034         (vect_do_peeling_for_loop_bound): Likewise.
10035         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
10036         loop bound only record extra pre-conditions, do not apply loop
10037         versioning.
10039 2009-04-04  Richard Guenther  <rguenther@suse.de>
10041         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
10042         renaming code.
10044 2009-04-04  Jan Hubicka  <jh@suse.cz>
10046         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
10047         last_basic_block for size of bb->index indexed array.
10048         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
10049         compute_out, link_btr_uses, build_btr_def_use_webs,
10050         build_btr_def_use_webs, migrate_btr_defs): Likewise.
10052 2009-04-04  Jan Hubicka  <jh@suse.cz>
10054         * except.c (remove_eh_handler_and_replace): Break out from ...
10055         (remove_eh_handler): ... here.
10056         (bring_to_root): New function.
10057         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
10058         handled ones, bring others to root of tree.
10060 2009-04-04  Jan Hubicka  <jh@suse.cz>
10062         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
10063         (all_phis_safe_to_merge): New function.
10064         (update_info): New structure.
10065         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
10066         (cleanup_empty_eh): Update SSA if possible.
10068 2009-04-04  Richard Guenther  <rguenther@suse.de>
10070         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
10071         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
10072         (append_vuse): Likewise.
10074 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
10076         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
10077         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
10078         instead of REG_UNSAVED for DW_CFA_undefined.
10079         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
10080         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
10081         outermost frame.
10083 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
10085         PR target/39501
10086         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
10087         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
10088         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
10090 2009-04-04  Richard Guenther  <rguenther@suse.de>
10092         PR tree-optimization/8781
10093         PR tree-optimization/37892
10094         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
10095         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
10096         (valueize_refs): Call it for *& valueizations.
10097         (shared_reference_ops_from_ref): Rename to ...
10098         (valueize_shared_reference_ops_from_ref): ... this and valueize.
10099         (shared_reference_ops_from_call): Rename to ...
10100         (valueize_shared_reference_ops_from_call): ... this and valueize.
10101         (vn_reference_lookup): Update.
10102         (visit_reference_op_call): Likewise.
10103         * tree-ssa-pre.c (phi_translate_1): Fold *&.
10104         (eliminate): Value-replace the call address in call statements.
10106 2009-04-04  Richard Guenther  <rguenther@suse.de>
10108         PR tree-optimization/39636
10109         * tree-ssa-forwprop.c
10110         (forward_propagate_addr_into_variable_array_index): Check for
10111         GIMPLE_ASSIGN before accessing the rhs code.
10113 2009-04-03  Jason Merrill  <jason@redhat.com>
10115         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
10117 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
10119         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
10120         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
10121         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
10122         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
10123         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
10124         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
10125         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
10126         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
10127         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
10128         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
10129         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
10130         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
10131         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
10132         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
10133         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
10134         Use fr_reg_or_fp01_operand instead of fr_register_operand
10136         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
10137         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
10138         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
10140 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
10142         PR rtl-optimization/39607
10143         PR rtl-optimization/39631
10145         Revert:
10147         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
10148         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
10149         instead of DF_LR_OUT.
10150         * ira-lives.c (process_bb_node_lives): Ditto.
10151         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
10152         instead of DF_LR_{OUT,IN}.
10153         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
10154         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
10156 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
10158         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
10159         (execute_lower_omp): Always run but take the short way out if -fopenmp
10160         is not given.
10161         (gate_lower_omp): Remove, forcing the pass manager to always run the
10162         pass and always set PROP_gimple_lomp.
10163         (pass_lower_omp): Remove gate function.
10164         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
10165         PROP_trees.  Instead, require it.
10166         * ipa-cp.c (pass_ipa_cp): Likewise.
10167         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
10168         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
10169         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
10170         and PROP_gimple_leh.
10172 2009-04-03  Richard Guenther  <rguenther@suse.de>
10174         PR middle-end/13146
10175         PR tree-optimization/23940
10176         PR tree-optimization/33237
10177         PR middle-end/33974
10178         PR middle-end/34093
10179         PR tree-optimization/36201
10180         PR tree-optimization/36230
10181         PR tree-optimization/38049
10182         PR tree-optimization/38207
10183         PR tree-optimization/38230
10184         PR tree-optimization/38301
10185         PR tree-optimization/38585
10186         PR middle-end/38895
10187         PR tree-optimization/38985
10188         PR tree-optimization/39299
10189         * tree-ssa-structalias.h: Remove.
10190         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
10191         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
10192         (struct vuse_element_d): Remove.
10193         (struct vuse_vec_d): Likewise.
10194         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
10195         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
10196         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
10197         VUSE_ELEMENT_VAR): Likewise.
10198         (struct voptype_d): Likewise.
10199         (NUM_VOP_FREE_BUCKETS): Likewise.
10200         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
10201         (struct stmt_operands_d): Remove.
10202         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
10203         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
10204         VDEF_NUM, VDEF_VECT): Likewise.
10205         (copy_virtual_operands): Remove.
10206         (operand_build_cmp): Likewise.
10207         (create_ssa_artificial_load_stmt): Likewise.
10208         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
10209         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
10210         vuse_index and mayuse_index members.  Pack and move done and iter_type
10211         members to the front.
10212         (SSA_OP_VMAYUSE): Remove.
10213         (SSA_OP_VIRTUAL_USES): Adjust.
10214         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
10215         (unlink_stmt_vdef): Declare.
10216         (add_to_addressable_set): Remove.
10217         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
10218         (vrp_visit_stmt): Likewise.
10219         * doc/tree-ssa.texi (Alias analysis): Update.
10220         * doc/invoke.texi (max-aliased-vops): Remove docs.
10221         (avg-aliased-vops): Likewise.
10222         * tree-into-ssa.c (syms_to_rename): Remove.
10223         (need_to_update_vops_p): Likewise.
10224         (need_to_initialize_update_ssa_p): Rename to ...
10225         (update_ssa_initialized_fn): ... this.  Track function we are
10226         initialized for.
10227         (symbol_marked_for_renaming): Simplify.
10228         (add_new_name_mapping): Do not set need_to_update_vops_p.
10229         (dump_currdefs): Use SYMS_TO_RENAME.
10230         (rewrite_update_stmt): Always walk all uses/defs.
10231         (dump_update_ssa): Adjust.
10232         (init_update_ssa): Take function argument.  Track what we are
10233         initialized for.
10234         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
10235         (create_new_def_for): Initialize for cfun, assert we are initialized
10236         for cfun.
10237         (mark_sym_for_renaming): Simplify.
10238         (mark_set_for_renaming): Do not initialize update-ssa.
10239         (need_ssa_update_p): Simplify.  Take function argument.
10240         (name_mappings_registered_p): Assert we ask for the correct function.
10241         (name_registered_for_update_p): Likewise.
10242         (ssa_names_to_replace): Likewise.
10243         (release_ssa_name_after_update_ssa): Likewise.
10244         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
10245         (dump_decl_set): Do not print a newline.
10246         (debug_decl_set): Do it here.
10247         (dump_update_ssa): And here.
10248         * tree-ssa-loop-im.c (move_computations): Adjust.
10249         (movement_possibility): Likewise.
10250         (determine_max_movement): Likewise.
10251         (gather_mem_refs_stmt): Likewise.
10252         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
10253         or NAME_MEMORY_TAG.
10254         * tree-complex.c (update_all_vops): Remove.
10255         (expand_complex_move): Adjust.
10256         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
10257         Simplify test for memory referencing statement.  Exclude
10258         non-invariant ADDR_EXPRs.
10259         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
10260         * tree-loop-distribution.c (generate_memset_zero): Adjust.
10261         (rdg_flag_uses): Likewise.
10262         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
10263         related code.
10264         (tree_optimize_tail_calls_1): Also split the
10265         edge from the entry block if we have degenerate PHI nodes in
10266         the first basic block.
10267         * tree.c (init_ttree): Remove memory-tag related code.
10268         (tree_code_size): Likewise.
10269         (tree_node_structure): Likewise.
10270         (build7_stat): Re-write to be build6_stat.
10271         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
10272         (SSA_VAR_P): Adjust.
10273         (struct tree_memory_tag): Remove.
10274         (struct tree_memory_partition_tag): Likewise.
10275         (union tree_node): Adjust.
10276         (build7): Re-write to be build6.
10277         * tree-pass.h (pass_reset_cc_flags): Remove.
10278         (TODO_update_address_taken): New flag.
10279         (pass_simple_dse): Remove.
10280         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
10281         * params.h (MAX_ALIASED_VOPS): Remove.
10282         (AVG_ALIASED_VOPS): Likewise.
10283         * omp-low.c (expand_omp_taskreg): Update SSA form.
10284         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
10285         aliases the lhs in a copy stmt.
10286         * tree-ssa-dse.c (struct address_walk_data): Remove.
10287         (memory_ssa_name_same): Likewise.
10288         (memory_address_same): Likewise.
10289         (get_kill_of_stmt_lhs): Likewise.
10290         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
10291         unused stores.  Look through PHI nodes into post-dominated regions.
10292         (dse_optimize_stmt): Simplify.  Properly remove stores.
10293         (tree_ssa_dse): Compute dominators.
10294         (execute_simple_dse): Remove.
10295         (pass_simple_dse): Likewise.
10296         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
10297         gimple_loaded_syms and gimple_stored_syms computation.
10298         * toplev.c (dump_memory_report): Dump alias and pta stats.
10299         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
10300         (vn_reference_eq): Likewise.
10301         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
10302         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
10303         valueize_vuses): Remove.
10304         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
10305         (get_def_ref_stmt_vuse): ... this.
10306         (vn_reference_lookup_2): New function.
10307         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
10308         walking equivalent vuses.  Simplify.
10309         (vn_reference_lookup): Likewise.
10310         (vn_reference_insert): Likewise.
10311         (vn_reference_insert_pieces): Likewise.
10312         (visit_reference_op_call): Simplify.
10313         (visit_reference_op_load): Likewise.
10314         (visit_reference_op_store): Likewise.
10315         (init_scc_vn): Remove shared_lookup_vuses initialization.
10316         (free_scc_vn): Remove shared_lookup_vuses freeing.
10317         (sort_vuses, sort_vuses_heap): Remove.
10318         (get_ref_from_reference_ops): Export.
10319         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
10320         vector with single vuse pointer.
10321         (vn_reference_lookup_pieces, vn_reference_lookup,
10322         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
10323         (shared_vuses_from_stmt): Remove.
10324         (get_ref_from_reference_ops): Declare.
10325         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
10326         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
10327         memory-tag related code.
10328         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
10329         (likely_value): Add comment, skip static-chain of call statements.
10330         (surely_varying_stmt_p): Adjust.
10331         (gimplify_and_update_call_from_tree): Likewise.
10332         (execute_fold_all_builtins): Do not rebuild alias info.
10333         (gimplify_and_update_call_from_tree): Properly update VOPs.
10334         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
10335         (copy_ref_info): Remove memory-tag related code.
10336         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
10337         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
10338         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
10339         computation.
10340         * tree-ssa-dom.c (gimple_p): Remove typedef.
10341         (eliminate_redundant_computations): Adjust.
10342         (record_equivalences_from_stmt): Likewise.
10343         (avail_expr_hash): Likewise.
10344         (avail_expr_eq): Likewise.
10345         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
10346         (stmt_makes_single_load): Likewise.
10347         (stmt_makes_single_store): Likewise.
10348         * tree-ssa-alias.c: Rewrite completely.
10349         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
10350         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
10351         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
10352         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
10353         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
10354         Remove public functions.
10355         (pass_reset_cc_flags): Remove.
10356         (pass_build_alias): Move ...
10357         * tree-ssa-structalias.c (pass_build_alias): ... here.
10358         * tree-ssa-alias.c (may_be_aliased): Move ...
10359         * tree-flow-inline.h (may_be_aliased): ... here.
10360         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
10361         count_uses_and_derefs): Move ...
10362         * gimple.c: ... here.
10363         * gimple.h (count_uses_and_derefs): Declare.
10364         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
10365         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
10366         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
10367         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
10368         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
10369         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
10370         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
10371         New functions.
10372         * tree-dfa.c (refs_may_alias_p): Move ...
10373         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
10374         * tree-ssa-alias.h: New file.
10375         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
10376         (statement_sink_location): Likewise.
10377         * opts.c (decode_options): Do not adjust max-aliased-vops or
10378         avg-aliased-vops values.
10379         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
10380         (TV_CALL_CLOBBER): Likewise.
10381         (TV_FLOW_SENSITIVE): Likewise.
10382         (TV_FLOW_INSENSITIVE): Likewise.
10383         (TV_MEMORY_PARTITIONING): Likewise.
10384         (TV_ALIAS_STMT_WALK): New timevar.
10385         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
10386         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
10387         (get_address_description): Remove memory-tag related code.
10388         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
10389         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
10390         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
10391         and immediate uses in statements.  Document.
10392         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
10393         (dump_symbols): Remove.
10394         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
10395         * alias.c (get_deref_alias_set): New function split out from ...
10396         (get_alias_set): ... here.
10397         * alias.h (get_deref_alias_set): Declare.
10398         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
10399         type parameter.  Remove restrict pointer handling.  Create a
10400         ref-all pointer in case type-based alias sets do not conflict.
10401         (vect_analyze_data_refs): Remove SMT related code.
10402         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
10403         (vectorizable_load): Likewise.
10404         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
10405         (DR_SYMBOL_TAG, DR_VOPS): Remove.
10406         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
10407         Ignore vops and SMTs.
10408         (dr_analyze_alias): Likewise..
10409         (free_data_ref): Likewise.
10410         (create_data_ref): Likewise.
10411         (analyze_all_data_dependences): Likewise.
10412         (get_references_in_stmt): Adjust.
10413         * tree-flow-inline.h (gimple_aliases_computed_p,
10414         gimple_addressable_vars, gimple_call_clobbered_vars,
10415         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
10416         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
10417         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
10418         gimple_mem_ref_stats): Remove.
10419         (gimple_vop): New function.
10420         (op_iter_next_use): Remove vuses and mayuses cases.
10421         (op_iter_next_def): Remove vdefs case.
10422         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
10423         (clear_and_done_ssa_iter): Do not set removed fields.
10424         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
10425         Assert we are not iterating over vuses or vdefs if not also
10426         iterating over uses or defs.
10427         (op_iter_init_use): Likewise.
10428         (op_iter_init_def): Likewise.
10429         (op_iter_next_vdef): Remove.
10430         (op_iter_next_mustdef): Likewise.
10431         (op_iter_init_vdef): Likewise.
10432         (compare_ssa_operands_equal): Likewise.
10433         (link_use_stmts_after): Handle vuse operand.
10434         (is_call_used): Use is_call_clobbered.
10435         (is_call_clobbered): Global variables are always call clobbered,
10436         query the call-clobbers bitmap.
10437         (mark_call_clobbered): Ignore global variables.
10438         (clear_call_clobbered): Likewise.
10439         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
10440         virtual operands sanity check.
10441         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
10442         Remove.
10443         (TARGET_MEM_REF): Remove TMR_TAG operand.
10444         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
10445         Remove call-clobber related code.
10446         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
10447         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
10448         partitions or escape reason.
10449         (get_single_def_stmt, get_single_def_stmt_from_phi,
10450         get_single_def_stmt_with_phi): Remove.
10451         (dump_referenced_vars): Tidy.
10452         (get_ref_base_and_extent): Allow bare decls.
10453         (collect_dfa_stats): Adjust.
10454         * graphite.c (rename_variables_in_stmt): Adjust.
10455         (graphite_copy_stmts_from_block): Likewise.
10456         (translate_clast): Likewise.
10457         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
10458         (EXPR_DIES): New.
10459         (translate_vuse_through_block): Use the oracle.
10460         (phi_translate_1): Adjust.
10461         (value_dies_in_block_x): Use the oracle.  Cache the outcome
10462         in EXPR_DIES.
10463         (valid_in_sets): Check if the VUSE for
10464         a REFERENCE is available.
10465         (eliminate): Do not remove stmts during elimination,
10466         instead queue and remove them afterwards.
10467         (do_pre): Do not rebuild alias info.
10468         (pass_pre): Run TODO_rebuild_alias before PRE.
10469         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
10470         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
10471         (mark_all_v_defs_stmt): Remove.
10472         (mark_all_v_defs_seq): Adjust.
10473         (sra_replace): Likewise.
10474         (scalarize_use): Likewise.
10475         (scalarize_copy): Likewise.
10476         (scalarize_init): Likewise.
10477         (scalarize_ldst): Likewise.
10478         (todoflags): Remove.
10479         (tree_sra): Do not rebuild alias info.
10480         (tree_sra_early): Adjust.
10481         (pass_sra): Run TODO_update_address_taken before SRA.
10482         * tree-predcom.c (set_alias_info): Remove.
10483         (prepare_initializers_chain): Do not call it.
10484         (mark_virtual_ops_for_renaming): Adjust.
10485         (mark_virtual_ops_for_renaming_list): Remove.
10486         (initialize_root_vars): Adjust.
10487         (initialize_root_vars_lm): Likewise.
10488         (prepare_initializers_chain): Likewise.
10489         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
10490         (may_propagate_copy_into_stmt): Likewise.
10491         (merge_alias_info): Do nothing for now.
10492         (propagate_tree_value_into_stmt): Adjust.
10493         (stmt_may_generate_copy): Likewise.
10494         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
10495         not mark symbols for renaming.
10496         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
10497         with the same statement, make sure to update the new pointed-to one.
10498         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
10499         call statements, do not mark symbols for renaming.
10500         (mark_operand_necessary): Dump something.
10501         (ref_may_be_aliased): New function.
10502         (mark_aliased_reaching_defs_necessary_1): New helper function.
10503         (mark_aliased_reaching_defs_necessary): Likewise.
10504         (mark_all_reaching_defs_necessary_1): Likewise.
10505         (mark_all_reaching_defs_necessary): Likewise.
10506         (propagate_necessity): Do not process virtual PHIs.  For
10507         non-aliased loads mark all reaching definitions as necessary.
10508         For aliased loads and stores mark the immediate dominating
10509         aliased clobbers as necessary.
10510         (visited): New global static.
10511         (perform_tree_ssa_dce): Free visited bitmap after propagating
10512         necessity.
10513         (remove_dead_phis): Perform simple dead virtual PHI removal.
10514         (remove_dead_stmt): Properly unlink virtual operands when
10515         removing stores.
10516         (eliminate_unnecessary_stmts): Schedule PHI removal after
10517         stmt removal.
10518         * tree-ssa-ter.c (is_replaceable_p): Adjust.
10519         (process_replaceable): Likewise.
10520         (find_replaceable_in_bb): Likewise.
10521         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
10522         based on the single gimple vop.
10523         (verify_flow_insensitive_alias_info): Remove.
10524         (verify_flow_sensitive_alias_info): Likewise.
10525         (verify_call_clobbering): Likewise.
10526         (verify_memory_partitions): Likewise.
10527         (verify_alias_info): Likewise.
10528         (verify_ssa): Adjust..
10529         (execute_update_addresses_taken): Export.  Update SSA
10530         manually.  Optimize only when optimizing.  Use a local bitmap.
10531         (pass_update_address_taken): Remove TODO_update_ssa, add
10532         TODO_dump_func.
10533         (pass_update_address_taken): Just use TODO_update_address_taken.
10534         (init_tree_ssa): Do not initialize addressable_vars.
10535         (verify_ssa): Verify new VUSE / VDEF properties.
10536         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
10537         Do not call verify_alias_info.
10538         (delete_tree_ssa): Clear the VUSE, VDEF operands.
10539         Do not free the loaded and stored syms bitmaps.  Reset the escaped
10540         and callused solutions.  Do not free addressable_vars.
10541         Remove memory-tag related code.
10542         (warn_uninitialized_var): Aliases are always available.
10543         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
10544         * lambda-code.c (can_put_in_inner_loop): Adjust.
10545         (can_put_after_inner_loop): Likewise.
10546         (perfect_nestify): Likewise.
10547         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
10548         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
10549         (vectorizable_conversion): Do not mark symbols for renaming.
10550         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
10551         (expand_call_inline): Unlink the calls virtual operands before
10552         replacing it.
10553         (tree_function_versioning): Do not call update_ssa if we are not
10554         updating clones.  Simplify.
10555         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
10556         (propagate_with_phi): Likewise..
10557         * tree-outof-ssa.c (create_temp): Remove memory tag and call
10558         clobber code.  Assert we are not aliased or global.
10559         * tree-flow.h: Include tree-ssa-alias.h
10560         (enum escape_type): Remove.
10561         (struct mem_sym_stats_d): Likewise.
10562         (struct mem_ref_stats_d): Likewise.
10563         (struct gimple_df): Add vop member.  Remove global_var,
10564         call_clobbered_vars, call_used_vars, addressable_vars,
10565         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
10566         escaped and callused members.
10567         (struct ptr_info_def): Remove all members, add points-to solution
10568         member pt.
10569         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
10570         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
10571         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
10572         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
10573         (tree-ssa-alias.o): Likewise.
10574         (toplev.o): Add tree-ssa-alias.h
10575         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
10576         * gimple.c (gimple_set_bb): Fix off-by-one error.
10577         (is_gimple_reg): Do not handle memory tags.
10578         (gimple_copy): Also copy virtual operands.
10579         Delay updating the statement.  Do not reset loaded and stored syms.
10580         (gimple_set_stored_syms): Remove.
10581         (gimple_set_loaded_syms): Likewise.
10582         (gimple_call_copy_skip_args): Copy the virtual operands
10583         and mark the new statement modified.
10584         * tree-ssa-structalias.c (may_alias_p): Remove.
10585         (set_uids_in_ptset): Take the alias set to prune with as
10586         parameter.  Fold in the alias test of may_alias_p.
10587         (compute_points_to_sets): Compute whether a ptr is dereferenced
10588         in a local sbitmap.
10589         (process_constraint): Deal with &ANYTHING on the lhs, reject all
10590         other ADDRESSOF constraints on the lhs.
10591         (get_constraint_for_component_ref): Assert that we don't get
10592         ADDRESSOF constraints from the base of the reference.
10593         Properly generate UNKNOWN_OFFSET for DEREF if needed.
10594         (struct variable_info): Remove collapsed_to member.
10595         (get_varinfo_fc): Remove.
10596         (new_var_info): Do not set collapsed_to.
10597         (dump_constraint): Do not follow cycles.
10598         (dump_constraint_graph): Likewise.
10599         (build_pred_graph): Likewise.
10600         (build_succ_graph): Likewise.
10601         (rewrite_constraints): Likewise.
10602         (do_simple_structure_copy): Remove.
10603         (do_rhs_deref_structure_copy): Remove.
10604         (do_lhs_deref_structure_copy): Remove.
10605         (collapse_rest_of_var): Remove.
10606         (do_structure_copy): Re-implement.
10607         (pta_stats): New global variable.
10608         (dump_pta_stats): New function.
10609         (struct constraint_expr): Make offset signed.
10610         (UNKNOWN_OFFSET): Define special value.
10611         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
10612         (solution_set_expand): New helper function split out from ...
10613         (do_sd_constraint): ... here.
10614         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
10615         (do_ds_constraint): Likewise.
10616         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
10617         and CALLUSED = *CALLUSED.
10618         (set_union_with_increment): Make inc argument signed.
10619         (type_safe): Remove.
10620         (get_constraint_for_ptr_offset): Handle unknown and negative
10621         constant offsets.
10622         (first_vi_for_offset): Handle offsets before start.  Bail
10623         out early for offsets beyond the variable extent.
10624         (first_or_preceding_vi_for_offset): New function.
10625         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
10626         Together with ESCAPED = *ESCAPED this properly computes reachability.
10627         (find_what_var_points_to): New function.
10628         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
10629         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
10630         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
10631         pt_solutions_intersect): New functions.
10632         (compute_call_used_vars): Remove.
10633         (compute_may_aliases): New main entry into PTA computation.
10634         * gimple.h (gimple_p): New typedef.
10635         (struct gimple_statement_base): Remove references_memory_p.
10636         (struct gimple_statement_with_memory_ops_base): Remove
10637         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
10638         members.
10639         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
10640         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
10641         gimple_set_references_memory): Remove.
10642         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
10643         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
10644         New functions.
10645         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
10646         (verify_expr): Allow RESULT_DECL.
10647         (gimple_duplicate_bb): Do not copy virtual operands.
10648         (gimple_duplicate_sese_region): Adjust.
10649         (gimple_duplicate_sese_tail): Likewise.
10650         (mark_virtual_ops_in_region): Remove.
10651         (move_sese_region_to_fn): Do not call it.
10652         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
10653         and pass_simple_dse.
10654         (execute_function_todo): Handle TODO_update_address_taken,
10655         call execute_update_addresses_taken for TODO_rebuild_alias.
10656         (execute_todo): Adjust.
10657         (execute_one_pass): Init dump files early.
10658         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
10659         call-clobbered.
10660         (create_general_new_stmt): Clear vops.
10661         * tree-ssa-reassoc.c (get_rank): Adjust.
10662         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
10663         symbols for renaming.
10664         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
10665         (PARAM_AVG_ALIASED_VOPS): Likewise.
10666         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
10667         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
10668         * tree-ssa-operands.c: Simplify for new virtual operand representation.
10669         (operand_build_cmp, copy_virtual_operands,
10670         create_ssa_artificial_load_stmt, add_to_addressable_set,
10671         gimple_add_to_addresses_taken): Remove public functions.
10672         (unlink_stmt_vdef): New function.
10674 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
10676         * config.gcc (powerpc-*-linux*): Merge variants.
10678 2009-04-02  Chao-ying Fu  <fu@mips.com>
10679             James Grosbach  <james.grosbach@microchip.com>
10681         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
10682         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
10683         cop0_sp_offset.
10684         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
10685         keep_interrupts_masked_p, use_debug_exception_return_p.
10686         (mips_attribute_table): Add interrupt, use_shadow_register_set,
10687         keep_interrupts_masked, use_debug_exception_return.
10688         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
10689         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
10690         New functions.
10691         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
10692         (mips_print_operand): Process COP0 registers to print $0 .. $31
10693         correctly for GAS to process.
10694         (mips_interrupt_extra_call_saved_reg_p): New function.
10695         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
10696         extra registers.
10697         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
10698         (mips_compute_frame_info): Add supports for interrupt context that
10699         includes doubleword accumulators and COP0 registers.
10700         (mips_for_each_saved_acc): New function.
10701         (mips_for_each_saved_gpr_and_fpr): Change the function name from
10702         mips_for_each_saved_reg.
10703         (mips_save_reg): Save accumulators.
10704         (mips_kernel_reg_p): A new for_each_rtx callback.
10705         (mips_expand_prologue): Support interrupt handlers.
10706         (mips_restore_reg): Restore accumulators.
10707         (mips_expand_epilogue): Support interrupt handlers.
10708         (mips_can_use_return_insn): Return false for interrupt handlers.
10709         (mips_epilogue_uses): New function.
10710         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
10711         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
10712         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
10713         cop0_move): New instructions.
10714         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
10715         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
10716         defines.
10717         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
10718         New defines.
10719         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
10720         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
10721         interrupt handlers, we use K0 as the temporary register.
10722         (EPILOGUE_USES): Change to a function call.
10723         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
10724         handlers, we use K0 as the temporary register.
10726         * doc/extend.texi (Function Attributes): Document interrupt,
10727         use_shadow_register_set, keep_interrupts_masked,
10728         use_debug_exception_return for MIPS attributes.
10730 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
10732         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
10733         Remove a number of t-files from tmake_file.
10734         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
10735         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
10736         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
10737         target_prototype, not TARGET_PROTOTYPE.
10738         (LINK_OS_GNU_SPEC): Define.
10739         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
10740         and darwin-ldoubdle.c.
10742 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10744         PR driver/39293
10745         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
10746         (cpp_options): Ditto.
10747         (default_compilers): Ditto.
10748         (display_help): Ditto.
10749         (process_command): Ditto.
10750         (do_spec_1): Ditto.
10751         (set_input): Use lbasename instead of duplicate code.
10752         (save_temps_prefix): New static for -save-temps=obj.
10753         (save_temps_length): Ditto.
10755         * doc/invoke.texi (-save-temps=obj): Document new variant to
10756         -save-temps switch.
10758 2009-04-02  Jeff Law  <law@redhat.com>
10760         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
10761         variable.
10763 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
10765         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
10766         * configure: Regenerated.
10768 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
10770         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
10771         share the argument list.
10773 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
10775         Merge
10777         2009-02-12  Diego Novillo  <dnovillo@google.com>
10779         * varpool.c (debug_varpool): New.
10780         * cgraph.h (debug_varpool): Declare.
10782 2009-04-02  Jan Hubicka  <jh@suse.cz>
10784         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
10785         pass.
10787 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
10789         * config/i386/i386.c (ix86_abi): Move initialization to ...
10790         (override_options): Here.
10792 2009-04-02  Christian Bruel  <christian.bruel@st.com>
10794         * config/sh/sh.c (sh_dwarf_register_span): New function.
10795         (TARGET_DWARF_REGISTER_SPAN): Define.
10796         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
10798 2009-04-02  Ira Rosen  <irar@il.ibm.com>
10800         PR tree-optimization/39595
10801         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
10802         interleaved loads group is not  greater than the SLP group size.
10804 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
10806         * builtins.c (is_builtin_name): New.
10807         (called_as_built_in): Use is_builtin_name.
10808         * tree.h (is_builtin_name): New.
10809         * varasm.c (incorporeal_function_p): Use is_builtin_name
10811 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
10813         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
10815 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
10817         PR c++/26693
10818         * c-decl.c (clone_underlying_type): Move this ...
10819         * c-common.c (set_underlying_type): ... here.
10820         Also, make sure the function properly sets TYPE_STUB_DECL() on
10821         the newly created typedef variant type.
10822         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
10823         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
10824         points.
10826 2009-04-02  Richard Guenther  <rguenther@suse.de>
10828         PR tree-optimization/37221
10829         * tree-flow.h (degenerate_phi_result): Declare.
10830         * tree-ssa-dom.c (degenerate_phi_result): Export.
10831         * tree-scalar-evolution.c (analyze_initial_condition): If
10832         the initial condition is defined by a degenerate PHI node
10833         use the degenerate value.
10835 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
10837         PR rtl-optimization/39588
10838         * combine.c (merge_outer_ops): Do not set the constant when this
10839         is not necessary.
10840         (simplify_shift_const_1): Do not modify it either in this case.
10842 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
10844         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
10845         tuning is deprecated if -mtune value is set to an Itanium1 variant.
10847 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
10849         PR c/29027
10850         * c-lex.c (interpret_float): Default (no suffix) is double.
10852 2009-04-1  Xinliang David Li  <davidxl@google.com>
10854         * config/i386/i386.c (legitimate_constant_p): Recognize
10855         all one vector constant.
10857 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10859         * config/vax/vax.c: Add #includes to silence warnings.
10860         Change #include order to silence two warnings.
10862 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10864         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
10865         (ASM_SPEC): Pass -k to the assembler for PIC code.
10867 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10869         * config.gcc: Add vax-*-linux* to the switch.
10870         * config/vax/linux.h: New file. (TARGET_VERSION,
10871         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
10873 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10875         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
10876         Use predicate macros instead of GET_CODE() == foo.
10877         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
10878         ashlsi3, rotrsi3, <unnamed>): Likewise.
10880 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10882         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
10883         jbbccihi, jbbccisi): Remova trailing whitespace.
10884         * config/vax/constraints.md: Likewise.
10885         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
10886         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
10887         * config/vax/predicates.md: Likewise.
10888         * config/vax/vax.c (print_operand_address, vax_output_int_move,
10889         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
10890         * config/vax/vax.h: Likewise.
10891         * config/vax/vax.md (nonlocal_goto): Likewise.
10893 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10895         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
10896         (indirectable_address_p, adjacent_operands_p): Add spaces around
10897         braces.
10898         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
10900 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10902         * config/vax/vax.c (legitimate_constant_address_p,
10903         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
10904         index_term_p, reg_plus_index_p, legitimate_address_p,
10905         vax_mode_dependent_address_p): Update comments to match functions
10906         modified by the recent int->bool conversion.
10908 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10910         * config/vax/builtins.md: Update copyright message.
10911         * config/vax/constraints.md: Likewise.
10912         * config/vax/netbsd-elf.h: Likewise.
10913         * config/vax/predicates.md: Likewise.
10914         * config/vax/vax-protos.h: Likewise.
10915         * config/vax/vax.c: Likewise.
10916         * config/vax/vax.h: Likewise.
10917         * config/vax/vax.md: Likewise.
10918         * config/vax/vax.opt: Likewise.
10920 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10922         * config/vax/builtins.md (ffssi2, ffssi2_internal,
10923         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
10924         * config/vax/constraints.md (B, R): Likewise.
10925         * config/vax/predicates.md (external_memory_operand,
10926         nonimmediate_addsub_di_operand): Likewise.
10927         * config/vax/vax.c (vax_output_int_add): Likewise.
10928         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
10929         untyped_call): Likewise.
10931 2009-04-01  Matt Thomas  <matt@3am-software.com>
10933         * config/vax/predicates.md: New file.
10934         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
10935         external_const_operand, nonsymbolic_operand, external_memory_operand,
10936         indirect_memory_operand, indexed_memory_operand,
10937         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
10938         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
10939         predicate.
10940         * config/vax/constraints.md: New file.
10941         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
10942         New constraint.
10943         * config/vax/builtins.md: New file.
10944         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
10945         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
10946         jbbccisi): Define.
10947         * config/vax/vax.opt (mqmath): Add option.
10948         * config/vax/vax.md (isfx): Extend with DI.
10949         (VAXintQH, VAXintQHSD): Define.
10950         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
10951         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
10952         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
10953         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
10954         (movdi): Update constraints and use vax_output_int_move().
10955         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
10956         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
10957         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
10958         nonlocal_goto): New.
10959         (mov<mode>): Extend accepted operand types.
10960         (subdi3_old): Rename from subdi3, change update constraints and use
10961         a new implementation.
10962         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
10963         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
10964         MOVE_RATIO, CLEAR_RATIO): Define.
10965         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
10966         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
10967         (PRINT_OPERAND): Redefine using a function instead of inlined code.
10968         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
10969         (split_quadword_operands): Make static and really allow variable
10970         splitting.
10971         (print_operand_address): Update for PIC generation.
10972         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
10973         indexable_address_p, fixup_mathdi_operand,
10974         vax_expand_addsub_di_operands, adjacent_operands_p): New.
10975         (vax_float_literal, legitimate_constant_p,
10976         indirectable_constant_address_p, index_term_p,
10977         reg_plus_index_p): Return bool instead of int.
10978         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
10979         where needed.
10980         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
10981         generation.
10982         (vax_output_conditional_branch): Indent.
10983         (legitimate_constant_address_p, indirectable_constant_address_p,
10984         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
10985         vax_mode_dependent_address_p): Return bool instead of int, update for
10986         PIC generation.
10987         * config/vax/vax-protos.h (legitimate_constant_address_p,
10988         legitimate_constant_p, legitimate_address_p,
10989         vax_mode_dependent_address_p): Change declaration to bool.
10990         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
10991         vax_expand_addsub_di_operands, vax_output_int_subtract,
10992         vax_output_movmemsi): Declare.
10993         (split_quadword_operands, vax_float_literal): Delete declaration.
10994         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
10995         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
10996         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
10997         ASM_OUTPUT_DWARF_PCREL): Define.
10998         (ASM_SPEC): Change definition to allow PIC generation.
11000 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
11002         * doc/sourcebuild.texi: Update front-end requirements.
11004 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
11006         PR target/39226
11007         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
11008         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
11009         (booldi3_internal3): Use boolean_or_operator instead of
11010         boolean_operator.
11012 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
11014         PR c/39605
11015         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
11016         declarator whose size is not an integer constant expression but
11017         folds to an integer constant, then treat it as a constant
11018         subsequently.
11020 2009-04-01  Richard Guenther  <rguenther@suse.de>
11022         * fold-const.c (fold_plusminus_mult_expr): Do not fold
11023         i * 4 + 2 to (i * 2 + 1) * 2.
11025 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
11027         PR c/37772
11028         * c-parser.c (c_parser_asm_statement): Skip until close paren and
11029         return if c_parser_asm_string_literal returned NULL.
11031 2009-04-01  Nick Clifton  <nickc@redhat.com>
11033         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
11034         already defined.
11035         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
11036         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
11037         other typedefs to avoid conflicts with libgcc2.c.  Define labels
11038         to gain 16-bit bit-manipulation functions from libgcc2.c and then
11039         include it.
11040         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
11041         to gain 16-bit trapping arithmetic functions from libgcc2.c and
11042         then include it.
11044 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
11046         * varasm.c (default_function_rodata_section): Declare DOT as
11047         const char*.
11049 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
11050             Andrey Galkin  <agalkin@hypercom.com>
11052         PR/39492
11053         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
11054         Make object_name unique for each process.
11056 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
11058         PR other/39591
11059         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
11060         addressable variables in the parallel that could go out of scope while
11061         running queued tasks.
11063 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
11065         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
11066         (CASE_VALUES_THRESHOLD): Redefine.
11067         * config/avr/avr.c (avr_override_options): Remove initialization of
11068         avr_case_values_threshold variable.
11069         (avr_case_values_threshold): Remove variable. Add new function.
11070         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
11071         * config/avr/avr.opt (mno-tablejump): Remove option.
11072         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
11074 2009-04-01  DJ Delorie  <dj@redhat.com>
11076         * varasm.c (default_function_rodata_section): Don't assume
11077         anything about where the first '.' in the section name is.
11079 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
11081         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
11082         rs6000_emit_stack_tie.
11084 2009-03-31  Ian Lance Taylor  <iant@google.com>
11086         * tree-eh.c (tree_remove_unreachable_handlers): Compare
11087         gimple_code with GIMPLE_RESX, not RESX.
11089 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
11091         * c-common.c (c_get_ident): New.
11092         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
11094 2009-04-01  Ben Elliston  <bje@au.ibm.com>
11096         * config/rs6000/sysv4.opt (msdata): Improve option description.
11098 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
11100         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
11101         (divdf3_internal_lat): Remove.
11102         (divxf3_internal_lat): Remove.
11103         (divxf3_internal_thr): Remove.
11104         (divxf): Use divxf3_internal.
11105         * config/ia64/div.md (divsf3_internal_lat): New.
11106         (divdf3_internal_lat): New.
11107         (divxf3_internal): New.
11109 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
11111         PR c/448
11112         * Makefile.in (USE_GCC_STDINT): Define.
11113         (stmp-int-hdrs): Install stdint.h if applicable.
11114         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
11115         if known.
11116         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
11117         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
11118         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
11119         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
11120         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
11121         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
11122         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
11123         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
11124         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
11125         (c_common_nodes_and_builtins): Initialize
11126         underlying_wchar_type_node.  Do not initialize
11127         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
11128         nodes for new types.
11129         (c_stddef_cpp_builtins): Define macros for new types.
11130         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
11131         Remove.
11132         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
11133         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
11134         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
11135         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
11136         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
11137         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
11138         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
11139         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
11140         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
11141         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
11142         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
11143         int16_type_node, int32_type_node, int64_type_node,
11144         uint8_type_node, uint16_type_node, c_uint32_type_node,
11145         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
11146         int_least32_type_node, int_least64_type_node,
11147         uint_least8_type_node, uint_least16_type_node,
11148         uint_least32_type_node, uint_least64_type_node,
11149         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
11150         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
11151         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
11152         uintptr_type_node): Define.
11153         * c-cppbuiltin.c (builtin_define_constants,
11154         builtin_define_type_minmax): New.
11155         (builtin_define_stdint_macros): Define more macros.
11156         (c_cpp_builtins): Define more limit macros.
11157         (type_suffix): New.
11158         (builtin_define_type_max): Define in terms of
11159         builtin_define_type_minmax.  Remove is_long parameter.  All
11160         callers changed.
11161         * config.gcc (use_gcc_stdint): Define.
11162         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
11163         Add newlib-stdint.h for generic targets.
11164         * config/glibc-stdint.h, config/newlib-stdint.h,
11165         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
11166         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
11167         * config/score/score.h (UINTPTR_TYPE): Define.
11168         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
11169         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
11170         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
11171         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
11172         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
11173         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
11174         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
11175         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
11176         * config/spu/spu.h (STDINT_LONG32): Define.
11177         * configure.ac (use_gcc_stdint): Substitute.
11178         * configure: Regenerate.
11179         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
11180         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
11181         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
11182         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
11183         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
11184         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
11185         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
11186         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
11187         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
11188         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
11189         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
11190         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
11191         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
11192         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
11193         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
11194         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
11195         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
11196         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
11197         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
11198         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
11199         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
11200         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
11201         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
11202         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
11203         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
11204         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
11205         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
11206         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
11207         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
11209 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
11211         * loop-iv.c (suitable_set_for_replacement): Renamed from
11212         simplify_using_assignment; changed to return bool and to accept new
11213         args DEST and SRC.  Return true iff we find a source/destination pair
11214         that can be used to make a replacement, and fill SRC and DEST if so.
11215         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
11216         changed.
11217         (simplify_using_initial_values): Deal with altered regs here and track
11218         more precisely the effect they have on the validity of our expression.
11220         * loop-iv.c (simplify_using_condition): A condition of the form
11221         (EQ REG CONST) can be used to simply make a substitution.
11222         (simplify_using_initial_values): Keep track of conditions we have seen
11223         and keep using them to simplify new expressions, while applying the
11224         same substitutions to them as to the expression.
11226         * simplify-rtx.c (simplify_relational_operation_1): Simplify
11227         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
11228         GEU/LTU reversed.
11230         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
11231         changed.  Use this when trying to improve the upper bound.
11232         Generate the comparison by using simplify_gen_relational.
11234         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
11236         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
11237         functions.
11238         (simplify_using_assignment, simplify_using_initial_values): Call
11239         replace_in_expr to make replacements.  Call replace_single_def_regs
11240         once on the initial version of the expression.
11242 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11244         PR target/27237
11245         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
11247 2009-03-31  Richard Guenther  <rguenther@suse.de>
11249         PR middle-end/31029
11250         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
11251         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
11253 2009-03-31  Richard Guenther  <rguenther@suse.de>
11255         * tree.h (div_if_zero_remainder): Declare.
11256         * fold-const.c (div_if_zero_remainder): Export.
11257         * tree-ssa-forwprop.c
11258         (forward_propagate_addr_into_variable_array_index): Handle
11259         constant array index addition outside of the variable index.
11261 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
11263         PR target/39592
11264         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
11265         define_splits, floatunssi<mode>2): Require x87 conversions from
11266         DImode to be permitted.
11268 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
11270         PR preprocessor/15638
11271         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
11273 2009-03-31  Richard Guenther  <rguenther@suse.de>
11275         PR middle-end/23401
11276         PR middle-end/27810
11277         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
11278         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
11279         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
11280         a separate statement.
11281         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
11282         (lookup_tmp_var): Likewise.
11283         (is_gimple_formal_tmp_or_call_rhs): Remove.
11284         (is_gimple_reg_or_call_rhs): Rename to ...
11285         (is_gimple_reg_rhs_or_call): ... this.
11286         (is_gimple_mem_or_call_rhs): Rename to ...
11287         (is_gimple_mem_rhs_or_call): ... this.
11288         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
11289         DECL_GIMPLE_REG_P only if is_formal is true.
11290         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
11291         for non-proper post-modify expression gimplification.
11292         (gimplify_self_mod_expr): For post-modify expressions gimplify
11293         the lvalue to a minimal lvalue.
11294         (rhs_predicate_for): Remove formal temp case.
11295         (gimplify_modify_expr_rhs): Likewise.
11296         (gimplify_addr_expr): Use is_gimple_reg.
11297         (gimplify_expr): Remove formal temp cases.
11298         (gimple_regimplify_operands): Likewise.
11299         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
11300         and FILTER_EXPR like constants.
11301         * gimple.c (walk_gimple_op): Fix val_only initialization, use
11302         is_gimple_reg.
11303         (is_gimple_formal_tmp_rhs): Remove.
11304         (is_gimple_reg_rhs): Remove special casing.
11305         (is_gimple_mem_rhs): Fix.
11306         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
11307         (is_gimple_formal_tmp_var): Remove.
11308         (is_gimple_formal_tmp_reg): Likewise.
11309         (is_gimple_min_lval): Allow invariant component ref parts.
11310         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
11311         is_gimple_formal_tmp_reg): Remove declarations.
11312         * tree-cfg.c (verify_expr): Verify that variables with address
11313         taken do not have DECL_GIMPLE_REG_P set.
11314         * tree-mudflap.c (mf_build_check_statement_for): Use
11315         force_gimple_operand instead of gimplify_expr.
11317 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
11319         * modulo-sched.c (sms_schedule_by_order): Pass the actual
11320         schedulable rows to compute_split_row.
11322 2009-03-31  Ben Elliston  <bje@au.ibm.com>
11324         PR target/31635
11325         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
11326         OPT_mvrsave.
11328 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
11330         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
11331         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
11332         * configure: Regenerate.
11333         * config.in: Regenerate.
11334         * config/rs6000/rs6000.opt (mtls-markers): Add.
11335         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
11336         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
11337         (tls_ld_aix, tls_ld_sysv): Likewise.
11338         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
11339         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
11341 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
11343         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
11345 2009-03-30  Jan Hubicka  <jh@suse.cz>
11347         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
11348         out of RESX.
11349         (tree_remove_unreachable_handlers): Cleanup EH predecestor
11350         detection and label handling.
11352 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
11354         * ira-int.h (ira_allocno): Rename left_conflicts_num to
11355         left_conflicts_size.
11356         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
11357         ALLOCNO_LEFT_CONFLICTS_SIZE.
11359         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
11360         remove_allocno_from_bucket_and_push,
11361         allocno_spill_priority_compare, push_allocnos_to_stack,
11362         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
11363         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
11364         (setup_allocno_left_conflicts_num): Ditto.  Rename to
11365         setup_allocno_left_conflicts_size.
11366         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
11367         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
11368         setup_allocno_left_conflicts_size instead of
11369         setup_allocno_left_conflicts_num.
11371         * ira-build.c (ira_create_allocno): Use
11372         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
11373         ALLOCNO_LEFT_CONFLICTS_NUM.
11375 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
11377         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
11378         instead of DF_LR_OUT.
11380         * ira-lives.c (process_bb_node_lives): Ditto.
11382         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
11383         instead of DF_LR_{OUT,IN}.
11385         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
11387         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
11389 2009-03-30  Jan Hubicka  <jh@suse.cz>
11391         * except.c (label_to_region_map): Fix thinko.
11393 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
11395         PR middle-end/38237
11396         * tree.h (tree_find_value): New declaration.
11397         * tree.c (tree_find_value): New function.
11398         * varasm.c (assemble_external): Avoid duplicate entries on lists.
11400 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
11402         PR debug/39563
11403         * c-decl.c (struct c_binding): Add locus field.
11404         (bind): Add locus argument, set locus field from it.
11405         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
11406         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
11407         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
11408         implicitly_declare, undeclared_variable, lookup_label,
11409         declare_label, c_make_fname_decl, c_builtin_function,
11410         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
11411         bind callers.
11413 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11415         PR target/38781
11416         * config/i386/i386.c (classify_argument): Check total size of
11417         structure.
11419 2009-03-30  Martin Jambor  <mjambor@suse.cz>
11421         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
11422         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
11423         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
11424         respectively.
11426         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
11427         seen_variable_array_ref while also traversing a union.
11429         * tree-inline.c (optimize_inline_calls): Do not call
11430         cgraph_node_remove_callees.
11431         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
11432         (pass_remove_cgraph_callee_edges): New variable.
11433         * passes.c (init_optimization_passes): Add
11434         pass_remove_cgraph_callee_edges after early inlining and before all
11435         late intraprocedural passes.
11437         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
11439 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
11441         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
11442         Fix typos in names.
11444 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
11446         * combine.c (simplify_comparison): Use have_insn_for.
11447         * dojump.c (do_jump): Likewise.
11449 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
11451         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
11452         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
11453         sparc_compare_op0 like sparc_compare_emitted used to be handled.
11454         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
11455         instead of sparc_compare_emitted.
11456         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
11457         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
11458         instead of sparc_compare_emitted.
11460 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
11462         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
11463         enter/exit cfglayout mode.
11464         (pass_partition_block): Require it.
11465         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
11466         (combine_instructions): Track basic blocks instead of labels.
11467         (update_cfg_for_uncondjump): New.
11468         (try_combine): Use it.  Update jumps after rescanning.
11469         (pass_combine): Require PROP_cfglayout.
11470         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
11472 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
11474         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
11475         Provide/destroy PROP_cfglayout respectively.
11476         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
11477         * tree-pass.h (PROP_cfglayout): New.
11479 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
11481         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
11482         fold_convert_const_fixed_from_fixed,
11483         fold_convert_const_fixed_from_int,
11484         fold_convert_const_fixed_from_real, fold_negate_const): Do not
11485         set TREE_CONSTANT_OVERFLOW.
11486         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
11487         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
11489 2009-03-30  Ira Rosen  <irar@il.ibm.com>
11491         * tree-vect-loop-manip.c: New file.
11492         * tree-vectorizer.c: Update documentation and included files.
11493         (vect_loop_location): Make extern.
11494         (rename_use_op): Move to tree-vect-loop-manip.c
11495         (rename_variables_in_bb, rename_variables_in_loop,
11496         slpeel_update_phis_for_duplicate_loop,
11497         slpeel_update_phi_nodes_for_guard1,
11498         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
11499         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
11500         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
11501         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
11502         find_loop_location): Likewise.
11503         (new_stmt_vec_info): Move to tree-vect-stmts.c.
11504         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
11505         get_vectype_for_scalar_type, vect_is_simple_use,
11506         supportable_widening_operation, supportable_narrowing_operation):
11507         Likewise.
11508         (bb_in_loop_p): Move to tree-vect-loop.c.
11509         (new_loop_vec_info, destroy_loop_vec_info,
11510         reduction_code_for_scalar_code, report_vect_op,
11511         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
11512         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
11513         (vect_supportable_dr_alignment): Likewise.
11514         * tree-vectorizer.h (tree-data-ref.h): Include.
11515         (vect_loop_location): Declare.
11516         Reorganize function declarations according to the new file structure.
11517         * tree-vect-loop.c: New file.
11518         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
11519         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
11520         * tree-vect-data-refs.c: New file.
11521         * tree-vect-patterns.c (timevar.h): Don't include.
11522         * tree-vect-stmts.c: New file.
11523         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
11524         tree-vect-slp.c, tree-vect-loop.c.
11525         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
11526         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
11527         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
11528         (tree-vect-analyze.o): Remove.
11529         (tree-vect-transform.o): Likewise.
11530         (tree-vect-data-refs.o): Add rule.
11531         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
11532         tree-vect-slp.o): Likewise.
11533         (tree-vect-patterns.o): Remove redundant dependencies.
11534         (tree-vectorizer.o): Likewise.
11535         * tree-vect-slp.c: New file.
11537 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11539         * optc-gen.awk: Warn if an option flag has multiple different
11540         help strings.
11542 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
11544         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
11545         -floop-block): Document dependences on PPL, CLooG and Graphite.
11547 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
11549         PR rtl-optimization/323
11550         * c-common.c (c_fully_fold, convert_and_check,
11551         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
11552         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
11553         * c-common.def (EXCESS_PRECISION_EXPR): New.
11554         * c-cppbuiltin.c (builtin_define_float_constants): Define
11555         constants with enough digits for long double.
11556         * c-lex.c (interpret_float): Interpret constant with excess
11557         precision where appropriate.
11558         * c-opts.c (c_common_post_options): Set
11559         flag_excess_precision_cmdline.  Give an error for
11560         -fexcess-precision=standard for C++ for processors where the
11561         option is significant.
11562         * c-parser.c (c_parser_conditional_expression): Handle excess
11563         precision in condition.
11564         * c-typeck.c (convert_arguments): Handle arguments with excess
11565         precision.
11566         (build_unary_op): Move excess precision outside operation.
11567         (build_conditional_expr): Likewise.
11568         (build_compound_expr): Likewise.
11569         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
11570         (build_modify_expr): Handle excess precision in RHS.
11571         (convert_for_assignment): Handle excess precision in converted
11572         value.
11573         (digest_init, output_init_element, process_init_element): Handle
11574         excess precision in initializer.
11575         (c_finish_return): Handle excess precision in return value.
11576         (build_binary_op): Handle excess precision in operands and add
11577         excess precision as needed for operation.
11578         * common.opt (-fexcess-precision=): New option.
11579         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
11580         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11581         For standard excess precision, output explicit conversion to and
11582         truncation from XFmode.
11583         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
11584         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
11585         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
11586         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
11587         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
11588         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
11589         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
11590         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
11591         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
11592         define_splits, sqrt<mode>2): Disable where appropriate for
11593         standard excess precision.
11594         * convert.c (convert_to_real): Do not shorten arithmetic to type
11595         for which excess precision would be used.
11596         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
11597         * doc/invoke.texi (-fexcess-precision=): Document option.
11598         (-mfpmath=): Correct index entry.
11599         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
11600         flag_excess_precision): New.
11601         * langhooks.c (lhd_post_options): Set
11602         flag_excess_precision_cmdline.
11603         * opts.c (common_handle_option): Handle -fexcess-precision=.
11604         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
11605         init_excess_precision): New.
11606         (lang_dependent_init_target): Call init_excess_precision.
11607         * tree.c (excess_precision_type): New.
11608         * tree.h (excess_precision_type): Declare.
11610 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
11612         PR c/35235
11613         * c-typeck.c (build_component_ref): Do not copy qualifiers from
11614         non-lvalue to component.
11616 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
11618         PR preprocessor/34695
11619         * Makefile.in (c-opts.o): Depend on c-tree.h.
11620         * c-common.c: Move down include of diagnostic.h.
11621         (done_lexing, c_cpp_error): New.
11622         * c-common.h (done_lexing): Declare.
11623         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
11624         (parse_in).
11625         * c-opts.c: Include c-tree.h.
11626         (c_common_init_options): Set preprocessor error callback.
11627         (c_common_handle_option): Do not set preprocessor
11628         inhibit_warnings, warnings_are_errors, warn_system_headers,
11629         pedantic_errors or inhibit_warnings flags.
11630         (c_common_post_options): Do not check cpp_errors (parse_in).
11631         (c_common_finish): Do not output dependencies if there were
11632         errors.  Do not check return value of cpp_finish.
11633         * c-ppoutput.c (pp_file_change): Set input_location.
11634         * c-tree.h (c_cpp_error): Declare.
11635         * diagnostic.c (diagnostic_set_info_translated): Also initialize
11636         override_column.
11637         (diagnostic_build_prefix): Check override_column.
11638         * diagnostic.h (diagnostic_info): Add override_column field.
11639         (diagnostic_override_column): Define.
11641 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
11643         * c-common.c (c_expand_expr, c_staticp): Remove.
11644         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
11645         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
11646         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
11647         * c-gimplify.c (gimplify_compound_literal_expr,
11648         optimize_compound_literals_in_ctor): Remove.
11649         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
11650         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
11651         * c-semantics.c (emit_local_var): Remove.
11653         * langhooks-def.h (lhd_expand_expr): Remove.
11654         * langhooks.c (lhd_expand_expr): Remove.
11655         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
11657         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
11658         handling from c-semantics.c; don't call into langhook.
11659         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
11660         * gimplify.c (gimplify_compound_literal_expr,
11661         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
11662         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
11663         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
11664         as was done in c-gimplify.c.
11665         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
11666         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
11667         Move from c-common.h.
11668         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
11670         * tree.c (staticp): Do not call langhook.
11671         * langhooks.c (lhd_staticp): Delete.
11672         * langhooks-def.h (lhd_staticp): Delete prototype.
11673         (LANG_HOOKS_STATICP): Delete.
11674         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
11676         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
11677         instead of DECL_STMTs.
11679 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
11681         PR c/456
11682         PR c/5675
11683         PR c/19976
11684         PR c/29116
11685         PR c/31871
11686         PR c/35198
11687         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
11688         void_type_node.
11689         (fold_call_expr): Return a NOP_EXPR from folding rather than the
11690         contained expression.
11691         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
11692         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
11693         conditional expressions for C.
11694         (decl_constant_value_for_optimization): Move from
11695         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
11696         whether optimizing and that the expression is a VAR_DECL not of
11697         array type instead of doing such checks in the caller.  Do not
11698         check pedantic.  Call gcc_unreachable for C++.
11699         * c-common.def (C_MAYBE_CONST_EXPR): New.
11700         * c-common.h (c_fully_fold, c_save_expr,
11701         decl_constant_value_for_optimization): New prototypes.
11702         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
11703         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
11704         EXPR_INT_CONST_OPERANDS): Define.
11705         * c-convert.c (convert): Strip nops from expression.
11706         * c-decl.c (groktypename): Take extra parameters expr and
11707         expr_const_operands.  Update call to grokdeclarator.
11708         (start_decl): Update call to grokdeclarator.  Add statement for
11709         expressions used in type of decl.
11710         (grokparm): Update call to grokdeclarator.
11711         (push_parm_decl): Update call to grokdeclarator.
11712         (build_compound_literal): Add parameter non_const and build a
11713         C_MAYBE_COSNT_EXPR if applicable.
11714         (grokdeclarator): Take extra parameters expr and
11715         expr_const_operands.  Track expressions used in declaration
11716         specifiers and declarators.  Fold array sizes and track whether
11717         they are constant expressions and whether they are integer
11718         constant expressions.
11719         (parser_xref_tag): Set expr and expr_const_operands fields in
11720         return value.
11721         (grokfield): Update call to grokdeclarator.
11722         (start_function): Update call to grokdeclarator.
11723         (build_null_declspecs): Set expr and expr_const_operands fields in
11724         return value.
11725         (declspecs_add_type): Handle expressions in typeof specifiers.
11726         * c-parser.c (c_parser_declspecs): Set expr and
11727         expr_const_operands fields for declaration specifiers.
11728         (c_parser_enum_specifier): Likewise.
11729         (c_parser_struct_or_union_specifier): Likewise.
11730         (c_parser_typeof_specifier): Likewise.  Update call to
11731         groktypename.  Fold expression as needed.  Return expressions with
11732         type instead of adding statements.
11733         (c_parser_attributes): Update calls to c_parser_expr_list.
11734         (c_parser_statement_after_labels): Fold expression before passing
11735         to objc_build_throw_stmt.
11736         (c_parser_condition): Fold expression.
11737         (c_parser_asm_operands): Fold expression.
11738         (c_parser_conditional_expression): Use c_save_expr.  Update call
11739         to build_conditional_expr.
11740         (c_parser_alignof_expression): Update call to groktypename.
11741         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
11742         original_code.  Fold expression argument of va_arg.  Create
11743         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
11744         argument to va_arg.  Update calls to groktypename.  Fold array
11745         index for offsetof.  Verify that first argument to
11746         __builtin_choose_expr has integer type.
11747         (c_parser_postfix_expression_after_paren_type): Update calls to
11748         groktypename and build_compound_literal.  Handle expressions with
11749         side effects in type name.
11750         (c_parser_postfix_expression_after_primary): Update call to
11751         c_parser_expr_list.  Set original_code for calls to
11752         __builtin_constant_p.
11753         (c_parser_expr_list): Take extra parameter fold_p.  Fold
11754         expressions if requested.
11755         (c_parser_objc_type_name): Update call to groktypename.
11756         (c_parser_objc_synchronized_statement): Fold expression.
11757         (c_parser_objc_receiver): Fold expression.
11758         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
11759         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
11760         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
11761         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
11762         (struct c_typespec): Add elements expr and expr_const_operands.
11763         (struct c_declspecs): Add elements expr and expr_const_operands.
11764         (groktypename, build_conditional_expr, build_compound_literal):
11765         Update prototypes.
11766         (in_late_binary_op): Declare.
11767         * c-typeck.c (note_integer_operands): New function.
11768         (in_late_binary_op): New variable.
11769         (decl_constant_value_for_broken_optimization): Move to c-common.c
11770         and rename to decl_constant_value_for_optimization.
11771         (default_function_array_conversion): Do not strip nops.
11772         (default_conversion): Do not call
11773         decl_constant_value_for_broken_optimization.
11774         (build_array_ref): Do not fold result.
11775         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
11776         result when operand is a VLA.
11777         (c_expr_sizeof_type): Update call to groktypename.  Handle
11778         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
11779         result when operand names a VLA type.
11780         (build_function_call): Update call to build_compound_literal.
11781         Only fold result for calls to __builtin_* functions.  Strip
11782         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
11783         the function designator.
11784         (convert_arguments): Fold arguments.  Update call to
11785         convert_for_assignment.
11786         (build_unary_op): Handle increment and decrement of
11787         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
11788         decrement earlier.  Fold operand of increment and decrement.
11789         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
11790         built for integer operand.  Wrap returns that are INTEGER_CSTs
11791         without being integer constant expressions or that have integer
11792         constant operands without being INTEGER_CSTs.
11793         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
11794         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
11795         result is an integer constant expression or can be used in
11796         unevaluated parts of one and avoid folding and wrap as
11797         appropriate.  Fold operands before possibly doing -Wsign-compare
11798         warnings.
11799         (build_compound_expr): Wrap result for C99 if operands can be used
11800         in integer constant expressions.
11801         (build_c_cast): Update call to digest_init.  Do not ignore
11802         overflow from casting floating-point constants to integers.  Wrap
11803         results that could be confused with integer constant expressions,
11804         null pointer constants or floating-point constants.
11805         (c_cast_expr): Update call to groktypename.  Handle expressions
11806         included in type name.
11807         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
11808         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
11809         Update calls to convert_for_assignment.
11810         (convert_for_assignment): Take new parameter
11811         null_pointer_constant.  Do not strip nops or call
11812         decl_constant_value_for_broken_optimization.  Set
11813         in_late_binary_op for conversions to boolean.
11814         (store_init_value): Update call to digest_init.
11815         (digest_init): Take new parameter null_pointer_constant.  Do not
11816         call decl_constant_value_for_broken_optimization.  pedwarn for
11817         initializers not constant expressions.  Update calls to
11818         convert_for_assignment.
11819         (constructor_nonconst): New.
11820         (struct constructor_stack): Add nonconst element.
11821         (really_start_incremental_init, push_init_level, pop_init_level):
11822         Handle constructor_nonconst and nonconst element.
11823         (set_init_index): Call constant_expression_warning for array
11824         designators.
11825         (output_init_element): Fold value.  Set constructor_nonconst as
11826         applicable.  pedwarn for initializers not constant expressions.
11827         Update call to digest_init.  Call constant_expression_warning
11828         where constant initializers are required.
11829         (process_init_element): Use c_save_expr.
11830         (c_finish_goto_ptr): Fold expression.
11831         (c_finish_return): Fold return value.  Update call to
11832         convert_for_assignment.
11833         (c_start_case): Fold switch expression.
11834         (c_process_expr_stmt): Fold expression.
11835         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
11836         ensure statement expression is not evaluated in constant expression.
11837         (build_binary_op): Track whether results are integer constant
11838         expressions or may occur in such, disable folding and wrap results
11839         as applicable.  Fold operands for -Wsign-compare warnings unless
11840         in_late_binary_op.
11841         (c_objc_common_truthvalue_conversion): Handle results folded to
11842         integer constants that are not integer constant expressions.
11843         * doc/extend.texi: Document when typeof operands are evaluated,
11844         that condition of __builtin_choose_expr is an integer constant
11845         expression, and more about use of __builtin_constant_p in
11846         initializers.
11848 2009-03-29  Richard Guenther  <rguenther@suse.de>
11850         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
11851         propagate addresses of array references.
11853 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
11855         * regmove.c (perhaps_ends_bb_p): Remove.
11856         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
11857         from INSN and check that the main loop stays within that basic block.
11858         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
11859         (regmove_forward_pass): Split out from regmove_optimize.  Use
11860         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
11861         (regmove_backward_pass): Split out from regmove_optimize.  Use
11862         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
11863         (regmove_optimize): Simplify.
11865 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
11867         PR target/39545
11868         * config/i386/i386.c (classify_argument): Ignore flexible array
11869         member in struct and warn ABI change.
11871 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
11873         * config/i386/i386-protos.h (ix86_agi_dependent): New.
11875         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
11876         (ix86_adjust_cost): Updated.
11878 2009-03-29  Jan Hubicka  <jh@suse.cz>
11880         PR middle-end/28850
11881         * tree-pass.h (pass_cleanup_eh): New function.
11882         (remove_unreachable_regions): Break code handling RTL
11883         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
11884         that can not be reached by runtime.
11885         (can_be_reached_by_runtime): New function.
11886         (label_to_region_map): New function.
11887         (num_eh_regions): New function.
11888         (rtl_remove_unreachable_regions): New function.
11889         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
11890         (remove_eh_region): New function.
11891         * except.h: Include sbitmap and vecprim.
11892         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
11893         num_eh_regions): Declare.
11894         * passes.c (init_optimization_passes): Schedule cleanup_eh.
11895         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
11896         * tree-eh.c (tree_remove_unreachable_handlers): New function.
11897         (tree_empty_eh_handler_p): New function.
11898         (cleanup_empty_eh): New function.
11899         (cleanup_eh): New function.
11900         (pass_cleanup_eh): New function.
11902 2009-03-29  Jan Hubicka  <jh@suse.cz>
11904         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
11905         for removed regions.
11907 2009-03-29  Jan Hubicka  <jh@suse.cz>
11909         * except.c (dump_eh_tree): Dump all datastructures.
11911 2009-03-29  Jan Hubicka  <jh@suse.cz>
11913         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
11914         (duplicate_eh_regions_1): Likewise.
11915         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
11916         vector; call EH verification.
11917         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
11918         Be ready for region being removed.
11920 2009-03-29  Jan Hubicka  <jh@suse.cz>
11922         * bitmap.c (bitmap_last_set_bit): New function.
11923         * bitmap.h (bitmap_last_set_bit): Declare.
11925 2009-03-29  David Ayers  <ayers@fsfe.org>
11927         PR objc/27377
11928         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
11929         by calling objc_compare_types and surpress warnings about
11930         incompatible C pointers that are compatible ObjC pointers.
11932 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
11934         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
11935         call initialize_inline_failed.
11936         (initialize_inline_failed): Move it from here ...
11937         * cgraph.c (initialize_inline_failed): ... to here.
11938         (cgraph_create_edge): Call initialize_inline_failed rather than
11939         setting inline_failed directly.
11941 2009-03-29  Ben Elliston  <bje@au.ibm.com>
11943         PR target/32542
11944         * sysv4.opt (msdata): Improve comment.
11945         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
11946         * sysv4.h (SVR4_ASM_SPEC): Likewise.
11948 2009-03-29  Ben Elliston  <bje@au.ibm.com>
11950         PR target/30451
11951         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
11952         load and store attributes.
11954 2009-03-29  Ben Elliston  <bje@au.ibm.com>
11956         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
11957         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
11958         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
11959         * doc/extend.texi (X86 Built-in Functions): Add index entries for
11960         __builtin_infq and __builtin_huge_valq.
11962 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
11964         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
11965         atmega8m1 devices.
11966         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
11967         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
11969 2009-03-28  Xinliang David Li  <davidxl@google.com>
11971         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
11972         (do_dbg_cnt): New function.
11974 2009-03-28  Jan Hubicka  <jh@suse.cz>
11976         Merge from pretty-ipa:
11978         2009-03-27  Jan Hubicka  <jh@suse.cz>
11980         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
11981         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
11982         * passes.c (function_called_by_processed_nodes_p): New.
11983         * ipa-pure-const.c (check_call): Fix handling of operands.
11984         (analyze_function): Dump debug output for skipped bodies.
11985         (local_pure_const): Use function_called_by_processed_nodes_p.
11986         * dwarf2out.c (reference_to_unused): Use output.
11987         * passes.c (do_per_function_toporder): Likewise.
11989         2008-11-12  Jan Hubicka  <jh@suse.cz>
11991         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
11992         * ipa-pure-const.c (funct_state_d): Add can throw field; make
11993         state_set_in_source enum
11994         (check_decl): Ignore memory tags; do not set fake looping flags;
11995         dump diagnostics.
11996         (check_operand, check_tree, check_rhs_var, check_lhs_var,
11997         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
11998         (check_call, analyze_function): Rewrite.
11999         (check_stmt): New.
12000         (add_new_function): Update call of analyze_function.
12001         (generate_summary): Add call of analyze_function.
12002         (propagate): Propagate can_throw; handle state_set_in_source correctly.
12003         (local_pure_const): New function.
12004         (pass_local_pure_const): New pass.
12005         * ipa-inline.c (inline_transform): Set after_inlining.
12006         * tree-eh.c (stmt_can_throw_external): New.
12007         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
12008         work with aliasing built.
12009         * tree-flow.h (stmt_can_throw_external): New.
12010         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
12011         and local pure/const pass in early and late optimization queue.
12013 2009-03-28  Martin Jambor  <mjambor@suse.cz>
12015         * fold-const.c (get_pointer_modulus_and_residue): New parameter
12016         allow_func_align.
12017         (fold_binary): Allow function decl aligment consideration is the
12018         second argument is integer constant one.
12019         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
12020         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
12021         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
12023 2009-03-28  Jan Hubicka  <jh@suse.cz>
12025         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
12026         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
12027         * function.h (rtl_data): Add nothrow flag.
12028         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
12029         set DECL_NOTHROW for AVAILABLE functions.
12031 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
12033         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
12034         following vector keyword has expansion starting with pixel or bool
12035         keyword, expand vector to __vector and pixel or bool to __pixel or
12036         __bool.
12038         PR c++/39554
12039         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
12040         warn_if_disallowed_function_p): Removed.
12041         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
12042         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
12043         warning_if_disallowed_function_p.
12044         * flags.h (warn_if_disallowed_function_p,
12045         warn_disallowed_functions): Removed.
12046         * common.opt (Wdisallowed-function-list=): Removed.
12047         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
12049 2009-03-28  Richard Guenther  <rguenther@suse.de>
12051         PR tree-optimization/38723
12052         * tree-ssa-pre.c (compute_avail): Add all default definitions to
12053         the entry block.
12055 2009-03-28  Jan Hubicka  <jh@suse.cz>
12057         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
12058         test introduced by my previous patch.
12060 2009-03-28  Richard Guenther  <rguenther@suse.de>
12062         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
12063         the PHIs value undefined.
12065 2009-03-28  Jan Hubicka  <jh@suse.cz>
12067         * tree-pass.h (pass_fixup_cfg): New pass.
12068         * ipa-inline.c (inline_transform): Set
12069         always_inline_functions_inlined/after_inlining.
12070         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
12071         (pass_fixup_cfg): New pass.
12072         * passes.c (init_optimization_passes): Add fixup_cfg.
12074 2009-03-28  Richard Guenther  <rguenther@suse.de>
12076         PR tree-optimization/38458
12077         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
12078         argument use the arguments copy-of value.
12080 2009-03-28  Richard Guenther  <rguenther@suse.de>
12082         PR tree-optimization/38180
12083         * tree-ssa-ccp.c (get_default_value): Simplify.
12084         (likely_value): Likewise.
12085         (surely_varying_stmt_p): Properly handle VOP case.
12086         (ccp_initialize): Likewise.
12087         (ccp_fold): Handle propagating through *&.
12088         (fold_const_aggregate_ref): Also handle decls.
12090 2009-03-28  Jan Hubicka  <jh@suse.cz>
12092         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
12093         * cgraph.h (cgraph_node): Likewise.
12094         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
12095         (cgraph_reset_node): Use process flag.
12096         (cgraph_mark_functions_to_output): Likewise.
12097         (cgraph_expand_function): Likewise.
12098         (cgraph_expand_all_functions): Likewise.
12099         (cgraph_output_in_order): Likewise.
12100         * dwarf2out.c (reference_to_unused): Likewise.
12101         * passes.c do_per_function_toporder): Likewise.
12103 2009-03-28  Jan Hubicka  <jh@suse.cz>
12105         Bring from lto-branch:
12107         2008-09-03  Doug Kwan  <dougkwan@google.com>
12109         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
12110         enums instead of reason strings.
12111         * cgraph.c (cgraph_create_edge): Same.
12112         (cgraph_inline_failed_string): New function.
12113         * cgraph.h (cgraph_inline_failed_t): New enum type.
12114         (cgraph_inline_failed_string): New prototype.
12115         (struct cgraph_edge): Change type of INLINED_FAILED from constant
12116         char pointer to cgraph_inline_failed_t.
12117         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
12118         (cgraph_default_inline_p): Ditto.
12119         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
12120         to cgraph_inline_failed_t pointer.
12121         * cif-code.def: New file.
12122         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
12123         reason string.
12124         (cgraph_check_inline_limits): Change type of REASON to pointer to
12125         cgraph_inline_failed_t.  Replace reason strings with enums.
12126         (cgraph_default_inline_p): Ditto.
12127         (cgraph_recursive_inlining_p): Ditto.
12128         (update_caller_keys): Change type of FAILED_REASON to
12129         cgraph_inline_failed_t.
12130         (cgraph_set_inline_failed): Change type of REASON to pointer to
12131         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
12132         convert enums to strings for text output.
12133         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
12134         to be of type cgraph_inline_failed_t.  Replace reason strings with
12135         enums.  Call cgraph_inline_failed_string to covert enums
12136         to strings for text output.
12137         (cgraph_decide_inlining): Replace reason strings with enums.
12138         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
12139         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
12140         for text output.
12141         * tree-inline.c (expand_call_inline): Change type of REASON
12142         to cgraph_inline_failed_t.  Replace reason strings with enums.
12143         Call cgraph_inline_failed_string for text output.
12144         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
12145         (cgraph.o): Ditto.
12147 2009-03-28  Jan Hubicka  <jh@suse.cz>
12149         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
12150         cgraph_clone_node): Remove master clone handling.
12151         (cgraph_is_master_clone, cgraph_master_clone): Remove.
12152         * cgraph.h (master_clone): Remove.
12153         (cgraph_is_master_clone, cgraph_master_clone): Remove.
12154         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
12155         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
12157 2009-03-28  Jan Hubicka  <jh@suse.cz>
12159         * cgraph.c (cgraph_function_body_availability): Functions declared
12160         inline are always safe to assume that it is not going to be replaced.
12162 2009-03-28  Richard Guenther  <rguenther@suse.de>
12164         PR tree-optimization/38513
12165         * tree-ssa-pre.c (eliminate): Remove redundant stores.
12166         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
12167         EXC_PTR_EXPR and FILTER_EXPR.
12168         (get_ref_from_reference_ops): Likewise.
12170 2009-03-28  Richard Guenther  <rguenther@suse.de>
12172         PR tree-optimization/38968
12173         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
12174         Use FLOOR_MOD_EXPR to compute misalignment.
12176 2009-03-28  Richard Guenther  <rguenther@suse.de>
12178         PR tree-optimization/37795
12179         * tree.h (combine_comparisons): Declare.
12180         * fold-const.c (combine_comparisons): Export.
12181         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
12182         comparisons.
12183         (ifcombine_iforif): Use combine_comparisons.
12185 2009-03-28  Jan Hubicka  <jh@suse.cz>
12187         * tree-eh.c (inlinable_call_p): New function.
12188         (make_eh_edges): Use it.
12189         (verify_eh_edges): Use it.
12190         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
12191         * except.c (reachable_next_level): Add inlinable_function argument
12192         (sjlj_find_directly_reachable_regions): Update.
12193         (add_reachable_handler): Do not set saw_any_handlers.
12194         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
12195         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
12196         Add new inlinable call parameter.
12197         (can_throw_internal, can_throw_external): Update.
12198         * except.h (can_throw_internal_1, can_throw_external_1,
12199         foreach_reachable_handler): Update declaration.
12201 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
12203         * config/arm/t-arm-coff, config/h8300/coff.h,
12204         config/i386/i386-aout.h, config/i386/i386-coff.h,
12205         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
12206         config/pdp11/2bsd.h, config/rs6000/aix41.h,
12207         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
12208         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
12209         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
12210         sys-types.h: Remove.
12211         * Makefile.in: Remove protoize and fixproto support and references
12212         in comments.
12213         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
12214         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
12215         Remove.
12216         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
12217         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
12218         unprotoize$(exeext).
12219         (rest.encap): Don't depend on $(STMP_FIXPROTO)
12220         (.PHONY): Don't depend on proto.
12221         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
12222         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
12223         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
12224         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
12225         build/gen-protos.o, build/scan.o, xsys-protos.h,
12226         build/fix-header$(build_exeext), build/fix-header.o,
12227         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
12228         stmp-install-fixproto): Remove.
12229         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
12230         SYSCALLS.c or fixproto files.
12231         (install-common): Don't install protoize.
12232         (install-headers-tar, install-headers-cpio, install-headers-cp):
12233         Don't depend on $(STMP_FIXPROTO).
12234         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
12235         install fixproto files or write out fixproto settings.
12236         (uninstall): Don't uninstall protoize.
12237         * config.gcc (use_fixproto): Remove.
12238         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
12239         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
12240         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
12241         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
12242         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
12243         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
12244         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
12245         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
12246         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
12247         * config/t-vxworks (STMP_FIXPROTO): Remove.
12248         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
12249         STMP_FIXPROTO): Remove.
12250         * config.in, configure: Regenerate.
12251         * crtstuff.c (gid_t, uid_t): Don't undefine.
12252         * doc/install.texi: Change m68k-coff to m68k-elf in example.
12253         (arm-*-coff, arm-*-aout: Remove target entries.
12254         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
12255         Remove mention of AIX 4.1.
12256         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
12257         * doc/invoke.texi (Running Protoize): Remove.
12258         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
12259         (Protoize Caveats): Remove.
12260         * tsystem.h: Update comments on headers assumed to exist.
12262 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
12264         * genautomata.c: Add a new year to the copyright.  Add a new
12265         reference.
12266         (struct insn_reserv_decl): Add comments for member bypass_list.
12267         (find_bypass): Remove.
12268         (insert_bypass): New.
12269         (process_decls): Use insert_bypass.
12270         (output_internal_insn_latency_func): Output all bypasses with the
12271         same input insn in one switch case.
12273         * rtl.def (define_bypass): Describe bypass choice.
12274         * doc/md.texi (define_bypass): Ditto.
12276 2009-03-27  Richard Guenther  <rguenther@suse.de>
12278         * gimplify.c (mark_addressable): Export.
12279         * tree-flow.h (mark_addressable): Declare.
12280         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
12281         * tree-ssa.c (verify_phi_args): Verify that address taken
12282         variables have TREE_ADDRESSABLE set.
12284 2009-03-27  Richard Guenther  <rguenther@suse.de>
12286         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
12287         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
12288         Do not mark decls TREE_ADDRESSABLE.
12289         (build_fold_addr_expr): Adjust.
12290         (fold_addr_expr): Remove.
12291         (fold_unary): Use build_fold_addr_expr.
12292         (fold_comparison): Likewise.
12293         (split_address_to_core_and_offset): Likewise.
12294         * coverage.c (tree_coverage_counter_addr): Mark the array decl
12295         TREE_ADDRESSABLE.
12296         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
12297         (gimplify_modify_expr_to_memcpy): Mark source and destination
12298         addressable.
12299         * omp-low.c (create_omp_child_function): Mark the object decl
12300         TREE_ADDRESSABLE.
12301         (lower_rec_input_clauses): Mark the var we take the address of
12302         TREE_ADDRESSABLE.
12303         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
12305 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12307         PR middle-end/39315
12308         * cfgexpand.c (expand_one_stack_var_at): Change alignment
12309         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
12311 2009-03-27  Richard Guenther  <rguenther@suse.de>
12313         PR tree-optimization/39120
12314         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
12315         constraints.
12316         (handle_lhs_call): Process return constraints.  Add escape
12317         constraints if necessary.
12318         (handle_const_call): Fill out return constraints.  Make nested
12319         case more precise.  Avoid consttmp if possible.
12320         (handle_pure_call): Fill out return constraints.  Avoid
12321         callused if possible.
12322         (find_func_aliases): Simplify call handling.
12324 2009-03-27  Richard Guenther  <rguenther@suse.de>
12326         PR tree-optimization/39120
12327         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
12328         as a representative.
12329         (solve_graph): Do propagate CALLUSED.
12330         (handle_pure_call): Use a scalar constraint from CALLUSED for
12331         the return value.
12332         (find_what_p_points_to): CALLUSED shall not appear in poins-to
12333         solutions.
12335 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12337         PR c/39323
12338         * c-common.c (handle_aligned_attribute): Properly check alignment
12339         overflow.  Use (1U << i) instead of (1 << i).
12341         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
12343         * expr.h (get_mem_align_offset): Updated.
12345         * tree.h (tree_decl_common): Change align to "unsigned int" and
12346         move it before pointer_alias_set.
12348 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12349             Jakub Jelinek  <jakub@redhat.com>
12351         PR target/38034
12352         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
12353         gr_register_operand with gr_reg_or_0_operand.
12354         (cmpxchg_rel_di): Likewise.
12355         (sync_lock_test_and_set<mode>): Likewise.
12357 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12359         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
12360         (true_regnum): Likewise.
12362         * rtlanal.c (subreg_info): Moved to ...
12363         * rtl.h (subreg_info): Here.  New.
12364         (subreg_get_info): New.
12366         * rtlanal.c (subreg_get_info): Make it extern.
12368 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12370         PR target/39472
12371         * config/i386/i386.c (ix86_abi): New.
12372         (override_options): Handle -mabi=.
12373         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
12374         (ix86_call_abi_override): Likewise.
12375         (init_cumulative_args): Likewise.
12376         (function_arg_advance): Likewise.
12377         (function_arg_64): Likewise.
12378         (function_arg): Likewise.
12379         (ix86_pass_by_reference): Likewise.
12380         (ix86_function_value_regno_p): Likewise.
12381         (ix86_build_builtin_va_list_abi): Likewise.
12382         (setup_incoming_varargs_64): Likewise.
12383         (is_va_list_char_pointer): Likewise.
12384         (ix86_init_machine_status): Likewise.
12385         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
12386         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
12387         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
12388         (ix86_function_abi): Make it static and return enum calling_abi.
12389         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
12390         with ix86_abi.
12391         (ix86_fn_abi_va_list): Updated.
12393         * config/i386/i386.h (ix86_abi): New.
12394         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
12395         (CONDITIONAL_REGISTER_USAGE): Likewise.
12396         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
12397         (machine_function): Likewise.
12399         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
12400         with ix86_abi.
12401         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
12402         (STACK_BOUNDARY): Likewise.
12403         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
12405         * config/i386/i386.opt (mabi=): New.
12407         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
12408         return enum calling_abi.
12409         (ix86_function_type_abi): Likewise.
12410         (ix86_function_abi): Removed.
12412         * doc/invoke.texi: Document -mabi= option for x86.
12414 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12416         * builtins.c (real_dconstp): Delete.
12417         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
12419 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
12420             Jakub Jelinek  <jakub@redhat.com>
12422         PR debug/37959
12423         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
12424         (gen_subprogram_die): When a function is explicit, generate the
12425         DW_AT_explicit attribute.
12426         * langhooks.h (struct lang_hooks_for_decls): Add
12427         function_decl_explicit_p langhook.
12428         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
12429         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
12431 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
12433         * builtins.c (fold_builtin_memory_op): Optimize memmove
12434         into memcpy if we can prove source and destination don't overlap.
12436         * tree-inline.c: Include gt-tree-inline.h.
12437         (clone_fn_id_num): New variable.
12438         (clone_function_name): New function.
12439         (tree_function_versioning): Use it.
12440         * Makefile.in (GTFILES): Add tree-inline.c.
12442 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
12444         * BASE-VER: Change to 4.5.0.
12446 2009-03-27  Xinliang David Li  <davidxl@google.com>
12448         PR tree-optimization/39557
12449         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
12451 2009-03-27  Xinliang David Li  <davidxl@google.com>
12453         PR tree-optimization/39548
12454         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
12455         candidate check.
12457 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12459         * c-common.c (pointer_int_sum): Use %wd on return from
12460         tree_low_cst.
12462 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12464         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
12465         on return from tree_low_cst.
12467 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12469         PR c++/36799
12470         * ginclude/stdarg.h (va_copy): Define also for
12471         __GXX_EXPERIMENTAL_CXX0X__.
12473 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12475         PR c++/35652
12476         * builtins.h (c_strlen): Do not warn here.
12477         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
12478         * c-common.c (pointer_int_sum): Take an explicit location.
12479         Warn about offsets out of bounds.
12480         * c-common.h (pointer_int_sum): Adjust declaration.
12482 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12484         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
12485         markup glitch.
12487 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
12489         PR c++/39554
12490         * opts.c (warn_if_disallowed_function_p): Don't assume
12491         get_callee_fndecl must return non-NULL.
12493 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
12495         PR rtl-optimization/39522
12496         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
12497         when reg_reloaded_valid is set.
12499 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12501         * config/spu/divv2df3.c: New file.
12502         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
12503         (DPBIT_FUNCS): Filter out _div_df.
12505 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
12507         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
12508         a jump insn, count that jump in the distance to the loop start.
12510 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
12512         PR target/39523
12513         * config/sh/sh.c (calc_live_regs): Fix condition for global
12514         registers except PIC_OFFSET_TABLE_REGNUM.
12516 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
12518         PR/39518
12519         * doc/invoke.texi (-mconsole): New.
12520         (-mcygwin): New.
12521         (-mno-cygwin): New.
12522         (-mdll): New.
12523         (-mnop-fun-dllimport): New.
12524         (-mthread): New.
12525         (-mwin32): New.
12526         (-mwindows): New.
12527         (sub section "i386 and x86-64 Windows Options"): New.
12529 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
12531         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
12532         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
12534 2009-03-25  Richard Guenther  <rguenther@suse.de>
12536         PR middle-end/39497
12537         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
12538         of -Wno-error.
12540 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
12542         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
12543         neither of haifa/selective schedulers are working.
12545 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12547         * doc/invoke.texi (Debugging Options): Fix description of
12548         -fno-merge-debug-strings.
12550 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
12552         * config/cris/libgcc.ver: New version-script.
12553         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
12555         * configure.ac <GAS features, nop mnemonic>: Add pattern
12556         crisv32-*-* for "nop".
12557         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
12558         * configure: Regenerate.
12560 2009-03-24  Ira Rosen  <irar@il.ibm.com>
12562         PR tree-optimization/39529
12563         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
12564         mark_sym_for_renaming for the tag copied to the new vector
12565         pointer.
12567 2009-03-24  Arthur Loiret  <aloiret@debian.org>
12569         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
12570         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
12571         EXTRA_SPEC_FUNCTIONS.
12572         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
12573         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
12574         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
12575         -march and -mtune options.
12577 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
12579         * config/m68k/t-rtems: Add m5329 multilib.
12581 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
12582             Jakub Jelinek  <jakub@redhat.com>
12584         PR debug/39524
12585         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
12586         nodes.
12588 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
12590         PR c/39495
12591         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
12592         instead of c_parser_expression_conv, if original_code isn't one of the
12593         4 allowed comparison codes, fail.
12595 2009-03-23  Richard Guenther  <rguenther@suse.de>
12597         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
12598         * tree.h (struct tree_type): Likewise.
12599         * reload.h (struct insn_chain): Likewise.
12600         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
12601         * function.h (struct function): Likewise.
12602         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
12604 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
12606         PR tree-optimization/39516
12607         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
12609 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
12611         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
12612         should be set true if BITS_PER_WORD of target is bigger than 32
12614 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
12616         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
12617         Translate -B-options to -rpath-link.  Correct existing
12618         rpath-link and conditionalize on !nostdlib.
12620 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12622         * doc/extend.texi (Function Attributes, Variable Attributes):
12623         Fix typos.
12624         * doc/invoke.texi (Debugging Options, Optimize Options)
12625         (i386 and x86-64 Options, MCore Options): Likewise.
12627 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
12629         PR debug/37890
12630         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
12631         it for block local namespace aliases.
12632         (gen_decl_die): Pass context_die to gen_namespace_die.
12634 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
12636         PR c/39495
12637         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
12638         minimum or maximum value.
12640 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
12642         * reginfo.c (globalize_reg): Recompute derived reg sets.
12644 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
12646         PR target/39063
12647         * libgcc2.c (mprotect): Do not use signed arguments for
12648         VirtualProtect, use DWORD arguments.  Also fix the 'may
12649         be used uninitialized' warning for the np variable.
12651 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
12653         PR target/39496
12654         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
12655         functions using regparm calling conventions when not optimizing.
12656         (ix86_function_sseregparm): Similarly for sseregparm calling
12657         conventions.
12659 2009-03-19  Li Feng  <nemokingdom@gmail.com>
12661         PR middle-end/39500
12662         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
12663         dependence if the first conflict is after niter iterations.
12665 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
12667         PR middle-end/38609
12668         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
12669         functions with dynamic stack-pointer adjustments.
12671 2009-03-19  Ben Elliston  <bje@au.ibm.com>
12673         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
12674         option; change to -msdata=data.
12676 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12678         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
12679         and -fopenmp.
12681 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
12683         PR target/35180
12684         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
12686 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
12688         * doc/invoke.texi (Code Gen Options): Expand discussion of
12689         -fno-common.
12691 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
12693         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
12694         * matrix-reorg.c (struct matrix_info): Likewise.
12695         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
12696         * rtl.h (struct mem_attrs): Likewise.
12697         * df.h (struct df): Likewise.
12698         * tree-data-ref.h (struct data_dependence_relation): Likewise.
12699         * ira-int.h (struct ira_allocno): Likewise.
12700         * df-scan.c (struct df_collection_rec): Likewise.
12701         * ira.c (struct equivalence): Likewise.
12702         * function.c (struct temp_slot): Likewise.
12703         * cfgloop.h (struct loop): Likewise.
12705         PR debug/39485
12706         * function.c (use_register_for_decl): When not optimizing, disregard
12707         register keyword for variables with types containing methods.
12709 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
12711         PR middle-end/39447
12712         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
12713         (is_simple_operand): Call contains_component_ref_p before calling data
12714         reference analysis that would fail on COMPONENT_REFs.
12716         * tree-vrp.c (search_for_addr_array): Fix formatting.
12718 2009-03-18  Richard Guenther  <rguenther@suse.de>
12720         * tree-vect-transform.c (vect_loop_versioning): Fold the
12721         generated comparisons.
12722         * tree-vectorizer.c (set_prologue_iterations): Likewise.
12723         (slpeel_tree_peel_loop_to_edge): Likewise.
12725 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12727         PR middle-end/37805
12728         * opts.c (print_specific_help): In addition to `undocumented',
12729         accept `separate' and `joined' flags if passed alone.  Describe
12730         output by the first matched one of those.
12731         (common_handle_option): Skip over empty strings.
12732         * gcc.c (display_help): Fix help string for `--help='.
12733         * doc/invoke.texi (Option Summary, Overall Options): With
12734         `--help=', classes and qualifiers can both be repeated, but
12735         only the latter can be negated.  One should not pass only
12736         negated qualifiers.  Fix markup and examples.
12738         Revert
12739         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
12740         PR middle-end/37805
12741         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
12742         and -fhelp=separate.
12744 2009-03-17  Jing Yu  <jingyu@google.com>
12746         PR middle-end/39378
12747         * function.h (struct rtl_data): Move is_thunk from here...
12748         (struct function): ...to here.
12749         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
12750         * varasm.c (assemble_start_function): Change is_thunk from crtl to
12751         cfun.
12752         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
12753         cfun.
12754         (alpha_does_function_need_gp, alpha_start_function): Likewise.
12755         (alpha_output_function_end_prologue): Likewise.
12756         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
12757         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
12758         (rs6000_output_function_epilogue): Likewise.
12759         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
12761 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
12763         PR target/39482
12764         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
12765         from different units in a single alternative.
12766         (*truncdfsf_i387): Ditto.
12767         (*truncxfsf2_mixed): Ditto.
12768         (*truncxfdf2_mixed): Ditto.
12770 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
12772         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
12773         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
12775         PR debug/39474
12776         * tree-ssa-live.c (remove_unused_locals): Don't remove local
12777         unused non-artificial variables when not optimizing.
12779         PR debug/39471
12780         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
12781         DW_TAG_imported_module even if decl is IMPORTED_DECL with
12782         NAMESPACE_DECL in its DECL_INITIAL.
12784         PR middle-end/39443
12785         * optabs.c (set_user_assembler_libfunc): New function.
12786         * expr.h (set_user_assembler_libfunc): New prototype.
12787         * c-common.c: Include libfuncs.h.
12788         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
12789         for memcmp, memset, memcpy, memmove and abort.
12790         * Makefile.in (c-common.o): Depend on libfuncs.h.
12792         PR debug/39412
12793         * dwarf2out.c (gen_inlined_enumeration_type_die,
12794         gen_inlined_structure_type_die, gen_inlined_union_type_die,
12795         gen_tagged_type_instantiation_die): Removed.
12796         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
12797         do nothing.
12799 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
12801         PR testsuite/38526
12802         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
12803         its use.
12804         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
12805         (check-parallel-%): Ditto.
12806         (check-consistency): Ditto.
12808 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
12810         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
12811         local variable rhs by NULL_TREE.
12813 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12815         PR target/39477
12816         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
12818 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12820         PR target/39476
12821         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
12823 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12825         PR target/39473
12826         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
12827         for ms->sysv ABI calls only in 64bit mode.
12829         * config/i386/i386.md (untyped_call): Support 32bit.
12831 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12833         * doc/extend.texi: Replace x86_65 with x86_64.
12835 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
12837         PR tree-optimization/39455
12838         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
12839         mismatches for POINTER_TYPE_P (type).
12840         (number_of_iterations_le): Likewise.
12842 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
12844         * config/picochip/picochip.c: Removed profiling support.
12845         * config/picochip/picochip.md: Removed profiling instruction.
12846         * config/picochip/picochip.h: Removed profiling builtin.
12848 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
12850         * doc/install.texi (--with-host-libstdcxx): Document.
12852 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
12854         PR target/34299
12855         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
12856         generate a warning if the function name does not begin with
12857         "__vector" and the function has either the 'signal' or 'interrupt'
12858         attribute, from here to ...
12859         (avr_declare_function_name): ...here. New function.
12860         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
12861         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
12863 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
12865         PR bootstrap/39454
12866         * cse.c (fold_rtx): Don't modify original const_arg1 when
12867         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
12868         separate variable instead.
12869         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
12870         from out of range shift counts.
12871         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
12873 2009-03-13  Catherine Moore  <clm@codesourcery.com>
12875         * config/i386/x-mingw32 (host-mingw32.o): Replace
12876         diagnostic.h with $(DIAGNOSTIC_H).
12878 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
12880         PR target/39431
12881         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
12882         predicate.
12883         * config/i386/sync.md (sync_compare_and_swap<mode>,
12884         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
12885         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
12886         into a register.
12887         (sync_double_compare_and_swapdi_pic,
12888         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
12889         cmpxchg8b_pic_memory_operand instead of just memory_operand.
12891 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
12893         PR target/39445
12894         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
12896 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
12898         PR target/39327
12899         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
12900         (avx_addsubv4df3): Likewise.
12901         (*avx_addsubv4sf3): Likewise.
12902         (sse3_addsubv4sf3): Likewise.
12904 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
12906         PR target/38824
12907         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
12909 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
12911         PR debug/39432
12912         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
12913         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
12914         registers for allocnos created from user-defined variables.
12916 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12918         PR target/39181
12919         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
12920         of non-integer mode as well.
12922 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
12924         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
12925         for functions for which the parameter types are unknown.
12927 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
12929         PR target/39137
12930         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
12931         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
12932         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
12933         * config/i386/i386.c (ix86_local_alignment): For
12934         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
12935         long long variables on the stack to avoid dynamic realignment.
12936         Allow the first argument to be a decl rather than type.
12937         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
12939 2009-03-11  Nick Clifton  <nickc@redhat.com>
12941         PR target/5362
12942         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
12943         options.
12944         Add description to mno-lsim option.
12945         * config/mcore/mcore.h: Remove comment about deprecated m4align
12946         option.
12947         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
12948         * doc/invoke.texi: Add description of mno-lsim and
12949         mstack-increment options.
12951         * config/fr30/fr30.opt: Document the -mno-lsim option.
12952         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
12953         and -mno-lsim options.
12955 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12957         * fold-const.c (fold_comparison): Only call fold_inf_compare
12958         if the mode supports infinities.
12960 2009-03-11  Jason Merrill  <jason@redhat.com>
12962         PR debug/39086
12963         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
12964         end already did.  Notice GIMPLE_CALL modifications of the result.
12965         Don't copy debug information from an ignored decl or a decl from
12966         another function.
12968 2009-03-10  Richard Guenther  <rguenther@suse.de>
12969             Nathan Froyd  <froydnj@codesourcery.com>
12971         PR middle-end/37850
12972         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
12973         (__divMODE3): Likewise.
12975 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
12977         PR tree-optimization/39394
12978         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
12979         DECL_SIZE_UNIT of variable length FIELD_DECLs.
12981 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12983         * recog.c (verfiy_changes): Disallow renaming of hard regs in
12984         inline asms for register asm ("") declarations.
12986 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
12988         * fold-const.c (fold_unary): Fix comment.
12990 2009-03-07  Jan Hubicka  <jh@suse.cz>
12992         PR target/39361
12993         * tree-inline.c (setup_one_parameter): Do replacement of const
12994         argument by constant in SSA form.
12996 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12998         PR middle-end/38028
12999         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
13000         determine alignment passed to assign_stack_local.
13001         (assign_parms_unsplit_complex): Likewise.
13002         * except.c (sjlj_build_landing_pads): Likewise.
13004 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
13006         PR middle-end/39360
13007         * tree-flow.h (add_referenced_var): Return bool instead of void.
13008         * tree-dfa.c (add_referenced_var): Return result of
13009         referenced_var_check_and_insert call.
13010         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
13011         of referenced_var_check_and_insert.
13013         PR debug/39372
13014         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
13015         (gen_variable_die): Emit DW_AT_location on abstract static variable's
13016         DIE, don't emit it if abstract origin already has it.
13017         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
13018         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
13020 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13022         * genpreds.c (needs_variable): Fix parentheses at variable name
13023         detection.
13024         (write_tm_constrs_h): Indent generated code.
13026 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13028         * doc/extend.texi (Function Attributes): Add documentation
13029         for isr attributes.
13031 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
13033         PR debug/39387
13034         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
13035         take locus from its DECL_SOURCE_LOCATION instead of input_location.
13037 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
13039         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
13040         the loop as bad.
13042 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
13044         PR debug/39379
13045         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
13046         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
13048 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
13050         * config/i386/i386.md (R8_REG, R9_REG): New constants.
13051         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
13052         constants instead of magic numbers.
13053         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
13054         (QI_REG_P): Ditto.
13055         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
13056         (x86_64_ms_abi_int_parameter_registers): Ditto.
13057         (x86_64_int_return_registers): Ditto.
13058         (ix86_maybe_switch_abi): Ditto.
13059         (ix86_expand_call): Ditto for clobbered_registers array.
13060         (ix86_hard_regno_mode_ok): Ditto.
13061         (x86_extended_QIreg_mentioned_p): Ditto.
13063 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
13065         PR tree-optimization/39349
13066         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
13068         * combine.c (gen_lowpart_for_combine): Use omode when generating
13069         clobber.
13071 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
13073         PR rtl-optimization/39235
13074         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
13076 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
13078         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
13080 2009-03-04  Richard Guenther  <rguenther@suse.de>
13082         PR tree-optimization/39362
13083         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
13084         that occur in abnormal PHIs should be varying.
13086 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
13088         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
13089         Extend comments.
13090         (simple_iv):  Take loop as an argument instead of statement.
13091         * tree-scalar-evolution.h (simple_iv): Declaration changed.
13092         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
13093         to simple_iv.
13094         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
13095         Ditto.
13096         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
13097         * matrix-reorg.c (analyze_transpose): Ditto.
13098         * tree-data-ref.c (dr_analyze_innermost): Ditto.
13099         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
13100         * tree-predcom.c (ref_at_iteration): Ditto.
13101         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
13103 2009-03-04  Richard Guenther  <rguenther@suse.de>
13105         PR tree-optimization/39358
13106         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
13107         escaped_id and callused_id.
13108         (solve_graph): Likewise.
13110 2009-03-04  Richard Guenther  <rguenther@suse.de>
13112         PR tree-optimization/39339
13113         * tree-sra.c (try_instantiate_multiple_fields): Make it
13114         no longer ICE on the above.
13116 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
13118         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
13119         that fits within Pmode.
13121 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
13123         PR middle-end/10109
13124         * tm.texi (LIBCALL_VALUE): Update description.
13126 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
13128         PR middle-end/34443
13129         * doc/extend.texi (section): Update description.
13131 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
13133         PR middle-end/39345
13134         * tree-inline.c (remapped_type): New.
13135         (can_be_nonlocal): Call remapped_type instead of remap_type.
13137 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
13139         PR fortran/39354
13140         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
13141         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
13143 2009-03-03  Richard Guenther  <rguenther@suse.de>
13145         PR middle-end/39272
13146         * tree.c (tree_nonartificial_location): New function.
13147         * tree.h (tree_nonartificial_location): Declare.
13148         * builtins.c (expand_builtin_memory_chk): Provide location
13149         of the call location for artificial function pieces.
13150         (maybe_emit_chk_warning): Likewise.
13151         (maybe_emit_sprintf_chk_warning): Likewise.
13152         (maybe_emit_free_warning): Likewise.
13153         * expr.c (expand_expr_real_1): Likewise.
13155 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
13157         PR tree-optimization/39343
13158         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
13159         COMPONENT_REF t has ARRAY_TYPE.
13161 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
13163         PR middle-end/39335
13164         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
13165         when the type precision of the induction variable should be
13166         larger than the type precision of nit.
13167         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
13168         * graphite.c (graphite_loop_normal_form): Same.
13169         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
13171 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
13173         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
13174         (*call_1_rex64_ms_sysv): Use named constants instead of magic
13175         numbers to describe clobbered registers.
13176         (*call_value_0_rex64_ms_sysv): Ditto.
13177         * config/i386/mmx.md (mmx_emms): Ditto.
13178         (mmx_femms): Ditto.
13180 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
13182         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
13183         of ABI_64.
13185 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13187         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
13188         (spu_section_type_flags): New function.
13190 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
13192         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
13193         reg_class_contents of FLOAT_REGS into a temporary.
13195 2009-03-02  Richard Guenther  <rguenther@suse.de>
13196             Ira Rosen  <irar@il.ibm.com>
13198         PR tree-optimization/39318
13199         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
13200         information to the vectorized statement.
13202 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
13204         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
13205         variable.  Use defined names instead of magic constants for REX SSE
13206         registers.
13208 2009-03-01  Richard Guenther  <rguenther@suse.de>
13210         PR tree-optimization/39331
13211         * omp-low.c (lower_send_shared_vars): Do not receive new
13212         values for the reference of DECL_BY_REFERENCE parms or results.
13214 2009-03-01  Jan Hubicka  <jh@suse.cz>
13216         PR debug/39267
13217         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
13218         BLOCK_NONLOCALIZED_VAR): New macros.
13219         (tree_block): Add nonlocalized_vars.
13220         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
13221         gen_decl_die): Add origin argument.  Allow generation of die with
13222         origin at hand only.
13223         (gen_member_die, gen_type_die_with_usage, force_decl_die,
13224         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
13225         of gen_*.
13226         (gen_block_die): Fix checking for unused blocks.
13227         (process_scope_var): Break out from .... ; work with origins only.
13228         (decls_for_scope) ... here; process nonlocalized list.
13229         (dwarf2out_ignore_block): Look for nonlocalized vars.
13230         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
13231         vars.
13232         (dump_scope_block): Dump them.
13233         * tree-inline.c (remap_decls): Handle nonlocalized vars.
13234         (remap_block): Likewise.
13235         (can_be_nonlocal): New predicate.
13236         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
13238 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13240         * configure: Regenerate.
13242 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13244         * optc-gen.awk: No need to duplicate option flags twice.
13245         Reuse help texts for duplicate options which do not have any.
13247         * gcc.c (display_help): Document --version.
13249         * gcc.c (main): If print_help_list and verbose_flag, ensure
13250         driver output comes before subprocess output.
13252         * optc-gen.awk: Assign all remaining fields to help string,
13253         space-separated, for multi-line help in *.opt.
13255         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
13256         -Wno-pedantic-ms-format is for MinGW targets only.
13258         * doc/options.texi (Option file format): Fix bad indentation,
13259         restoring dropped sentence.
13261 2009-02-28  Jan Hubicka  <jh@suse.cz>
13263         * tree-inline.c (tree_function_versioning): Output debug info.
13265 2009-02-28  Jan Hubicka  <jh@suse.cz>
13267         PR debug/39267
13268         * tree-inline.c (setup_one_parameter): Do not copy propagate
13269         arguments when not optimizing.
13271 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
13273         PR target/39327
13274         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
13275         (avx_addsubv4df3): Likewise.
13276         (*avx_addsubv4sf3): Likewise.
13277         (sse3_addsubv4sf3): Likewise.
13278         (*avx_addsubv2df3): Likewise.
13279         (sse3_addsubv2df3): Likewise.
13280         (avx_unpckhps256): Correct item selectors.
13281         (avx_unpcklps256): Likewise.
13282         (avx_unpckhpd256): Likewise.
13283         (avx_unpcklpd256): Likewise.
13285 2009-02-28  Jan Hubicka  <jh@suse.cz>
13287         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
13288         static vars.
13289         (copy_arguments_for_versioning): If var is declared don't declare it.
13290         (tree_function_versioning): First setup substitutions and then copy
13291         args.
13293 2009-02-27  Jan Hubicka  <jh@suse.cz>
13295         PR debug/39267
13296         * cgraph.h (varpool_output_debug_info): Remove.
13297         * cgraphunit.c (varpool_output_debug_info): Remove.
13298         * dwarf2out.c (deferred_locations_struct): New struct
13299         (deferred_locations): New type.
13300         (deferred_locations_list): New static var.
13301         (deffer_location): New function.
13302         (gen_variable_die): Use it.
13303         (decls_for_scope): Output info on local static vars.
13304         (dwarf2out_finish): Process deferred locations.
13305         * varpool.c (varpool_output_debug_info): Remove.
13307 2009-02-27  Jan Hubicka  <jh@suse.cz>
13309         PR debug/39267
13310         * tree.h (TREE_PROTECTED): Fix comment.
13311         (BLOCK_HANDLER_BLOCK): Remove.
13312         (struct tree_block): Remove handler_block add body_block.
13313         (inlined_function_outer_scope_p): New.
13314         (is_body_block): Remove.
13315         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
13316         * dwarf2out.c (is_inlined_entry_point): Remove.
13317         (add_high_low_attributes): Use inlined_function_outer_scope_p.
13318         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
13319         code.
13320         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
13321         * gimplify.c (gimplify_expr): Gimplify body blocks.
13322         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
13323         block with multiple subblocks.
13324         (dump_scope_block): Prettier output; dump more flags and info.
13325         (dump_scope_blocks): New.
13326         (remove_unused_locals): Use dump_scope_blocks.
13327         * tree-flow.h (dump_scope_blocks): Declare.
13328         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
13329         * stmt.c (is_body_block): Remove.
13330         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
13331         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
13333 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
13335         PR middle-end/39308
13336         * graphite.c (graphite_loop_normal_form): Do not call
13337         number_of_iterations_exit from a gcc_assert.
13339 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13341         * config/s390/s390.c (s390_swap_cmp): Look for conditional
13342         jumps if COND is NULL.
13343         (find_cond_jump): New function.
13344         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
13345         * config/s390/s390.md: Remove z10_cobra attribute value.
13347 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
13349         * config/alpha/alpha.h (alpha_expand_mov): Return false if
13350         force_const_mem returns NULL_RTX.
13352 2009-02-26  Jan Hubicka  <jh@suse.cz>
13354         PR debug/39267
13355         * cgraph.h (varpool_output_debug_info): Remove.
13356         * cgraphunit.c (varpool_output_debug_info): Remove.
13357         * dwarf2out.c (deferred_locations_struct): New struct
13358         (deferred_locations): New type.
13359         (deferred_locations_list): New static var.
13360         (deffer_location): New function.
13361         (gen_variable_die): Use it.
13362         (decls_for_scope): Output info on local static vars.
13363         (dwarf2out_finish): Process deferred locations.
13364         * varpool.c (varpool_output_debug_info): Remove.
13366 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
13368         PR rtl-optimization/39241
13369         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
13370         to subreg_offset_representable_p.
13372 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
13374         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
13375         execute function prototype.  Get f and nregs from max_reg_num
13376         and get_insns.  Remove the first backward pass as it's dead,
13377         guard the forward pass by flag_expensive_optimizations.
13378         (rest_of_handle_regmove): Delete.
13379         (pass_regmove): Replace it with regmove_optimize.
13381 2009-02-25  Martin Jambor  <mjambor@suse.cz>
13383         PR tree-optimization/39259
13384         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
13385         calls_alloca function flags.
13386         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
13387         calls are detected.
13389 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
13391         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
13392         flags_set_1_rtx, flags_set_1_set): Delete.
13393         (regmove_optimize): Do not call mark_flags_life_zones.
13395 2009-02-24  Julian Brown  <julian@codesourcery.com>
13397         PR target/35965
13398         * config/arm/arm.c (require_pic_register): Only set
13399         cfun->machine->pic_reg once per function.
13401 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
13403         * doc/invoke.texi (Link Options): Document an easier way to pass
13404         options that take arguments to the GNU linker using -Xlinker and -Wl.
13406 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
13408         PR target/33785
13409         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
13411 2009-02-24  Richard Guenther  <rguenther@suse.de>
13413         PR debug/39285
13414         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
13416 2009-02-24  Richard Guenther  <rguenther@suse.de>
13417             Zdenek Dvorak  <ook@ucw.cz>
13419         PR tree-optimization/39233
13420         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
13421         from converting them to a generic type.
13423 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
13425         PR tree-optimization/39260
13426         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
13427         contains a condition with a real type.
13428         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
13430 2009-02-23  Jason Merrill  <jason@redhat.com>
13432         PR c++/38880
13433         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
13434         narrowing_initializer_constant_valid_p.
13435         (narrowing_initializer_constant_valid_p): Don't return
13436         null_pointer_node for adding a pointer to itself.
13438 2009-02-23  Jan Hubicka  <jh@suse.cz>
13440         PR c/12245
13441         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
13442         resizing.
13444 2009-02-23  Jan Hubicka  <jh@suse.cz>
13446         PR tree-optimization/37709
13447         * tree.c (block_ultimate_origin): Move here from dwarf2out.
13448         * tree.h (block_ultimate_origin): Declare.
13449         * dwarf2out.c (block_ultimate_origin): Move to tree.c
13450         * tree-ssa-live.c (remove_unused_scope_block_p):
13451         Eliminate blocks containig no instructions nor live variables nor
13452         nested blocks.
13453         (dump_scope_block): New function.
13454         (remove_unused_locals): Enable removal of dead blocks by default;
13455         enable dumping at TDF_DETAILS.
13457 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
13459         * config/i386/i386.c (classify_argument): Don't allow COImode
13460         and OImode.
13461         (function_arg_advance_32): Don't allow OImode.
13462         (function_arg_32): Likewise.
13463         (function_value_32): Likewise.
13464         (return_in_memory_32): Likewise.
13465         (function_arg_64): Remove OImode comment.
13467 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
13469         PR target/39261
13470         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
13471         ix86_expand_vector_set for V4DImode in 64bit mode only.
13472         (ix86_expand_vector_init_one_var): Likewise.
13474 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
13476         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
13478 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
13480         PR bootstrap/39257
13481         * loop-iv.c: Revert last change.
13482         * emit-rtl.c: Likewise.
13484 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
13486         PR target/39256
13487         * config/i386/i386.c (type_natural_mode): Remove an extra
13488         space in the warning message.
13489         (function_value_32): Handle 32-byte vector modes.
13490         (return_in_memory_32): Likewise.
13492 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
13494         * loop-iv.c (truncate_value): New function.
13495         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
13496         of lowpart_subreg.
13497         (lowpart_subreg): Move to...
13498         * emit-rtl.c: ...here.
13500 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
13502         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
13503         accidental and undocumented change at revision 140860.
13505 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
13507         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
13508         take gimple_seq * arguments.
13509         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
13510         types_compatible_p langhook.
13512 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
13513             Joseph Myers  <joseph@codesourcery.com>
13515         * config/arm/arm.c (arm_builtin_va_list): New function.
13516         (arm_expand_builtin_va_start): Likewise.
13517         (arm_gimplify_va_arg_expr): Likewise.
13518         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
13519         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
13520         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
13521         (va_list_type): New variable.
13522         (arm_mangle_type): Mangle va_list_type appropriately.
13524 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
13526         PR middle-end/39157
13527         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
13528         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
13529         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
13530         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
13531         parameter to 1000 for -O1 by default.
13532         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
13533         parameter.
13534         * loop-invariant.c: Include params.h.
13535         (move_loop_invariants): Don't call move_single_loop_invariants on
13536         very large loops.
13538 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
13540         * calls.c (emit_library_call_value_1): Use slot_offset instead of
13541         offset when calculating bounds for indexing stack_usage_map.  Fixes
13542         a buffer overflow with certain target setups.
13544 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
13546         PR target/39240
13547         * calls.c (expand_call): Clear try_tail_call if caller and callee
13548         disagree in promotion of function return value.
13550 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
13552         PR target/39175
13553         * c-common.c (c_determine_visibility): If visibility changed and
13554         DECL_RTL has been already set, call make_decl_rtl to update symbol
13555         flags.
13557 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
13559         PR c++/39188
13560         * varasm.c (assemble_variable): Don't check DECL_NAME when
13561         globalizing a variable.
13563 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
13565         PR c/38483
13566         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
13567         expression before any __builtin_trap call.
13568         * c-typeck.c (build_function_call): Convert and check function
13569         arguments before generating a call to a trap.  Evaluate the
13570         function arguments before the trap.
13572 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
13574         PR target/39228
13575         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
13576         (UNSPEC_FXAM_MEM): New unspec.
13577         (fxam<mode>2_i387_with_temp): New insn and split pattern.
13578         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
13579         memory using fxam<mode>2_i387_with_temp to remove excess precision.
13581 2009-02-19  Richard Guenther  <rguenther@suse.de>
13583         PR tree-optimization/39207
13584         PR tree-optimization/39074
13585         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
13586         storedanything_tree): New.
13587         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
13588         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
13589         (build_succ_graph): Add edges from STOREDANYTHING to all
13590         non-direct nodes.
13591         (init_base_vars): Initialize STOREDANYTHING.
13592         (compute_points_to_sets): Free substitution info after
13593         building the succ graph.
13594         (ipa_pta_execute): Likewise.
13596         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
13597         field.
13598         (do_ds_constraint): Do not add to special var or non-pointer
13599         field solutions.
13600         (type_could_have_pointers): Split out from ...
13601         (could_have_pointers): ... here.  For arrays use the element type.
13602         (create_variable_info_for): Initialize may_have_pointers.
13603         (new_var_info): Likewise.
13604         (handle_lhs_call): Make the HEAP variable unknown-sized.
13605         (intra_create_variable_infos): Use a type with pointers for
13606         PARM_NOALIAS, make it unknown-sized.
13608 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13610         PR target/39224
13611         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
13613 2009-02-18  Jason Merrill  <jason@redhat.com>
13615         PR target/39179
13616         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
13617         value if DECL_EXTERNAL.
13618         * tree-sra.c (sra_walk_gimple_assign): Likewise.
13619         * target.h (gcc_target::binds_local_p): Clarify "module".
13620         * tree.h (TREE_PUBLIC): Clarify "module".
13622 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
13624         PR target/38891
13625         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
13626         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
13628 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
13630         PR target/39082
13631         * c.opt (Wabi): Support C and ObjC.
13632         (Wpsabi): New.
13634         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
13636         * config/i386/i386.c (classify_argument): Warn once about the ABI
13637         change when passing union with long double.
13639         * doc/invoke.texi: Update -Wabi for warning psABI changes.
13641 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
13643         PR c/35447
13644         * c-parser.c (c_parser_compound_statement): Always enter and leave
13645         a scope.
13647 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13649         PR target/34587
13650         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
13652 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
13654         PR tree-optimization/36922
13655         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
13656         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
13657         Likewise.
13659 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
13661         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
13662         to 0 for EABI64.
13664 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
13666         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
13668 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
13670         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
13671         tree sharing.
13673 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
13674             Richard Sandiford  <rdsandiford@googlemail.com>
13676         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
13677         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
13678         (loongson_biadd): ...this.
13680 2009-02-17  Richard Guenther  <rguenther@suse.de>
13682         PR tree-optimization/39202
13683         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
13684         a var make sure to follow existing collapses.
13686 2009-02-17  Richard Guenther  <rguenther@suse.de>
13688         PR middle-end/39214
13689         * langhooks.c (lhd_print_error_function): Check for NULL block.
13691 2009-02-17  Richard Guenther  <rguenther@suse.de>
13693         PR tree-optimization/39204
13694         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
13695         of the PHI arg.
13697 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
13699         * config/soft-fp/double.h: Update from glibc CVS.
13701 2009-02-17  Richard Guenther  <rguenther@suse.de>
13703         PR tree-optimization/39207
13704         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
13705         strict-aliasing warnings for pointers pointing to NULL.
13707 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
13709         PR c/35446
13710         * c-parser.c (c_parser_braced_init): Call pop_init_level when
13711         skipping until next close brace.
13713 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
13715         PR target/37049
13716         * config/i386/i386.c (ix86_expand_push): Set memory alignment
13717         to function argument boundary.
13719 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
13721         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
13722         in the lea_add. Reload eventually constraints it properly.
13723         * config/picochip/constraints.md: Remove the target constraint
13724         "b", since it is not needed anymore.
13726 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
13728         * gthr-dce.h: Uglify function parameter and local variable names.
13729         * gthr-gnat.h: Likewise.
13730         * gthr-mipssde.h: Likewise.
13731         * gthr-nks.h: Likewise.
13732         * gthr-posix95.h: Likewise.
13733         * gthr-posix.h: Likewise.
13734         * gthr-rtems.h: Likewise.
13735         * gthr-single.h: Likewise.
13736         * gthr-solaris.h: Likewise.
13737         * gthr-tpf.h: Likewise.
13738         * gthr-vxworks.h: Likewise.
13739         * gthr-win32.h: Likewise.
13741 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
13743         PR target/39196
13744         * config/i386/i386.md: Restrict the new peephole2 to move
13745         between MMX/SSE registers.
13747 2009-02-15  Richard Guenther  <rguenther@suse.de>
13749         Revert
13750         2009-02-13  Richard Guenther  <rguenther@suse.de>
13752         * configure.ac: Enable LFS.
13753         * configure: Re-generate.
13754         * config.in: Likewise.
13756 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13758         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
13759         spu_srqwbyte, spu_srqwbytebc): Define.
13760         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
13761         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
13762         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
13763         "shrqby_<mode>"): New insn-and-split patterns.
13764         * config/spu/spu.c (expand_builtin_args): Determine and return
13765         number of operands using spu_builtin_description data.
13766         (spu_expand_builtin_1): Use it.
13768 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
13770         PR target/38056
13771         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
13772         TARGET_CONST_GP.
13774 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
13776         PR target/39149
13777         * config/i386/i386.c (override_options): Correct warning
13778         messages for -malign-loops, -malign-jumps and -malign-functions.
13780 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
13782         PR target/39152
13783         * config/i386/i386.md: Restrict the new peephole2 to move
13784         between the general purpose registers.
13786 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
13788         PR target/39162
13789         * config/i386/i386.c (type_natural_mode): Add a new argument.
13790         Return the original mode and warn ABI change if vector size is 32byte.
13791         (function_arg_advance): Updated.
13792         (function_arg): Likewise.
13793         (ix86_function_value): Likewise.
13794         (ix86_return_in_memory): Likewise.
13795         (ix86_sol10_return_in_memory): Likewise.
13796         (ix86_gimplify_va_arg): Likewise.
13797         (function_arg_32): Don't warn ABX ABI change here.
13798         (function_arg_64): Likewise.
13800 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
13802         * loop-iv.c (implies_p): In the final case, test that operands 0
13803         of the two comparisons match.
13805         * config/bfin/bfin.c (find_prev_insn_start): New function.
13806         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
13807         (find_next_insn_start): Move.
13809 2009-02-13  Richard Guenther  <rguenther@suse.de>
13811         * configure.ac: Enable LFS.
13812         * configure: Re-generate.
13813         * config.in: Likewise.
13815 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
13817         PR c/35444
13818         * c-parser.c (c_parser_parms_list_declarator): Discard pending
13819         sizes on syntax error after some arguments have been parsed.
13821 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
13823         * doc/invoke.texi (-fira): Remove.
13825 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
13827         * caller-save.c: Replace regclass.c with reginfo.c in comments.
13828         * recog.c: Likewise.
13829         * rtl.h: Likewise.
13831 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
13833         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
13834         (umul_ppmm): Likewise.
13835         (count_leading_zeros): Likewise.
13836         (count_trailing_zeros): Likewise.
13837         (UMUL_TIME): Likewise.
13839 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
13841         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
13842         soft-fp/t-softfp to tmake_file.
13844         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
13845         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
13846         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
13847         IA64_BUILTIN_INFQ]: New.
13848         (ia64_init_builtins): Initialize __builtin_infq,
13849         __builtin_fabsq and __builtin_copysignq if not HPUX.
13850         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
13851         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
13853         * config/ia64/lib1funcs.asm (__divtf3): Define only if
13854         SHARED is defined.
13855         (__fixtfti): Likewise.
13856         (__fixunstfti): Likewise.
13857         (__floattitf): Likewise.
13859         * config/ia64/libgcc-glibc.ver: New.
13860         * config/ia64/t-fprules-softfp: Likewise.
13861         * config/ia64/sfp-machine.h: Likewise.
13863         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
13864         (LIBGCC2_TF_CEXT): Likewise.
13865         (TF_SIZE): Likewise.
13866         (TARGET_INIT_LIBFUNCS): Likewise.
13868         * config/ia64/t-glibc (SHLINB_MAPFILES):
13869         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
13871 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
13873         * config/i386/i386.c (construct_container): Rewrite processing
13874         BLKmode with X86_64_SSE_CLASS.
13876 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
13878         PR target/39152
13879         * config/i386/i386.md: Replace simplify_replace_rtx with
13880         replace_rtx in the new peephole2.
13882 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
13884         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
13885         loop unrolling do not happen at -O2.
13887 2009-02-12  Michael Matz  <matz@suse.de>
13889         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
13891 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
13893         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
13894         for -g3.
13896 2009-02-12  Ben Elliston  <bje@au.ibm.com>
13898         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
13899         patterns when updating the back chain.  Missed in the 2009-02-10
13900         change.
13902 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
13904         * doc/extend.texi (Decimal Floating Types): Update identifier of
13905         draft TR and list of missing support.
13907 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
13909         PR middle-end/39154
13910         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
13911         bit to variable length decl's flags, add it also to its
13912         pointer replacement variable.
13914 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
13915             Jakub Jelinek  <jakub@redhat.com>
13917         PR target/39118
13918         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
13919         (memory_blockage): New expander.
13920         (*memory_blockage): New insn pattern.
13921         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
13922         instead of general blockage at the end of function prologue when
13923         frame pointer is used to access red zone area.  Do not emit blockage
13924         when profiling, it is emitted in generic code.
13925         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
13926         function epilogue when frame pointer is used to access red zone area.
13928 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
13930         PR target/38824
13931         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
13932         by arithmetic with memory operands.
13933         * config/i386/predicates.md (commutative_operator): New.
13935 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
13937         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
13938         bulleted lists.
13940 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
13942         * alias.h (record_alias_subset): Declare.
13943         * alias.c (record_alias_subset): Make global.
13945 2009-02-10  Nick Clifton  <nickc@redhat.com>
13947         * tree-parloops.c: Change license to GPLv3.
13948         * ipa-struct-reorg.c: Change license to GPLv3.
13949         * ipa-struct-reorg.h: Change license to GPLv3.
13951 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
13953         PR c/39084
13954         * c-decl.c (start_struct): Return NULL on error.
13956 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
13958         PR middle-end/39124
13959         * cfgloopmanip.c (remove_path): Call remove_bbs after
13960         cancel_loop_tree, not before it.
13962         PR target/39139
13963         * function.h (struct function): Add has_local_explicit_reg_vars bit.
13964         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
13965         VAR_DECLs were seen.
13966         * tree-ssa-live.c (remove_unused_locals): Recompute
13967         cfun->has_local_explicit_reg_vars.
13968         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
13969         copies or clearings if cfun->has_local_explicit_reg_vars.
13971 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
13973         PR target/39118
13974         * config/i386/i386.c (expand_prologue): Emit blockage at the end
13975         of function prologue when frame pointer is used to access
13976         red zone area.
13978 2009-02-10  Richard Guenther  <rguenther@suse.de>
13980         PR middle-end/39127
13981         * gimplify.c (gimple_regimplify_operands): Always look if
13982         we need to create a temporary.
13984 2009-02-10  Richard Guenther  <rguenther@suse.de>
13986         PR tree-optimization/39132
13987         * tree-loop-distribution.c (todo): New global var.
13988         (generate_memset_zero): Trigger TODO_rebuild_alias.
13989         (tree_loop_distribution): Return todo.
13991 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
13993         PR target/39119
13994         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
13995         (x86_64_reg_class_name): Removed.
13996         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
13997         first one isn't X86_64_SSE_CLASS or any other ones aren't
13998         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
13999         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
14000         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
14001         and 3 X86_64_SSEUP_CLASS.
14002         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
14003         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
14005 2009-02-10  Ben Elliston  <bje@au.ibm.com>
14007         * config/rs6000/rs6000.md (allocate_stack): Always use an update
14008         form instruction to update the stack back chain word, even if the
14009         user has disabled the generation of update instructions.
14010         (movdi_<mode>_update_stack): New.
14011         (movsi_update_stack): Likewise.
14012         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
14013         always use an update form instruction to update the stack back
14014         chain word.
14016 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
14018         PR middle-end/38953
14019         * graphite.c (if_region_set_false_region): After moving a region in
14020         the false branch of a condition, remove the empty dummy basic block.
14021         (gloog): Remove wrong fix for PR38953.
14023 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14025         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
14026         generation due to implicit sign extension.
14028 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
14030         PR middle-end/38981
14031         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
14032         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
14034 2009-02-09  Richard Guenther  <rguenther@suse.de>
14036         PR middle-end/35202
14037         * convert.c (convert_to_real): Disable (float)fn((double)x)
14038         to fnf(x) conversion if errno differences may occur and
14039         -fmath-errno is set.
14041 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
14043         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
14044         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
14045         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
14047 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
14049         PR c/35434
14050         * c-common.c (handle_alias_attribute): Disallow attribute for
14051         anything not a FUNCTION_DECL or VAR_DECL.
14053 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
14055         PR c/39035
14056         * real.c (do_compare): Special-case compare of zero against
14057         decimal float value.
14059 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
14061         PR c/36432
14062         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
14063         as indicating flexible array members unless the field itself is
14064         being declarared as the incomplete array.
14066 2009-02-06  Jan Hubicka  <jh@suse.cz>
14068         PR tree-optimization/38844
14069         * ipa-inline.c (try_inline): Stop inlining recursion when edge
14070         is already inlined.
14072 2009-02-06  Richard Guenther  <rguenther@suse.de>
14074         PR middle-end/38977
14075         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
14076         fork because we may expand it as __gcov_fork.
14078 2009-02-06  Nick Clifton  <nickc@redhat.com>
14080         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
14082 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
14084         PR tree-optimization/35659
14085         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
14086         vn_phi_eq): Shortcut if hashcode does not match.
14087         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
14088         NULL operands.
14089         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
14090         and avoid iterative_hash_expr.
14091         (FOR_EACH_VALUE_ID_IN_SET): New.
14092         (value_id_compare): Remove.
14093         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
14094         sort expressions by value id.
14096 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
14098         PR target/38991
14099         * config/sh/predicates.md (general_movsrc_operand): Don't check
14100         the subreg of system registers here.
14102 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
14104         PR c++/39106
14105         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
14106         on the copied decl.
14108 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
14110         PR rtl-optimization/39110
14111         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
14112         addresses, not aligned ones.
14114 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
14115             Richard Guenther  <rguenther@suse.de>
14117         PR tree-optimization/39100
14118         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
14119         comment says and add edges.
14121 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
14123         PR c/35435
14124         * c-common.c (handle_tls_model_attribute): Ignore attribute for
14125         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
14127 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
14129         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
14130         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
14131         register_bb_in_sese, new_sese, free_sese): Moved.
14132         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
14133         outermost_loop_in_scop, build_scop_iteration_domain,
14134         expand_scalar_variables_ssa_name, get_vdef_before_scop,
14135         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
14136         Use loop_in_sese_p instead of loop_in_scop_p.
14137         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
14138         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
14139         (scopdet_basic_block_info): Fix bug in scop detection.
14140         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
14141         eq_loop_to_cloog_loop): Remove.
14142         (nb_loops_around_loop_in_scop, nb_loop
14143         ref_nb_loops): Moved here...
14144         * graphite.h (ref_nb_loops): ... from here.
14145         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
14146         (loop_domain_dim, loop_iteration_vector_dim): Remove.
14147         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
14148         * testsuite/gcc.dg/graphite/scop-19.c: New
14150 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
14151             Hans-Peter Nilsson  <hp@axis.com>
14153         PR rtl-optimization/37889
14154         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
14155         Move offset handling from PLUS to before the switch.  Use new
14156         arguments when considering SYMBOL_REFs too.
14157         (rtx_addr_can_trap_p): Pass dummy offset and size.
14158         (enum may_trap_p_flags): Remove.
14159         (may_trap_p_1): Pass size from MEM_SIZE.
14161         PR rtl-optimization/38921
14162         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
14163         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
14164         * rtlanal.c (may_trap_after_code_motion_p): Delete.
14165         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
14167 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
14169         AVX Programming Reference (January, 2009)
14170         * config/i386/sse.md (*vpclmulqdq): New.
14172 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
14174         PR tree-optimization/38977
14175         PR gcov-profile/38292
14176         * calls.c (special_function_p): Disregard __builtin_ prefix.
14178 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
14180         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
14181         non-indexable addresses even before reload.
14183 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
14185         PR c/29129
14186         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
14187         as having variable size.  Do not give an error for unnamed
14188         parameters with [*] declarators.  Give a warning for type names
14189         with [*] declarators and mark them as variable size.
14190         * c-parser.c (c_parser_sizeof_expression): Do not give an error
14191         for sizeof applied to [*] type names.
14193 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14195         PR C++/36607
14196         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
14198 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
14200         * gcc.c (process_command): Update copyright notice dates.
14201         * gcov.c (print_version): Likewise.
14202         * gcov-dump.c (print_version): Likewise.
14203         * mips-tfile.c (main): Likewise.
14204         * mips-tdump.c (main): Likewise.
14206 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
14208         PR c/35433
14209         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
14210         for composite type involving a zero-length array type.
14212 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
14214         PR target/35318
14215         * function.c (match_asm_constraints_1): Skip over
14216         initial optional % in the constraint.
14218         PR inline-asm/39059
14219         * c-parser.c (c_parser_postfix_expression): If fixed point is not
14220         supported, don't accept FIXED_CSTs.
14221         * c-decl.c (finish_declspecs): Error if fixed point is not supported
14222         and _Sat is used without _Fract/_Accum.  Set specs->type to
14223         integer_type_node for cts_fract/cts_accum if fixed point is not
14224         supported.
14226 2009-02-02  Catherine Moore  <clm@codesourcery.com>
14228         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
14230 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
14232         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
14233         (ABI_HAS_64BIT_SYMBOLS): Use it.
14234         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
14236 2009-02-02  Paul Brook  <paul@codesourcery.com>
14238         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
14240 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
14242         PR inline-asm/39058
14243         * recog.h (asm_operand_ok): Add constraints argument.
14244         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
14245         recurse on matching constraint.
14246         (check_asm_operands): Pass constraints as 3rd argument to
14247         asm_operand_ok.  Don't look up matching constraint here.
14248         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
14249         to asm_operand_ok.
14251 2009-02-02  Ben Elliston  <bje@au.ibm.com>
14253         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
14254         TARGET_NARROW_VOLATILE_BITFIELD macro names.
14256 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14258         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
14259         information.  Remove some obsolete information.  Reorganize.
14261         * config/pa/fptr.c: Revert license to GPL 2.
14262         * config/pa/milli64.S: Likewise.
14264 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
14266         PR target/38904
14267         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
14268         LIBRARY name in, instead of hard-coding it.
14269         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
14270         extra target make frag to tmake_files according to EH model.
14271         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
14272         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
14273         frags that define makefile variable EH_MODEL appropriately.
14274         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
14275         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
14276         to "-sjlj" according to type of EH configured.
14277         (LIBGCC_SONAME):  Concatenate it to shared library base name.
14278         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
14279         to "_sjlj" according to type of EH configured.
14280         (LIBGCC_SONAME):  Concatenate it to shared library base name.
14281         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
14282         (SHLIB_LINK):  Add missing semicolon to if-else construct.
14283         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
14284         string value of "pe_dll" command-line option.
14285         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
14286         (SHLIB_SONAME):  Use it when overriding t-cygming default.
14287         (SHLIB_IMPLIB):  Override t-cygming default.
14288         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
14289         string value of "pe_dll" command-line option.
14291 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
14293         PR target/38952
14294         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
14295         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
14297 2009-01-31  Richard Guenther  <rguenther@suse.de>
14299         PR tree-optimization/38937
14300         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
14301         computing the transitive closure.
14303 2009-01-30  Richard Guenther  <rguenther@suse.de>
14305         PR tree-optimization/39041
14306         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
14307         Propagate variable indices only if the types match for this stmt.
14309 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
14311         PR target/39013
14312         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
14313         inline but never defined.
14315 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
14317         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
14318         (*insv_h_di_reg_extimm): New insn.
14319         (*insv_l<mode>_reg_extimm): New insn.
14321 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
14323         * config/picochip/picochip.c (flag_conserve_stack): set
14324         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
14325         fconserve-stack. Reduce call-overhead used by inliner.
14327 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
14329         PR/38157
14330         * common.opt (flag_conserve_stack): Initialised to zero.
14332 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
14334         PR/39002
14335         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
14336         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
14337         method.
14339 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
14341         * ira-color.c (allocno_reload_assign): Update comments.
14342         * regmove.c (regmove_optimize): Likewise.
14344         * ra.h: Removed.
14346 2009-01-29  Robert Millan  <rmh@aybabtu.com>
14348         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
14349         * config/i386/kopensolaris-gnu.h: New file.  Undefine
14350         `MD_UNWIND_SUPPORT'.
14351         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
14353 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
14355         PR tree-optimization/39007
14356         * tree-loop-distribution.c (generate_builtin): Use
14357         recompute_dominator to compute the immediate dominator of the
14358         basic block just after the loop.
14360 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14362         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
14363         (ASM_OUTPUT_DWARF_PCREL): Define.
14365 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
14367         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
14368         * doc/passes.texi: Remove entries about regclass, local-alloc, and
14369         global.  Modify entries about regmove and IRA.
14371         * ra-conflict.c: Remove the file.
14373         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
14375         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
14376         (pass_regclass_init): Rename to pass_reginfo_init.
14378         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
14380         * toplev.h (flag_ira): Remove.
14382         * caller-save.c (setup_save_areas): Remove flag_ira.
14384         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
14386         * global.c: Remove the file.
14388         * opts.c (decode_options): Remove flag_ira.
14390         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
14392         * regmove.c: Modify file description.
14393         (find_use_as_address, try_auto_increment): Define them only if
14394         AUTO_INC_DEC is defined.
14395         (replacement_quality, replace_in_call_usage, fixup_match_1,
14396         stable_and_no_regs_but_for_p): Remove.
14397         (reg_set_in_bb): Make it static.
14398         (regmove_optimize): Remove flag_ira and code which worked for
14399         !flag_ira.
14401         * local-alloc.c: Remove the file.
14403         * common.opt (fira): Remove.
14405         * ira.c: Include except.h.
14406         (eliminable_regset): Move from global.c.
14407         (mark_elimination): Ditto.  Remove flag_ira.
14408         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
14409         equiv_mem_modified, validate_equiv_mem_from_store,
14410         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
14411         contains_replace_regs, memref_referenced_p, memref_used_between_p,
14412         no_equiv, recorded_label_ref): Move from local-alloc.c.
14413         (update_equiv_regs): Ditto.  Make it static.
14414         (print_insn_chain, print_insn_chains): Move it from global.c.
14415         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
14416         (build_insn_chain): Ditto.  Make it static.
14417         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
14418         Rename to init_live_subregs.
14419         (gate_ira): Remove flag_ira.
14421         * regclass.c: Rename reginfo.c.  Change file description.
14422         (FORBIDDEN_INC_DEC_CLASSES): Remove.
14423         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
14424         (init_reg_sets_1): Remove code for evaluation of
14425         reg_class_superclasses and losing_caller_save_reg_set.
14426         (init_regs): Remove init_reg_autoinc.
14427         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
14428         ok_for_base_p_nonstrict): Remove.
14429         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
14430         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
14431         corresponding entries.
14432         (dump_regclass, record_operand_costs, scan_one_insn,
14433         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
14434         record_address_regs, auto_inc_dec_reg_p): Remove.
14435         (gt-regclass.h): Rename to gt-reginfo.h.
14437         * rtl.h (dump_global_regs, retry_global_alloc,
14438         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
14440         * Makefile.in (RA_H): Remove.
14441         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
14442         Rename regclass.o to reginfo.o.
14443         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
14444         gt-reginfo.h.
14445         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
14446         (GTFILES): Rename regclass.c to reginfo.c.
14448         * passes.c (init_optimization_passes): Remove pass_local_alloc and
14449         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
14451         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
14452         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
14453         Remove flag_ira.
14454         (finish_spills): Ditto.  Remove code for !flag_ira.
14456 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
14458         PR middle-end/35854
14459         * doc/invoke.texi (rtl debug options): Complete rewrite.
14460         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
14461         to auto_inc_dec".
14462         * mode-switching.c (pass_mode_switching): Rename pass from
14463         "mode-sw" to "mode_sw".
14464         * except.c (pass_convert_to_eh_ranges): Rename pass from
14465         "eh-ranges" to "eh_ranges".
14466         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
14467         to "subreg1".
14470 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
14471             Alexander Monakov  <amonakov@ispras.ru>
14473         PR middle-end/38857
14474         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
14475         register.
14476         (move_exprs_to_boundary): Change return type and pass through
14477         should_move from move_op.  Relax assert.  Update usage ...
14478         (schedule_expr_on_boundary): ... here.  Use should_move instead of
14479         cant_move.
14480         (move_op_orig_expr_found): Indicate that insn was disconnected from
14481         stream.
14482         (code_motion_process_successors): Do not call after_merge_succs
14483         callback if original expression was not found when traversing any of
14484         the branches.
14485         (code_motion_path_driver): Change return type.  Update prototype.
14486         (move_op): Update comment.  Add a new parameter (should_move).  Update
14487         prototype.  Set *should_move based on indication provided by
14488         move_op_orig_expr_found.
14490 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
14492         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
14493         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
14494         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
14495         * config/rs6000/rs6000.c (rs6000_override_options): Default
14496         avoid-indexed-addresses on for Power6, off for everything else.
14497         (avoiding_indexed_address_p): New function.
14498         (rs6000_legitimize_address): Use it.
14499         (rs6000_legitimate_address): Likewise.
14500         * config/rs6000/rs6000.md (movXX_updateX): Likewise
14502 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
14504         PR tree-optimization/38997
14505         * tree-loop-distribution.c (generate_memset_zero): Use
14506         POINTER_PLUS_EXPR for a pointer addition.
14508 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
14510         * config/s390/s390.md (bswap<mode>2): New pattern added.
14512 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
14514         * config/s390/s390.md (*tls_load_31): Added type attribute.
14516 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
14518         * config/s390/s390.md: Fix a few comments.
14520 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
14522         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
14523         (*tm<mode>_full): Fixed z10prop attribute.
14524         (*tst<mode>_extimm): Fixed z10prop attribute.
14525         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
14526         (*tstqiCCT_cconly): Fixed z10prop attribute.
14527         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
14528         (*movsi_larl): Fixed z10prop attribute.
14529         (*movsi_zarch): Fixed z10prop attribute.
14530         (*movsi_eas): Fixed z10prop attribute.
14531         (*movhi): Fixed z10prop attribute.
14532         (*movqi): Fixed z10prop attribute.
14533         (*movstrictqi): Fixed z10prop attribute.
14534         (*mov<mode>): Fixed z10prop attribute.
14535         (*movcc): Fixed z10prop attribute.
14536         (*sethighpartdi_64): Fixed z10prop attribute.
14537         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
14538         (*negdi2_sign_cc): Fixed z10prop attribute.
14539         (*negdi2_sign): Fixed z10prop attribute.
14540         (*absdi2_sign_cc): Fixed z10prop attribute.
14541         (*absdi2_sign): Fixed z10prop attribute.
14542         (*negabsdi2_sign_cc): Fixed z10prop attribute.
14543         (*negabsdi2_sign): Fixed z10prop attribute.
14544         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
14545         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
14546         (doloop_si64): Fixed z10prop attribute.
14547         (doloop_si31): Fixed z10prop attribute.
14548         (doloop_long): Fixed z10prop attribute.
14549         (indirect_jump): Fixed z10prop attribute.
14550         (nop): Fixed z10prop attribute.
14551         (main_base_64): Fixed z10prop attribute.
14552         (reload_base_64): Fixed z10prop attribute.
14554 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
14556         PR rtl-optimization/38740
14557         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
14558         if !optimize.
14559         * config/mips/mips.c (mips_reorg): Likewise.
14561 2009-01-28  Richard Guenther  <rguenther@suse.de>
14563         PR tree-optimization/38926
14564         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
14565         with the correct value id to a value.
14566         (do_regular_insertion): Use the value number of edoubleprime
14567         for the value number of the expr.
14569         Revert
14570         2008-08-21  Richard Guenther  <rguenther@suse.de>
14572         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
14573         a PHI ask VN if it is already available.
14574         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
14575         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
14577 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
14579         PR middle-end/38934
14580         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
14581         set to varying whenever max has TREE_OVERFLOW set, similarly
14582         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
14584 2009-01-28  Richard Guenther  <rguenther@suse.de>
14586         PR middle-end/38908
14587         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
14588         uninitialized aggregate uses in call arguments.
14590 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
14592         PR tree-optimization/38984
14593         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
14594         the nothing_id variable if -fno-delete-null-pointer-checks.
14596 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
14598         PR target/38988
14599         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
14600         (set_got_offset_rex64): Ditto.
14602 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
14604         PR target/38941
14605         * doc/extend.texi: Improve local variable with asm reg.
14607 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
14609         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
14610         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
14611         was not supplied then set warn_packed_bitfield_compat to the
14612         default value of 1.
14613         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
14614         against 1.
14616 2009-01-27  Richard Guenther  <rguenther@suse.de>
14618         PR tree-optimization/38503
14619         * cfgexpand.c (expand_gimple_basic_block): Ignore
14620         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
14621         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
14622         variables that cannot have TBAA applied.
14623         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
14624         statements.
14626 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
14628         PR middle-end/38969
14629         * calls.c (initialize_argument_information): Do not wrap complex
14630         arguments in SAVE_EXPR.
14632 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
14634         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
14635         (INSTALL_LIBGCC): Revert typo commit.
14637 2009-01-26  Richard Guenther  <rguenther@suse.de>
14639         PR tree-optimization/38745
14640         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
14641         from special handling.
14643 2009-01-26  Richard Guenther  <rguenther@suse.de>
14645         PR tree-optimization/38745
14646         * tree-ssa.c (execute_update_addresses_taken): Do not include
14647         variables that cannot possibly be a register in not_reg_needs.
14648         Do not clear TREE_ADDRESSABLE on vars that may not become
14649         registers.
14650         * tree-ssa.c (update_alias_info_1): Include those in the set
14651         of addressable vars.
14653 2009-01-26  Richard Guenther  <rguenther@suse.de>
14655         PR middle-end/38851
14656         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
14657         * tree-ssa-dse.c: Include langhooks.h
14658         (execute_simple_dse): Remove stores with zero size.
14660 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
14662         PR c/38957
14663         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
14664         as PLUS_EXPR.
14666 2009-01-24  Julian Brown  <julian@codesourcery.com>
14668         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
14669         config/arm/linux-atomic.c.
14670         * config/arm/linux-atomic.c: New.
14672 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
14674         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
14675         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
14676         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
14678 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14680         PR c/38938
14681         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
14682         properly.
14684 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
14686         PR tree-optimization/38953
14687         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
14688         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
14689         (gloog): Split the exit of the scop when the scop exit is a loop exit.
14690         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
14691         changed the CFG.
14693 2009-01-24  Paul Brook  <paul@codesourcery.com>
14695         * config/arm/neon.md (neon_type): Move to arm.md.
14696         (neon_mov<VSTRUCT>): Add neon_type attribute.
14697         * config/arm/arm.md (neon_type): Move to here.
14698         (conds): Add "unconditioal" and use as default for NEON insns.
14700 2009-01-24  Ben Elliston  <bje@au.ibm.com>
14702         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
14703         void *' warning from -Wc++-compat.
14704         * Makefile.in (dominance.o-warn): Remove.
14706 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
14708         PR tree-optimization/38932
14709         * fold-const.c (fold_unary_ignore_overflow): New.
14710         * tree.h (fold_unary_ignore_overflow): Declare.
14711         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
14712         * tree-ssa-sccvn.c (visit_reference_op_load,
14713         simplify_unary_expression): Likewise.
14715 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
14717         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
14718         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
14719         regardless of their type.
14720         * c-common.c (handle_packed_attribute): Don't ignore packed on
14721         bitfields.
14722         * c.opt (Wpacked-bitfield-compat): New warning option.
14723         * stor-layout.c (place_field): Warn if offset of a field changed.
14724         * doc/extend.texi (packed): Mention the ABI change.
14725         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
14726         (Warning Options): Add it to the list.
14728 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
14730         * c-opts.c (c_common_post_options): Fix a typo in comments.
14732 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
14734         PR middle-end/38615
14735         * gimplify.c (gimplify_init_constructor): Fix promotion of const
14736         variables to static.
14737         * doc/invoke.texi (-fmerge-all-constants): Update description.
14739 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
14741         PR target/38931
14742         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
14743         (*movdi_1_rex64): Use type "mmx" for alternative 5.
14745 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
14747         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
14748         a word boundary.
14749         (LOCAL_ALIGNMENT): Similarly.
14751 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
14752             Joseph Myers  <joseph@codesourcery.com>
14754         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
14755         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
14756         * config/arm/arm-tune.md: Regenerate.
14757         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
14758         -march=iwmmxt2.
14760 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
14762         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
14763         version number to five.
14765 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
14767         PR c++/38930
14768         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
14769         * c-common.c (set_underlying_type): Likewise.
14770         (is_typedef_decl ): Likewise
14771         * tree.h: Likewise
14772         (set_underlying_type): Likewise.
14773         (is_typedef_type): Likewise.
14775 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
14777         PR middle-end/38587
14778         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
14779         crossing setjmps.
14781 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
14783         PR bootstrap/37660
14784         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
14785         (LIBGCC_SPEC):  Don't define.
14786         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
14788 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
14790         PR rtl-optimization/38879
14791         * alias.c (base_alias_check): Unaligned access via AND address can
14792         alias all surrounding object types except those with sizes equal
14793         or wider than the size of unaligned access.
14795 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
14797         PR c++/26693
14798         * c-decl.c (clone_underlying_type): Move this ...
14799         * c-common.c (set_underlying_type): ... here.
14800         Also, make sure the function properly sets TYPE_STUB_DECL() on
14801         the newly created typedef variant type.
14802         (is_typedef_decl ): New entry point.
14803         * tree.h: Added a new member member_types_needing_access_check to
14804         struct tree_decl_non_common.
14805         (set_underlying_type): New entry point.
14806         (is_typedef_type): Likewise.
14808 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
14810         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
14811         Check whether two instructions have memory references that
14812         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
14813         are helper functions for traversing.
14814         * alias.h (insn_alias_sets_confilict_p): New prototypes.
14815         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
14816         not to draw dependency edge for instructions with non-conflicting
14817         alias sets.
14819 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
14821         PR other/38758
14822         * longlong.h: Update copyright years.  Use soft-fp license notice.
14823         Sync __clz_tab declaration with glibc.
14825 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
14827         PR target/30687
14828         * doc/extend.texi (syscall_linkage): New.
14829         (version_id): Modify.
14831 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14832             Richard Guenther  <rguenther@suse.de>
14834         PR tree-optimization/38747
14835         PR tree-optimization/38748
14836         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
14837         conversion if the base address is an indirect reference and the
14838         aliasing sets could cause issues.
14840 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
14842         * common.opt (fgraphite, fgraphite-identity): Add comment for
14843         explaining why these options are not documented.
14845 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
14847         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
14848         gimple_call_lhs is NULL.
14850 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
14852         PR target/38868
14853         * emit-rtl.c (adjust_address_1): Make sure memref is never
14854         overwritten.
14856 2009-01-20  Ben Elliston  <bje@au.ibm.com>
14858         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
14859         const qualifier from arg parameter. Remove unnecessary cast to char *.
14860         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
14861         const qualifier from arg 2.
14863 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
14865         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
14867 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
14869         PR c/38869
14870         * rtl.h (reinit_regs): New prototype.
14871         * regclass.c: Include ira.h.
14872         (reinit_regs): New.
14873         * Makefile.in (regclass.o): Add ira.h.
14874         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
14876 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
14878         PR target/38736
14879         * c-common.c (handle_aligned_attribute): Use
14880         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
14881         default alignment value.
14883         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
14885         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
14886         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
14888         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
14889         __BIGGEST_ALIGNMENT__.
14891         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
14893 2009-01-18  Richard Guenther  <rguenther@suse.de>
14895         PR tree-optimization/38819
14896         * tree-flow.h (operation_could_trap_helper_p): Declare.
14897         * tree-eh.c (operation_could_trap_helper_p): Export.
14898         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
14899         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
14900         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
14901         are about to insert a possibly trapping instruction and fail
14902         in this case.
14904 2009-01-18  Andreas Schwab  <schwab@suse.de>
14906         * doc/install.texi (Configuration): Remove obsolete paragraph
14907         about use of --with-gnu-ld with --with-gnu-as.
14909 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
14911         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
14912         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
14913         Follow spelling conventions.
14915 2009-01-18  Ben Elliston  <bje@au.ibm.com>
14917         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
14918         C++ warning about implicit conversion from void * to struct
14919         bitmap_head_def *.
14920         (bitmap_obstack_free): Likewise for bitmap_element *.
14921         * Makefile.in (bitmap.o-warn): Remove.
14923 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
14925         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
14927 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
14928             Tobias Grosser  <tobi.grosser@amd.com>
14930         * graphite.c (graphite_trans_scop_block): Do not block single
14931         nested loops.
14933 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
14935         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
14936         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
14937         test with assertion.
14939 2009-01-16  Richard Guenther  <rguenther@suse.de>
14941         PR tree-optimization/38835
14942         PR middle-end/36227
14943         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
14944         and INT + PTR -> (INT)(PTR p+ INT) folding.
14945         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
14947 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
14949         PR target/38554
14950         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
14951         the subreg from a lowpart subreg if it is also casting the value.
14953 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14954             Tobias Grosser  <tobi.grosser@amd.com>
14956         * graphite.c (compare_prefix_loops): New.
14957         (build_scop_canonical_schedules): Rewritten.
14958         (graphite_transform_loops): Move build_scop_canonical_schedules
14959         after build_scop_iteration_domain.
14961 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14962             Tobias Grosser  <tobi.grosser@amd.com>
14964         * graphite.c (add_conditions_to_domain): Add the loops to
14965         the dimension of the iteration domain.  Do copy the domain
14966         only when it exists.
14967         (build_scop_conditions_1): Do not call add_conditions_to_domain.
14968         (add_conditions_to_constraints): New.
14969         (can_generate_code_stmt, can_generate_code): Removed.
14970         (gloog): Do not call can_generate_code.
14971         (graphite_transform_loops): Call add_conditions_to_constraints
14972         after building the iteration domain.
14974 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
14976         PR tree-optimization/38789
14977         * tree-ssa-threadedge.c
14978         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
14979         __builtin_constant_p.
14981 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
14983         * dce.c (delete_unmarked_insns): Reversed the order that insns are
14984         examined before deleting them.
14986 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
14988         * function.c (aggregate_value_p): Correctly extract the function
14989         type from CALL_EXPR_FN lookup.
14991 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
14993         * config/picochip/picochip.c (picochip_override_options): Revert
14994         CFI asm flag disable commited previously.
14996 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
14997             Tobias Grosser  <tobi.grosser@amd.com>
14998             Jan Sjodin  <jan.sjodin@amd.com>
15000         * graphite.c (scan_tree_for_params): On substractions negate
15001         all the coefficients of the term.
15002         (clast_to_gcc_expression_red): New.  Handle reduction expressions
15003         of more than two operands.
15004         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
15005         (get_vdef_before_scop): Handle also the case of default definitions.
15007 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
15009         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
15010         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
15011         Also use them when walking CALL_INSN_FUNCTION_USAGE.
15013 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
15014             Joey Ye  <joey.ye@intel.com>
15016         PR middle-end/37843
15017         * cfgexpand.c (expand_stack_alignment): Don't update stack
15018         boundary nor check incoming stack boundary here.
15019         (gimple_expand_cfg): Update stack boundary and check incoming
15020         stack boundary here.
15022 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
15024         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
15026 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
15028         PR rtl-optimization/38245
15029         * calls.c (expand_call): Add stack arguments to
15030         CALL_INSN_FUNCTION_USAGE even for pure calls (when
15031         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
15032         in regs and partially in memory or BLKmode arguments.
15033         (emit_library_call_value_1): Add stack arguments to
15034         CALL_INSN_FUNCTION_USAGE even for pure calls (when
15035         ACCUMULATE_OUTGOING_ARGS).
15036         * dce.c: Include tm_p.h.
15037         (find_call_stack_args): New function.
15038         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
15039         argument.
15040         (mark_insn): Call find_call_stack_args for CALL_Ps.
15041         (prescan_insns_for_dce): Walk insns backwards in bb rather than
15042         forwards.  Allocate and free arg_stores bitmap if needed, pass it
15043         down to deletable_insn_p, don't mark stores set in arg_stores
15044         bitmap, clear the bitmap at the beginning of each bb.
15045         * Makefile.in (dce.o): Depend on $(TM_P_H).
15047 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
15049         PR target/22599
15050         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
15051         to make sure the insn is a conditional test (bug 22599).  Reformat a
15052         few long lines.
15054 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
15056         PR middle-end/38431
15057         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
15058         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
15059         (gloog): Do not call cleanup_tree_cfg.
15060         (graphite_transform_loops): Call cleanup_tree_cfg after all
15061         scops have been code generated.
15063 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
15064         * doc/gty.texi (Invoking the garbage collector): Added new node
15065         and section documenting ggc_collect.
15067 2009-01-14  Richard Guenther  <rguenther@suse.de>
15069         PR tree-optimization/38826
15070         PR middle-end/38477
15071         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
15072         initialization notes only if we actually emitted a warning.
15073         (intra_create_variable_infos): Add constraints for a result decl
15074         that is passed by hidden reference.
15075         (build_pred_graph): Mark all related variables non-direct on
15076         address-taking.
15078 2009-01-14  Nick Clifton  <nickc@redhat.com>
15080         * ira-conflicts.c: Include addresses.h for the definition of
15081         base_reg_class.
15082         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
15083         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
15085 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
15087         PR target/38811
15088         * Makefile.in (ira-lives.o): Add except.h.
15090         * ira-lives.c: Include except.h.
15091         (process_bb_node_lives): Process can_throw_internal.
15093 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
15095         PR rtl-optimization/38774
15096         * combine.c (simplify_set): When undoing cc_use change, don't do
15097         PUT_CODE on the newly created comparison, but instead put back the
15098         old comparison.
15100 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
15102         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
15103         values.  Remove duplicate arm8 entry.
15105 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
15107         PR tree-optimization/38786
15108         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
15109         the SSA_NAME case of expand_scalar_variables_expr.
15110         Set the type of an expression to the type of its assign statement.
15111         (expand_scalar_variables_expr): Also gather the scalar computation
15112         used to index the memory access.  Do not pass loop_p.
15113         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
15114         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
15115         the gimple_stmt_iterator where it inserts new code.
15116         Do not pass loop_p.
15117         (copy_bb_and_scalar_dependences): Do not pass loop_p.
15118         (translate_clast): Update call to copy_bb_and_scalar_dependences.
15120 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
15122         * graphite.h (debug_value): Removed.
15123         * graphite.c (debug_value): Removed.
15125 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
15127         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
15128         ldrd/strd with two 32-bit instructions.
15130 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
15132         * config/arm/arm.c (struct processors): Pass for speed down into
15133         cost helper functions.
15134         (const_ok_for_op): Handle COMPARE and inequality nodes.
15135         (arm_rtx_costs_1): Rewrite.
15136         (arm_size_rtx_costs): Update prototype.
15137         (arm_rtx_costs): Pass speed down to helper functions.
15138         (arm_slowmul_rtx_costs): Rework cost calculations.
15139         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
15140         (arm_9e_rtx_costs): Likewise.
15142 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
15144         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
15145         relocations of local symbols wider than UNITS_PER_WORD are not valid.
15146         (alpha_legitimize_address): Do not split local symbols wider than
15147         UNITS_PER_WORD into HIGH/LO_SUM parts.
15149 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
15151         PR bootstrap/38580
15152         * gcc.c (process_command): Replace call to execvp with calls
15153         to pex_one and exit.
15155 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
15157         PR target/29141
15158         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
15159         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
15160         variant for devices with 3-byte PC.
15161         (__tablejump_elpm__): New.
15163 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
15165         PR c/32041
15166         * c-parser.c (c_parser_postfix_expression): Allow `->' in
15167         offsetof member-designator, handle it as `[0].'.
15169 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15171         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
15172         function when not using named sections on targets with named sections
15173         if branch distance is less than 262132.
15175 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
15177         * combine.c (combine_instructions):  Recompute
15178         optimize_this_for_speed_p  for each BB in the main combine loop.
15180 2009-01-12  Tomas Bily  <tbily@suse.cz>
15182         PR middlend/38385
15183         * tree-loop-distribution.c (prop_phis): New function.
15184         (generate_builtin): Call prop_phis.
15185         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
15187 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
15189         PR tree-optimization/38807
15190         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
15191         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
15193 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
15195         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
15196         subreg of op0 to the original op0.
15198 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
15200         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
15202 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
15204         PR debug/7055
15205         * mips-tfile.c (parse_def): Fix parsing of def strings
15206         starting with digits.
15208 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
15210         PR target/38695
15211         * config/arm/arm.c (arm_is_long_call_p): Don't call
15212         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
15214 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
15216         * regrename.c (regrename_optimize): Fix dumping.
15217         (find_oldest_value_reg): Preserve REG_POINTER.
15218         (copy_hardreg_forward_1): Likewise.
15220 2009-01-09  Diego Novillo  <dnovillo@google.com>
15222         * gimple.h (struct gimple_statement_base) <uid>: Document
15223         the restrictions on its use.
15224         (gimple_uid): Tidy.
15225         (gimple_set_uid): Tidy.
15227 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
15229         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
15230         zero guard even if align_bytes != 0 and count is smaller than
15231         size_needed.
15233 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
15235         PR rtl-optimization/38495
15236         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
15237         (add_range_and_copies_from_move_list): Print all added ranges.
15238         Add ranges to memory optimized destination.
15240 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
15242         PR target/38686
15243         PR target/38708
15244         * config/i386/i386.c (override_options): Reject
15245         -mstringop-strategy=rep_8byte with -m32.
15246         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
15247         to 1.  Do count comparison against epilogue_size_needed at compile
15248         time even when count_exp was constant forced into register.  For
15249         size_needed don't jump to epilogue, instead just avoid aligning
15250         and invoke the body algorithm.  If need_zero_guard, add zero guard
15251         even if count is non-zero, but smaller than size_needed + number of
15252         bytes that could be stored for alignment.
15253         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
15254         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
15255         but smaller than size_needed + number of bytes that could be stored
15256         for alignment.  Compare size_needed with epilogue_size_needed instead
15257         of desired_align - align, don't adjust size_needed, pass
15258         epilogue_size_needed to the epilogue expanders.
15260         PR c/35742
15261         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
15263 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15265         * pa.c (last_address): Change to unsigned.
15266         (update_total_code_bytes): Change argument to unsigned.  Don't
15267         check if insn addresses are set.
15268         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
15269         addresses are not set.
15270         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
15272 2009-01-09  Nick Clifton  <nickc@redhat.com>
15274         * config/sh/symbian.c: Replace uses of DECL_INLINE with
15275         DECL_DECLARED_INLINE_P.
15277 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
15279         PR middle-end/38347
15280         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
15281         GET_MODE (op0) in operand_subword_force calls.
15283         PR middle-end/38771
15284         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
15285         fold_convert arg0 operands to TREE_TYPE (op0) first.
15287 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
15289         * params.def (ira-max-conflict-table-size): Decrease default value
15290         to 1000.
15292 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
15294         PR tree-optimization/37031
15295         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
15296         on parameter_set.
15297         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
15298         allocate it using gc instead of heap, use VEC_quick_push instead of
15299         VEC_safe_push.
15300         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
15301         instead of heap, use VEC_quick_push instead of VEC_safe_push.
15302         * tree-data-ref.h (struct access_matrix): Change matrix to gc
15303         allocated vector from heap allocated.
15304         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
15305         * tree-loop-linear.c (linear_transform_loops): Allocate nest
15306         vector only after perfect_loop_nest_depth call.
15308 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
15309             Jan Sjodin  <jan.sjodin@amd.com>
15311         PR tree-optimization/38559
15312         * graphite.c (debug_value, copy_constraint,
15313         swap_constraint_variables, scale_constraint_variable, ): New.
15314         (get_lower_bound, get_upper_bound): Removed.
15315         (graphite_trans_bb_strip_mine): Clean up this code that works
15316         only for constant number of iterations.  Fully copy upper and
15317         lower bound constraints, not only the constant part of them.
15318         * graphite.h (debug_value): Declared.
15320 2009-01-08  Ira Rosen  <irar@il.ibm.com>
15322         PR tree-optimization/37194
15323         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
15324         Don't add the cost of cost model guard in prologue to scalar
15325         outside cost in case of known number of iterations.
15327 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
15328             Alan Modra  <amodra@bigpond.net.au>
15330         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
15331         non-word-aligned REG+CONST addressing.
15333 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
15335         PR target/38706
15336         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
15337         free_after_compilation when outputting a thunk.
15338         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
15339         Do not call free_after_compilation here.
15341 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
15343         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
15344         (ix86_valid_target_attribute_inner_p): Ditto.
15346 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
15348         PR tree-optimization/38492
15349         PR tree-optimization/38498
15350         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
15351         * tree-chrec.h (scev_is_linear_expression): Declared.
15352         * graphite.c (graphite_cannot_represent_loop_niter): New.
15353         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
15354         (graphite_loop_normal_form): Use gcc_assert.
15355         (scan_tree_for_params): Use CASE_CONVERT.
15356         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
15357         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
15358         Use gcc_assert.  Discard scops that contain unhandled cases.
15359         (build_scop_conditions): Return a boolean status for unhandled cases.
15360         (strip_mine_profitable_p): Print the loop number, not its depth.
15361         (is_interchange_valid): Pass the depth of the loop nest, don't
15362         recompute it wrongly.
15363         (graphite_trans_bb_block): Same.
15364         (graphite_trans_bb_block): Print tentative of loop blocking.
15365         (graphite_trans_scop_block): Do not print that the loop has been
15366         blocked.
15367         (graphite_transform_loops): Do not handle scops that contain condition
15368         scalar phi nodes.
15370 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15372         AVX Programming Reference (December, 2008)
15373         * config/i386/avxintrin.h (_mm256_stream_si256): New.
15374         (_mm256_stream_pd): Likewise.
15375         (_mm256_stream_ps): Likewise.
15377         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
15378         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
15379         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
15380         (bdesc_special_args): Add __builtin_ia32_movntdq256,
15381         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
15382         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
15383         (ix86_expand_special_args_builtin): Likewise.
15385         * config/i386/sse.md (AVXMODEDI): New.
15386         (avx_movnt<mode>): Likewise.
15387         (avx_movnt<mode>): Likewise.
15388         (<sse>_movnt<mode>): Remove AVX support.
15389         (sse2_movntv2di): Likewise.
15391 2009-01-07  Richard Guenther  <rguenther@suse.de>
15393         PR middle-end/38751
15394         * fold-const.c (extract_muldiv): Remove obsolete comment.
15395         (fold_plusminus_mult_expr): Undo MINUS_EXPR
15396         to PLUS_EXPR canonicalization for the canonicalization.
15398 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
15400         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
15401         hosted cross-compilers generating less efficient code.
15403 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
15405         * function.h (rtl_data): Add a dbr_scheduled_p field.
15406         * reorg.c (dbr_schedule): Set it.
15407         (gate_handle_delay_slots): Check it.
15408         * config/mips/mips.c (mips_base_delayed_branch): Delete.
15409         (mips_reorg): Check flag_delayed_branch instead of
15410         mips_base_delayed_branch.
15411         (mips_override_options): Don't set mips_base_delayed_branch
15412         or flag_delayed_branch.
15414 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
15416         PR rtl-optimization/38426.
15417         * ira.c (ira): Set current_function_is_leaf earlier.
15419 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
15421         PR rtl-optimization/38722
15422         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
15423         too early, only set a flag and modify after last possible
15424         undo_all point.
15426 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
15428         PR c/34252
15429         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
15430         * real.c (decimal_single_format): Correct values of emin and emax.
15431         (decimal_double_format): Ditto.
15432         (decimal_quad_format): Ditto.
15433         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
15434         computation of DECnn_MIN and DECnn_MAX for corrected values of
15435         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
15436         __DECnn_MIN__, and adjust its computation for the corrected value
15437         of emin.
15439 2009-01-06  Jan Hubicka  <jh@suse.cz>
15441         PR target/38744
15442         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
15444 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
15446         * doc/contrib.texi (Contributors): Slightly adjust the end note.
15447         Add Robert Clark to the list of testers.
15449 2009-01-06  Jan Hubicka  <jh@suse.cz>
15450             Kai Tietz  <kai.tietz@onevision.com>
15452         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
15453         * config/i386/i386.c (ix86_expand_call): Add clobbers.
15455 2009-01-06  Jan Hubicka  <jh@suse.cz>
15456             Kai Tietz  <kai.tietz@onevision.com>
15458         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
15459         for w64 ABI.
15460         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
15461         (ix86_nsaved_regs): Count only general purpose regs.
15462         (ix86_nsaved_sseregs): New.
15463         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
15464         to 16 for w64; compute padding and size of sse reg save area.
15465         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
15466         general purpose regs.
15467         (ix86_emit_save_sse_regs_using_mov): New.
15468         (ix86_expand_prologue): Save SSE regs if needed.
15469         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
15470         (ix86_emit_restore_sse_regs_using_mov): New.
15471         (ix86_expand_epilogue): Save SSE regs if needed.
15473 2009-01-06  Jan Hubicka  <jh@suse.cz>
15474             Kai Tietz  <kai.tietz@onevision.com>
15476         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
15477         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
15478         functions when accumulate outgoing args is off.
15480 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
15482         PR bootstrap/38742
15483         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
15484         before using pseudos_have_intersected_live_ranges_p.
15486         * ira-int.h (ira_assert): Always define.
15488 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
15490         AVX Programming Reference (December, 2008)
15491         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
15492         (_mm256_permute2_pd): Likewise.
15493         (_mm_permute2_ps): Likewise.
15494         (_mm256_permute2_ps): Likewise.
15495         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
15496         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
15498         * config/i386/i386.c (ix86_builtins): Remove
15499         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
15500         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
15501         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
15502         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
15503         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
15504         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
15505         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
15506         __builtin_ia32_vpermil2ps256.
15507         (ix86_init_mmx_sse_builtins): Updated.
15508         (ix86_expand_args_builtin): Likewise.
15510 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15512         * pa.c (output_call): Relocate non-jump insns in the delay slot of
15513         long absolute calls when generating PA 2.0 code.
15515 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
15517         PR rtl-optimization/38583
15518         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
15520         * params.def (ira-max-conflict-table-size): New.
15522         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
15524         * ira.h (ira_conflicts_p): New external definition.
15526         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
15527         table.  Report this.  Return result of building.
15528         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
15529         building conflict table.
15531         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
15532         (ira_color): Use ira_conflicts_p.
15534         * global.c: Include ira.h.
15535         (pseudo_for_reload_consideration_p, build_insn_chain): Use
15536         ira_conflicts_p.
15538         * Makefile.in (global.o): Add ira.h.
15540         * ira-build.c (mark_all_loops_for_removal,
15541         propagate_some_info_from_allocno): New.
15542         (remove_unnecessary_allocnos): Call
15543         propagate_some_info_from_allocno.
15544         (remove_low_level_allocnos): New.
15545         (remove_unnecessary_regions): Add parameter.  Call
15546         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
15547         parameter to remove_unnecessary_regions.
15548         (ira_build): Remove all regions but root if the conflict table was
15549         not built.  Update conflict hard regs for allocnos crossing calls.
15551         * ira.c (ira_conflicts_p): New global.
15552         (ira): Define and use ira_conflicts_p.
15554         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
15555         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
15556         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
15558 2009-01-06  Ben Elliston  <bje@au.ibm.com>
15560         * gengtype-lex.l (YY_NO_INPUT): Define.
15562 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15564         PR c/34911
15565         * c-common.c (handle_vector_size_attribute): Also reject
15566         BOOLEAN_TYPE types.
15568 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
15570         PR tree-optimization/38492
15571         * graphite.c (rename_map_elt, debug_rename_elt,
15572         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
15573         rename_map_elt_info, eq_rename_map_elts,
15574         get_new_name_from_old_name, bb_in_sese_p): Moved around.
15575         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
15576         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
15577         (sese_build_livein_liveouts): New.
15578         (new_sese, free_sese): New.
15579         (new_scop): Call new_sese.
15580         (free_scop): Call free_sese.
15581         (rename_variables_from_edge, rename_phis_end_scop): Removed.
15582         (register_old_new_names): Renamed register_old_and_new_names.
15583         (register_scop_liveout_renames, add_loop_exit_phis,
15584         insert_loop_close_phis, struct igp,
15585         default_liveout_before_guard, add_guard_exit_phis,
15586         insert_guard_phis, copy_renames): New.
15587         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
15588         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
15589         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
15590         (scop_adjust_phis_for_liveouts): New.
15591         (gloog): Call scop_adjust_phis_for_liveouts.
15593         * graphite.h (struct sese): Documented.  Added fields liveout,
15594         num_ver and livein.
15595         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
15596         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
15597         (struct scop): Added field liveout_renames.
15598         (SCOP_LIVEOUT_RENAMES): New.
15600 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
15602         PR tree-optimization/38510
15603         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
15604         (translate_clast): Call recompute_all_dominators before
15605         graphite_verify.
15606         (gloog): Call recompute_all_dominators before graphite_verify.
15608 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
15609             Jan Sjodin  <jan.sjodin@amd.com>
15611         PR tree-optimization/38500
15612         * graphite.c (create_sese_edges): Call fix_loop_structure after
15613         splitting blocks.
15615 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
15617         * config.gcc: Add m32r*-*-rtems*.
15618         * config/m32r/rtems.h: New file.
15620 2009-01-05  Ben Elliston  <bje@au.ibm.com>
15622         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
15623         (.po.pox): Likewise.
15624         (po/gcc.pot): Likewise.
15626 2009-01-04  David S. Miller  <davem@davemloft.net>
15628         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
15629         (STARTING_FRAME_OFFSET): Always set to zero.
15631 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
15633         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
15634         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
15635         fixed-point types, and vectors of the same.
15637 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
15639         * config/mips/sync.md (*mb_barrier): Rename to...
15640         (*memory_barrier): ...this.
15642 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
15644         * doc/extend.texi (Function Attributes): Move @cindex after @item
15645         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
15646         and put in alphabetical order. Fix 'target' name and put in order.
15647         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
15648         typos.
15650 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
15652         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
15653         (memory_barrier): Expand as unspec instead of unspec_volatile.
15654         Remove mem:BLK from insn operands.  Use Pmode scratch register.
15655         (*memory_barrier): Define as unspec instead of unspec_volatile.
15656         Use (match_dup 0) as input operand.
15658         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
15659         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
15660         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
15661         scratch register.  Remove operand 1.
15662         (*stbar): Define as unspec instead of unspec_volatile.
15663         Use (match_dup 0) as input operand, remove (const_int 8).
15664         (*membar): Define as unspec instead of unspec_volatile.
15665         Use (match_dup 0) as input operand, remove input operand 2.
15667         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
15668         (memory_barrier): Expand as unspec instead of unspec_volatile.
15669         Remove mem:BLK from insn operands.  Use Pmode scratch register.
15670         (*memory_barrier): Define as unspec instead of unspec_volatile.
15671         Use (match_dup 0) as input operand.
15673         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
15674         Remove mem:BLK from insn operands.  Use Pmode scratch register.
15675         Set volatile flag on operand 0.
15676         (*memory_barrier): New insn pattern.
15678         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
15679         insn operands.
15680         (*memory_barrier): Use (match_dup 0) as input operand.
15682         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
15683         Remove mem:BLK from insn operands.  Use Pmode scratch register.
15684         Set volatile flag on operand 0.
15685         (*mb_internal): New insn pattern.
15687         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
15689 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
15691         PR middle-end/38586
15692         * function.c (struct temp_slot): Move to the section of the file
15693         that deals with temp slots.  Remove field 'address'.
15694         (temp_slot_address_table): New hash table of address -> temp slot.
15695         (struct temp_slot_address_entry): New struct, items for the table.
15696         (temp_slot_address_compute_hash, temp_slot_address_hash,
15697         temp_slot_address_eq, insert_temp_slot_address): Support functions
15698         for the new table.
15699         (find_temp_slot_from_address): Rewrite to use the new hash table.
15700         (remove_unused_temp_slot_addresses): Remove addresses of temp
15701         slots that have been made available.
15702         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
15703         worker function for remove_unused_temp_slot_addresses.
15704         (assign_stack_temp_for_type): Don't clear the temp slot address list.
15705         Add the temp slot address to the address -> temp slot map.
15706         (update_temp_slot_address): Update via insert_temp_slot_address.
15707         (free_temp_slots): Call remove_unused_temp_slot_addresses.
15708         (pop_temp_slots): Likewise.
15709         (init_temp_slots): Allocate the address -> temp slot map, or empty
15710         the map if it is already allocated.
15711         (prepare_function_start): Initialize temp slot processing.
15713 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
15715         PR middle-end/38584
15716         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
15717         Calculate the size of all stack vars assuming no packing of stack
15718         vars will happen, replacing a quadratic algorithm with a linear one.
15720 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
15722         PR target/38707
15723         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
15724         can't be used.
15726 2009-01-03  Diego Novillo  <dnovillo@google.com>
15728         * doc/contrib.texi: Update contributions.
15730 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
15732         PR c++/38705
15733         * builtins.c (fold_builtin_memory_op): Give up if either operand
15734         is volatile.  Set srctype or desttype to non-qualified version
15735         of the other type.
15737         PR c/38700
15738         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
15739         and FUNCTION_DECLs.
15741 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
15743         PR rtl-optimization/35805
15744         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
15745         problem if fast dce is able to remove any instructions.
15746         * dce.c (dce_process_block): Fix dump message.
15748 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
15750         PR 33649
15751         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
15753 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
15755         PR middle-end/38690
15756         * tree-flow.h (op_code_prio, op_prio): New prototypes.
15757         * tree-pretty-print.c (op_code_prio): New function.
15758         (op_prio): No longer static.  Use op_code_prio.
15759         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
15760         Use op_prio and op_code_prio to determine if () should be
15761         printed around operand(s) or not.
15763         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
15764         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
15765         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
15766         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
15767         pp_character instead of pp_string for single letter printing.
15769 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
15771         * doc/extend.texi: Fix '#pragma GCC option' typo.
15773 2009-01-02  Richard Guenther  <rguenther@suse.de>
15775         * doc/install.texi (--enable-checking): Mention different
15776         default for stage1.
15777         (--enable-stage1-checking): Document.
15779 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
15781         PR middle-end/30142
15782         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
15783         case to be an error.
15785 2009-01-02  Ben Elliston  <bje@au.ibm.com>
15787         * config/fp-bit.h (pack_d): Constify argument.
15788         * config/fp-bit.c (makenan): Constify return type. Remove casts.
15789         (isnan): Constify argument.
15790         (isinf): Likewise.
15791         (iszero): Likewise.
15792         (pack_d): Likewise.
15793         (_fpadd_parts): Constify return type.
15794         (_fpmul_parts): Likewise.
15795         (_fpdiv_parts): Likewise.
15797 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
15799         PR c/36489
15800         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
15801         warn about overwriting initializer with side-effects or
15802         -Woverride-init if !IMPLICIT.
15803         (output_init_element): Likewise.  Pass IMPLICIT down to
15804         add_pending_init.
15805         (process_init_element): Add IMPLICIT argument.  Pass it down
15806         to output_init_element.
15807         (push_init_element, pop_init_level, set_designator): Adjust
15808         process_init_element callers.
15809         (set_nonincremental_init, set_nonincremental_init_from_string):
15810         Adjust add_pending_init callers.
15811         (output_pending_init_elements): Adjust output_init_element callers.
15812         * c-tree.h (process_init_element): Adjust prototype.
15813         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
15814         process_init_element callers.
15817 Copyright (C) 2009 Free Software Foundation, Inc.
15819 Copying and distribution of this file, with or without modification,
15820 are permitted in any medium without royalty provided the copyright
15821 notice and this notice are preserved.