1 2005-01-09 Jeff Law <law@redhat.com>
3 * tree-ssa-dom.c (simplify_cond_and_lookup_avail_expr): Remove
4 code to propagate the RHS of a cast into COND_EXPR_COND. Remove
5 now unused arguments. Callers updated.
6 (eliminate_redundant_computations): Remove now unused arguments,
8 (local_fold): Remove, no longer used.
9 (find_equivalent_equality_comparison): Removed from tree-ssa-dom.c
11 * tree-ssa-forwprop.c (find_equivalent_equality_comparison): Here.
12 (simplify_cond): New function.
13 (forward_propagate_into_cond): Call simplify_cond.
15 2006-01-09 Alexandre Oliva <aoliva@redhat.com>
17 * config/i386/sse.md (*vec_extractv2di_1_sse2): New.
18 (*vec_extractv2di_1_sse): New.
20 2006-01-09 Ben Elliston <bje@au.ibm.com>
22 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Typo fix.
24 2006-01-08 Richard Guenther <rguenther@suse.de>
26 * tree-ssa-structalias.c (get_constraint_for): Remove
28 (get_constraint_for_component_ref): Likewise.
30 (get_constraint_for): Likewise.
31 (do_structure_copy): Likewise.
32 (handle_ptr_arith): Likewise.
33 (find_func_aliases): Likewise. Remove unused need_anyoffset
36 2006-01-08 J"orn Rennecke <joern.rennecke@st.com>
37 Kaz Kojima <kkojima@gcc.gnu.org>
39 * config/sh/sh.h (CONST_OK_FOR_K16): Define.
40 (CONST_OK_FOR_K): Add CONST_OK_FOR_K16 case.
41 (EXTRA_CONSTRAINT_C16): Remove.
42 (EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Define.
43 (EXTRA_CONSTRAINT_C): Remove EXTRA_CONSTRAINT_C16 case and add
44 EXTRA_CONSTRAINT_Css and EXTRA_CONSTRAINT_Csu cases.
45 * config/sh/sh.c (print_operand): Handle unsigned 16-bit symbolic
46 constants of SHmedia. Handle nested constant expressions of
48 (andcosts): Fix the costs for SHmedia constants.
49 (sh_rtx_costs): Take account of outer_code for SHmedia constants.
50 * config/sh/sh.md (*movsi_media): Use Css constraint instead of C16.
51 (*movsi_media_nofpu, *movqi_media, *movhi_media): Likewise.
52 (*movdi_media, *movdi_media_nofpu, movv8qi_i, movv2hi_i): Likewise.
53 (movv4hi_i, movv2si_i): Likewise.
54 (movsi_const): Adjust the second operand of ior so to match with
56 (movdi_const, movdi_const_32bit): Likewise.
57 (movdi_const_16bit+1): Don't sign-extend LOW.
58 (movdi_const_16bit+2): Likewise. Remove the zero_extend and truncate
60 (*double_shori): Fix the split condition. Use GEN_INT instead
61 of get_int_mode calls. Mask lower 16-bit of the argument of
64 (symGOTPLT2reg): Replace gen_sym2GOTPLT with gen_rtx_CONST and
66 * config/sh/predicates.md (arith_operand): Use EXTRA_CONSTRAINT_Css
67 instead of EXTRA_CONSTRAINT_C16.
69 2006-01-07 Ian Lance Taylor <ian@airs.com>
70 David Edelsohn <edelsohn@gnu.org>
72 PR rtl-optimization/25662
73 * optabs.c (simplify_expand_binop): Use simplify_binary_operation
74 for constant operands instead of simplify_gen_binary.
75 * simplify-rtx.c (simplify_gen_binary): Swap commutative operands
76 after trying simplify_binary_operation
78 2006-01-06 Daniel Berlin <dberlin@dberlin.org>
80 * tree.c (iterative_hash_expr): Hash decls based on UID.
82 2006-01-06 Eric Christopher <echristo@apple.com>
84 * doc/tm.texi (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Document.
85 (TARGET_UNWIND_EMIT): Fix spelling.
86 * target.h (gcc_target): Add except_table_label.
87 * except.c (output_function_exception_table): Use.
88 * varasm.c (default_emit_except_table_label): New.
89 * target-def.h (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): New default
92 * output.h (default_emit_except_table_label): Prototype.
93 * config/darwin-protos.h (darwin_emit_except_table_label): Ditto.
94 * config/darwin.c (darwin_emit_except_table_label): Define.
95 * config/darwin.h (TARGET_ASM_EMIT_EXCEPT_TABLE): Ditto.
97 2005-01-06 Zdenek Dvorak <dvorakz@suse.cz>
99 PR tree-optimization/18527
100 * tree-ssa-loop-niter.c (number_of_iterations_cond,
101 number_of_iterations_special, number_of_iterations_exit):
102 Move base and step of an iv to a single structure. Add
103 no_overflow flag, and use it in # of iterations analysis.
104 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Add
105 folded_casts argument.
106 (simple_iv): Pass base and step in a structure. Set no_overflow
108 (scev_const_prop): Add argument to analyze_scalar_evolution_in_loop.
109 Evaluate expensiveness of computing # of iterations instead of
110 the final expression.
111 * tree-scalar-evolution.h (affine_iv): New structure.
112 (simple_iv): Declaration changed.
113 * tree-chrec.c (chrec_apply): Handle chrecs containing symbols.
114 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev,
115 find_givs_in_stmt): Changed due to simple_iv change.
117 2005-01-06 Jeff Law <law@redhat.com>
120 * tree-cfg.c (bsi_replace): Rename final argument from
121 PRESERVE_EH_INFO to UPDATE_EH_INFO. Fix typo in last
122 change (stmt -> orig_stmt).
123 * tree-eh.c (verify_eh_throw_stmt_node): New function.
124 (bsi_remove): Add new argument. Remove EH information
126 (verify_eh_throw_table_statements): New function.
127 (bsi_remove): Add new argument REMOVE_EH_INFO. All callers
129 * tree-optimize.c (execute_free_cfg_annotations): Verify
130 the EH throw statement table after removing annotations.
131 * except.h (verify_eh_throw_table_statements): Prototype.
132 * tree-flow.h (bsi_remove): Update prototype.
133 * tree-vrp.c (remove_range_assertions): Add new argument to
135 * tree-ssa-loop-im.c (move_computations_stmt): Likewise.
136 * tree-complex.c (expand_complex_div_wide): Likewise.
137 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Likewise
138 * tree-tailcall.c (eliminate_tailcall): Likewise.
139 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
140 * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
141 * tree-nrv.c (tree_nrv): Likewise.
142 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Likewise.
143 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
144 (combine_blocks): Likewise.
145 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Likewise.
146 * tree-cfgcleanup.c (cleanup_ctrl_expr_graph): Likewise.
147 (cleanup_control_flow): Likewise.
148 (remove_forwarder_block): Likewise.
149 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
150 * tree-sra.c (sra_replace): Likewise.
151 * tree-ssa-forwprop.c (forward_propagate_into_cond): Likewise.
152 (forward_propagate_single_use_vars): Likewise.
153 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
154 * tree-inline.c (expand_call_inline): Likewise.
155 * tree-vect-transform.c (vect_transform_loop): Likewise.
156 * tree-outof-ssa.c (rewrite_trees): Likewise.
157 * tree-cfg.c (make_goto_expr_edges): Likewise.
158 (cleanup_dead_labels): Likewise.
159 (tree_merge_blocks, remove_bb, disband_implicit_edges): Likewise.
160 (bsi_move_before, bsi_move_after): Likewise.
161 (bsi_move_to_bb_end, try_redirect_by_replacing_jump): Likewise
162 (tree_redirect_edge_and_branch, tree_split_block): Likewise.
164 2006-01-06 Andrew Pinski <pinskia@physics.uc.edu>
167 * tree-ssa-alias.c (find_used_portions): Handle REALPART_EXPR
169 * tree-flow-inline.h (var_can_have_subvars): Handle complex types
170 on non gimple variables. Also add checks at the top for decls and
172 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Handle
174 * tree-ssa-operands.c (parse_ssa_operands): Handle REALPART_EXPR
175 and IMAGPART_EXPR for creating MUST_DEFs.
176 (get_expr_operands): Handle SSA_NAME, STRUCT_FIELD_TAG, TYPE_MEMORY_TAG,
177 and NAME_MEMORY_TAG separately from the DECLs.
179 2006-01-06 Richard Guenther <rguenther@suse.de>
181 * tree-dfa.c (mark_new_vars_to_rename): Create stmt
182 annotation, if necessary.
183 * tree-ssa-pre.c (create_expression_by_pieces): Remove
184 redundant calls to update_stmt.
185 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
188 2006-01-05 Richard Henderson <rth@redhat.com>
190 * c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
192 2006-01-05 Carlos O'Donell <carlos@codesourcery.com>
194 * c-typeck.c: Update copyright date.
196 2006-01-05 Carlos O'Donell <carlos@codesourcery.com>
198 * c-typeck.c (build_c_cast): Always warn when casting
199 from a pointer to an integer of different size, even if
200 the node was constant.
202 2006-01-05 Richard Guenther <rguenther@suse.de>
204 PR tree-optimization/22555
205 * tree-ssa-alias.c (create_overlap_variables_for): Do not give up,
206 if one structure field is an array.
207 * tree-ssa-operands.c (get_expr_operands): Continue scanning
208 operands even if we found a subvar, but ignore VOPs in this
210 * tree-ssa-loop-ivopts.c (rewrite_use): Mark new vars in stmt
212 * tree-ssa-loop.c (pass_iv_optimize): Schedule TODO_update_ssa.
214 2006-01-05 Richard Earnshaw <rearnsha@arm.com>
217 * arm/t-netbsd (LIB2FUNCS_EXTRA): Define.
219 2006-01-05 Richard Guenther <rguenther@suse.de>
220 Diego Novillo <dnovillo@redhat.com>
222 * tree-pass.h (TODO_remove_unused_locals): Define.
223 * gimple-low.c (expand_var_p, remove_useless_vars,
224 pass_remove_useless_vars): Remove. Update all users.
225 * tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
226 (remove_unused_locals): New function.
227 * tree-flow.h (remove_unused_locals): Declare.
228 * passes.c (execute_todo): Call remove_unused_locals if
229 TODO_remove_unused_locals is set.
230 * tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
231 * tree-ssa-dce.c (pass_dce): Likewise.
232 * tree-outof-ssa.c (pass_del_ssa): Likewise.
234 2006-01-05 Richard Guenther <rguenther@suse.de>
236 * tree-flow.h (struct fieldoff): Decompose field to
238 * tree-ssa-alias.c (create_sft): Take type as parameter.
239 (create_overlap_variables_for): Store type, size and decl
240 in the fieldoff structure.
241 * tree-ssa-structalias.c (fieldoff_compare): Adjust users
243 (push_fields_onto_fieldstack): Likewise.
244 (create_variable_info_for): Likewise. Use offset for the
245 SFT name if the decl is not available.
247 2006-01-04 Paul Brook <paul@codesourcery.com>
249 * config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
251 2006-01-04 Daniel Berlin <dberlin@dberlin.org>
253 * lambda-code.c (can_put_in_inner_loop): Relax
255 (can_put_after_inner_loop): New function.
256 (can_convert_to_perfect_nest): Use can_put_after_inner_loop as well.
257 (perfect_nestify): Change to make copies and modify uses.
259 2006-01-04 Richard Henderson <rth@redhat.com>
261 Merge from gomp branch:
262 * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
263 via integer constant.
264 (pragma_lex): Remove.
265 * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
266 rather than parsing it.
267 * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
268 handle_pragma_extern_prefix): Add %< %> quotes.
269 (registered_pragmas): New.
270 (c_register_pragma_1): New.
271 (c_register_pragma): Use it.
272 (c_register_pragma_with_expansion): Likewise.
273 (c_invoke_pragma_handler): New.
274 (init_pragma): Use cpp_register_deferred_pragma directly for
276 * c-pragma.h (enum pragma_kind): New.
277 (pragma_handler): New.
278 (c_invoke_pragma_handler): Declare.
279 * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
281 * c-common.h (c_common_pch_pragma): Update decl.
282 * Makefile.in (c-parser.o): Update dependencies.
283 (GTFILES): Add c-pragma.h.
284 * c-parser.c (struct c_token): Add pragma_kind.
285 (struct c_parser): Add in_pragma.
286 (c_lex_one_token): Always initialize keyword and pragma_kind.
287 Extract data for CPP_PRAGMA.
288 (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
289 (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
290 Don't allow CPP_PRAGMA_EOL if in_pragma.
291 (c_parser_consume_pragma): New.
292 (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
293 (c_parser_skip_to_end_of_parameter): Likewise.
294 (c_parser_skip_to_end_of_block_or_statement): Likewise.
295 (c_parser_skip_to_pragma_eol): New.
296 (c_parser_external_declaration): Handle CPP_PRAGMA.
297 (c_parser_compound_statement_nostart): Likewise.
298 (c_parser_statement_after_labels): Likewise.
299 (c_parser_pragma): New.
300 (pragma_lex): Likewise.
301 (c_parser_pragma_pch_preprocess): New.
302 (c_parser_new): Merge into ...
303 (c_parse_file): ... here. Call c_parser_pragma_pch_preprocess.
305 2005-01-04 Jeff Law <law@redhat.com>
308 * tree-cfg.c (bsi_replace): Remove the original statement
309 from the EH throw statement table.
311 2006-01-04 Jakub Jelinek <jakub@redhat.com>
313 * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
314 make the prototype extern "C" and add throw ().
317 * config/i386/i386.md (testqi_ext_3): Ensure len is positive
318 and pos non-negative and pos + len <= 32.
319 (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
320 drop pos + len < HOST_BITS_PER_WIDE_INT test.
321 (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
324 * c-common.c (handle_vector_size_attribute): Reject zero vector size
325 as well as sizes not multiple of component size.
328 * function.c (instantiate_expr): New function.
329 (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
330 walk its DECL_VALUE_EXPR with instantiate_expr.
332 * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
333 DW_OP_deref{,_size} if address isn't going to be added.
335 2006-01-04 Ben Elliston <bje@au.ibm.com>
337 * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
338 * config/fp-bit.c: Likewise.
340 2006-01-03 Daniel Berlin <dberlin@dberlin.org>
342 * dominance.c: Add comment about why we use DFS numbering
345 2006-01-03 Jakub Jelinek <jakub@redhat.com>
346 Richard Henderson <rth@redhat.com>
348 Merge from gomp-branch:
349 * varasm.c (assemble_variable): Handle thread-local COMMON data.
350 * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
352 2006-01-03 Paolo Bonzini <bonzini@gnu.org>
354 PR rtl-optimization/25578
355 * combine.c (combine_simplify_rtx, force_to_mode): Don't
356 pass a parameter to simplify_shift_const if changing ASHIFTRT
359 2006-01-03 Adrian Straetling <straetling@de.ibm.com>
361 * gcc/builtins.c (get_builtin_sync_mem): New function.
362 (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
363 expand_builtin_lock_test_and_set, expand_builtin_lock_release):
364 Call get_builtin_sync_mem to generate mem rtx.
366 2006-01-03 Richard Guenther <rguenther@suse.de>
369 * stmt.c (add_case_node): Make sure to clear overflow flags
372 2006-01-03 Jakub Jelinek <jakub@redhat.com>
374 Merge from gomp-branch.
375 * config/sparc/sync.md: New file.
376 * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
377 UNSPECV_LDSTUB): New constants.
378 * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
379 * config/sparc/predicates.md (memory_reg_operand): New predicate.
380 * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
383 2006-01-03 Roger Sayle <roger@eyesopen.com>
385 * combine.c (reg_subword_p): New predicate to test whether the
386 destination of a set refers to a subword/piece of a register.
387 (try_combine): Generalize the code to merge the setting of a
388 pseudo to a constant followed by a set of a subword of that
389 register to a constant.
391 2006-01-03 Kazu Hirata <kazu@codesourcery.com>
393 * basic-block.h (control_flow_graph): Change the type of
394 x_label_to_block_map to VEC(basic_block,gc) *.
395 * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
396 set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
398 * tree-ssa-propagate.c (cfg_blocks): Change the type to
399 VEC(basic_block,heap) *.
400 (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
401 ssa_prop_fini): Adjust the uses of cfg_blocks.
403 2006-01-03 Steven Bosscher <stevenb.gcc@gmail.com>
405 * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
407 * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
408 hashing trees instead of a pointer hash.
409 (mem_attrs_htab_eq): Do a deep compare instead of a pointer
410 compare for MEM_EXPR.
412 PR rtl-optimization/25130
413 * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
414 when comparing MEMs for GCSE
416 2006-01-03 Ben Elliston <bje@au.ibm.com>
418 * targhooks.h (default_decimal_float_supported_p): Declare.
419 * targhooks.c (default_decimal_float_supported_p): Define.
420 * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
421 `default_decimal_float_supported_p'.
422 * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
424 2006-01-02 Adam Nemet <anemet@caviumnetworks.com>
426 * combine.c (apply_distributive_law <SUBREG>): Check
427 TRULY_NOOP_TRUNCATION.
429 2006-01-02 Geoffrey Keating <geoffk@apple.com>
431 * dwarf2out.c (have_switched_text_section): Delete.
432 (have_multiple_function_sections): New.
433 (have_location_lists): Make 'bool'.
434 (add_AT_loc_list): Use 'true' not '1'.
435 (dwarf2out_switch_text_section): Set have_multiple_function_sections.
436 (output_loc_list): Use have_multiple_function_sections.
437 (output_ranges): Likewise.
438 (dwarf2out_begin_function): Set have_multiple_function_sections if
440 (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
441 Check function_section rather than DECL_SECTION_NAME.
442 (dwarf2out_finish): Use have_multiple_function_sections.
443 Don't clear have_location_lists.
445 2006-01-02 Eric Botcazou <ebotcazou@adacore.com>
446 Jan Hubicka <jh@suse.cz>
448 * cfglayout.c (fixup_reorder_chain): Remove kludge for the
449 case of conditional jump jumping to the next instruction.
450 * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
451 cases of conditional jump jumping to the next instruction.
453 2006-01-02 Jan Hubicka <jh@suse.cz>
455 * i386.c (*_cost): Add COSTS_N_INSNS.
456 (ix86_rtx_costs): Do not use COSTS_N_INSNS.
458 2006-01-02 Paolo Bonzini <bonzini@gnu.org>
461 * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
463 2006-01-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
465 * config/arm/arm.c (all_fpus): Fix comment typo.
466 * config/darwin.c: Likewise.
467 * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
468 * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
469 * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
471 2006-01-01 David Edelsohn <edelsohn@gnu.org>
473 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
474 (rs6000_split_compare_and_swapqhi): New.
475 * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
476 (sync_compare_and_swapqhi_internal): New.
477 * config/rs6000/rs6000-protos.h: Declare.