c-common.def (FILE_STMT): New code.
authorJason Merrill <jason@redhat.com>
Tue, 15 Jan 2002 22:27:07 +0000 (17:27 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 15 Jan 2002 22:27:07 +0000 (17:27 -0500)
commitde097a2d7d044caf6841fa395bb322d4ef8ba841
tree9dec30bd55dcecc61d1bc99e776548971a77e3dd
parent93e9a9924741c257172f3384ae199b45b5364886
c-common.def (FILE_STMT): New code.

        * 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.

From-SVN: r48881
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.def
gcc/c-common.h
gcc/c-semantics.c