From 274351baa6c750d75b3d2cb70d95ec25da3cb231 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 15 Jan 1996 07:40:55 -0500 Subject: [PATCH] (in_data_section): New function. From-SVN: r10983 --- gcc/varasm.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/varasm.c b/gcc/varasm.c index cad3fc400d3..b0f5d1bd2f7 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. */ -- 2.30.2