* de.po: Update.
[official-gcc.git] / gcc / ChangeLog
blobf7834cb640a38ec11c9340c191d0600d8346fc1c
1 2005-01-06  Zdenek Dvorak <dvorakz@suse.cz>
3         PR tree-optimization/18527
4         * tree-ssa-loop-niter.c (number_of_iterations_cond,
5         number_of_iterations_special, number_of_iterations_exit):
6         Move base and step of an iv to a single structure.  Add
7         no_overflow flag, and use it in # of iterations analysis.
8         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Add
9         folded_casts argument.
10         (simple_iv): Pass base and step in a structure.  Set no_overflow
11         flag.
12         (scev_const_prop): Add argument to analyze_scalar_evolution_in_loop.
13         Evaluate expensiveness of computing # of iterations instead of
14         the final expression.
15         * tree-scalar-evolution.h (affine_iv): New structure.
16         (simple_iv): Declaration changed.
17         * tree-chrec.c (chrec_apply): Handle chrecs containing symbols.
18         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev,
19         find_givs_in_stmt): Changed due to simple_iv change.
21 2005-01-06  Jeff Law  <law@redhat.com>
23         PR ada/24994
24         * tree-cfg.c (bsi_replace): Rename final argument from
25         PRESERVE_EH_INFO to UPDATE_EH_INFO.  Fix typo in last
26         change (stmt -> orig_stmt).
27         * tree-eh.c (verify_eh_throw_stmt_node): New function.
28         (bsi_remove): Add new argument.  Remove EH information
29         if requested.
30         (verify_eh_throw_table_statements): New function.
31         (bsi_remove): Add new argument REMOVE_EH_INFO.  All callers
32         updated.
33         * tree-optimize.c (execute_free_cfg_annotations): Verify
34         the EH throw statement table after removing annotations.
35         * except.h (verify_eh_throw_table_statements): Prototype.
36         * tree-flow.h (bsi_remove): Update prototype.
37         * tree-vrp.c (remove_range_assertions): Add new argument to
38         bsi_remove call.
39         * tree-ssa-loop-im.c (move_computations_stmt): Likewise.
40         * tree-complex.c (expand_complex_div_wide): Likewise.
41         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Likewise
42         * tree-tailcall.c (eliminate_tailcall): Likewise.
43         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
44         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
45         * tree-nrv.c (tree_nrv): Likewise.
46         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Likewise.
47         * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
48         (combine_blocks): Likewise.
49         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Likewise.
50         * tree-cfgcleanup.c (cleanup_ctrl_expr_graph): Likewise.
51         (cleanup_control_flow): Likewise.
52         (remove_forwarder_block): Likewise.
53         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
54         * tree-sra.c (sra_replace): Likewise.
55         * tree-ssa-forwprop.c (forward_propagate_into_cond): Likewise.
56         (forward_propagate_single_use_vars): Likewise.
57         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
58         * tree-inline.c (expand_call_inline): Likewise.
59         * tree-vect-transform.c (vect_transform_loop): Likewise.
60         * tree-outof-ssa.c (rewrite_trees): Likewise.
61         * tree-cfg.c (make_goto_expr_edges): Likewise.
62         (cleanup_dead_labels): Likewise.
63         (tree_merge_blocks, remove_bb, disband_implicit_edges): Likewise.
64         (bsi_move_before, bsi_move_after): Likewise.
65         (bsi_move_to_bb_end, try_redirect_by_replacing_jump): Likewise
66         (tree_redirect_edge_and_branch, tree_split_block): Likewise.
68 2006-01-06  Andrew Pinski  <pinskia@physics.uc.edu>
70         PR tree-opt/25528
71         * tree-ssa-alias.c (find_used_portions): Handle REALPART_EXPR
72         and IMAGPART_EXPR.
73         * tree-flow-inline.h (var_can_have_subvars): Handle complex types
74         on non gimple variables.  Also add checks at the top for decls and
75         mtags.
76         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Handle
77         complex types.
78         * tree-ssa-operands.c (parse_ssa_operands): Handle REALPART_EXPR
79         and IMAGPART_EXPR for creating MUST_DEFs.
80         (get_expr_operands): Handle SSA_NAME, STRUCT_FIELD_TAG, TYPE_MEMORY_TAG,
81         and NAME_MEMORY_TAG separately from the DECLs.
83 2006-01-06  Richard Guenther  <rguenther@suse.de>
85         * tree-dfa.c (mark_new_vars_to_rename): Create stmt
86         annotation, if necessary.
87         * tree-ssa-pre.c (create_expression_by_pieces): Remove
88         redundant calls to update_stmt.
89         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
90         Likewise.
92 2006-01-05  Richard Henderson  <rth@redhat.com>
94         * c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
96 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
98         * c-typeck.c: Update copyright date.
100 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
102         * c-typeck.c (build_c_cast): Always warn when casting
103         from a pointer to an integer of different size, even if
104         the node was constant.
106 2006-01-05  Richard Guenther  <rguenther@suse.de>
108         PR tree-optimization/22555
109         * tree-ssa-alias.c (create_overlap_variables_for): Do not give up,
110         if one structure field is an array.
111         * tree-ssa-operands.c (get_expr_operands): Continue scanning
112         operands even if we found a subvar, but ignore VOPs in this
113         case.
114         * tree-ssa-loop-ivopts.c (rewrite_use): Mark new vars in stmt
115         for renaming.
116         * tree-ssa-loop.c (pass_iv_optimize): Schedule TODO_update_ssa.
118 2006-01-05  Richard Earnshaw  <rearnsha@arm.com>
120         PR middle-end/24998
121         * arm/t-netbsd (LIB2FUNCS_EXTRA): Define.
123 2006-01-05  Richard Guenther  <rguenther@suse.de>
124             Diego Novillo  <dnovillo@redhat.com>
126         * tree-pass.h (TODO_remove_unused_locals): Define.
127         * gimple-low.c (expand_var_p, remove_useless_vars,
128         pass_remove_useless_vars): Remove.  Update all users.
129         * tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
130         (remove_unused_locals): New function.
131         * tree-flow.h (remove_unused_locals): Declare.
132         * passes.c (execute_todo): Call remove_unused_locals if
133         TODO_remove_unused_locals is set.
134         * tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
135         * tree-ssa-dce.c (pass_dce): Likewise.
136         * tree-outof-ssa.c (pass_del_ssa): Likewise.
138 2006-01-05  Richard Guenther  <rguenther@suse.de>
140         * tree-flow.h (struct fieldoff): Decompose field to
141         type, size and decl.
142         * tree-ssa-alias.c (create_sft): Take type as parameter.
143         (create_overlap_variables_for): Store type, size and decl
144         in the fieldoff structure.
145         * tree-ssa-structalias.c (fieldoff_compare): Adjust users
146         of struct fieldoff.
147         (push_fields_onto_fieldstack): Likewise.
148         (create_variable_info_for): Likewise.  Use offset for the
149         SFT name if the decl is not available.
151 2006-01-04  Paul Brook  <paul@codesourcery.com>
153         * config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
155 2006-01-04  Daniel Berlin  <dberlin@dberlin.org>
157         * lambda-code.c (can_put_in_inner_loop): Relax
158         restrictions.
159         (can_put_after_inner_loop): New function.
160         (can_convert_to_perfect_nest): Use can_put_after_inner_loop as well.
161         (perfect_nestify): Change to make copies and modify uses.
163 2006-01-04  Richard Henderson  <rth@redhat.com>
165         Merge from gomp branch:
166         * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
167         via integer constant.
168         (pragma_lex): Remove.
169         * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
170         rather than parsing it.
171         * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
172         handle_pragma_extern_prefix): Add %< %> quotes.
173         (registered_pragmas): New.
174         (c_register_pragma_1): New.
175         (c_register_pragma): Use it.
176         (c_register_pragma_with_expansion): Likewise.
177         (c_invoke_pragma_handler): New.
178         (init_pragma): Use cpp_register_deferred_pragma directly for
179         pch_preprocess.
180         * c-pragma.h (enum pragma_kind): New.
181         (pragma_handler): New.
182         (c_invoke_pragma_handler): Declare.
183         * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
184         CPP_PRAGMA_EOL.
185         * c-common.h (c_common_pch_pragma): Update decl.
186         * Makefile.in (c-parser.o): Update dependencies.
187         (GTFILES): Add c-pragma.h.
188         * c-parser.c (struct c_token): Add pragma_kind.
189         (struct c_parser): Add in_pragma.
190         (c_lex_one_token): Always initialize keyword and pragma_kind.
191         Extract data for CPP_PRAGMA.
192         (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
193         (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
194         Don't allow CPP_PRAGMA_EOL if in_pragma.
195         (c_parser_consume_pragma): New.
196         (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
197         (c_parser_skip_to_end_of_parameter): Likewise.
198         (c_parser_skip_to_end_of_block_or_statement): Likewise.
199         (c_parser_skip_to_pragma_eol): New.
200         (c_parser_external_declaration): Handle CPP_PRAGMA.
201         (c_parser_compound_statement_nostart): Likewise.
202         (c_parser_statement_after_labels): Likewise.
203         (c_parser_pragma): New.
204         (pragma_lex): Likewise.
205         (c_parser_pragma_pch_preprocess): New.
206         (c_parser_new): Merge into ...
207         (c_parse_file): ... here.  Call c_parser_pragma_pch_preprocess.
209 2005-01-04  Jeff Law  <law@redhat.com>
211         PR ada/24994
212         * tree-cfg.c (bsi_replace): Remove the original statement
213         from the EH throw statement table.
215 2006-01-04  Jakub Jelinek  <jakub@redhat.com>
217         * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
218         make the prototype extern "C" and add throw ().
220         PR target/25554
221         * config/i386/i386.md (testqi_ext_3): Ensure len is positive
222         and pos non-negative and pos + len <= 32.
223         (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
224         drop pos + len < HOST_BITS_PER_WIDE_INT test.
225         (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
227         PR c/25559
228         * c-common.c (handle_vector_size_attribute): Reject zero vector size
229         as well as sizes not multiple of component size.
231         PR debug/25562
232         * function.c (instantiate_expr): New function.
233         (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
234         walk its DECL_VALUE_EXPR with instantiate_expr.
236         * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
237         DW_OP_deref{,_size} if address isn't going to be added.
239 2006-01-04  Ben Elliston  <bje@au.ibm.com>
241         * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
242         * config/fp-bit.c: Likewise.
244 2006-01-03  Daniel Berlin  <dberlin@dberlin.org>
246         * dominance.c: Add comment about why we use DFS numbering
247         of dominance tree.
249 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
250             Richard Henderson  <rth@redhat.com>
252         Merge from gomp-branch:
253         * varasm.c (assemble_variable): Handle thread-local COMMON data.
254         * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
256 2006-01-03  Paolo Bonzini  <bonzini@gnu.org>
258         PR rtl-optimization/25578
259         * combine.c (combine_simplify_rtx, force_to_mode): Don't
260         pass a parameter to simplify_shift_const if changing ASHIFTRT
261         to LSHIFTRT.
263 2006-01-03  Adrian Straetling  <straetling@de.ibm.com>
265         * gcc/builtins.c (get_builtin_sync_mem): New function.
266         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
267         expand_builtin_lock_test_and_set, expand_builtin_lock_release):
268         Call get_builtin_sync_mem to generate mem rtx.
270 2006-01-03  Richard Guenther  <rguenther@suse.de>
272         PR c/25183
273         * stmt.c (add_case_node): Make sure to clear overflow flags
274         from ranges.
276 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
278         Merge from gomp-branch.
279         * config/sparc/sync.md: New file.
280         * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
281         UNSPECV_LDSTUB): New constants.
282         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
283         * config/sparc/predicates.md (memory_reg_operand): New predicate.
284         * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
285         prototype.
287 2006-01-03  Roger Sayle  <roger@eyesopen.com>
289         * combine.c (reg_subword_p): New predicate to test whether the
290         destination of a set refers to a subword/piece of a register.
291         (try_combine): Generalize the code to merge the setting of a
292         pseudo to a constant followed by a set of a subword of that
293         register to a constant.
295 2006-01-03  Kazu Hirata  <kazu@codesourcery.com>
297         * basic-block.h (control_flow_graph): Change the type of
298         x_label_to_block_map to VEC(basic_block,gc) *.
299         * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
300         set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
302         * tree-ssa-propagate.c (cfg_blocks): Change the type to
303         VEC(basic_block,heap) *.
304         (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
305         ssa_prop_fini): Adjust the uses of cfg_blocks.
307 2006-01-03  Steven Bosscher  <stevenb.gcc@gmail.com>
309         * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
310         COMPONENT_REFs.
311         * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
312         hashing trees instead of a pointer hash.
313         (mem_attrs_htab_eq): Do a deep compare instead of a pointer
314         compare for MEM_EXPR.
316         PR rtl-optimization/25130
317         * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
318         when comparing MEMs for GCSE
320 2006-01-03  Ben Elliston  <bje@au.ibm.com>
322         * targhooks.h (default_decimal_float_supported_p): Declare.
323         * targhooks.c (default_decimal_float_supported_p): Define.
324         * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
325         `default_decimal_float_supported_p'.
326         * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
328 2006-01-02  Adam Nemet  <anemet@caviumnetworks.com>
330         * combine.c (apply_distributive_law <SUBREG>): Check
331         TRULY_NOOP_TRUNCATION.
333 2006-01-02  Geoffrey Keating  <geoffk@apple.com>
335         * dwarf2out.c (have_switched_text_section): Delete.
336         (have_multiple_function_sections): New.
337         (have_location_lists): Make 'bool'.
338         (add_AT_loc_list): Use 'true' not '1'.
339         (dwarf2out_switch_text_section): Set have_multiple_function_sections.
340         (output_loc_list): Use have_multiple_function_sections.
341         (output_ranges): Likewise.
342         (dwarf2out_begin_function): Set have_multiple_function_sections if
343         necessary.
344         (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
345         Check function_section rather than DECL_SECTION_NAME.
346         (dwarf2out_finish): Use have_multiple_function_sections.
347         Don't clear have_location_lists.
349 2006-01-02  Eric Botcazou  <ebotcazou@adacore.com>
350             Jan Hubicka  <jh@suse.cz>
352         * cfglayout.c (fixup_reorder_chain): Remove kludge for the
353         case of conditional jump jumping to the next instruction.
354         * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
355         cases of conditional jump jumping to the next instruction.
357 2006-01-02  Jan Hubicka  <jh@suse.cz>
359         * i386.c (*_cost): Add COSTS_N_INSNS.
360         (ix86_rtx_costs): Do not use COSTS_N_INSNS.
362 2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
364         PR target/25259
365         * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
367 2006-01-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
369         * config/arm/arm.c (all_fpus): Fix comment typo.
370         * config/darwin.c: Likewise.
371         * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
372         * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
373         * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
375 2006-01-01  David Edelsohn  <edelsohn@gnu.org>
377         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
378         (rs6000_split_compare_and_swapqhi): New.
379         * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
380         (sync_compare_and_swapqhi_internal): New.
381         * config/rs6000/rs6000-protos.h: Declare.