diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1996-01-15 07:40:55 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1996-01-15 07:40:55 -0500 |
commit | 274351baa6c750d75b3d2cb70d95ec25da3cb231 (patch) | |
tree | 7d44c9ef8a79aeeedf103080bdc4c22906607621 | |
parent | ec9aa8950139f60e9dd6eb65f566a3fd94b4041b (diff) | |
download | gcc-274351baa6c750d75b3d2cb70d95ec25da3cb231.zip gcc-274351baa6c750d75b3d2cb70d95ec25da3cb231.tar.gz gcc-274351baa6c750d75b3d2cb70d95ec25da3cb231.tar.bz2 |
(in_data_section): New function.
From-SVN: r10983
-rw-r--r-- | gcc/varasm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index cad3fc4..b0f5d1b 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1,5 +1,5 @@ /* Output variables, constants and external declarations, for GNU compiler. - Copyright (C) 1987, 88, 89, 92, 93, 94, 1995 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 89, 92-5, 1996 Free Software Foundation, Inc. This file is part of GNU CC. @@ -231,6 +231,12 @@ in_text_section () return in_section == in_text; } +/* Determine if we're in the data section. */ +int +in_data_section () +{ + return in_section == in_data; +} /* Tell assembler to change to section NAME for DECL. If DECL is NULL, just switch to section NAME. If NAME is NULL, get the name from DECL. */ |