------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-05 
17:50 -------
Subject: Bug 22013

CVSROOT:        /cvs/gcc
Module name:    gcc
Changes by:     [EMAIL PROTECTED]       2005-07-05 17:50:24

Modified files:
        gcc            : ChangeLog c-objc-common.h c-tree.h c-typeck.c 
                         langhooks-def.h langhooks.c langhooks.h tree.c 
        gcc/testsuite  : ChangeLog 
Added files:
        gcc/testsuite/gcc.c-torture/compile: pr22013-1.c 
        gcc/testsuite/gcc.c-torture/execute: pr22098-1.c pr22098-2.c 
                                             pr22098-3.c 

Log message:
        PR c/22013
        PR c/22098
        * langhooks.h (struct lang_hooks): Add expr_to_decl.
        * langhooks.c (lhd_expr_to_decl): New.
        * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
        New.
        (LANG_HOOKS_INITIALIZER): Update.
        * tree.c (recompute_tree_invarant_for_addr_expr): Call
        expr_to_decl langhook.
        * c-tree.h (c_expr_to_decl): Declare.
        * c-typeck.c (c_expr_to_decl): New.
        (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
        specially.
        * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
        
        testsuite:
        * gcc.c-torture/compile/pr22013-1.c,
        gcc.c-torture/execute/pr22098-1.c,
        gcc.c-torture/execute/pr22098-2.c,
        gcc.c-torture/execute/pr22098-3.c: New tests.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9345&r2=2.9346
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-objc-common.h.diff?cvsroot=gcc&r1=2.7&r2=2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-tree.h.diff?cvsroot=gcc&r1=1.207&r2=1.208
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.463&r2=1.464
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/langhooks-def.h.diff?cvsroot=gcc&r1=1.99&r2=1.100
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/langhooks.c.diff?cvsroot=gcc&r1=1.83&r2=1.84
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/langhooks.h.diff?cvsroot=gcc&r1=1.107&r2=1.108
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&r1=1.493&r2=1.494
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5725&r2=1.5726
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/pr22013-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/pr22098-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/pr22098-2.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/pr22098-3.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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

Reply via email to