From 0dc92bf6bc0f20b66b5d957993efca53d908a384 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 18 Aug 1993 20:36:41 -0700 Subject: [PATCH] (SELECT_SECTION): Put object in sdata only if size is known, i.e. (SELECT_SECTION): Put object in sdata only if size is known, i.e. greater than 0. From-SVN: r5185 --- gcc/config/mips/mips.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 46742125dae..d92801f5ed9 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -3448,7 +3448,9 @@ rdata_section () \ #define SELECT_SECTION(DECL, RELOC) \ { \ - if (int_size_in_bytes (TREE_TYPE (DECL)) <= mips_section_threshold \ + int size = int_size_in_bytes (TREE_TYPE (DECL)); \ + \ + if (size <= mips_section_threshold && size > 0 \ && mips_section_threshold > 0) \ sdata_section (); \ \ -- 2.30.2