This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/12640] stack overflow building tk


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12640


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dnovillo at gcc dot gnu dot
                   |                            |org


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-17 13:40 -------
Most likely caused by:
2003-07-31  Diego Novillo  <dnovillo@redhat.com>
        
        * Makefile.in (tree-ssa-ccp.o): Depend on $(EXPR_H).
        * builtins.c (c_strlen): Remove static declaration.
        (simplify_builtin_fputs): Remove static declaration.
        (simplify_builtin_sprintf): New local function.
        (expand_builtin_sprintf): Remove by surrounding with #if 0.
        (expand_builtin): Add BUILT_IN_SPRINTF to the list of built-ins
        handed over to simplify_builtin.
        (validate_arglist): Do not allow arguments with TREE_SIDE_EFFECTS.
        (simplify_builtin_fputs): Add new argument KNOWN_LEN.  If it's set,
        use it instead of trying to compute the length of the string.
        Update all callers.
        * expr.h (simplify_builtin_fputs): Declare.
        * tree-flow.h (fold_stmt): Change argument type to tree *.  Update
        all users.
        * tree-ssa-ccp.c: Include expr.h.
        (replace_uses_in): If the statement makes a call to some selected
        built-ins, mark it for folding.
        (get_strlen): New local function.
        (ccp_fold_builtin): New local function. 
        (fold_stmt): Call it.
        (set_rhs): Fix if-else-if chaining.  Handle cases where the whole
        statement needs to be replaced.
        * tree.h (c_strlen): Declare.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]