From: Jim Wilson Date: Thu, 19 Aug 1993 03:36:41 +0000 (-0700) Subject: (SELECT_SECTION): Put object in sdata only if size is known, i.e. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0dc92bf6bc0f20b66b5d957993efca53d908a384;p=gcc.git (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 --- 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 (); \ \