aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-10-11 03:02:24 +0000
committerRichard Stallman <rms@gnu.org>1993-10-11 03:02:24 +0000
commitb7560989531cf57f7723e373d761506fac1686e3 (patch)
tree836a16b6fad52bd571987e949697c87a24700946 /gcc
parenta9456cd320e16d4217d34d3928ed4d99fb12cbc8 (diff)
downloadgcc-b7560989531cf57f7723e373d761506fac1686e3.zip
gcc-b7560989531cf57f7723e373d761506fac1686e3.tar.gz
gcc-b7560989531cf57f7723e373d761506fac1686e3.tar.bz2
(enum pragma_state): Defined.
From-SVN: r5720
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-pragma.c16
-rw-r--r--gcc/varasm.c16
2 files changed, 32 insertions, 0 deletions
diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c
index 002c094..23890034 100644
--- a/gcc/c-pragma.c
+++ b/gcc/c-pragma.c
@@ -29,6 +29,22 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define HANDLE_PRAGMA_WEAK 1
#endif
+/* See varasm.c for an identical definition. */
+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
+};
+
/* When structure field packing is in effect, this variable is the
number of bits to use as the maximum alignment. When packing is not
in effect, this is zero. */
diff --git a/gcc/varasm.c b/gcc/varasm.c
index e2c0f51..455adcd 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -3648,6 +3648,22 @@ output_constructor (exp, size)
/* Support #pragma weak by default if WEAK_ASM_OP is defined. */
#if defined (HANDLE_PRAGMA_WEAK) || (defined (WEAK_ASM_OP) && defined (SET_ASM_OP))
+/* See c-pragma.c for an identical definition. */
+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'' */
void
handle_pragma_weak (what, asm_out_file, name, value)