]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-common.c
* c-common.def (FILE_STMT): New code.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Jan 2002 22:27:07 +0000 (22:27 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Jan 2002 22:27:07 +0000 (22:27 +0000)
commit204ca66e9757c09e16bd375a5831abafc1c8f111
tree9dec30bd55dcecc61d1bc99e776548971a77e3dd
parentc4f51a023e85088c707d57342fa4a08ebfbc5f9e
    * c-common.def (FILE_STMT): New code.
        * c-common.c (statement_code_p): It's a statement.
        * c-common.h (stmt_tree_s): Add x_last_filename.
        (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
        (last_expr_filename): New macro.
        * c-semantics.c (begin_stmt_tree): Initialize it.
        (add_stmt): If the filename changed, also insert a
        FILE_STMT.
        (expand_stmt): Handle seeing one.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48881 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.def
gcc/c-common.h
gcc/c-semantics.c