OSDN Git Service

* c-pragma.c (maybe_apply_renaming_pragma): New.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Mar 2002 22:51:48 +0000 (22:51 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Mar 2002 22:51:48 +0000 (22:51 +0000)
commitea42c4de227309f4db936eae29f35e7b20a7353e
treeef58fdf21cd2d5af8fcc1fdca3da41897a87502f
parent92ec37e132679f46e77d77ea490053326041ccc9
    * c-pragma.c (maybe_apply_renaming_pragma): New.
        (handle_pragma_redefine_extname, pending_redefine_extname): New.
        (handle_pragma_extern_prefix, pragma_extern_prefix): New.
        (init_pragma): Register them.
        * c-pragma.h (maybe_apply_renaming_pragma): Declare.
        * c-decl.c (finish_decl): Call it.
        * cp/decl.c (cp_finish_decl): Likewise.
        * doc/extend.texi: Document the new pragmas.

        * config/alpha/osf.h (CPP_SUBTARGET_SPEC): Add __EXTERN_PREFIX.
        (HANDLE_PRAGMA_EXTERN_PREFIX): New.

        * config/i386/sol2.h (CPP_PREDEFINES): Add __PRAGMA_REDEFINE_EXTNAME.
        (HANDLE_PRAGMA_REDEFINE_EXTNAME): New.
        * config/sparc/sol2.h: Likewise.

        * g++.dg/other/pragma-re-1.C: New.
        * g++.dg/other/pragma-ep-1.C: New.
        * gcc.dg/pragma-re-1.c, gcc.dg/pragma-re-2.c: New.
        * gcc.dg/pragma-ep-1.c, gcc.dg/pragma-ep-2.c: New.
        * gcc.dg/pragma-ep-3.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51200 138bc75d-0d04-0410-961f-82ee72b054a4
15 files changed:
gcc/c-decl.c
gcc/c-pragma.c
gcc/c-pragma.h
gcc/config/alpha/osf.h
gcc/config/i386/sol2.h
gcc/config/sparc/sol2.h
gcc/cp/decl.c
gcc/doc/extend.texi
gcc/testsuite/g++.dg/other/pragma-ep-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/pragma-re-1.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/pragma-ep-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pragma-ep-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pragma-ep-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pragma-re-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pragma-re-2.c [new file with mode: 0644]