OSDN Git Service

2006-01-06 Andrew Pinski <pinskia@physics.uc.edu>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2006-01-06  Andrew Pinski  <pinskia@physics.uc.edu>
2
3         PR tree-opt/25528
4         * tree-ssa-alias.c (find_used_portions): Handle REALPART_EXPR
5         and IMAGPART_EXPR.
6         * tree-flow-inline.h (var_can_have_subvars): Handle complex types
7         on non gimple variables.  Also add checks at the top for decls and
8         mtags.
9         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Handle
10         complex types.
11         * tree-ssa-operands.c (parse_ssa_operands): Handle REALPART_EXPR
12         and IMAGPART_EXPR for creating MUST_DEFs.
13         (get_expr_operands): Handle SSA_NAME, STRUCT_FIELD_TAG, TYPE_MEMORY_TAG,
14         and NAME_MEMORY_TAG separately from the DECLs.
15
16 2006-01-06  Richard Guenther  <rguenther@suse.de>
17
18         * tree-dfa.c (mark_new_vars_to_rename): Create stmt
19         annotation, if necessary.
20         * tree-ssa-pre.c (create_expression_by_pieces): Remove
21         redundant calls to update_stmt.
22         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
23         Likewise.
24
25 2006-01-05  Richard Henderson  <rth@redhat.com>
26
27         * c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
28
29 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
30
31         * c-typeck.c: Update copyright date.
32
33 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
34
35         * c-typeck.c (build_c_cast): Always warn when casting
36         from a pointer to an integer of different size, even if
37         the node was constant.
38
39 2006-01-05  Richard Guenther  <rguenther@suse.de>
40
41         PR tree-optimization/22555
42         * tree-ssa-alias.c (create_overlap_variables_for): Do not give up,
43         if one structure field is an array.
44         * tree-ssa-operands.c (get_expr_operands): Continue scanning
45         operands even if we found a subvar, but ignore VOPs in this
46         case.
47         * tree-ssa-loop-ivopts.c (rewrite_use): Mark new vars in stmt
48         for renaming.
49         * tree-ssa-loop.c (pass_iv_optimize): Schedule TODO_update_ssa.
50
51 2006-01-05  Richard Earnshaw  <rearnsha@arm.com>
52
53         PR middle-end/24998
54         * arm/t-netbsd (LIB2FUNCS_EXTRA): Define.
55
56 2006-01-05  Richard Guenther  <rguenther@suse.de>
57             Diego Novillo  <dnovillo@redhat.com>
58
59         * tree-pass.h (TODO_remove_unused_locals): Define.
60         * gimple-low.c (expand_var_p, remove_useless_vars,
61         pass_remove_useless_vars): Remove.  Update all users.
62         * tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
63         (remove_unused_locals): New function.
64         * tree-flow.h (remove_unused_locals): Declare.
65         * passes.c (execute_todo): Call remove_unused_locals if
66         TODO_remove_unused_locals is set.
67         * tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
68         * tree-ssa-dce.c (pass_dce): Likewise.
69         * tree-outof-ssa.c (pass_del_ssa): Likewise.
70
71 2006-01-05  Richard Guenther  <rguenther@suse.de>
72
73         * tree-flow.h (struct fieldoff): Decompose field to
74         type, size and decl.
75         * tree-ssa-alias.c (create_sft): Take type as parameter.
76         (create_overlap_variables_for): Store type, size and decl
77         in the fieldoff structure.
78         * tree-ssa-structalias.c (fieldoff_compare): Adjust users
79         of struct fieldoff.
80         (push_fields_onto_fieldstack): Likewise.
81         (create_variable_info_for): Likewise.  Use offset for the
82         SFT name if the decl is not available.
83
84 2006-01-04  Paul Brook  <paul@codesourcery.com>
85
86         * config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
87
88 2006-01-04  Daniel Berlin  <dberlin@dberlin.org>
89
90         * lambda-code.c (can_put_in_inner_loop): Relax
91         restrictions.
92         (can_put_after_inner_loop): New function.
93         (can_convert_to_perfect_nest): Use can_put_after_inner_loop as well.
94         (perfect_nestify): Change to make copies and modify uses.
95
96 2006-01-04  Richard Henderson  <rth@redhat.com>
97
98         Merge from gomp branch:
99         * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
100         via integer constant.
101         (pragma_lex): Remove.
102         * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
103         rather than parsing it.
104         * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
105         handle_pragma_extern_prefix): Add %< %> quotes.
106         (registered_pragmas): New.
107         (c_register_pragma_1): New.
108         (c_register_pragma): Use it.
109         (c_register_pragma_with_expansion): Likewise.
110         (c_invoke_pragma_handler): New.
111         (init_pragma): Use cpp_register_deferred_pragma directly for
112         pch_preprocess.
113         * c-pragma.h (enum pragma_kind): New.
114         (pragma_handler): New.
115         (c_invoke_pragma_handler): Declare.
116         * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
117         CPP_PRAGMA_EOL.
118         * c-common.h (c_common_pch_pragma): Update decl.
119         * Makefile.in (c-parser.o): Update dependencies.
120         (GTFILES): Add c-pragma.h.
121         * c-parser.c (struct c_token): Add pragma_kind.
122         (struct c_parser): Add in_pragma.
123         (c_lex_one_token): Always initialize keyword and pragma_kind.
124         Extract data for CPP_PRAGMA.
125         (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
126         (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
127         Don't allow CPP_PRAGMA_EOL if in_pragma.
128         (c_parser_consume_pragma): New.
129         (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
130         (c_parser_skip_to_end_of_parameter): Likewise.
131         (c_parser_skip_to_end_of_block_or_statement): Likewise.
132         (c_parser_skip_to_pragma_eol): New.
133         (c_parser_external_declaration): Handle CPP_PRAGMA.
134         (c_parser_compound_statement_nostart): Likewise.
135         (c_parser_statement_after_labels): Likewise.
136         (c_parser_pragma): New.
137         (pragma_lex): Likewise.
138         (c_parser_pragma_pch_preprocess): New.
139         (c_parser_new): Merge into ...
140         (c_parse_file): ... here.  Call c_parser_pragma_pch_preprocess.
141
142 2005-01-04  Jeff Law  <law@redhat.com>
143
144         PR ada/24994
145         * tree-cfg.c (bsi_replace): Remove the original statement
146         from the EH throw statement table.
147
148 2006-01-04  Jakub Jelinek  <jakub@redhat.com>
149
150         * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
151         make the prototype extern "C" and add throw ().
152
153         PR target/25554
154         * config/i386/i386.md (testqi_ext_3): Ensure len is positive
155         and pos non-negative and pos + len <= 32.
156         (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
157         drop pos + len < HOST_BITS_PER_WIDE_INT test.
158         (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
159
160         PR c/25559
161         * c-common.c (handle_vector_size_attribute): Reject zero vector size
162         as well as sizes not multiple of component size.
163
164         PR debug/25562
165         * function.c (instantiate_expr): New function.
166         (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
167         walk its DECL_VALUE_EXPR with instantiate_expr.
168
169         * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
170         DW_OP_deref{,_size} if address isn't going to be added.
171
172 2006-01-04  Ben Elliston  <bje@au.ibm.com>
173
174         * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
175         * config/fp-bit.c: Likewise.
176
177 2006-01-03  Daniel Berlin  <dberlin@dberlin.org>
178
179         * dominance.c: Add comment about why we use DFS numbering
180         of dominance tree.
181
182 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
183             Richard Henderson  <rth@redhat.com>
184
185         Merge from gomp-branch:
186         * varasm.c (assemble_variable): Handle thread-local COMMON data.
187         * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
188
189 2006-01-03  Paolo Bonzini  <bonzini@gnu.org>
190
191         PR rtl-optimization/25578
192         * combine.c (combine_simplify_rtx, force_to_mode): Don't
193         pass a parameter to simplify_shift_const if changing ASHIFTRT
194         to LSHIFTRT.
195
196 2006-01-03  Adrian Straetling  <straetling@de.ibm.com>
197
198         * gcc/builtins.c (get_builtin_sync_mem): New function.
199         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
200         expand_builtin_lock_test_and_set, expand_builtin_lock_release):
201         Call get_builtin_sync_mem to generate mem rtx.
202
203 2006-01-03  Richard Guenther  <rguenther@suse.de>
204
205         PR c/25183
206         * stmt.c (add_case_node): Make sure to clear overflow flags
207         from ranges.
208
209 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
210
211         Merge from gomp-branch.
212         * config/sparc/sync.md: New file.
213         * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
214         UNSPECV_LDSTUB): New constants.
215         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
216         * config/sparc/predicates.md (memory_reg_operand): New predicate.
217         * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
218         prototype.
219
220 2006-01-03  Roger Sayle  <roger@eyesopen.com>
221
222         * combine.c (reg_subword_p): New predicate to test whether the
223         destination of a set refers to a subword/piece of a register.
224         (try_combine): Generalize the code to merge the setting of a
225         pseudo to a constant followed by a set of a subword of that
226         register to a constant.
227
228 2006-01-03  Kazu Hirata  <kazu@codesourcery.com>
229
230         * basic-block.h (control_flow_graph): Change the type of
231         x_label_to_block_map to VEC(basic_block,gc) *.
232         * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
233         set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
234
235         * tree-ssa-propagate.c (cfg_blocks): Change the type to
236         VEC(basic_block,heap) *.
237         (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
238         ssa_prop_fini): Adjust the uses of cfg_blocks.
239
240 2006-01-03  Steven Bosscher  <stevenb.gcc@gmail.com>
241
242         * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
243         COMPONENT_REFs.
244         * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
245         hashing trees instead of a pointer hash.
246         (mem_attrs_htab_eq): Do a deep compare instead of a pointer
247         compare for MEM_EXPR.
248
249         PR rtl-optimization/25130
250         * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
251         when comparing MEMs for GCSE
252
253 2006-01-03  Ben Elliston  <bje@au.ibm.com>
254
255         * targhooks.h (default_decimal_float_supported_p): Declare.
256         * targhooks.c (default_decimal_float_supported_p): Define.
257         * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
258         `default_decimal_float_supported_p'.
259         * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
260
261 2006-01-02  Adam Nemet  <anemet@caviumnetworks.com>
262
263         * combine.c (apply_distributive_law <SUBREG>): Check
264         TRULY_NOOP_TRUNCATION.
265
266 2006-01-02  Geoffrey Keating  <geoffk@apple.com>
267
268         * dwarf2out.c (have_switched_text_section): Delete.
269         (have_multiple_function_sections): New.
270         (have_location_lists): Make 'bool'.
271         (add_AT_loc_list): Use 'true' not '1'.
272         (dwarf2out_switch_text_section): Set have_multiple_function_sections.
273         (output_loc_list): Use have_multiple_function_sections.
274         (output_ranges): Likewise.
275         (dwarf2out_begin_function): Set have_multiple_function_sections if
276         necessary.
277         (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
278         Check function_section rather than DECL_SECTION_NAME.
279         (dwarf2out_finish): Use have_multiple_function_sections.
280         Don't clear have_location_lists.
281
282 2006-01-02  Eric Botcazou  <ebotcazou@adacore.com>
283             Jan Hubicka  <jh@suse.cz>
284
285         * cfglayout.c (fixup_reorder_chain): Remove kludge for the
286         case of conditional jump jumping to the next instruction.
287         * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
288         cases of conditional jump jumping to the next instruction.
289
290 2006-01-02  Jan Hubicka  <jh@suse.cz>
291
292         * i386.c (*_cost): Add COSTS_N_INSNS.
293         (ix86_rtx_costs): Do not use COSTS_N_INSNS.
294
295 2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
296
297         PR target/25259
298         * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
299
300 2006-01-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
301
302         * config/arm/arm.c (all_fpus): Fix comment typo.
303         * config/darwin.c: Likewise.
304         * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
305         * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
306         * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
307
308 2006-01-01  David Edelsohn  <edelsohn@gnu.org>
309
310         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
311         (rs6000_split_compare_and_swapqhi): New.
312         * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
313         (sync_compare_and_swapqhi_internal): New.
314         * config/rs6000/rs6000-protos.h: Declare.
315