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