1 2006-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*): Default to
6 2006-10-15 Jan Hubicka <jh@suse.cz>
9 * cgraphunit.c (cgraph_preserve_function_body_p): Preserve functions
10 declared always_inline even when not inlining.
12 2006-10-15 Eric Botcazou <ebotcazou@libertysurf.fr>
13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14 Andrew Pinski <pinskia@gmail.com>
17 * builtins.c (get_pointer_alignment): Return 0 if TER is not run.
19 2006-10-15 Jan Hubicka <jh@suse.cz>
20 Richard Guenther <rguenther@suse.de>
23 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
24 process_function_and_variable_attributes on all variables, including
25 those discovered during cgraph construction phase.
27 2006-10-15 Bernhard Fischer <aldot@gcc.gnu.org>
29 * final.c: Update Copyright year. Commentary typo fix. Fix whitespace
31 2006-10-14 Uros Bizjak <uros@kss-loka.si>
33 * config/i386/athlon.md (athlon_fist): Add fisttp.
35 2006-10-13 David Edelsohn <edelsohn@gnu.org>
36 Ian Lance Taylor <ian@airs.com>
39 * expr.c (expand_expr_real_1) <NON_LVALUE_EXPR, NOP_EXPR,
40 CONVERT_EXPR>: Change EXPAND_SUM modifier to EXPAND_NORMAL when
43 2006-10-14 Kazu Hirata <kazu@codesourcery.com>
45 * config/score/score.c, config/score/score.h: Fix comment
48 2006-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
51 * Makefile.in (ALL_GTFILES_H): Use $(sort ...) instead of
54 2006-10-13 Eric Christopher <echristo@apple.com>
56 * config/darwin.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
58 2006-10-13 Carlos O'Donell <carlos@codesourcery.com>
61 2006-10-13 Carlos O'Donell <carlos@codesourcery.com>
62 * config/elfos.h (MAX_OFILE_ALIGNMENT): Default to largest
63 alignment supported by 32-bit ELF.
65 2006-10-13 Eric Christopher <echristo@apple.com>
67 * config/darwin.c (darwin_emit_unwind_label): Strip
68 name encoding. Use DECL_ASSEMBLER_NAME_SET_P.
70 2006-10-13 Richard Guenther <rguenther@suse.de>
72 PR tree-optimization/29446
73 * tree-vrp.c (fix_equivalence_set): Remove.
74 (extract_range_from_assert): Do not call fix_equivalence_set.
75 (debug_value_range): Print a newline.
76 (compare_name_with_value): For equivalence sets with
77 inconsistent value ranges conservatively bail out.
78 (compare_names): Likewise.
80 2006-10-13 David Edelsohn <edelsohn@gnu.org>
82 * doc/install.texi (*-ibm-aix*): Add comment about 32-bit GMP
83 and MPFR for gfortran.
85 2006-10-13 Carlos O'Donell <carlos@codesourcery.com>
87 * config/elfos.h (MAX_OFILE_ALIGNMENT): Default to largest
88 alignment supported by 32-bit ELF.
90 2006-10-13 Paolo Bonzini <bonzini@gnu.org>
94 * c-typeck.c (digest_init): Always allow initializing vectors
95 that have static storage duration with compound literals.
96 * tree.c (build_type_attribute_qual_variant): New, based on
97 build_type_attribute_variant.
98 (build_type_attribute_variant): Rewrite using the former.
99 (make_vector_type): Use build_type_attribute_qual_variant to build
100 type variants. Use type_hash_canon on the others.
102 2006-10-13 Daniel Berlin <dberlin@dberlin.org>
103 Ramana Radhakrishnan <ramana.radhakrishnan@celunite.com>
105 * tree-flow-inline.h (zero_ssa_operands): Fix comment.
107 2006-10-12 Jan Hubicka <jh@suse.cz>
110 * c-decl.c (c_make_fname_decl): Do not segfault in case where
111 current_function_decl is set but current_function_scope is not.
113 2006-10-12 Jie Zhang <jie.zhang@analog.com>
115 * config/bfin/bfin.md (eh_return): Call emit_jump_insn instead of
116 emit_insn to emit eh_return_internal instruction.
117 (eh_return_internal): Explicitly set pc.
119 2006-10-11 Richard Guenther <rguenther@suse.de>
121 PR tree-optimization/28230
122 * tree-vrp.c (vrp_int_const_binop): Move flag_wrapv handling
123 to the correct place.
125 2006-10-11 Richard Guenther <rguenther@suse.de>
128 * gimplify.c (gimplify_asm_expr): Mark the gimplified lvalue
131 2006-10-10 Brooks Moses <bmoses@stanford.edu>
133 * configure.ac: Added pdf to "Make-hooks"
134 * Makefile.in: Added TEXI2PDF definition, and various pdf-file
135 targets and *.pdf file patterns in cleanup targets.
136 * configure: Regenerated.
138 2006-10-10 Anatoly Sokolov <aesok@post.ru>
140 * config/avr/predicates.md: New file.
141 * config/avr/avr.md: Include it.
142 (REG_SP): New constant.
143 (peepholes): Use predicates.
144 (sbrx_branch, sbrx_and_branchhi, sbrx_and_branchsi, branch, rvbranch,
145 difficult_branch, difficult_rvbranch, cbi, sbi, sbix_branch,
146 sbix_branch_bit7, sbix_branch_tmp, sbix_branch_tmp_bit7): Ditto.
148 2006-10-10 Adam Nemet <anemet@caviumnetworks.com>
150 * config/mips/mips.c (mips_save_restore_reg): Use gen_frame_mem to
153 2006-10-10 Jakub Jelinek <jakub@redhat.com>
156 * builtins.c (var_decl_component_p): New function.
157 (fold_builtin_memset, fold_builtin_memory_op): Restrict
158 single entry optimization to variables and components thereof.
160 2006-10-10 Richard Guenther <rguenther@suse.de>
162 PR rtl-optimization/29323
163 * except.c (set_nothrow_function_flags): For functions
164 that do not bind local bail out early.
166 2006-10-10 Ben Elliston <bje@au.ibm.com>
168 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -m to the
171 2006-10-09 Richard Henderson <rth@redhat.com>
175 2006-10-09 Richard Guenther <rguenther@suse.de>
178 * cgraphunit.c (verify_cgraph_node): Bail out on earlier
181 2006-10-09 Steve Ellcey <sje@cup.hp.com>
184 * unwind-c.c (PERSONALITY_FUNCTION): Ifdef use of _Unwind_GetIPInfo.
185 * configure.ac (HAVE_GETIPINFO): Check for _Unwind_GetIPInfo.
186 * configure: Regenerate.
187 * config.in: Regenerate.
189 2006-10-09 Aldy Hernandez <aldyh@redhat.com>
191 * tree-mudflap.c (mf_xform_derefs_1): Add parentheses around TREE_TYPE.
193 2006-10-08 Richard Sandiford <richard@codesourcery.com>
195 * config/mips/mips.c (mips_legitimize_tls_address): Implement
196 all TLS models in the same way as local exec if !TARGET_ABICALLS.
197 Remove stray newline.
199 2006-10-08 Richard Sandiford <richard@codesourcery.com>
201 * config/mips/mips.c (mips_classify_symbol): Do not return
202 SYMBOL_SMALL_DATA if SYMBOL_REF_WEAK.
203 (mips_in_small_data_p): Tweak comments.
205 2006-10-08 Richard Sandiford <richard@codesourcery.com>
207 * config/mips/elf.h (HANDLE_PRAGMA_PUSH_POP): Define.
209 2006-10-07 Kazu Hirata <kazu@codesourcery.com>
211 * gimplify.c, sched-int.h: Fix comment typos.
213 * sched-int.h: Fix comment typos.
215 2006-10-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
217 * sched-int.h (IS_SPECULATION_CHECK_P, IS_SPECULATION_SIMPLE_CHECK_P):
219 * sched-ebb.c (begin_schedule_ready): Use them.
220 * haifa-sched.c (schedule_insn, move_insn, try_ready,
221 add_to_speculative_block, create_check_block_twin, speculate_insn,
222 fix_jump_move, move_block_after_check): Ditto.
223 * sched-rgn.c (new_ready): Ditto.
225 2006-10-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
227 PR rtl-optimization/29128
228 * sched-int.h (IS_SPECULATION_BRANCHY_CHECK_P): New macro.
229 * sched-ebb.c (advance_target_bb): Use it to fix condition to
230 allow interblock movement of speculation checks.
232 2006-10-06 Zdenek Dvorak <dvorakz@suse.cz>
235 * tree-ssa-loop-ivopts.c (determine_base_object): Handle pointers
236 casted to integer type.
237 (get_address_cost): Decrease cost of [symbol + index] addressing modes
238 if they are significantly more expensive than [reg + index] ones.
240 2006-10-06 Jakub Jelinek <jakub@redhat.com>
242 PR tree-optimization/29330
243 * tree-data-ref.c (free_data_ref): Use DR_FREE_ACCESS_FNS macro.
244 (initialize_data_dependence_relation): Clear DDR_LOOP_NEST pointer
245 on newly allocated ddrs.
246 (find_loop_nest_1, find_loop_nest): Change LOOP_NEST to a pointer
247 to VEC (loop_p, heap) pointer.
248 (compute_data_dependences_for_loop): Adjust caller.
249 (free_dependence_relations): Free DDR_LOOP_NEST.
251 * tree-loop-linear.c (linear_transform_loops): Don't forget to
252 free DEPENDENCE_RELATIONS and DATAREFS.
255 * builtins.c (expand_builtin_sync_operation,
256 expand_builtin_compare_and_swap, expand_builtin_lock_test_and_set):
257 Use convert_to_mode to handle promoted arguments.
259 2006-10-06 J"orn Rennecke <joern.rennecke@st.com>
261 * print-tree.c (print_node_brief, print_node): Print sign of Inf.
263 2006-10-06 J"orn Rennecke <joern.rennecke@st.com>
265 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Define.
267 2006-10-05 Uros Bizjak <uros@kss-loka.si>
269 * config/i386/sync.md ("sync_add<mode>", "sync_sub<mode>",
270 "sync_ior<mode>", "sync_and<mode>", "sync_xor<mode>"):
271 Use <modeconstraint> instead of "r" as operand 1 constraint.
273 2006-10-06 Olivier Hainque <hainque@adacore.com>
275 * gimplify.c (gimplify_type_sizes) [POINTER_TYPE, REFERENCE_TYPE]:
276 Don't recurse on the pointed-to type.
277 * c-decl.c (grokdeclarator) [cdk_pointer]: If we are in a NORMAL or
278 DECL context, attach an artificial TYPE_DECL to anonymous pointed-to
279 types with components of variable size.
281 2006-10-06 Danny Smith <dannysmith@users.sourceforge.net>
283 config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.
285 2006-10-06 Jakub Jelinek <jakub@redhat.com>
287 PR tree-optimization/29290
288 * tree-loop-linear.c (linear_transform_loops): Bail if loop_nest has
292 * config/i386/i386.c (legitimize_pic_address): Reject TLS symbols.
293 * config/i386/predicates.md (local_symbolic_operand): Likewise.
296 * varasm.c (output_constant): If TREE_VECTOR_CST_ELTS chain is shorter than
297 the number of vector elements fill the rest with zeros.
299 2006-10-05 Richard Sandiford <richard@codesourcery.com>
301 * config/mips/mips.c (mips_pass_by_reference): Do not return false
302 for EABI if type is NULL. Use a size check based on GET_MODE_SIZE
305 2006-10-05 Bernd Schmidt <bernd.schmidt@analog.com>
307 * config/bfin/bfin.md (subsi3): Lose expander, change previously
308 unnamed pattern into subsi3. Use correct constraints/predicates.
309 * config/bfin/bfin.h (CONST_OK_FOR_K): Handle "KN7".
310 * config/bfin/predicates.md (reg_or_neg7bit_operand_p): New.
312 2006-10-05 Ira Rosen <irar@il.ibm.com>
314 * doc/loop.texi: Add data references analysis description.
316 2006-10-04 Brooks Moses <bmoses@stanford.edu>
318 * doc/gcov.texi: Add formatting to "Invoking gcov" section head.
320 2006-10-04 Richard Henderson <rth@redhat.com>
321 Jakub Jelinek <jakub@redhat.com>
323 * Makefile.in (libgcc.mk, LIBGCC_DEPS): Add emutls.c.
324 * builtin-types.def (BT_WORD): Make unsigned.
325 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
326 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
327 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
328 * c-decl.c (grokdeclarator): Don't error if !have_tls.
329 * c-parser.c (c_parser_omp_threadprivate): Likewise.
330 * cgraph.c (decide_is_variable_needed): Look at force_output.
331 Recurse for emulated tls.
332 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Remove
333 checks redundant with decide_is_variable_needed.
334 (cgraph_build_static_cdtor): Do cgraph_varpool_assemble_pending_decls.
335 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
337 * expr.c (emutls_var_address): New.
338 (expand_expr_real_1): Expand emulated tls.
339 (expand_expr_addr_expr_1): Likewise.
340 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
341 * output.h (emutls_finish): Declare.
342 * toplev.c (compile_file): Call it.
343 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
344 address before wrapping in CONST.
345 * varasm.c (emutls_htab, emutls_object_type): New.
346 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
347 (get_emutls_object_name, get_emutls_object_type): New.
348 (get_emutls_init_templ_addr, emutls_decl): New.
349 (emutls_common_1, emutls_finish): New.
350 (assemble_variable): When emulating tls, swap decls; generate
351 constructor for the emutls objects.
352 (do_assemble_alias): When emulating tls, swap decl and target name.
353 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
355 * emutls.c: New file.
356 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
357 tls_object for real tls.
359 2006-10-04 Zack Weinberg <zackw@panix.com>
361 Fix bug in constraint-check generator, reported by Rask Ingemann
363 * genpreds.c (add_constraint): Don't remove anything from the
365 (write_tm_constrs_h): Detect whether "op" argument is used, and
366 mark it ARG_UNUSED if it isn't.
367 (write_insn_const_int_ok_for_constraint): Skip the part of the
368 expression that would test whether "op" (which is not available
369 here) is a CONST_INT.
371 2006-10-04 Ryan Mansfield <rmansfield@qnx.com>
374 * doc/invoke.texi (fdiagnostics-show-option): Fix typos.
376 2006-10-03 Geoffrey Keating <geoffk@apple.com>
378 * config/i386/darwin-libgcc.10.5.ver: Update to symbol list for
379 current Leopard versions.
380 * config/rs6000/darwin-libgcc.10.5.ver: Likewise.
382 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
384 * doc/install.texi: Fix typos.
386 2006-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
388 * builtins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX.
389 * doc/tm.texi (Basic Stack Layout): Document FRAME_ADDR_RTX.
390 * config/sparc/sparc.h (FRAME_ADDR_RTX): Define.
392 2006-10-02 Jack Howarth <howarth@bromo.med.uc.edu>
394 * unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first
395 arg to be struct mach_header_64* instead.
397 2006-10-02 Jakub Jelinek <jakub@redhat.com>
400 * gimplify.c (gimplify_self_mod_expr): Run inner expression's post
401 side effects after the outer expression's post side effects.
403 2006-10-01 Sandra Loosemore <sandra@codesourcery.com>
405 * tree.h (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): Fix
406 comments to reflect actual behavior and relationship between
407 DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET, and DECL_OFFSET_ALIGN.
409 * doc/c-tree.texi (Working with declarations): Fix documentation
410 of FIELD_DECL likewise.
412 2006-10-01 Ryan Mansfield <rmansfield@qnx.com>
415 * doc/extend.texi: Add used variable attribute description.
417 2006-09-30 Joseph S. Myers <joseph@codesourcery.com>
420 * c.opt (Woverride-init): New.
421 * c-opts.c (c_common_post_options): Default warn_override_init to
423 * c-typeck.c (add_pending_init, output_init_element): Warn for
424 overriding initializers without side effects.
425 * doc/invoke.texi (-Woverride-init): Document.
428 2006-09-30 Eric Botcazou <ebotcazou@libertysurf.fr>
430 PR rtl-optimization/28096
431 * ifcvt.c (check_cond_move_block): Return FALSE if the source of an
432 assignment has already been used as a destination earlier in the block.
434 2006-09-29 Eric Botcazou <ebotcazou@adacore.com>
436 * builtins.c (expand_builtin_setjmp): Delete.
437 (expand_builtin) <BUILT_IN_SETJMP>: Mark as unreachable.
438 <BUILT_IN_SETJMP_SETUP>: New case.
439 <BUILT_IN_SETJMP_DISPATCHER>: Likewise.
440 <BUILT_IN_SETJMP_RECEIVER>: Likewise.
441 * builtins.def (BUILT_IN_SETJMP_SETUP): New built-in stub.
442 (BUILT_IN_SETJMP_DISPATCHER): Likewise.
443 (BUILT_IN_SETJMP_RECEIVER): Likewise.
444 * gimple-low.c (struct lower_data): New field calls_builtin_setjmp.
445 (lower_function_body): Initialize it to false. If it is set to true
446 at the end of the processing, emit the setjmp dispatcher.
447 (lower_stmt) <CALL_EXPR>: Invoke lower_builtin_setjmp if the callee
448 is __builtin_setjmp and set calls_builtin_setjmp to true as well.
449 <MODIFY_EXPR>: Fall through to above case if there is a CALL_EXPR
450 on the rhs of the assignment.
451 (lower_builtin_setjmp): New function.
452 * tree.c (build_common_builtin_nodes): Build BUILT_IN_SETJMP_SETUP,
453 BUILT_IN_SETJMP_DISPATCHER and BUILT_IN_SETJMP_RECEIVER nodes.
454 * tree-cfg.c (make_exit_edges) <CALL_EXPR>: Use specific predicate
455 to detect calls that can go to non-local labels. Use specific
456 helper to create the abnormal edges associated with them.
457 <MODIFY_EXPR>: Likewise.
458 (make_abnormal_goto_edges): New function extracted from...
459 (make_goto_expr_edges): ...here. Call it for computed gotos.
460 (simple_goto_p): Minor tweak.
461 (tree_can_make_abnormal_goto): New predicate.
462 (tree_redirect_edge_and_branch): Return zero on all abnormal edges.
463 (tree_purge_dead_abnormal_call_edges): New function.
464 * tree-flow.h (tree_can_make_abnormal_goto): Declare.
465 (tree_purge_dead_abnormal_call_edges): Likewise.
466 (make_abnormal_goto_edges): Likewise.
467 * tree-inline.c (expand_call_inline): Simplify statement frobbing.
468 Purge all dead abnormal edges if the call was in the last statement.
469 * tree-optimize.c (has_abnormal_outgoing_edge_p): New predicate.
470 (execute_fixup_cfg): If there are non-local labels in the function,
471 scan the basic blocks and split them at calls that can go to non-local
472 labels or add missing abnormal call edges. Write down the CFG in the
474 (pass_fixup_cfg): Remove TODO_dump_func flag.
475 * unwind-sjlj.c: Poison setjmp.
476 * doc/install.texi (enable-sjlj-exceptions): Use more general wording.
477 * doc/tm.texi (DWARF2_UNWIND_INFO): Likewise.
478 (TARGET_UNWIND_TABLES_DEFAULT): Fix typo.
479 (DONT_USE_BUILTIN_SETJMP): Document it.
481 2006-09-28 Geoffrey Keating <geoffk@apple.com>
484 * config/rs6000/rs6000.h [IN_LIBGCC2] (TARGET_POWERPC64): Define
485 to 1 when __ppc64__ is defined.
486 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Add ppc64-fp.c and
488 * config/rs6000/ppc64-fp.c: Also compile when __ppc64__ is defined.
490 2006-09-28 Steve Ellcey <sje@cup.hp.com>
492 * config/ia64/t-hpux (LIB2FUNCS_EXTRA): Remove unwind-hpux.c.
493 * config/ia64/unwind-hpux.c: Delete.
495 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
497 * gimplify.c (gimplify_init_ctor_preeval): Call maybe_with_size_expr
498 on the element before gimplifying it, instead of punting if it is of
501 2006-09-28 Zdenek Dvorak <dvorakz@suse.cz>
503 * doc/loop.texi: New file.
504 * doc/gccint.texi: Reference loop.texi.
505 * Makefile.in (loop.texi): Add.
507 2006-09-27 Geoffrey Keating <geoffk@apple.com>
509 * config/darwin.h (ENABLE_EXECUTE_STACK): New, use getpagesize not
511 * config/rs6000/darwin.h (ENABLE_EXECUTE_STACK): Remove.
512 * config/i386/darwin.h (ENABLE_EXECUTE_STACK): Remove.
514 2006-09-28 Kaz Kojima <kkojima@gcc.gnu.org>
516 * config/sh/sh.md (divsi_inv_m0): Remove unused variable.
518 2006-09-27 Steven G. Kargl <kargl@gcc.gnu.org>
520 * doc/install.texi: Document required versions of GMP and MPFR.
522 2006-09-27 Paul Brook <paul@codesourcery.com>
525 * config/arm/arm.md (arith_adjacentmem): Handle large offsets.
527 2006-09-27 Richard Sandiford <richard@codesourcery.com>
529 * reload1.c (alter_reg): Require the alignment of the stack slot to
530 be at least reg_max_ref_width bytes.
531 (scan_paradoxical_subregs): Record the largest width in
534 2006-09-26 Jakub Jelinek <jakub@redhat.com>
538 * tree-nested.c (struct nesting_info): Added static_chain_added.
539 (convert_call_expr): Set static_chain_added when adding static
540 chain. Handle OMP_PARALLEL and OMP_SECTION.
542 2006-09-25 Matthias Klose <doko@debian.org>
544 * doc/invoke.texi: Add missing full stop.
546 2006-09-25 Richard Henderson <rth@redhat.com>
548 * cgraph.c (dump_cgraph_varpool_node): Don't crash if called
549 before cgraph_function_flags_ready.
551 2006-09-24 Zdenek Dvorak <dvorakz@suse.cz>
552 Adam Nemet <anemet@caviumnetworks.com>
554 * tree-ssa-loop-ivopts.c (aff_combination_convert,
555 determine_common_wider_type): New functions.
556 (get_computation_aff): Use them to simplify arithmetic between
557 UBASE and CBASE if they are shortened from the same type.
559 2006-09-24 Kazu Hirata <kazu@codesourcery.com>
562 * config/m68k/m68k.md (negsf2, negdf2, negxf2): Use
563 -2147483647 - 1 instead of 0x80000000.
565 2006-09-23 Revital1 Eres <ERES@il.ibm.com>
567 * flags.h (HONOR_NANS): Fix typo in comment.
569 2006-09-23 Uros Bizjak <uros@kss-loka.si>
571 * config/i386/driver-i386.c (host_detect_local_cpu): Add prototype.
573 2006-09-23 Jakub Jelinek <jakub@redhat.com>
577 * tree.c (merge_attributes, attribute_list_contained): If both
578 TREE_VALUEs are TREE_LISTs, use simple_cst_list_equal instead of
580 * c-typeck.c (comptypes_internal): Don't consider aggregates
581 in different TUs as compatible if there one set of attributes is
582 not a subset of the other type's attributes.
583 (composite_type): Try harder not to create a new aggregate type.
585 2006-09-22 Geoffrey Keating <geoffk@apple.com>
587 * config/i386/driver-i386.c: Always define host_detect_local_cpu.
588 * config/i386/i386.h: Define EXTRA_SPEC_FUNCTIONS on any i386
589 or x86_64 host. Define HAVE_LOCAL_CPU_DETECT.
590 (CC1_CPU_SPEC): Make conditional on HAVE_LOCAL_CPU_DETECT rather
591 than replicating condition above.
592 * config.host (i[34567]86-*-*): Always use driver-i386.o.
594 * config/darwin.h (LINK_SYSROOT_SPEC): New.
595 (LINK_SPEC): If TARGET_SYSTEM_ROOT is defined, pass it to
596 the linker by default.
598 2006-09-22 Mike Stump <mrs@apple.com>
600 * config/rs6000/darwin.h (PROFILE_HOOK): Reassociate comment with
603 2006-09-22 Richard Guenther <rguenther@suse.de>
606 * cfgexpand.c (stack_var_size_cmp): Use DECL_UID to make
607 sort of stack variables stable.
609 2006-09-22 Peter Bergner <bergner@vnet.ibm.com>
612 * explow.c (force_reg): Set REG_POINTER flag according to
615 2006-09-22 Zdenek Dvorak <dvorakz@suse.cz>
617 PR tree-optimization/28888
618 * tree-if-conv.c (combine_blocks): Rewritten.
619 * tree-cfg.c (tree_verify_flow_info): Check that edges with
620 EDGE_TRUE/FALSE_VALUE follow COND_EXPR.
622 2006-09-22 Jakub Jelinek <jakub@redhat.com>
624 * tree-ssa-propagate.c (set_rhs): Copy EXPR_LOCATION if
627 2006-09-21 Richard Sandiford <richard@codesourcery.com>
629 * varasm.c (copy_constant): Fix reversed gcc_assert check.
631 2006-09-21 Janis Johnson <janis187@us.ibm.com>
633 * ginclude/decfloat.h (DEC*_DEN): Define using the correct builtins.
635 2006-09-21 Roger Sayle <roger@eyesopen.com>
638 * dwarf2out.c (dwarf2out_begin_prologue): Initialise the current label,
639 dw_fde_current_label, to be the start of the function, i.e. the same
640 value as dw_fde_begin.
642 2006-09-20 Richard Sandiford <richard@codesourcery.com>
644 * config/mips/mips.c (CODE_FOR_mips_abs_ps): Delete.
645 * config/mips/mips.md (UNSPEC_ABS_PS): New constant.
646 (UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2)
647 (UNSPEC_SINGLE_CC, UNSPEC_SCC): Bump values by 1.
648 (*nmadd<mode>, *nmadd<mode>_fastmath): Require !HONOR_NANS.
649 (*nmsub<mode>, *nmsub<mode>_fastmath): Likewise.
650 (abs<mode>2, neg<mode>2): Likewise.
651 * config/mips/mips-ps-3d.md (mips_abs_ps): New define_expand.
652 (*mips_abs_ps): New define_insn.
654 2006-09-20 Josh Conner <jconner@apple.com>
657 * calls.c (expand_call): Allow reuse of structure return stack
660 2006-09-20 Paul Brook <paul@codesourcery.com>
662 * config/arm/unwind-arm.c (selfrel_offset31): Clear top bit for
665 2006-09-20 Janis Johnson <janis187@us.ibm.com>
667 * doc/extend.texi (Decimal Float): Update for latest draft TR,
668 clean up terminology.
670 2006-09-20 Steve Ellcey <sje@cup.hp.com>
673 * ifcvt.c (dead_or_predicable): Don't predicate then blocks
674 with tablejumps in them.
676 2006-09-20 Jakub Jelinek <jakub@redhat.com>
679 * c-omp.c (c_finish_omp_atomic): If ADDR is not simple enough,
680 wrap it into TARGET_EXPR.
682 2006-09-20 Eric Christopher <echristo@apple.com>
684 * config/i386/i386.c (x86_fisttp): Remove.
685 * config/i386/i386.h (x86_fisttp): Ditto.
686 (TARGET_FISTTP): Ditto.
688 2006-09-19 Eric Christopher <echristo@apple.com>
690 * doc/tm.texi (OBJC_JBLEN): Describe.
691 * config/i386/darwin.h (OBJC_JBLEN): Define.
692 * config/rs6000/darwin.h: Ditto.
694 2006-09-19 Steven Bosscher <steven@gcc.gnu.org>
696 PR rtl-optimization/21299
697 * reload1.c (reload): Purge invalid ASMs in the final pass.
699 2006-09-19 Steve Ellcey <sje@cup.hp.com>
702 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow function
703 pointers as legitimate constants.
705 2006-09-19 Paul Brook <paul@codesourcery.com>
708 * config/arm/arm.c (arm_unwind_emit_set): Handle reg = sp + const.
710 2006-09-17 Zdenek Dvorak <dvorakz@suse.cz>
712 PR tree-optimization/28887
713 * tree-ssa-loop-prefetch.c (analyze_ref): Strip nonaddressable
714 component parts from the reference.
715 (gather_memory_references_ref): Record the reference without the
716 nonaddressable component parts.
718 2006-09-17 Steven Bosscher <steven@gcc.gnu.org>
721 * c-opts.c (c_common_handle_option): Ignore the -std options
722 if the input language is assembly.
724 2006-09-17 Ira Rosen <irar@il.ibm.com>
727 * tree-data-ref.c (ptr_decl_may_alias_p): Look for the name memory
729 (ptr_ptr_may_alias_p): Likewise.
730 (record_record_differ_p): New function.
731 (base_object_differ_p): Call record_record_differ_p.
733 2006-09-16 Andrew Pinski <pinskia@physics.uc.edu>
736 * tree-ssa-propagate.c (set_rhs): Reject MODIFY_EXPR right
737 away for the expr argument.
739 2006-09-16 Steven Bosscher <steven@gcc.gnu.org>
742 * tree-vectorizer.c (vectorize_loops): Clear vect_loop_location
743 before using it for dumping after vectorizing loops.
745 2006-09-16 Andrew Pinski <pinskia@physics.uc.edu>
746 Jack Howarth <howarth@bromo.med.uc.edu>
749 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_recurse)
750 skip on error_mark_node.
751 (rs6000_darwin64_record_arg_recurse): Likewise.
753 2006-09-16 Steven Bosscher <steven@gcc.gnu.org>
755 * rtl.h (LABEL_OUTSIDE_LOOP_P): Remove.
756 * doc/rtl.texi: Remove related documentation.
758 2006-09-16 Bernd Schmidt <bernd.schmidt@analog.com>
760 * loop-doloop.c (doloop_optimize): Remove bogus arg from debugging
763 2006-09-15 Jim Wilson <wilson@specifix.com>
765 * config/ia64/ia64.c (ia64_legitimate_constant_p, cast CONST):
766 Handle symbol offsets same as they are handled in ia64_expand_move
769 2006-09-16 Andreas Tobler <a.tobler@schweiz.org>
771 * loop-doloop.c (doloop_optimize): Change type of max_cost to int.
772 Add forgotten parameter to the fprintf call.
774 2006-09-15 Steve Ellcey <sje@cup.hp.com>
776 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Add define.
778 2006-09-15 Uros Bizjak <uros@kss-loka.si>
780 * doc/contrib.texi: Add my entry.
782 2006-09-15 Nick Clifton <nickc@redhat.com>
784 * doc/md.texi (Processor pipeline description): Fix typo in
785 example of how to use the absence_set directive and reword the
786 description to make it slightly easier to read.
788 2006-09-15 Bernd Schmidt <bernd.schmidt@analog.com>
790 * params.def (PARAM_MAX_ITERATIONS_COMPUTATION_COST): New.
791 * loop-doloop.c (doloop_optimize): Use it to limit costs of
792 expanding the number of iterations.
793 * config/bfin/bfin.c (bfin_rtx_costs): Handle UDIV, UMOD.
795 * cfgrtl.c (emit_insn_at_entry): New function.
796 * rtl.h (emit_insn_at_entry): Declare it.
797 * integrate.c (emit_initial_value_sets): Use it.
799 * cfgrtl.c (emit_insn_at_entry): Use gcc_assert, not abort.
801 * config/bfin/bfin.c (struct loop_info): New members block_bitmap and
803 (struct loop_work and related VEC declarations): Delete.
804 (bfin_dump_loops): Print out new member bad.
805 (bfin_bb_in_loop): Use plain bitmap test. Don't recurse.
806 (bfin_scan_loop): Don't recurse.
807 (bfin_optimize_loop): Don't use a loop depth of -1 to indicate bad
808 loops. No longer need to update outer loops if the current one is
809 found bad. Move some validitiy checks to bfin_discover_loop.
810 (bfin_discover_loop): New function, mostly split from bfin_reorg_loops,
811 but changed not to check for nesting. Also changed to use the new bad
813 (bfin_reorg_loops): Use bfin_discover_loop to find single loops one at a
814 time. Use bitmap based test to discover loop nesting.
816 2006-09-15 Kazu Hirata <kazu@codesourcery.com>
818 * doc/tm.texi (TARGET_FUNCTION_VALUE): Put @deftypefn all in
821 2006-09-14 Richard Guenther <rguenther@suse.de>
822 Kazu Hirata <kazu@codesourcery.com>
825 * doc/tm.texi (TARGET_FUNCTION_VALUE): Document.
826 (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE): Deprecate.
827 Replace mentions of FUNCTION_VALUE and FUNCTION_OUTGOING_VALUE
828 with TARGET_FUNCTION_VALUE.
830 2006-09-14 Anatoly Sokolov <aesok@post.ru>
833 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define.
835 2006-09-13 Aldy Hernandez <aldyh@redhat.com>
837 * doc/tree-ssa.texi (Jumps): RESULT_DECL can also be an operand
840 2006-09-13 Andrew Pinski <pinskia@physics.uc.edu>
843 * dwarf2out.c (loc_descriptor_from_tree_1): Handle
846 2006-09-13 Andreas Krebbel <krebbel1@de.ibm.com>
848 * basic_block.h (bb_has_eh_pred): Fix comment.
850 2006-09-13 Andreas Krebbel <krebbel1@de.ibm.com>
852 * flow.c (calculate_global_regs_live): Invalidate eh registers
853 on eh edges. Renamed invalidated_by_call to invalidated_by_eh_edge.
854 (propagate_block): Handle eh registers as if they were set at basic
856 * except.c (dw2_build_landing_pads): Don't emit clobbers for eh
858 * global.c (global_conflicts): Make eh registers to conflict with
859 pseudos live at basic block begin.
860 * basic_block.h (bb_has_eh_pred): New function.
862 2006-09-13 Richard Sandiford <richard@codesourcery.com>
864 PR rtl-optimization/28982
865 * reload.c (find_reloads_address_1): Use RELOAD_OTHER for the
866 index of a PRE_MODIFY or POST_MODIFY address.
867 * reload1.c (inc_for_reload): Use find_replacement on the original
868 base and index registers.
870 2006-09-12 H.J. Lu <hongjiu.lu@intel.com>
872 * doc/invoke.texi (mpreferred-stack-boundary): Remove exception
873 for -Os. Update __m128 alignment requirement.
875 2006-09-13 Jan Hubicka <jh@suse.cz>
877 * cfganal.c (compute_dominance_frontiers_1): Don't be quadratic.
879 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
881 PR rtl-optimization/28243
882 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
883 the insn to which the note was originally attached.
885 2006-09-12 Andrew Pinski <pinskia@physics.uc.edu>
886 Roger Sayle <roger@eyesopen.com>
888 * dwarf2out.c (file_table_last_lookup): Move this GC'd declaration
889 outside of #ifdef DWARF2_DEBUGGING_INFO to fix bootstrap failure
890 on platforms that don't use dwarf for debug info.
892 2006-09-12 Jason Merrill <jason@redhat.com>
895 * builtins.c (expand_builtin_setjmp_receiver): Clobber
896 hard_frame_pointer_rtx after using it to update the frame pointer.
898 2006-09-12 Roger Sayle <roger@eyesopen.com>
900 * target-def.h (TARGET_ASM_OPEN_PAREN): Guard with an #ifndef.
901 (TARGET_ASM_CLOSE_PAREN): Likewise.
902 * config/alpha/osf5.h (TARGET_ASM_OPEN_PAREN): Define.
903 (TARGET_ASM_CLOSE_PAREN): Likewise.
905 2006-09-12 Roger Sayle <roger@eyesopen.com>
908 * config/alpha/alpha.c (alpha_start_function): Don't emit stack
909 frame information for frames larger than 512 Kbytes on Tru64 when
910 using the native assembler.
912 2006-09-12 Roger Sayle <roger@eyesopen.com>
916 * cselib.c (cselib_hash_rtx): Avoid hashing on the address of labels
917 and symbols. Instead use the implementation from cse.c's hash_rtx.
919 2006-09-12 Jan Hubicka <jh@suse.cz>
921 PR rtl-optimization/28071
922 * tree-vect-transform.c (vect_create_data_ref_ptr): Kill cast.
923 (vect_transform_loop): Likewise.
924 * tree-vectorizer.c (new_loop_vec_info): Likewise.
925 (new_loop_vec_info): Likewise.
926 (destroy_loop_vec_info): Likewise.
927 * tree-dfa.c (create_var_ann): Use GCC_CNEW.
928 (create_stmt_ann): Likewise.
929 (create_tree_ann): Rename to ...
930 (create_tree_common_ann): ... this one; allocate only the common part
932 * tree-vn.c (set_value_handle): Use get_tree_common_ann.
933 (get_value_handle): Likewise.
934 * tree-ssa-pre.c (phi_translate): Delay annotation allocation for
936 * tree-vectorizer.h (set_stmt_info): Take stmt annotation.
937 (vinfo_for_stmt): Use stmt annotations.
938 * tree-flow.h (tree_ann_common_t): New type.
939 (tree_common_ann, get_tree_common_ann, create_tree_common_ann): New.
940 (tree_ann, get_tree_ann, create_tree_ann): New.
941 * tree-flow-inline.h (get_function_ann): Do more type checking.
942 (stmt_ann): Likewise.
943 (tree_ann): Rename to ...
944 (tree_common_ann): ... this one; return ony common_ann
945 (get_tree_ann): Rename to ...
946 (tree_common_ann): This one; return only common_ann.
947 * tree-vect-patterns.c (vect_pattern_recog_1): Update call
950 2006-09-11 Geoffrey Keating <geoffk@apple.com>
952 * config.gcc (i[34567]86-*-darwin*): Set with_arch and
955 * dwarf2out.c (dwarf_file_data): New.
956 (enum dw_val_class): Add dw_val_class_file.
957 (struct dw_val_struct): Add val_file.
958 (file_table): Change to a hash table.
959 (file_table_emitted): Delete.
960 (file_table_last_lookup_index): Delete.
962 (last_emitted_file): New.
963 (lookup_filename): Change prototype to return a struct dwarf_file_data.
964 (init_file_table): Delete.
965 (maybe_emit_file): Change prototype to take a struct dwarf_file_data.
966 (AT_addr): Add comment.
970 (print_die): Handle dw_val_class_file.
971 (print_dwarf_line_table): Update for new file table structure.
972 (attr_checksum): Do checksum a filename.
973 (same_dw_val_p, same_attr_p): Do compare a filename.
974 (size_of_die): Handle dw_val_class_file.
975 (value_format): Likewise.
976 (output_die): Likewise. Also, call maybe_emit_file here.
977 (struct file_info): Constify filenames. Make file_idx a pointer
978 to a struct dwarf_file_data.
979 (struct dir_info): Constify directory names. Remove 'used' field.
980 (struct file_name_acquire_data): New.
981 (file_name_acquire): New.
982 (output_file_names): Modify to handle new file data structures.
983 (add_src_coords_attributes): Use add_AT_file.
984 (add_call_src_coords_attributes): Likewise.
985 (dwarf2out_imported_module_or_decl): Likewise.
986 (gen_subprogram_die): Modify for new file data structures.
987 (gen_variable_die): Likewise.
988 (file_table_eq): New.
989 (file_table_hash): New.
990 (file_table_last_lookup): New.
991 (lookup_filename): Rewrite to handle new file data structures.
992 (maybe_emit_file): Rewrite to handle new file data structures.
993 (dwarf2out_source_line): Always call lookup_filename and
995 (dwarf2out_init): Create file_table here.
996 (prune_unused_types_walk_attribs): Don't call maybe_emit_file here.
997 (file_table_relative_p): New.
998 (dwarf2out_finish): Change detection of relative filenames
999 to work with new file data structures. Move output_line_info call
1000 after debug_info output.
1002 2006-09-11 H.J. Lu <hongjiu.lu@intel.com>
1007 * config/i386/i386.c (override_options): Always default to 16
1008 byte stack boundary.
1010 2006-09-11 Alexandre Oliva <aoliva@redhat.com>
1013 * var-tracking.c (dump_dataflow_set): Start dumping at
1015 (clobber_variable_part): Kill only the variable part in
1016 registers holding it, leaving other variables alone.
1018 2006-09-11 Josh Triplett <josh@freedesktop.org>
1020 * doc/extend.texi (Other Builtins): Actually use the macro
1021 argument in the documentation example for
1022 __builtin_types_compatible_p.
1024 2006-09-11 Eric Botcazou <ebotcazou@libertysurf.fr>
1026 PR rtl-optimization/28726
1027 * sched-deps.c (sched_analyze_reg): New function extracted from...
1028 (sched_analyze_1): ...here. Call it to analyze references to
1029 registers. Treat again writes to a stack register as writing to the
1031 (sched_analyze_2): ...and here. Call it to analyze references to
1032 registers. Treat again reads of a stack register as reading the
1035 2006-09-11 Guenter Roeck <guenter@roeck-us.net>
1036 David Edelsohn <edelsohn@gnu.org>
1039 * config/rs6000/spe.md (frob_df_di): Remove %H.
1040 (frob_di_df): Remove %H. Change evmergelo to mr.
1041 (frob_di_df_2): Remove %H. Change evldd to two loads.
1043 2006-09-11 Hideki Iwamoto <h-iwamoto@kit.hi-ho.ne.jp>
1045 * doc/cpp.texi: Fix names of charset options.
1047 2006-09-10 Andrew Pinski <pinskia@physics.uc.edu>
1050 * config/i386/i386.c (override_options): Use 128-bit
1051 stack boundary always for 64bits.
1053 2006-09-10 Eric Botcazou <ebotcazou@libertysurf.fr>
1055 PR rtl-optimization/28636
1056 * combine.c (force_to_mode): Test for side-effects before
1057 substituting by zero.
1058 (simplify_shift_const): Likewise for zero or other constants.
1060 2006-09-10 Steven Bosscher <steven@gcc.gnu.org>
1063 * builtins.c (expand_builtin_setjmp): Force next_lab to be
1066 2006-09-10 Richard Sandiford <richard@codesourcery.com>
1069 * config/mips/mips-protos.h (mips_mem_fits_mode_p): Declare.
1070 * config/mips/mips.c (mips_expand_unaligned_store): Use the mode
1071 returned by mode_for_size, rather than the mode of src itself,
1072 to choose between 32-bit and 64-bit patterns.
1073 (mips_mem_fits_mode_p): New function.
1074 * config/mips/mips.md (mov_<load>l, mov_<load>r): Use it to check
1075 that the size of the source matches the size of the destination.
1076 (mov_<store>l, mov_<store>r): Likewise.
1078 2006-09-10 Eric Christopher <echristo@apple.com>
1080 * config/darwin.c (machopic_select_rtx_section): Add CONST_VECTOR
1083 2006-09-09 Eric Christopher <echristo@apple.com>
1086 * config/darwin.c (machopic_select_rtx_section): Add TARGET_64BIT
1089 2006-09-09 Roger Sayle <roger@eyesopen.com>
1090 Nicolas Setton <setton@adacore.com>
1092 * dwarf2out.c (convert_cfa_to_fb_loc_list): Handle DW_CFA_set_loc.
1094 2006-09-10 Andreas Schwab <schwab@suse.de>
1096 * config/m68k/m68k.md (bungt_rev): New pattern.
1098 2006-09-09 Paolo Bonzini <bonzini@gnu.org>
1099 Dale Johannesen <dalej@apple.com>
1102 * regclass.c (struct reg_pref): Update documentation.
1103 (regclass): Set prefclass to NO_REGS if memory is the best option.
1104 (record_reg_classes): Cope with a prefclass set to NO_REGS.
1106 2006-09-08 Eric Christopher <echristo@apple.com>
1108 * config.gcc (i?86-*-darwin): Add 64-bit HWI support.
1109 * config/t-slibgcc-darwin: Support x86_64 multilib.
1110 * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION):
1111 Return 1 for x86_64-darwin.
1112 * config/i386/t-darwin: Add m64 multilib.
1113 (LIB2_SIDITI_CONV_FUNCS): Use.
1114 (LIB2FUNCS_EXTRA): Ditto.
1115 * config/i386/darwin.h: Support x86_64.
1116 * config/i386/i386.c (override_options): Turn on flag_pic
1117 for x86_64-darwin. Disable flag_omit_pointer.
1118 (get_pc_thunk_name): Assert !TARGET_64BIT.
1119 (legitimate_address_p): Disable machopic addressing for
1121 (legitimize_pic_address): Ditto.
1122 (ix86_expand_move): Ditto.
1123 (ix86_expand_call): Ditto.
1124 (machopic_output_stub): Ditto.
1125 * config/darwin.c (machopic_select_section): Support literal16.
1126 (machopic_select_rtx_section): Ditto.
1127 * config/darwin-sections.def: Ditto.
1128 * config/darwin-64.c: New.
1130 2006-09-08 Joseph S. Myers <joseph@codesourcery.com>
1133 * c-tree.h (struct c_arg_info): Add pending_sizes.
1134 * c-parser.c (c_parser_parms_declarator,
1135 c_parser_parms_list_declarator): Initialize pending_sizes.
1136 * c-decl.c (get_parm_info): Initialize pending_sizes.
1137 (get_parm_info): Set pending_sizes.
1138 (grokdeclarator): Call put_pending_sizes for parameters for
1139 function definition only.
1141 2006-09-07 Jason Merrill <jason@redhat.com>
1144 * varasm.c (output_constant): Only strip actual no-op conversions.
1147 * config/i386/i386.c (override_options): Use 128-bit
1148 stack boundary if -msse.
1150 2006-09-07 Eric Christopher <echristo@apple.com>
1152 * config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update
1154 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE):
1157 2006-09-07 Geoffrey Keating <geoffk@apple.com>
1159 * dwarf2out.c: Remove strange characters from comment above
1160 dwarf2out_frame_debug_expr.
1162 2006-09-07 Eric Christopher <echristo@apple.com>
1164 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Move from here...
1165 * config/darwin.h: ... to here.
1167 2006-09-07 H.J. Lu <hongjiu.lu@intel.com>
1169 * config/i386/i386.c (x86_partial_flag_reg_stall): New.
1171 * config/i386/i386.h (x86_partial_flag_reg_stall): New.
1172 (TARGET_PARTIAL_FLAG_REG_STALL): New.
1174 * config/i386/i386.md (*ashldi3_cmp_rex64): Disabled for
1175 TARGET_PARTIAL_FLAG_REG_STALL.
1176 (*ashldi3_cconly_rex64): Likewise.
1177 (*ashlsi3_cmp): Likewise.
1178 (*ashlsi3_cconly): Likewise.
1179 (*ashlsi3_cmp_zext): Likewise.
1180 (*ashlhi3_cmp): Likewise.
1181 (*ashlhi3_cconly): Likewise.
1182 (*ashlqi3_cmp): Likewise.
1183 (*ashlqi3_cconly): Likewise.
1184 (*ashrdi3_cmp_rex64): Likewise.
1185 (*ashrdi3_cconly_rex64): Likewise.
1186 (*ashrsi3_cmp): Likewise.
1187 (*ashrsi3_cconly): Likewise.
1188 (*ashrsi3_cmp_zext): Likewise.
1189 (*ashrhi3_cmp): Likewise.
1190 (*ashrhi3_cconly): Likewise.
1191 (*ashrqi3_cmp): Likewise.
1192 (*ashrqi3_cconly): Likewise.
1193 (*lshrdi3_cmp_rex64): Likewise.
1194 (*lshrdi3_cconly_rex64): Likewise.
1195 (*lshrsi3_cmp): Likewise.
1196 (*lshrsi3_cconly): Likewise.
1197 (*lshrsi3_cmp_zext): Likewise.
1198 (*lshrhi3_cmp): Likewise.
1199 (*lshrhi3_cconly): Likewise.
1200 (*lshrqi2_cmp): Likewise.
1201 (*lshrqi2_cconly): Likewise.
1203 2006-09-07 Uros Bizjak <uros@kss-loka.si>
1206 * config/i386/i386.md ("*ashldi3_cconly_rex64", "*ashlsi3_cconly",
1207 "*ashlhi3_cconly", "*ashlqi3_cconly", "*ashrdi3_one_bit_cconly_rex64",
1208 "*ashrdi3_cconly_rex64", "*ashrsi3_one_bit_cconly", "*ashrsi3_cconly",
1209 "*ashrhi3_one_bit_cconly", "*ashrhi3_cconly",
1210 "*ashrqi3_one_bit_cconly", "*ashrqi3_cconly",
1211 "*lshrdi3_cconly_one_bit_rex64", "*lshrdi3_cconly_rex64",
1212 "*lshrsi3_one_bit_cconly", "*lshrsi3_cconly",
1213 "*lshrhi3_one_bit_cconly", "*lshrhi3_cconly",
1214 "*lshrqi2_one_bit_cconly", "*lshrqi2_cconly": New patterns to
1215 implement only CC setting effects of shift instructions.
1217 2006-09-07 Martin Michlmayr <tbm@cyrius.com>
1219 * doc/contrib.texi: Add myself.
1221 2006-09-07 Andrew Pinski <pinskia@physics.uc.edu>
1224 * stor-layout.c (relayout_decl): Don't zero the alignment if it
1225 was set by the user.
1227 2006-09-07 Paolo Bonzini <bonzini@gnu.org>
1230 * config/sh/sh.md (divsi_inv_qitable, divsi_inv_hitable): New patterns.
1231 (divsi_inv_m1): Use them.
1232 (UNSPEC_DIV_INV_TABLE): New constant.
1234 2006-09-06 James E Wilson <wilson@specifix.com>
1237 * flow.c (update_life_info): If UPDATE_LIFE_LOCAL and PROP_DEATH_NOTES
1238 then call count_or_remove_death_notes.
1240 2006-09-06 Jason Merrill <jason@redhat.com>
1243 * tree-inline.c (copy_result_decl_to_var): New fn.
1244 (declare_return_variable): Use it. Call declare_inline_vars here.
1245 (expand_call_inline): Not here.
1247 2006-09-06 Diego Novillo <dnovillo@redhat.com>
1249 * doc/contrib.texi: Update my entry.
1251 2006-09-06 Nick Clifton <nickc@redhat.com>
1253 * config/frv/frv.h (EXTRA_MEMORY_CONSTRAINT): Define.
1255 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu>
1258 * tree-flow.h (tree_ssa_unswitch_loops): Return unsigned int.
1259 (canonicalize_induction_variables): Likewise.
1260 (tree_unroll_loops_completely): Likewise.
1261 (tree_ssa_prefetch_arrays): Likewise.
1262 (remove_empty_loops): Likewise.
1263 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Return
1264 TODO_cleanup_cfg instead of directly calling
1265 cleanup_tree_cfg_loop.
1266 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
1268 (tree_unroll_loops_completely): Likewise.
1269 (remove_empty_loops): Likewise.
1270 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
1271 * tree-ssa-loop.c (tree_ssa_loop_unswitch): Use the return value
1272 of tree_ssa_unswitch_loops.
1273 (tree_ssa_loop_ivcanon): Use the return value of
1274 canonicalize_induction_variables.
1275 (tree_ssa_empty_loop): Use the return value of
1277 (tree_complete_unroll): Use the return value of
1278 tree_unroll_loops_completely.
1279 (tree_ssa_loop_prefetch): Use the return value of
1280 tree_ssa_prefetch_arrays.
1281 * passes.c (execute_todo): Before Cleanup CFG, set
1282 updating_used_alone and after cleanup CFG, call
1283 recalculate_used_alone.
1285 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu>
1288 * tree-vect-transform.c (vectorizable_condition): Move the check
1289 for the type after the check for simple condition.
1291 2006-09-05 J"orn Rennecke <joern.rennecke@st.com>
1292 Kaz Kojima <kkojima@gcc.gnu.org>
1295 * mode-switching.c (optimize_mode_switching): Make the destination
1296 block of an abnormal edge have no anticipatable mode. Don't
1297 insert mode switching code at the end of the source block of
1300 2006-09-05 Paolo Bonzini <bonzini@gnu.org>
1302 PR rtl-optimization/26847
1303 * simplify-rtx.c (struct simplify_plus_minus_op_data): Remove ix.
1304 (simplify_plus_minus_op_data_cmp): For REGs, break ties on the regno.
1305 (simplify_plus_minus): Count n_constants while filling ops. Replace
1306 qsort with insertion sort. Before going through the array to simplify
1307 pairs, sort it. Delay early exit until after the first sort, exiting
1308 only if no swaps occurred. Simplify pairs in reversed order, without
1309 special-casing the first iteration. Pack ops after simplifying pairs.
1311 2006-09-05 Anatoly Sokolov <aesok@post.ru>
1313 * config/avr/avr.c (avr_mcu_types): Add support for at90pwm1 device.
1314 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1315 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1316 (avr_rtx_costs): Mark 'outer_code' argument with ATTRIBUTE_UNUSED.
1318 2006-09-05 Richard Guenther <rguenther@suse.de>
1320 PR tree-optimization/28900
1321 * tree-if-conv.c (find_phi_replacement_condition): Gimplify
1322 compound conditional before creating COND_EXPR condition.
1324 2006-09-05 Richard Guenther <rguenther@suse.de>
1326 PR tree-optimization/28905
1327 * tree-vrp.c (fix_equivalence_set): Manually implement
1328 !value_ranges_intersect_p to also handle symbolic ranges.
1330 2006-09-05 Richard Guenther <rguenther@suse.de>
1333 * tree-ssa-ccp.c (fold_stmt_r): Make sure to fold the condition
1336 2006-09-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1338 PR rtl-optimization/27616
1339 * cse.c (table_size): New static variable.
1340 (new_basic_block): Initialize it to 0.
1341 (remove_from_table): Decrement it.
1342 (insert): Increment it.
1343 (fold_rtx_mem_1): New function, renamed from fold_rtx_mem.
1344 (fold_rtx_mem): Enforce a cap on the recursion depth. Call
1345 fold_rtx_mem_1 if under the cap.
1346 (fold_rtx) <RTX_COMM_ARITH>: In the associative case, delay a little
1347 the lookup of the equivalent expression and test for equality of the
1348 first operand of the equivalent expression before in turn looking up
1349 an equivalent constant for the second operand.
1351 2006-09-02 Geoffrey Keating <geoffk@apple.com>
1354 2006-03-17 Alexandre Oliva <aoliva@redhat.com>
1355 * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
1356 pointer, instead of assuming it is possible to derive the
1357 correct args size from a call insn.
1359 2006-09-02 Jakub Jelinek <jakub@redhat.com>
1362 * builtins.c (fold_builtin_memcpy, fold_builtin_memmove): Remove.
1363 (fold_builtin_mempcpy): Rename to...
1364 (fold_builtin_memory_op): ... this. Optimize one element copy
1366 (fold_builtin_memset, fold_builtin_bzero, fold_builtin_bcopy): New
1368 (expand_builtin_strcpy, expand_builtin_strncpy): Handle COMPOUND_EXPR.
1369 (expand_builtin_memcpy, expand_builtin_mempcpy,
1370 expand_builtin_memmove): Likewise. Use fold_builtin_memory_op.
1371 (fold_builtin_1): Handle BUILT_IN_MEMSET, BUILT_IN_BZERO and
1372 BUILT_IN_BCOPY. Use fold_builtin_memory_op for
1373 BUILT_IN_MEM{CPY,PCPY,MOVE}.
1375 2006-09-01 DJ Delorie <dj@redhat.com>
1377 * config/m32c/cond.md (cbranch<mode>4): Defer splitting until after reload.
1378 (stzx_16): Likewise.
1379 ("stzx_24_<mode>"): Likewise.
1380 ("stzx_reversed_<mode>"): Likewise, and make mode-specific.
1381 ("cmp<mode>_op"): New.
1382 (cmp<mode>): Change to expander; just save operands.
1384 (b<code>): Change to expander, emit compare here.
1385 (s<code>_op): Change to use split and expander.
1386 (s<code>_24_op): Likewise.
1387 (s<code>_<mode>): New.
1388 (s<code>_<mode>_24): New.
1389 (movqicc_<code>_<mode): New.
1390 (movhicc_<code>_<mode>): New.
1393 * config/m32c/m32c.c (compare_op0, compare_op1): New.
1394 (m32c_pend_compare): New.
1395 (m32c_unpend_compare): New.
1396 (m32c_expand_scc): New.
1397 (m32c_expand_movcc): Emit the compare also.
1398 * config/m32c/predicates.md (mra_nopp_operand): New.
1400 2006-09-01 J"orn Rennecke <joern.rennecke@st.com>
1401 Richard Guenther <rguenther@suse.de>
1402 Adam Nemet <anemet@caviumnetworks.com>
1405 * builtins.c (get_pointer_alignment): Handle more forms
1406 of base addresses that can be used to derive more precise
1407 information about alignment.
1409 2006-09-01 Jason Merrill <jason@redhat.com>
1412 * gimplify.c (gimplify_modify_expr_rhs) [BIND_EXPR]: Handle
1415 * gimplify.c (voidify_wrapper_expr): Handle null type.
1417 2006-09-01 Josh Conner <jconner@apple.com>
1420 * tree-nrv.c (dest_safe_for_nrv_p): New function.
1421 (execute_return_slot_opt): Use it.
1423 2006-08-31 Josh Conner <jconner@apple.com>
1426 * tree-gimple.c (is_gimple_mem_rhs): Recognize functions
1427 returning aggregates.
1429 2006-08-31 Zdenek Dvorak <dvorakz@suse.cz>
1431 PR tree-optimization/28839
1432 * tree-into-ssa.c (prune_unused_phi_nodes): Take into account kills in
1433 blocks in that phi arguments appear.
1435 2006-08-31 Roger Sayle <roger@eyesopen.com>
1438 * dwarf2out.c (add_fde_cfi): Use a set_loc if the current label is
1439 NULL, otherwise use an advance_loc4 to adjust relative to the
1441 (output_cfi) <DW_CFA_set_loc>: Update the current label.
1442 (dwarf2out_switch_text_section): Reset the current label to avoid
1443 using advance_loc4 over section boundaries.
1445 2006-08-31 Andreas Krebbel <krebbel1@de.ibm.com>
1448 * config/s390/s390.md ("movsi", "movdi" expander): Accept rtxes like
1449 r12 + SYMBOLIC_CONST.
1451 2006-08-30 Richard Guenther <rguenther@suse.de>
1453 * Makefile.in (see.o): Add $(EXPR_H) dependency.
1455 2006-08-30 Zdenek Dvorak <dvorakz@suse.cz>
1457 PR rtl-optimization/27735
1458 * cfgloopmanip.c (fix_loop_placements, fix_bb_placements, unloop):
1459 Add new argument to keep track of whether an irreducible region
1460 was affected. All callers changed.
1461 (fix_irreducible_loops): Removed.
1462 (remove_path): Call mark_irreducible_loops if EDGE_IRREDUCIBLE_LOOP
1463 flags were invalidated.
1465 2006-08-29 H.J. Lu <hongjiu.lu@intel.com>
1467 * config/i386/i386.md (*fop_df_comm_mixed): Match DF operands
1468 instead of SF operands.
1469 (*fop_df_comm_sse): Likewise.
1470 (*fop_df_comm_i387): Likewise.
1471 (*fop_df_1_mixed): Likewise.
1472 (*fop_df_1_sse): Likewise.
1474 2006-08-29 Andrew Pinski <pinskia@physics.uc.edu>
1475 J"orn Rennecke <joern.rennecke@st.com>
1477 PR tree-optimization/17506
1478 * tree-ssa.c (warn_uninit): If warning about a location outside of
1479 the current function, note where the variable was declared.
1481 2006-08-28 Zdenek Dvorak <dvorakz@suse.cz>
1483 PR tree-optimization/28411
1484 * double-int.c (double_int_div): Use double_int_divmod.
1485 (double_int_divmod, double_int_sdivmod, double_int_udivmod,
1486 double_int_mod, double_int_smod, double_int_umod): New functions.
1487 * double-int.h (double_int_divmod, double_int_sdivmod,
1488 double_int_udivmod, double_int_mod, double_int_smod, double_int_umod):
1490 * tree-ssa-loop-ivopts.c (constant_multiple_of): Returns the result
1492 (get_computation_aff, get_computation_cost_at): Handle double_int
1493 return type of constant_multiple_of.
1495 2006-08-28 Kazu Hirata <kazu@codesourcery.com>
1498 * convert.c (convert_to_integer): Set TREE_NO_WARNING to 1 on
1499 an implicit conversion.
1501 2006-08-28 Prafulla Thakare <prafullat@kpitcummins.com>
1503 * config/h8300/h8300.c (TARGET_DEFAULT_TARGET_FLAGS): New.
1505 2006-08-27 Roger Sayle <roger@eyesopen.com>
1507 * ifcvt.c (cheap_bb_rtx_cost_p): Don't speculatively execute
1510 2006-08-27 Kazu Hirata <kazu@codesourcery.com>
1512 * config/i386/crtfastmath.c: Fix a comment typo.
1514 2006-08-26 Roger Sayle <roger@eyesopen.com>
1516 * tree.h (CASE_LOW_SEEN, CASE_HIGH_SEEN): New macros for manipulating
1517 temporary visit flags on CASE_LABEL_EXPRs.
1518 * c-common.c (match_case_to_enum): Add function comment. Avoid
1519 O(N) loop, by looking up both CASE_LOW_SEEN and CASE_HIGH_SEEN.
1520 (c_do_switch_warnings): Reorganize to record CASE_LOW_SEEN and
1521 CASE_HIGH_SEEN for enumerated types. If the switch expression is
1522 a constant, only warn if that constant value isn't handled.
1524 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1527 * input.h (restore_input_file_stack): Declare.
1528 (INPUT_FILE_STACK_BITS): Define.
1529 * toplev.c (fs_p, input_file_stack_history,
1530 input_file_stack_restored, restore_input_file_stack): New.
1531 (push_srcloc, pop_srcloc): Check for input_file_stack_tick
1532 overflowing INPUT_FILE_STACK_BITS bits. Save new state of stack.
1533 (pop_srcloc): Don't free old state of stack.
1535 2006-08-26 David Edelsohn <edelsohn@gnu.org>
1538 * doc/extend.texi (PowerPC Variable Attributes): Mention altivec.
1539 (PowerPC Type Attributes): New.
1541 2006-08-26 Bob Wilson <bob.wilson@acm.org>
1543 * config/xtensa/xtensa.c (function_arg_boundary): New.
1544 (function_arg, xtensa_gimplify_va_arg_expr): Limit alignment to
1546 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Move code to new
1547 function_arg_boundary function that limits alignment to STACK_BOUNDARY.
1549 2006-08-26 Jakub Jelinek <jakub@redhat.com>
1552 * cfgexpand.c (add_reg_br_prob_note): Check if last has exactly
1555 2006-08-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1557 * flow.c (verify_wide_reg): Use internal_error for consistency failure.
1558 (verify_local_live_at_start): Likewise.
1560 2006-08-25 Joseph S. Myers <joseph@codesourcery.com>
1563 * gimplify.c (gimplify_decl_expr, gimplify_init_ctor_preeval,
1564 omp_add_variable): Treat sizes as variable whenever not
1567 2006-08-26 Richard Guenther <rguenther@suse.de>
1570 * fold-const.c (fold_binary): Fold temporary to correct
1571 type before constructing new comparison.
1573 2006-08-25 Fariborz Jahanian <fjahanian@apple.com>
1576 * c-gimplify.c (gimplify_compound_literal_expr): Don't add
1577 variable again if DECL_SEEN_IN_BIND_EXPR_P.
1579 2006-08-25 Joseph S. Myers <joseph@codesourcery.com>
1582 * c-decl.c (start_function): Don't try to process prototype
1583 information from old declaration that isn't a function.
1585 2006-08-25 Jan Hubicka <jh@suse.cz>
1588 * config/i386/crtfastmath.c (set_fast_math): Force stack alignment.
1590 2006-08-25 Alan Modra <amodra@bigpond.net.au>
1593 * config/rs6000/rs6000.c (print_operand): Only use e500 %y syntax
1596 2006-08-25 J"orn Rennecke <joern.rennecke@st.com>
1598 PR tree-optimization/16876
1599 * c-typeck.c (c_convert_parm_for_inlining): Don't take early
1600 exit if PARM doesn't match VALUE.
1602 2006-08-25 Bob Wilson <bob.wilson@acm.org>
1604 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a
1605 literal_prefix directive.
1606 (XTENSA_DECLARE_FUNCTION_SIZE): Delete.
1607 * config/xtensa/linux.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
1608 * config/xtensa/elf.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
1610 2006-08-25 David Edelsohn <edelsohn@gnu.org>
1613 * config/rs6000/rs6000.md (movcc_internal1): Change operand 1
1614 predicate to general_operand. Add 0->y and I->r alternatives.
1616 2006-08-25 Kazu Hirata <kazu@codesourcery.com>
1618 * doc/tm.texi: Fix a typo.
1619 * predict.c: Fix comment typos.
1621 2006-08-25 Nick Clifton <nickc@redhat.com>
1623 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1624 assertions of "cpu" and "machine".
1626 2006-08-24 Andrew Pinski <pinskia@physics.uc.edu>
1629 * tree-ssa-operands.c (access_can_touch_variable): Don't say
1630 the access through a base which has an alias set of 0 cannot
1633 2006-08-24 Bill Wendling <wendling@apple.com>
1635 * doc/tm.texi (TARGET_DEFAULT_PACK_STRUCT): Fixed English.
1637 2006-08-24 Jan Hubicka <jh@suse.cz>
1639 * reload1.c (emit_reload_insns): Fix yet another typo in my patch.
1641 2006-08-24 Jan Hubicka <jh@suse.cz>
1644 * cgraph.c: Fix comments.
1645 (cgraph_varpool_mark_needed_node): Mark only variables not already
1647 * cgraphunit.c: Update comments; include gt-cgraphunit.h
1648 (cgraph_varpool_assembled_nodes_queue): New static variable.
1649 (cgraph_varpool_assemble_decl): Record output decls for debug out code.
1650 (cgraph_varpool_output_debug_info): New function.
1651 (cgraph_finalize_compilation_unit, cgraph_optimize): Call it.
1652 * Makefile.in: Add gt-cgraphunit.h
1654 2006-08-24 Jan Hubicka <jh@suse.cz>
1656 * predict.c (probability_reliable_p): New predicate.
1657 (edge_probability_reliable_p, br_prob_note_reliable_p): Likewise.
1658 (predict_loops): Do not predict loop exit with less than 2%
1660 * basic-block.h (edge_probability_reliable_p,
1661 br_prob_note_reliable_p): Declare.
1662 * ia64.h (ia64_print_operand): Do not disable on-chip branch
1663 prediction when static predictor is not reliable.
1664 * rs6000.c (output_cbranch): Likewise.
1666 2006-08-23 Stuart Hastings <stuart@apple.com>
1669 * gcc/config/i386/i386.c (ix86_expand_vector_init_duplicate,
1670 ix86_expand_vector_init_one_nonzero): Remove TARGET_SSE test.
1672 2006-08-21 Geoffrey Keating <geoffk@apple.com>
1675 * dwarf2out.c (rtl_for_decl_init): Don't try to create RTL for
1676 complex values, nor for generic vector values.
1678 2006-08-22 Richard Guenther <rguenther@suse.de>
1681 * tree-scalar-evolution.c (fold_used_pointer): Add at_stmt
1682 parameter. Convert arguments to arithmetic expression to the
1684 (analyze_scalar_evolution_1): Adjust caller.
1686 2006-08-22 Jan Hubicka <jh@suse.cz>
1688 Patch by Paolo Bonzini
1689 * reload1.c (emit_reload_insns): Fix incorrect bracketing introduced by
1692 2006-08-22 Daniel Berlin <dberlin@dberlin.org>
1694 PR tree-optimization/28003
1695 * tree-ssa-alias.c (compute_may_aliases): Compute call clobbered
1696 before grouping aliases.
1698 2006-08-22 Roger Sayle <roger@eyesopen.com>
1700 * config/i386/i386.c (ix86_value_regno): Don't return FIRST_MMX_REG
1701 if !TARGET_MMX, and don't return FIRST_SSE_REG if !TARGET_SSE.
1703 2006-08-21 Jason Merrill <jason@redhat.com>
1706 * gimplify.c (voidify_wrapper_expr): Handle STATEMENT_LIST as a
1707 wrapper. Loop to handle nested wrappers.
1708 (gimplify_bind_expr): Remove temp parameter.
1709 (gimplify_modify_expr_rhs): Handle CLEANUP_POINT_EXPR, BIND_EXPR
1710 and STATEMENT_LIST on the rhs.
1711 (gimplify_statement_list): Voidify the STATEMENT_LIST.
1712 (gimplify_expr): Pass pre_p to gimplify_statement_list.
1713 (gimplify_target_expr): Remove special BIND_EXPR handling.
1715 2006-08-21 J"orn Rennecke <joern.rennecke@st.com>
1717 * config/sh/lib1funcs-Os-4-200.asm: Guard entire file with
1720 2006-08-21 Olivier Hainque <hainque@adacore.com>
1722 * gimplify.c (gimplify_init_constructor) <RECORD,UNION,ARRAY types>:
1723 Arrange for the temporary captures of components overlapping the lhs
1724 to happen before the lhs is possibly cleared.
1726 2006-08-21 Mark Shinwell <shinwell@codesourcery.com>
1728 * config/arm/pr-support.c (__gnu_unwind_execute): Insert " + 1" in
1729 necessary places to pass the correct "number of registers" values
1732 2006-08-20 Jan Hubicka <jh@suse.cz>
1734 * tree-ssa-alias.c (eq_ptr_info, ptr_info_hash): New function.
1735 (create_name_tags): Instead of quadratic checking use hashtable.
1736 * bitmap.h: Include hashtab.h.
1737 (bitmap_hash): Declare.
1738 * bitmap.c (bitmap_hash): New function.
1740 2006-08-20 Jan Hubicka <jh@suse.cz>
1742 PR rtl-optimization/28071
1743 * tree-optimize.c (tree_rest_of_compilation): Do not remove edges
1745 * tree-inline.c (copy_bb): Use cgraph_set_call_stmt.
1746 * ipa-inline.c (cgraph_check_inline_limits): Add one_only argument.
1747 (cgraph_decide_inlining, cgraph_decide_inlining_of_small_function,
1748 cgraph_decide_inlining_incrementally): Update use of
1749 cgraph_check_inline_limits.
1750 * cgraph.c (edge_hash, edge_eq): New function.
1751 (cgraph_edge, cgraph_set_call_stmt, cgraph_create_edge,
1752 cgraph_edge_remove_caller, cgraph_node_remove_callees,
1753 cgraph_remove_node): Maintain call site hash.
1754 * cgraph.h (struct cgraph_node): Add call_site_hash.
1755 (cgraph_set_call_stmt): New function.
1757 2006-08-20 Jan Hubicka <jh@suse.cz>
1759 PR rtl-optimization/28071
1760 * reload1.c (reg_has_output_reload): Turn into regset.
1761 (reload_as_needed, forget_old_reloads_1, forget_marked_reloads,
1762 choose_reload_regs, emit_reload_insns): Update to new
1763 reg_has_output_reload.
1765 2006-08-20 Jan Hubicka <jh@suse.cz>
1768 * ipa-inline.c (cgraph_decide_inlining, cgraph_early_inlining): Compute
1769 function body sizes.
1770 * cgraphunit.c (cgraph_analyze_function): Don't do so.
1772 2006-08-20 Danny Smith <dannysmith@users.sourceforge.net>
1775 * tree.c (handle_dll_attribute): Return early if not a
1776 var or function decl.
1778 2006-08-18 Joseph Myers <joseph@codesourcery.com>
1781 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): For SPE, only adjust
1782 alignment of SPE vector types.
1784 2006-08-18 Christophe Jaillet <christophe.jaillet@wanadoo.fr>
1786 * tree.c (is_attribute_with_length_p): Remove a duplicated assert.
1788 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1791 * cgraph.h (struct cgraph_node): Remove externally_visible
1793 * cgraphunit.c (process_function_and_variable_attributes): Set
1794 local.externally_visible rather than externally_visible.
1797 * c-common.c (handle_externally_visible_attribute): First look
1798 at TREE_CODE and only if it is function or var decl, check for
1799 non-public objects. Don't warn for DECL_EXTERNAL.
1800 * cgraphunit.c (process_function_and_variable_attributes): Warn
1801 if externally_visible attribute is used on non-public object.
1803 2006-08-17 Jan Hubicka <jh@suse.cz>
1805 PR tree-optimization/27865
1806 * reload1.c (forget_marked_reloads): New function.
1807 (forget_old_reloads_1): When data are passed, just mark the registers
1809 (reload_as_needed): Use the new mechanizm.
1811 2006-08-17 Alexandre Oliva <aoliva@redhat.com>
1814 * reload.h (reg_equiv_alt_mem_list): New declaration.
1815 * reload1.c (reg_equiv_alt_mem_list): New definition.
1816 (reload): Initialize it and release it.
1817 (delete_output_reload): Use it.
1818 * reload.c (push_reg_equiv_alt_mem): New function.
1819 (find_reloads_toplev): Call it.
1820 (find_reloads_address, find_reloads_address_1): Likewise.
1821 (find_reloads_subreg_address): Likewise.
1823 2006-08-17 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1825 PR rtl-optimization/28489
1826 * sched-ebb.c (begin_schedule_ready): Create basic block
1828 (advance_target_bb): Skip empty blocks.
1829 * haifa-sched.c (bb_note): Make global.
1830 * sched-int.h (bb_note): Add prototype.
1832 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1834 PR tree-optimization/27865
1835 * tree-vrp.c (adjust_range_with_scev): Do not use TYPE_{MIN,MAX}_VALUE
1837 * tree-scalar-evolution.c (fold_used_pointer_cast, pointer_offset_p,
1838 fold_used_pointer, pointer_used_p): New functions.
1839 (analyze_scalar_evolution_1): Use fold_used_pointer.
1840 * tree-chrec.c (convert_affine_scev): Convert no-op casts correctly.
1841 * tree-ssa-loop-ivopts.c (generic_type_for): Return integral type
1844 2006-08-17 Paolo Bonzini <bonzini@gnu.org>
1847 * c-common.c (fold_offsetof_1): Add an argument and recurse down to it
1848 or the INTEGER_CST. Fail on a CALL_EXPR.
1849 (fold_offsetof): Pass new argument to fold_offsetof_1.
1850 * c-parser.c (c_parser_postfix_expression): Don't include a NULL
1851 operand into an INDIRECT_REF.
1852 * c-typeck.c (build_unary_op): Adjust call to fold_offsetof.
1854 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1856 PR gcov/profile/26570
1857 * value-prof.c (static_values): Removed.
1858 (tree_find_values_to_profile): Do not set static_values.
1859 (find_values_to_profile): Do not free static_values.
1860 * profile.c (instrument_values): Do not free the values.
1861 (branch_prob): Free the values.
1863 2006-08-16 Naveen.H.S <naveenh@kpitcummins.com>
1865 * config/m32c/m32c_lib1.S (__mulsi3): Use only registers for dest.
1867 2006-08-16 Joseph S. Myers <joseph@codesourcery.com>
1870 * c-typeck.c (build_component_ref): Combine qualifiers of
1871 structure or union and field.
1873 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1875 PR rtl-optimization/28071
1876 * basic-block.h (bb_dom_dfs_in, bb_dom_dfs_out): Declare.
1877 * dominance.c (bb_dom_dfs_in, bb_dom_dfs_out): New functions.
1878 * tree-into-ssa.c (struct dom_dfsnum): New.
1879 (cmp_dfsnum, find_dfsnum_interval, prune_unused_phi_nodes): New
1881 (insert_phi_nodes_for): Use prune_unused_phi_nodes instead of
1882 compute_global_livein.
1883 (prepare_block_for_update, prepare_use_sites_for): Mark the uses
1884 in phi nodes in the correct blocks.
1886 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1888 PR tree-optimization/28364
1889 * tree-ssa-loop-ivopts.c (aff_combination_to_tree): Handle zero
1891 (fold_affine_expr): New function.
1892 (may_eliminate_iv): Use fold_affine_expr.
1894 2006-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1897 * c-typeck.c (c_start_case): Handle invalid orig_type correctly.
1900 2006-08-16 Mike Stump <mrs@apple.com>
1902 * doc/invoke.texi (-Wno-deprecated-declarations): Fixup use of pxref.
1903 * doc/cppopts.texi (-MD): Likewise.
1905 2006-08-15 Danny Smith <dannysmith@users.sourceforge.net>
1908 * c-common.c (handle_weak_attribute): Ignore and warn if
1909 not a FUNCTION_ or VAR_DECL.
1911 2006-07-15 Mike Stump <mrs@apple.com>
1914 * c-parser.c (c_parser_typeof_specifier): Don't use
1915 c_finish_expr_stmt, open code desired semantics instead.
1917 2006-08-15 Nick Clifton <nickc@redhat.com>
1919 * config.gcc (x86-mingw32): Add a gthr-win32.h including makefile
1920 fragment to tmake_file only if threads are enabled.
1921 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Move to...
1922 * config/i386/t-gthr-win32: New file. ... here.
1924 2006-08-15 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1927 * c-parser.c (c_parser_compound_statement_nostart): Reset
1928 parser->error after each statement.
1930 2006-08-15 Jakub Jelinek <jakub@redhat.com>
1933 * omp-low.c (lower_omp_parallel): Convert t to
1934 receiver_decl's type.
1935 (expand_omp_parallel): STRIP_NOPS from the MODIFY_EXPR
1936 source before comparison.
1939 * gimplify.c (gimplify_omp_atomic_pipeline): Convert oldival
1940 to itype in assignment to oldival2.
1942 2006-07-14 Andrew Pinski <pinksia@physics.uc.edu>
1946 * c-typeck.c (build_compound_expr): If the second expression
1947 is an error mark, then just return an error mark instead of
1948 creating a COMPOUND_EXPR.
1950 2006-07-14 Mike Stump <mrs@apple.com>
1952 * Makefile.in (LIBGCC_DEPS): Don't depend on LANGUAGES.
1954 2006-08-14 Kazu Hirata <kazu@codesourcery.com>
1956 * c-decl.c, var-tracking.c: Fix comment typos.
1958 2006-08-14 Richard Sandiford <richard@codesourcery.com>
1960 PR rtl-optimization/28634
1961 * reorg.c (fill_slots_from_thread): Do not assume A + X - X == A
1962 for floating-point modes unless flag_unsafe_math_optimizations.
1964 2006-08-13 Alexandre Oliva <aoliva@redhat.com>
1965 Andrew Pinski <pinskia@physics.uc.edu>
1968 * tree.c (build_array_type): Unify array types with
1969 unspecified index_type.
1970 * c-decl.c (grokdeclarator): Make sure we do not modify a
1971 unified incomplete array type.
1972 * c-typeck.c (store_init_value): Create distinct type before
1973 filling in the index type in an initializer from a compound
1976 * c-decl.c (grokdeclarator): Remove code where we copy the
1979 2006-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1981 * tree-pass.h (TODO_update_ssa): Fix which bit is used to take
1982 into account for TODO_dump_cgraph.
1983 (TODO_update_ssa_no_phi): Likewise.
1984 (TODO_update_ssa_full_phi): Likewise.
1985 (TODO_update_ssa_only_virtuals): Likewise.
1986 (TODO_remove_unused_locals): Likewise.
1987 (TODO_set_props): Likewise.
1988 (TODO_update_stmt_usage): Likewise.
1990 2006-08-13 Dirk Mueller <dmueller@suse.de>
1992 * c-common.c (strict_aliasing_warning): Fix formatting.
1994 2006-08-13 Matthias Klose <doko@debian.org>
1996 * doc/invoke.texi: Fix spelling errors.
1998 2006-08-11 Eric Botcazou <ebotcazou@libertysurf.fr>
2000 PR rtl-optimization/23454
2001 * reorg.c (relax_delay_slots): Update comment.
2003 2006-08-11 Richard Guenther <rguenther@suse.de>
2006 * simplify-rtx.c (simplify_const_relational_operation):
2007 Simplify A CMP B to A - B CMP 0 only for EQ and NE comparison
2010 2006-08-10 Eric Botcazou <ebotcazou@adacore.com>
2012 * tree.c (build1_stat): Also propagate the TREE_CONSTANT and
2013 TREE_INVARIANT flags for a VIEW_CONVERT_EXPR.
2015 2006-08-10 Paul Brook <paul@codesourcery.com>
2017 * final.c (final_scan_insn): Clear current_insn_predicate before
2018 outputting inline asm.
2020 2006-08-10 Dorit Nuzman <dorit@il.ibm.com>
2022 PR tree-optimization/26197
2023 * tree-ssa-alias.c (new_type_alias): Takes additional argument. Calls
2024 get_ref_base_and_extent and overlap_subvar to add only relevant
2025 subvars as may-aliases.
2026 (add_may_alias_for_new_tag): New function, factored out of
2028 * tree-vect-transform.c (vect_create_data_ref_ptr): Call new_type_alias
2029 with additional argument.
2030 * tree-flow.h (new_type_alias): Takes additional argument.
2032 2006-08-09 Nathan Sidwell <nathan@codesourcery.com>
2034 * gcov.c (no_data_file): New flag.
2035 (read_count_file): Set it if data file not present. Assume counts
2037 (output_lines): Don't name the data file, if there wasn't one.
2039 2006-08-09 Eric Botcazou <ebotcazou@adacore.com>
2041 * config/rs6000/rs6000.c (print_operand) <D>: Fix comment and adjust.
2042 (rs6000_generate_compare): Tweak comments.
2043 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Fix comment.
2045 2006-08-09 Alexandre Oliva <aoliva@redhat.com>
2047 * var-tracking.c (enum micro_operation_type): Add MO_COPY.
2048 (var_debug_decl): New function.
2049 (var_reg_set): Follow debug decl link. Add location even if
2050 reg is already known to hold some other variable.
2051 (var_mem_set): Follow debug decl link.
2052 (var_reg_delete_and_set, var_mem_delete_and_set): Follow debug
2053 decl link. Delete other known locations of the variable part
2055 (var_reg_delete, var_mem_delete): Delete other known locations
2056 of the variable part if requested.
2057 (same_variable_part_p): New function.
2058 (add_stores): Select MO_COPY when appropriate.
2059 (vt_initialize): Handle it.
2060 (compute_bb_dataflow, emit_notes_in_bb): Likewise. Delete
2061 known locations for MO_SET and MO_CLOBBER.
2062 (find_variable_location_part): New function.
2063 (set_variable_part, delete_variable_part): Use it.
2064 (clobber_variable_part): New function.
2065 * dwarf2out.c (dwarf2out_var_location): Do not follow debug
2068 2006-08-07 Victor Kaplansky <victork@il.ibm.com>
2070 PR tree-optimization/26969
2071 * tree-vect-analyze.c (vect_analyze_loop_form): Add check of latch
2072 with an empty list of PHIs.
2074 2006-08-06 Paolo Bonzini <bonzini@gnu.org>
2078 * conffig/i386/i386.md: Add peephole2 to avoid "fld %st"
2081 2006-08-06 Andreas Schwab <schwab@suse.de>
2083 * config/m68k/m68k.c (m68k_output_function_epilogue): Fix format
2084 string. Whitespace and comment fixup.
2086 2006-08-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2089 * c-decl.c (validate_proto_after_old_defn): Return false on invalid
2093 * c-typeck.c (build_modify_expr): Test earlier for non-lvalues.
2096 * c-parser.c (c_parser_postfix_expression_after_paren_type): Robustify.
2098 2006-08-04 Jan Hubicka <jh@suse.cz>
2102 * reload.c (push_reload): Patch out the mismatching instruction;
2104 (find_reload): Bail out if the instruction was patched out.
2106 2006-08-04 Jan Hubicka <jh@suse.cz>
2108 PR tree-optimization/24888
2109 * tree-inline.c (expand_call_inline): Do not re-record variables.
2110 (declare_inline_vars): Add variable to unexpanded_var_list.
2112 2006-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2113 Roger Sayle <roger@eyesopen.com>
2115 PR rtl-optimization/26244
2116 * cse.c (fold_rtx): Correctly associate shifts when const_arg1 and/or
2117 inner_const are negative or greater than or equal to the bitsize of
2118 MODE. If SHIFT_COUNT_TRUNCATED is false, the values aren't associated.
2119 Otherwise, the values are masked using GET_MODE_BITSIZE (mode) - 1.
2120 Simplify complicated if statement. For ASHIFT and LSHIFTRT, return
2121 CONST0_RTX (mode) when the new shift count is greater than or equal to
2122 to the bitsize of the object being shifted and XEXP (y, 0) has no side
2125 2006-08-04 Kazu Hirata <kazu@codesourcery.com>
2127 * tree-cfg.c: Fix a comment typo.
2129 2006-08-03 Mark Mitchell <mark@codesourcery.com>
2132 * varasm.c (output_constant): Give the front end another chance to
2133 expand constants, after stripping NOPs.
2135 2006-08-03 Jan Hubicka <jh@suse.cz>
2137 * domwalk.c (walk_dominator_tree): Reorganize to non-recursive
2140 2006-08-03 Dorit Nuzman <dorit@il.ibm.com>
2142 PR tree-optimization/27770
2143 * tree-vectorizer.h (get_vectype_for_scalar_type): Function
2144 declaration removed (moved to tree-flow.h).
2145 (vect_can_force_dr_alignment_p): Likewise.
2146 * tree-flow.h (get_vectype_for_scalar_type): New function declaration
2147 (moved from tree-vectorizer.h).
2148 (vect_can_force_dr_alignment_p): Likewise.
2149 * tree-vectorizer.c (vect_print_dump_info): Allow calling this function
2150 from outside the vectorizer - in particular from cgraph stage.
2151 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Don't increase
2152 the alignment of global arrays when -fsection-anchors is enabled.
2153 * cgraphunit.c (cgraph_increase_alignment): New function.
2154 (cgraph_optimize): Call cgraph_increase_alignment.
2156 2006-08-03 David Edelsohn <edelsohn@gnu.org>
2159 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
2160 not reload a SPE symbol_ref into a lo_sum address.
2162 2006-08-02 Daniel Jacobowitz <dan@codesourcery.com>
2165 * dwarf2out.c (prune_unused_types_prune): Move call to
2166 prune_unused_types_update_strings to cover the parent DIE also.
2168 2006-08-02 Jan Hubicka <jh@suse.cz>
2170 PR gcov/profile/28480
2171 * tree-cfg.c (change_bb_for_stmt): New function.
2172 (tree_merge_blocks, tree_split_blocks): Use it.
2174 2006-08-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2180 * toplev.c (compile_file): Return early on errorcount or sorrycount.
2181 * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
2182 (cgraph_optimize): Likewise.
2184 2006-08-01 Stuart Hastings <stuart@apple.com>
2186 * rtl.h (UINTVAL) New.
2187 * config/rs6000/rs6000.c (SMALL_INT) Use it.
2188 * testsuite/gcc.dg/20060801-1.c: New.
2190 2006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
2193 * c-typeck.c (build_external_type): Mark used enum types.
2194 * dwarf2out.c (dwarf2out_abstract_function): Save and restore
2196 (gen_subprogram_die): Whitespace fix.
2198 2006-08-01 Jan Hubicka <jh@suse.cz>
2200 * tree-outof-ssa.c (check_replaceable): Do not allocate def_vars
2201 bitmap when not needed.
2202 * tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary
2205 2006-08-01 Dirk Mueller <dmueller@suse.de>
2207 * tree-vrp.c (fix_equivalence_set): Avoid bitmap memory leak.
2209 2006-07-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2211 * Makefile.in: Revert part of previous patch:
2212 Replace $(VARRAY_H) by varray.h in definition of BASIC_BLOCK_H
2215 2006-07-30 Eric Christopher <echristo@apple.com>
2218 * doc/extend.texi (i386 Variable Attributes): Add anchor.
2219 (PowerPC Variable Attributes): New section.
2221 2006-07-30 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
2223 PR target/28126 (partial fix)
2224 * config/mips/mips.md (tls_get_tp_<mode>): Set can_delay to no.
2226 2006-07-28 Jan Hubicka <jh@suse.cz>
2228 PR rtl-optimization/28071
2229 * cfgrtl.c (rtl_delete_block): Free regsets.
2230 * flow.c (allocate_bb_life_data): Re-use regsets if available.
2232 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2234 * Makefile.in: Use $(HEADER_H) instead of header.h in dependencies
2235 and variables used in dependencies.
2237 2006-07-27 Arjan van de Ven <arjan@linux.intel.com>
2239 * config/i386/i386.md (stack_tls_protect_set_di) Use %gs rather than
2240 %fs for -mcmodel=kernel.
2241 (stack_tls_protect_test_di): Likewise.
2243 2006-07-27 Carlos O'Donell <carlos@codesourcery.com>
2245 * Makefile.in: Use mkinstalldirs.
2247 2006-07-27 H.J. Lu <hongjiu.lu@intel.com>
2250 * opts-common.c (prune_options): Skip joined switches.
2252 2006-07-27 Jan Hubicka <jh@suse.cz>
2254 PR rtl-optimization/28071
2255 * cselib.c (cselib_process_insn): Don't remove useless values too
2256 often for very large hashtables.
2258 2006-07-27 Jan Hubicka <jh@suse.cz>
2260 PR rtl-optimization/28071
2261 * global.c (greg_obstack): New obstack.
2262 (allocate_bb_info): Use it.
2263 (free_bb_info): Likewise.
2264 (modify_reg_pav): Likewise.
2266 2006-07-27 Roger Sayle <roger@eyesopen.com>
2268 * builtins.c (fold_fixed_mathfn): When long and long long are the
2269 same size, canonicalize llceil*, llfloor*, llround* and llrint*
2270 functions to their lceil*, lfloor*, lround* and lrint* forms.
2272 2006-07-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2275 * config/m32r/m32r.md (branch_insn): Reduce pc range for short
2277 (rev_branch_insn): Likewise.
2279 2006-07-27 Jan Hubicka <jh@suse.cz>
2281 PR rtl-optimization/28071
2282 * regmove.c (reg_is_remote_constant_p): Avoid quadratic behaviour.
2283 (reg_set_in_bb, max_reg_computed): New static variables.
2284 (regmove_optimize): Free the new array.
2285 (fixup_match_1): Update call of reg_is_remote_constant_p.
2287 2006-07-26 Jan Hubicka <jh@suse.cz>
2289 PR tree-optimization/27882
2290 * cgraph.c (cgraph_remove_node): Clear needed, reachable, next, previous
2292 * cgraphunit.c (cgraph_reset_node): Expect cgraph_remove_node to kill
2294 (cgraph_analyze_compilation_unit): Likewise.
2295 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
2296 * ipa-inline.c (cgraph_decide_recursive_inlining): Likewise.
2297 (cgraph_early_inlinine): Make order garbage collected.
2298 * Makefile.in (gt-ipa-inline): New garbagecollected file.
2300 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
2302 * dbxout.c (output_types_sort): Add a comment.
2303 (output_used_types): Free the VEC.
2305 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
2307 * function.c (reorder_fix_fragments): Delete.
2308 (reorder_blocks): Don't call it.
2309 (reorder_blocks_1): Put all subblocks under the origin block.
2311 2006-07-26 Zdenek Dvorak <dvorakz@suse.cz>
2313 PR rtl-optimization/27907
2314 * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
2317 2006-07-25 Roger Sayle <roger@eyesopen.com>
2320 * convert.c (convert_to_integer): When transforming (T)foo(x) into
2321 bar(x) check that bar's result type can represent all the values of T.
2323 2006-07-25 Zdenek Dvorak <dvorakz@suse.cz>
2325 * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure.
2327 2006-07-25 Nick Clifton <nickc@redhat.com>
2329 * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the
2330 size_lookup[] array.
2331 (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
2332 (ggc_pch_count_object): Likewise.
2333 (ggc_pch_alloc_object): Likewise.
2334 (ggc_pch_write_object): Likewise.
2335 (init_ggc): Do not attempt to initialize entries in the
2336 size_lookup[] array for objects whose size is greater than than
2337 the length of the array.
2339 2006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
2341 * dbxout.c (output_used_types_helper): Push queued types
2343 (output_types_sort): New.
2344 (output_used_types): Collect used types on a VEC and sort them
2347 2006-07-24 Richard Guenther <rguenther@suse.de>
2350 * cgraph.c (cgraph_remove_node): Do not check if dumps
2352 * cgraphunit.c (cgraph_optimize): Likewise.
2354 2006-07-24 Jan Hubicka <jh@suse.cz>
2356 PR rtl-optimization/28071
2357 * tree-cfg.c (tree_split_block): Do not allocate new stmt_list nodes.
2358 * tree-iterator.c (tsi_split_statement_list_before): Do not crash when
2359 splitting before first stmt.
2361 2006-07-24 Jan Hubicka <jh@suse.cz>
2363 PR rtl-optimization/28071
2364 * ipa-inline.c (update_caller_keys): Remove edges that
2365 are no longer inline candidates.
2367 2006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
2370 * dbxout.c (output_used_types_helper, output_used_types): New.
2371 (dbxout_symbol): Call output_used_types.
2373 2006-07-23 Jan Hubicka <jh@suse.cz>
2377 * cgraph.c (cgraph_varpool_nodes): Export.
2378 (decide_is_variable_needed): Ignored "used" attribute in
2379 unit-at-a-time mode.
2380 * cgraph.h (cgraph_varpool_nodes): Declare.
2381 * cgraphunit.c (decide_is_function_needed): Ignored "used" attribute in
2382 unit-at-a-time mode.
2384 2006-07-23 Roger Sayle <roger@eyesopen.com>
2387 * gthr-solaris.h: Prototype __gthrw forms of thr_self, mutex_init and
2388 mutex_destroy even when !_LIBOOBJC. Remove duplicate prototype of
2389 the __gthrw form of thr_keycreate.
2390 (__gthread_key_delete): Silence the unused argument warning.
2392 2006-07-23 Steven Bosscher <steven@gcc.gnu.org>
2395 * config/elfos.h (ASM_OUTPUT_ASCII): Remove 'register' marks.
2396 Cache the last found '\0' marker to avoid quadratic behavior.
2398 2006-07-23 Jan Hubicka <jh@suse.cz>
2400 * i386.md (subsi_3_zext): Fix output template.
2402 2006-07-21 Mike Stump <mrs@apple.com>
2404 * doc/invoke.texi (C++ Dialect Options): Note that
2405 -fvisibility-inlines-hidden doesn't affect explicitly
2406 instantiationed inline methods.
2408 2006-07-20 Roger Sayle <roger@eyesopen.com>
2410 * config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
2411 if the target assembler is GNU binutils' gas.
2412 * config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
2413 whether to pass GNU gas or native as command line options.
2415 2006-07-20 Jason Merrill <jason@redhat.com>
2417 * tree.c (remove_attribute): New fn.
2418 * tree.h: Declare it.
2420 2006-07-20 Paul Brook <paul@codesourcery.com>
2423 * cse.c (cse_insn): Add destination addresses to hash table. Check if
2424 they are invalidated by this instruction.
2426 2006-07-21 Danny Smith <dannysmith@users.sourceforge.net>
2429 * config/i386/cygming.h (MAX_OFILE_ALIGNMENT): Define.
2431 2006-07-20 Eric Christopher <echristo@apple.com>
2434 * config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
2436 2006-07-19 Eric Christopher <echristo@apple.com>
2438 * config/t-slibgcc-darwin (stmp-lipo): Remove.
2439 Rewrite dependencies for libgcc_s.1.dylib.
2441 2006-07-19 Jakub Jelinek <jakub@redhat.com>
2443 * except.c (duplicate_eh_regions_1): Clear next_peer.
2445 2006-07-17 Nathan Sidwell <nathan@codesourcery.com>
2447 * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
2448 -mlongcall does not guarantee all calls will be long.
2449 * doc/extend.texi (long_call/short_call): Document that longcall
2450 does not guarantee a long call will be used.
2451 (longcall/shortcall): Likewise.
2453 2006-07-18 Roger Sayle <roger@eyesopen.com>
2456 * expmed.c (expand_shift): Additionally check that the shift_cost
2457 is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
2458 before implementing a LSHIFT_EXPR as a sequence of additions.
2459 * config/sh/sh.c (shift_costs): Return MAX_COST to inform the
2460 middle-end that DImode shifts need to be synthesized by expand.
2462 2006-07-18 Diego Novillo <dnovillo@redhat.com>
2465 * tree-ssa-operands.c (access_can_touch_variable): Update
2467 Return true if ALIAS is .GLOBAL_VAR.
2469 2006-07-18 David Daney <ddaney@avtrex.com>
2471 * gcc.c (display_help): Fix typo in help text.
2473 2006-07-18 Olivier Hainque <hainque@adacore.com>
2475 * tree.h (categorize_ctor_elements): Adjust prototype and add
2476 descriptive comment, both in accordance with the interface change
2478 * varasm.c (constructor_static_from_elts_p): New function.
2479 Whether a constructor node is a valid static constant initializer
2480 if all its elements are.
2481 (initializer_constant_valid_p) <CONSTRUCTOR value>: Use it.
2482 * output.h: Declare it.
2483 * expr.c (categorize_ctor_elements_1): Return whether the constructor
2484 is a valid constant initializer instead of computing the number of
2485 non-constant elements. Use constructor_static_from_elts_p for this
2486 purpose. Replace the head comment with an indication that this is a
2487 helper for categorize_ctor_elements.
2488 (categorize_ctor_elements): Same interface change as for the _1
2489 helper. Former head comment from this helper moved here, adjusted to
2490 account for the interface changes.
2491 (mostly_zeros_p): Adjust call to categorize_ctor_elements.
2492 (all_zeros_p): Likewise.
2493 * gimplify.c (gimplify_init_constructor): Decide whether we can make
2494 static versions of the constructor from the categorize_ctor_elements
2495 return value instead of the formerly computed number of non-constant
2498 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
2500 * configure: Regenerate.
2501 * Makefile.in (build_libsubdir): New configure substitution
2502 (build_libobjdir): New variable.
2503 (BUILD_LIBIBERTY): Use it.
2505 2006-07-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2508 * c-pragma.c (handle_pragma_pack): Handle invalid constants.
2510 2006-07-18 Alexandre Oliva <aoliva@redhat.com>
2513 * c-common.c (handle_weakref_attribute): Ignore attribute in
2514 the same conditions the alias attribute is ignored.
2516 2006-07-17 Carlos O'Donell <carlos@codesourcery.com>
2518 * dbxout.c (dbxout_function_end): Do not increment scope_labelno.
2519 (dbxout_begin_prologue): Increment scope_labelno.
2521 2006-07-17 Richard Henderson <rth@redhat.com>
2524 * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
2527 2006-07-17 Roger Sayle <roger@eyesopen.com>
2528 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2530 * config/i386/gmon-sol2.c: Silence compilation warnings by partially
2531 synchronizing code with config/sparc/gmon-sol2.c. Remove #if 0
2532 blocks. #include "tconfig.h" and "tsystem.h" to prototype system
2533 functions such as sbrk, write, etc.. Add function prototypes.
2534 Convert function declarations from K&R to ISO C. Cast pointers
2535 to "long" and "unsigned long" instead of "int" and "unsigned int".
2536 Convert tokens following #endif into comments.
2538 2006-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
2540 * invoke.texi: Remove mention of f77; Reformat table for
2541 inline parameter options correctly; mention that -malign-double
2542 is default on x86-64 targets.
2544 2006-07-17 Zdenek Dvorak <dvorakz@suse.cz>
2546 * tree-chrec.c (avoid_arithmetics_in_type_p): New.
2547 (convert_affine_scev, chrec_convert_aggressive): Use
2548 avoid_arithmetics_in_type_p. Do not check for the subtypes
2551 2006-07-17 Richard Sandiford <richard@codesourcery.com>
2554 * optabs.c (expand_doubleword_shift): Wrap the call to
2555 do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
2557 2006-07-17 Richard Sandiford <richard@codesourcery.com>
2560 * optabs.c (expand_binop): Pass next_methods rather than methods
2561 to expand_doubleword_shift.
2563 2006-07-17 J"orn Rennecke <joern.rennecke@st.com>
2566 * tree.h (dump_addr): Declare.
2567 * print-tree.c (dump_addr): New function.
2568 (print_node_brief, print_node): Use it.
2569 * print-rtl.c (print_rtx): Likewise.
2570 * common.opt (-fdump-noaddr): New option.
2571 * doc/invoke.texi (-fdump-noaddr): Document.
2572 * loop-unroll.c (si_info_hash): Make hash independent of addresses.
2573 (ve_info_hash): Likewise.
2575 2006-07-13 Andrew Haley <aph@redhat.com>
2577 PR tree-optimization/19505
2578 * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
2579 edge leaving this block, make sure that the destination of this
2580 block has only one predecessor.
2582 2006-07-17 Richard Guenther <rguenther@suse.de>
2584 PR tree-optimization/28238
2585 * tree-inline.c (copy_bb): Check if we produced valid
2586 gimple copying and substituting a stmt. If not, gimplify
2589 2006-07-16 Eric Botcazou <ebotcazou@adacore.com>
2591 * optabs.c (maybe_encapsulate_block): New function extracted from...
2592 (emit_libcall_block): ...here. Invoke it on the block of insns to
2593 maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
2594 (emit_no_conflict_block): Likewise.
2596 2006-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
2598 * doc/install.texi (sparc-sun-solaris2*): Add GMP version number.
2600 2006-07-15 Roger Sayle <roger@eyesopen.com>
2602 * tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
2603 a new NOP_EXPR case of the switch statement.
2605 2006-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
2608 * stor-layout.c (place_field): Take the bit field with
2609 an excessive size into account in the ms-bitfiled case.
2612 * stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
2613 the previous bit field.
2615 2006-07-14 Eliot Dresselhaus <eliot@sonic.net>
2618 * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.
2620 2006-07-14 Ulrich Weigand <uweigand@de.ibm.com>
2622 * config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
2623 signal frames correctly even when the signal was installed with
2626 2006-07-14 Carlos O'Donell <carlos@codesourcery.com>
2628 * dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
2629 (dbxout_function_end): Use local label LFBB. Remove hook
2631 (dbxout_source_line): Use local label LFBB.
2632 (dbxout_block): Likewise.
2633 (dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
2634 (dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
2635 * config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
2636 and DBX_OUTPUT_NFUN.
2638 2006-07-13 Janis Johnson <janis187@us.ibm.com>
2640 * doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.
2642 2006-07-13 Jan Hubicka <jh@suse.cz>
2644 * cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call
2646 * output.h (align_variable): Declare.
2647 * varasm.c (align_variable): Export.
2648 * value-prof.c (tree_value_profile_transformations): Recompute iterator
2649 when basic block changed.
2651 2006-07-13 Nick Clifton <nickc@redhat.com>
2653 * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst
2654 walking the LOG_LINKS chain.
2656 2006-07-12 Geoffrey Keating <geoffk@apple.com>
2658 * doc/invoke.texi (C++ Dialect Options): Explain difference
2659 between -fvisibility-inlines-hidden and setting hidden
2660 visibility explicitly.
2662 2006-07-12 Eric Christopher <echristo@apple.com>
2664 * config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
2665 (stmp-lipo): Depend on libgcc.a.
2667 2006-07-12 Kazu Hirata <kazu@codesourcery.com>
2669 * tree.c: Fix a comment typo.
2671 2006-07-12 Naveen.H.S <naveenh@kpitcummins.com>
2673 * config/m32c/muldiv.md (umulhisi3_c): Use only registers for
2675 (umulhisi3_r): Likewise.
2677 2006-07-12 Paolo Carlini <pcarlini@suse.de>
2680 * doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
2681 x < 19, vs wchar_t support.
2683 2006-07-12 Nick Clifton <nickc@redhat.com>
2685 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up
2686 instead of -isa=sh4.
2688 2006-07-12 Mike Stump <mrs@apple.com>
2690 * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
2692 2006-07-10 Eric Christopher <echristo@apple.com>
2694 * config/t-slibgcc-darwin: Rewrite.
2696 2006-07-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2699 * Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
2702 2006-07-08 Matthias Klose <doko@debian.org>
2704 * doc/sourcebuild.texi: Fix typo.
2706 2006-07-07 Mike Stump <mrs@apple.com>
2708 * toplev.c (process_options): Don't give -ffunction-sections may
2709 affect debugging warning for Mach-O.
2711 2006-07-07 James E Wilson <wilson@specifix.com>
2713 * config/mips/mips.md (cpu): Add sb1a.
2714 * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
2715 addition to sb1. Adjust comments to clarify SB-1A differences from
2717 (ir_sb1a_load): New. Modify bypasses to use it.
2718 (ir_sb1a_simple_alu): Likewise.
2719 * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
2720 (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
2721 (mips_issue_rate): Add PROCESSOR_SB1A.
2722 (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
2723 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
2724 (TARGET_SB1): Add PROCESSOR_SB1A check.
2725 (TUNE_SB1): Likewise.
2727 * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
2728 * config/mips/mips.c (mips_store_data_bypass_p): New.
2729 * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
2730 store_data_bypass_p.
2732 2006-07-08 Paul Brook <paul@codesourcery.com>
2735 * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
2737 2006-07-07 Richard Guenther <rguenther@suse.de>
2740 * tree.h (build_one_cst): Declare.
2741 * tree.c (build_one_cst): New function.
2742 * tree-ssa-math-opts.c (get_constant_one): Remove.
2743 (insert_reciprocals): Use build_one_cst.
2744 * fold-const.c (fold_plusminus_mult): Likewise.
2746 2006-07-07 Roger Sayle <roger@eyesopen.com>
2748 * pointer-set.c (pointer_set_destroy): Correct whitespace.
2749 * cfgloopanal.c (dump_graph): Likewise.
2750 * dojump.c (discard_pending_stack_adjust): Likewise.
2751 * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
2753 * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
2754 * function.c (finalize_block_changes): Likewise.
2755 * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
2756 * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
2757 * rtl.c (dump_rtx_statistics): Likewise.
2758 * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
2760 * varray.c (dump_varray_statistics): Likewise.
2761 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
2762 decode_decimal64, encode_decimal128, decode_decimal128,
2763 decimal_real_to_decimal): Likewise.
2765 2006-07-07 Richard Guenther <rguenther@suse.de>
2767 PR tree-optimization/28187
2768 * tree-vrp.c (vrp_operand_equal_p): New function.
2769 (vrp_bitmap_equal_p): Likewise.
2770 (update_value_range): Use them to compare old and new
2773 2006-07-06 Roger Sayle <roger@eyesopen.com>
2775 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
2776 a default case to switch statement to silence compiler warnings.
2778 2006-07-06 Roger Sayle <roger@eyesopen.com>
2781 * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
2782 the configured assembler supports the x87's ffreep mnemonic.
2783 * configure: Regenerate.
2784 * config.in: Regenerate.
2786 * config/i386/i386.c (output_387_ffreep): New function.
2787 (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
2788 (output_387_reg_move): Likewise.
2790 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
2792 Port to hosts whose 'sort' and 'tail' implementations
2793 treat operands with leading '+' as file names, as POSIX
2794 has required since 2001. However, make sure the code still
2795 works on pre-POSIX hosts.
2796 * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
2797 which says you should use "tail -c +N" rather than "tail +Nc".
2798 Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
2800 2006-07-06 Zdenek Dvorak <dvorakz@suse.cz>
2802 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
2805 2006-07-06 David Edelsohn <edelsohn@gnu.org>
2808 * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
2809 PRE_{INC,DEC} of TFmode.
2811 2006-07-06 David Edelsohn <edelsohn@gnu.org>
2812 Alan Modra <amodra@bigpond.net.au>
2815 * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
2818 2006-07-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2821 * config/alpha/predicates.md (alpha_swapped_comparison_operator):
2822 Remove duplicate gtu.
2824 2006-07-05 Jason Merrill <jason@redhat.com>
2828 * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
2829 * c-common.c (handle_packed_attribute): So don't copy it here.
2830 * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
2832 2006-07-05 Mike Stump <mrs@apple.com>
2834 * doc/invoke.texi (Invoking G++): Clarify prose for g++.
2836 2006-07-05 H.J. Lu <hongjiu.lu@intel.com>
2839 * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
2841 2006-07-05 Richard Guenther <rguenther@suse.de>
2844 * config/i386/i386.md (*negdf2_1): Restrict pattern to
2845 TARGET_SSE2 targets if using SSE math.
2846 (*absdf2_1): Likewise.
2848 2006-07-05 Richard Guenther <rguenther@suse.de>
2850 PR tree-optimization/28162
2851 * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
2852 make sure to convert the operands to the correct type.
2854 2006-07-04 Paolo Bonzini <bonzini@gnu.org>
2856 PR tree-optimization/28218
2858 * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
2859 to calculate and free the dominator information.
2861 2006-07-04 Peter O'Gorman <peter@pogma.com>
2863 * mklibgcc.in: chmod 644 before ranlib during install.
2865 2006-07-04 Andrew Stubbs <andrew.stubbs@st.com>
2866 J"orn Rennecke <joern.rennecke@st.com>
2868 * configure.ac (.eh_frame data check): Use diff -b.
2870 2006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2873 * Makefile.in (BUILD_RTL): Add build/vec.o.
2874 (build/gencondmd.o): Filter out -fkeep-inline-functions.
2875 (build/genextract): Delete.
2876 (build/genautomata): Likewise.
2878 2006-07-04 Alan Modra <amodra@bigpond.net.au>
2881 * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
2882 128-bit IBM long doubles for ABI_V4.
2884 2006-07-03 Eric Botcazou <ebotcazou@adacore.com>
2886 * tree.c (range_in_array_bounds_p): New predicate.
2887 * tree.h (range_in_array_bounds_p): Declare it.
2888 * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
2889 return a less conservative answer.
2890 * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
2891 and flag 'is_group'.
2892 (IS_ELEMENT_FOR_GROUP): New macro.
2893 (FOR_EACH_ACTUAL_CHILD): Likewise.
2894 (next_child_for_group): New helper function.
2895 (can_completely_scalarize_p): Take into account groups.
2896 (sra_hash_tree): Handle RANGE_EXPR.
2897 (sra_elt_eq): Likewise.
2898 (lookup_element): Be prepared for handling groups.
2899 (is_valid_const_index): Delete.
2900 (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
2901 instead of is_valid_const_index.
2902 <ARRAY_RANGE_REF>: New case.
2903 (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
2904 is_valid_const_index.
2905 <ARRAY_RANGE_REF>: Do not unconditionally punt.
2906 (scan_dump): Dump info for groups too.
2907 (decide_instantiation_1): Likewise.
2908 (decide_block_copy): Assert that the element is not a group.
2909 Propagate decision to groups.
2910 (generate_one_element_ref): Handle RANGE_EXPR.
2911 (mark_no_warning): Iterate over actual childs.
2912 (generate_copy_inout): Likewise.
2913 (generate_element_copy): Likewise.
2914 (generate_element_zero): Likewise.
2915 (generate_element_init_1): Likewise.
2916 (dump_sra_elt_name): Handle RANGE_EXPR.
2918 2006-07-03 Roger Sayle <roger@eyesopen.com>
2920 PR tree-optimization/26251
2921 * tree-ssa-threadupdate.c (redirection_block_p): New function.
2922 (thread_block): When optimizing for size refuse to thread jumps
2923 that would require duplication of blocks other than redirection
2926 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
2928 * configure.ac: Fix thinko in previous check-in.
2929 * configure: Regenerate.
2931 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
2934 * configure.ac (for lang...): Simplify nesting of conditionals.
2935 Test subdir_requires for non-enabled languages. Move processing
2936 of lang_opt_files and lang_tree_fiels below that test.
2937 * configure: Regenerate.
2938 * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
2940 2006-07-01 Martin Michlmayr <tbm@cyrius.com>
2942 * doc/gcov.texi (Invoking Gcov): Add a missing word.
2944 2006-06-30 Kazu Hirata <kazu@codesourcery.com>
2946 * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
2949 2006-06-29 Jason Merrill <jason@redhat.com>
2956 * tree.c (build_decl_stat): Don't hande #pragma visibility here.
2957 * c-common.c (c_determine_visibility): Handle it here.
2958 * c-decl.c (finish_decl): Call c_determine_visibility for
2960 * flags.h (enum symbol_visibility): Sort from most to least visibility.
2962 * varasm.c (default_assemble_visibility): Likewise.
2963 * c-common.c (handle_visibility_attribute): Complain about trying
2964 to give visibility to an already defined class, or trying to change
2965 declared visibility. Always attach the attribute.
2970 * attribs.c (decl_attributes): Ignore type-in-place attributes
2971 once the type has been defined.
2973 2006-06-29 Roger Sayle <roger@eyesopen.com>
2976 * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
2977 to indicate the cpplib has issued an error message for us.
2979 2006-06-29 Asher Langton <langton2@llnl.gov>
2982 * config/i386/i386.c (ix86_output_function_epilogue): Don't
2983 insert a label at the end of an function under Mach-O.
2985 2006-06-29 Eric Christopher <echristo@apple.com>
2986 Evan Cheng <evan.cheng@apple.com>
2988 * predicates.md (vector_all_ones_operand): New.
2989 (nonimmediate_or_sse_const_operand): Ditto.
2990 * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
2991 * config/i386/i386.c (standard_sse_constant_opcode): Define.
2992 (standard_sse_mode_p): Ditto.
2993 (standard_sse_constant_p): Add case for -1 vector.
2994 (ix86_expand_vector_move): Try to use.
2995 * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
2996 Call standard_sse_constant_opcode.
2997 (*movv4sf_internal): Ditto.
2998 (*movv2df_internal): Ditto.
3000 2006-06-29 Roger Sayle <roger@eyesopen.com>
3002 * genpreds.c (write_match_code_switch): Correctly use XSTR instead
3003 of XEXP to extract the operands of a MATCH_CODE rtx.
3005 2006-06-28 Andrew Pinski <pinskia@gmail.com>
3007 * tree.c (tree_size): Do not waste tail padding in
3008 struct tree_string and make the size be the same as
3009 build_string will generate.
3011 2006-06-28 Jason Merrill <jason@redhat.com>
3014 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
3015 may_aliases already in the tag's annotations to the bitmap.
3017 2006-06-28 Roger Sayle <roger@eyesopen.com>
3019 * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
3021 2006-06-28 Roger Sayle <roger@eyesopen.com>
3023 * genpreds.c (generate_switch_p): New function.
3024 (add_mode_tests): Push the new mode test down inside an AND expr
3025 if this allows the switch-suitable MATCH_CODE to be near the root.
3026 (write_match_code_switch): New function to write a MATCH_CODE as
3028 (write_predicate_stmts): New function to write a predicate RTX
3029 expression as a sequence of statements.
3030 (write_one_predicate_function): Use write_predicate_stmts.
3031 (write_tm_constrs_h): Likewise.
3033 2006-06-26 Fred Fish <fnf@specifix.com>
3035 * config/mips/t-sb1: New file.
3036 * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
3039 2006-06-26 DJ Delorie <dj@redhat.com>
3041 * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
3043 2006-06-26 Naveen H.S <naveenh@kpitcummins.com>
3044 Jayant Sonar <jayants@kpitcummins.com>
3045 Jaydeep Vipradas <jaydeepv@kpitcummins.com>
3047 * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
3048 (subsi3, subsi3_1, subsi3_2): New.
3049 * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
3050 * config/m32c/mov.md (SI mov peephole): New.
3051 * config/m32c/m32.c (m32c_immd_dbl_mov): New.
3052 * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
3054 2006-06-26 Olivier Hainque <hainque@adacore.com>
3056 * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
3057 a CALL_EXPR target function declaration.
3059 2006-06-26 Richard Guenther <rguenther@suse.de>
3061 * tree.c (build_string): Do not waste tail padding in
3064 2006-06-26 Richard Guenther <rguenther@suse.de>
3066 * ggc-page.c (init_ggc): Add missing element to size_lookup
3070 2006-06-23 Richard Guenther <rguenther@suse.de>
3072 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
3073 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
3074 alignment requests instead. Add verification code.
3075 Add struct tree_function_decl and struct tree_binfo size to
3076 extra_order_size_table. Add missing element to size_lookup
3079 2006-06-25 Eric Botcazou <ebotcazou@adacore.com>
3082 * fold-const.c (const_binop): Be prepared for self returning zero.
3083 Simplify code handling complex values.
3085 2006-06-24 Olivier Hainque <hainque@adacore.com>
3087 * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
3088 (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
3091 2006-06-24 Olivier Hainque <hainque@adacore.com>
3093 * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
3094 ARRAY_REF, so have the callback called for the low bound expression.
3096 2006-06-23 Janis Johnson <janis187@us.ibm.com>
3098 * tree.h (DECIMAL_FLOAT_TYPE_P): New.
3099 * c-typeck.c (c_common_type): Disallow operations on decimal float
3100 types and other float types.
3101 * convert.c (convert_to_real): Don't ignore conversions involving
3102 decimal float types.
3104 2006-06-23 Olivier Hainque <hainque@adacore.com>
3106 * tree.c (max_int_size_in_bytes): New function, inspired from
3107 code in function.c:assign_temp.
3108 * tree.h (max_int_size_in_bytes): Declare.
3109 * function.c (assign_temp): Use it.
3110 * gimplify.c (create_tmp_var): Relax the assertions on the type
3111 properties, not mandating constant size any more.
3112 (force_constant_size): New static function.
3113 (gimple_add_tmp_var): Use it, forcing variable size to a
3114 constant upper bound if it is not constant on entry.
3116 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
3119 * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
3120 for initialization and setting of one_only flag to ...
3121 (i386_pe_encode_section_info): ...here.
3122 (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
3123 Recheck that the symbol has not been defined.
3125 2006-06-23 Richard Guenther <rguenther@suse.de>
3127 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
3128 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
3129 alignment requests instead. Add verification code.
3130 Add struct tree_function_decl and struct tree_binfo size to
3131 extra_order_size_table. Add missing element to size_lookup
3134 2006-06-22 Roger Sayle <roger@eyesopen.com>
3135 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3138 * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
3139 call to lang_hooks.types.type_for_mode returned NULL_TREE.
3141 2006-06-23 Ben Elliston <bje@au.ibm.com>
3143 * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
3144 negate dn -- manipulate it directly.
3146 2006-06-22 Roger Sayle <roger@eyesopen.com>
3147 Steven Bosscher <stevenb.gcc@gmail.com>
3150 * reload1.c (gen_reload): Call mark_jump_label on the new insns
3151 generated by gen_move_insn to add REG_LABEL notes if necessary.
3153 2006-06-22 Bob Wilson <bob.wilson@acm.org>
3155 * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
3156 (leaf_entry): Remove use of MIN_ESA.
3158 2006-06-22 Zdenek Dvorak <dvorakz@suse.cz>
3160 PR rtl-optimization/28121
3161 * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
3164 2006-06-21 DJ Delorie <dj@redhat.com>
3166 * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
3168 (mulhisi3_r): Likewise.
3170 2006-06-21 Richard Sandiford <richard@codesourcery.com>
3173 * coverage.c (coverage_counter_alloc): Leave the index type
3175 (coverage_counter_alloc): Use null arguments for operands 2 and 3
3178 2006-06-21 Andrew Pinski <pinskia@physics.uc.edu>
3180 * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
3181 section from the "Options for Code Generation Conventions".
3183 2006-06-21 Richard Henderson <rth@redhat.com>
3187 * config/alpha/predicates.md (small_symbolic_operand): Deny weak
3189 (global_symbolic_operand): Allow weak symbols, even if local_p.
3191 2006-06-21 Eric Botcazou <ebotcazou@adacore.com>
3193 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
3194 (find_interesting_uses_address): Punt if above function returns true.
3196 2006-06-21 Richard Guenther <rguenther@suse.de>
3198 * configure: Regenerated.
3200 2006-06-21 Joseph Myers <joseph@codesourcery.com>
3202 * config/mips/mips.c (function_arg): Where one part of a
3203 complex argument is in registers and the other part in the stack,
3204 return a REG not a PARALLEL.
3206 2006-06-21 Mark Mitchell <mark@codesourcery.com>
3208 * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
3209 when cross-compiling. Do not substitute libstdcxx_incdir.
3210 * configure: Regenerated.
3212 2006-06-21 Jakub Jelinek <jakub@redhat.com>
3214 * varasm.c (mergeable_string_section): Check for embedded NULs and
3215 NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
3216 rather than TREE_STRING_LENGTH bytes.
3218 2006-06-21 Richard Guenther <rguenther@suse.de>
3220 * ggc-page.c (extra_order_size_table): Add var_ann_d,
3221 tree_ssa_name, bitmap_element and phi_node with 4 arguments
3224 2006-06-21 Richrad Guenther <rguenther@suse.de>
3226 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
3227 Limit iteration over the dominators.
3229 2006-06-20 Roger Sayle <roger@eyesopen.com>
3231 * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
3232 (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
3234 2006-06-20 Richard Guenther <rguenther@suse.de>
3235 Michael Matz <matz@suse.de>
3237 * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
3239 * alloc-pool.c (free_alloc_pool_if_empty): New function.
3240 * et-forest.h (et_free_pools): Prototype new function.
3241 * et-forest.c (et_free_tree_force): Free parent occurrence.
3242 (et_free_pools): New function.
3243 * dominance.c (free_dominance_info): Free et-forest alloc
3246 2006-06-20 Roger Sayle <roger@eyesopen.com>
3248 * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
3249 integer modes, attempt to directly construct an integer constant.
3251 * fold-const.c (native_encode_vector): Determine the size of each
3252 element from the vector type instead of the first vector element.
3254 * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
3255 if all of its elements/components are constant.
3256 (build_constructor_from_list): Likewise.
3258 2006-06-20 Zdenek Dvorak <dvorakz@suse.cz>
3260 PR tree-optimization/27331
3261 * tree-data-ref.c (free_data_ref): New function.
3262 (create_data_ref): Fail if the data reference has unknown access
3264 (free_data_refs): Use free_data_ref.
3266 2006-06-19 Andrew Pinski <pinskia@gmail.com>
3269 * tree-inline.c (setup_one_parameter): Strip useless
3270 type conversion before adding it to the IR.
3271 (declare_return_variable): Likewise.
3273 2006-06-19 Martin Michlmayr <tbm@cyrius.com>
3276 * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
3278 2006-06-19 Mike Stump <mrs@apple.com>
3280 * tree.c (variably_modified_type_p): VM arguments don't make the
3283 2006-06-19 Richard Guenther <rguenther@suse.de>
3285 * tree-ssa-pre.c (try_combine_conversion): Strip useless
3286 type conversions after folding.
3288 2006-06-19 Richard Guenther <rguenther@suse.de>
3290 * ggc-page.c (extra_order_size_tab): Add entries with
3291 size of struct function and basic_block.
3292 (size_lookup): Extend to cover sizes up to 511.
3293 (ggc_alloc_stat): Adjust user.
3294 (ggc_pch_count_object): Likewise.
3295 (ggc_pch_alloc_object): Likewise.
3296 (ggc_pch_write_object): Likewise.
3298 2006-06-19 Zdenek Dvorak <dvorakz@suse.cz>
3300 * tree-ssa-loop-niter.c (implies_ge_p): New function.
3301 (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
3304 2006-06-19 Denis Chertykov <denisc@overta.ru>
3306 * config/avr/libgcc.S : Correct my wrong previous commit.
3308 2006-06-19 Roger Sayle <roger@eyesopen.com>
3311 * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
3312 have stripped a SUBREG from the shift count, so we may need to
3313 convert_to_mode back to the type's mode before calling make_tree.
3314 Use new_amount instead of amount to avoid expanding a tree twice.
3316 2006-06-19 Richard Guenther <rguenther@suse.de>
3319 * fold-const.c (operand_equal_p): Check if the argument types
3320 have the same precision before stripping NOPs.
3322 2006-06-19 Daniel Berlin <dberlin@dberlin.org>
3324 Fix PR tree-optimization/27341
3325 * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
3327 * tree-complex.c (pass_lower_complex): Update SMT usage.
3329 2006-06-19 Andreas Krebbel <krebbel1@de.ibm.com>
3331 * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
3332 Add a new alternative to the constraint strings. Add move of
3333 operand 1 to 3 to the splitter definition.
3334 ("doloop_si_long"): Second contraint alternative removed.
3336 2006-06-08 Anatoly Sokolov <aesok@post.ru>
3338 * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
3339 (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
3341 (AVR_HAVE_MOVW) Define.
3342 (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
3343 (ASM_SPEC): Add avr25.
3344 (LINK_SPEC): Add avr25.
3345 * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
3346 (base_arch_s): Add new member 'have_movw_lpmx'.
3347 (avr_arch_types): Init 'have_movw_lpmx'.
3348 (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
3349 attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
3350 attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
3351 (avr_override_options): Init 'avr_have_movw_lpmx_p'.
3352 (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
3354 (avr_file_start): Do not output '.arh' derective.
3355 * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
3356 (__do_copy_data): Use __AVR_HAVE_LPMX__.
3357 * config/avr/avr.md (mcu_enhanced): Delete.
3358 (mcu_have_movw): Define.
3359 (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
3360 (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
3361 * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
3362 (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
3363 attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
3364 attiny861 and at86rf401 devices.
3366 2006-06-18 Jie Zhang <jie.zhang@analog.com>
3368 * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
3371 2006-06-17 Karl Berry <karl@gnu.org>
3373 * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
3374 doc/gccint.texi, doc/install.texi (@dircategory): Use
3375 "Software development" instead of "Programming", following
3376 the Free Software Directory.
3378 2006-06-17 Alexandre Oliva <aoliva@redhat.com>
3380 * config/i386/i386.c (legitimate_tls_address)
3381 <TARGET_GNU2_TLS>: Add tp after DTPOFF.
3382 * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
3383 (*tls_dynamic_gnu2_combine_64): Likewise.
3385 2006-06-16 Richard Guenther <rguenther@suse.de>
3388 * fold-const.c (negate_expr_p): Do not introduce undefined
3389 overflow in negating INTEGER_CSTs.
3390 (fold_negate_expr): Rename from negate_expr. Revert last
3391 change for folding BIT_NOT_EXPR. Change semantics to
3392 return NULL_TREE for non-simplified negations. Do not
3393 strip type conversions and unify type handling.
3394 (negate_expr): New function, wrap around fold_negate_expr
3395 but ensure building a tree always. Strip type conversions
3396 here, fold to result type.
3397 (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
3399 2006-06-16 Roger Sayle <roger@eyesopen.com>
3402 * reg-stack.c (subst_stack_regs): Handle noreturn function calls
3403 that (would) return their results in stack registers.
3405 2006-06-16 Michael Matz <matz@suse.de>
3406 Richard Guenther <rguenther@suse.de>
3408 * fold-const.c (fold_truthop): Only return new tree node if
3409 we canonicalized something.
3411 2006-06-16 Richard Guenther <rguenther@suse.de>
3413 * function.h (enum function_frequency): Move declaration
3414 out of struct function.
3415 (struct function): Move bool fields and the enum to the bitfield
3416 section. Reorder elements to avoid padding. Remove unused
3417 fields left over from the RTL inliner removal.
3418 * function.c (free_after_compilation): Do not zero removed fields.
3419 * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
3420 (ipa-type-escape.o): Likewise.
3422 2006-06-16 Richard Guenther <rguenther@suse.de>
3424 * cgraph.h (struct cgraph_local_info): Turn bool elements
3426 (struct cgraph_node): Likewise.
3427 (struct cgraph_varpool_node): Likewise.
3429 2006-06-15 Richard Guenther <rguenther@suse.de>
3431 * fold-const.c (fold_truth_not_expr): Rename from
3432 invert_truthvalue. Give it fold_* semantics to avoid
3434 (invert_truthvalue): New function. Wrapper around
3435 fold_truth_not_expr.
3436 (optimize_minmax_comparison): Avoid creating garbage.
3437 (fold_unary): Use fold_truth_not_expr for folding
3439 (fold_ternary): Replace uses of invert_truthvalue with
3440 fold_truth_not_expr where applicable.
3441 * tree.h (fold_truth_not_expr): Prototype.
3443 2006-06-16 Richard Guenther <rguenther@suse.de>
3445 PR tree-optimization/27781
3446 * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
3447 * ipa-pure-const.c (target.h): Include.
3448 (analyze_function): Do not analyze functions that do not
3451 2006-06-15 Andrew MacLeod <amacleod@redhat.com>
3454 * tree-dfa.c (referenced_vars_dup_list): Remove.
3455 (find_referenced_vars): Remove assert.
3456 (referenced_var_check_and_insert): Replace dup list with assert.
3457 * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
3458 * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
3460 2006-06-15 Richard Guenther <rguenther@suse.de>
3462 * tree-ssa-structalias.c (alias_get_name): Avoid creating
3463 extra unused identifiers if not dumping.
3464 (create_variable_info_for): Likewise.
3466 2006-06-15 Zdenek Dvorak <dvorakz@suse.cz>
3468 * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
3469 (derive_constant_upper_bound): Derive more precise upper bound in
3470 common cases. Return type changed to double_int.
3471 (record_estimate): Reflect the changed return type of
3472 derive_constant_upper_bound.
3473 * double-int.c (double_int_zext, double_int_sext): Fix.
3475 2006-06-15 Paolo Bonzini <bonzini@gnu.org>
3477 * configure.ac (CFLAGS): Get them from the toplevel or from the
3478 configure invocation.
3479 * configure: Regenerate.
3480 * Makefile.in (CFLAGS): Substitute value provided by configure.
3482 2006-06-14 Mark Mitchell <mark@codesourcery.com>
3485 * c-common.h (c_finish_omp_atomic): Adjust declaration.
3486 * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
3487 rather than calling add_stmt on it.
3488 * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
3490 2006-06-14 Andreas Krebbel <krebbel1@de.ibm.com>
3493 * reload1.c (reload): Remove registers returned by update_eliminables
3494 from used_spill_regs.
3496 2006-06-13 DJ Delorie <dj@redhat.com>
3498 * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
3500 2006-06-13 Carlos O'Donell <carlos@codesourcery.com>
3502 * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
3503 html__strip_dir, html__mkdir_p. Enhance install-html target.
3504 * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
3505 * configure: Regenerate.
3507 2006-06-13 Fariborz Jahanian <fjahanian@apple.com>
3509 * fold-const.c (fold_cond_expr_with_comparison): Check for
3510 Objective-C++ as language in deciding COND_EXPR transformation.
3512 2006-06-06 J"orn Rennecke <joern.rennecke@st.com>
3515 * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
3516 * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
3517 * config/sh/lib1funcs.h (SL, SL1): Define.
3518 * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
3519 * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
3520 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
3521 (OBJS_Os_4_200): New variable.
3522 ($(T)libgcc-Os-4-200.a): Use it.
3523 * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
3524 when dividing 1 and/or by 0.
3526 2006-06-13 Roger Sayle <roger@eyesopen.com>
3528 * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
3529 before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.