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