summaryrefslogtreecommitdiff
path: root/gcc/c-pragma.h
diff options
context:
space:
mode:
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-04-18 18:16:51 +0000
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-04-18 18:16:51 +0000
commit917aa082e55c138c5b684f81441d39756763f400 (patch)
treedb6dcc9aaea350dc8e6ad9b635b41529042f0167 /gcc/c-pragma.h
parent212d6fcf1695c3ca1aa89cd4e4319c66c9c2534e (diff)
downloadgcc-917aa082e55c138c5b684f81441d39756763f400.tar.gz
Move pragma interface support to c-pragma.h
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9410 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-pragma.h')
-rw-r--r--gcc/c-pragma.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/gcc/c-pragma.h b/gcc/c-pragma.h
index e69de29bb2d..7eaacd012db 100644
--- a/gcc/c-pragma.h
+++ b/gcc/c-pragma.h
@@ -0,0 +1,48 @@
+/* Pragma related interfaces.
+ Copyright (C) 1995 Free Software Foundation, Inc.
+
+This file is part of GNU CC.
+
+GNU CC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU CC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU CC; see the file COPYING. If not, write to
+the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+
+#ifdef HANDLE_SYSV_PRAGMA
+
+/* Support #pragma weak by default if WEAK_ASM_OP and ASM_OUTPUT_DEF
+ are defined. */
+#if !defined (HANDLE_PRAGMA_WEAK) && defined (WEAK_ASM_OP) && defined (ASM_OUTPUT_DEF)
+#define HANDLE_PRAGMA_WEAK 1
+#endif
+
+enum pragma_state
+{
+ ps_start,
+ ps_done,
+ ps_bad,
+ ps_weak,
+ ps_name,
+ ps_equals,
+ ps_value,
+ ps_pack,
+ ps_left,
+ ps_align,
+ ps_right
+};
+
+/* Output asm to handle ``#pragma weak'' */
+extern void handle_pragma_weak PROTO((enum pragma_state, char *, char *));
+
+/* Handle a C style pragma */
+extern void handle_pragma_token PROTO((char *, tree));
+#endif /* HANDLE_SYSV_PRAGMA */