]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations on variables in specifi...
authorJeff Law <law@gcc.gnu.org>
Wed, 19 May 1999 23:06:13 +0000 (17:06 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 19 May 1999 23:06:13 +0000 (17:06 -0600)
x
        * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations
        on variables in specific sections other than .sbss and .sdata.

From-SVN: r27038

gcc/config/mips/mips.h

index 46f1165d188a2b0fab52a515b157e8bec916feda..7360e1b5d64a3733448147c33fe92388ac5417fc 100644 (file)
@@ -3224,7 +3224,11 @@ do                                                                       \
         SYMBOL_REF_FLAG (XEXP (DECL_RTL (DECL), 0)) = 1;               \
       }                                                                        \
                                                                        \
-    else if (TARGET_GP_OPT && TREE_CODE (DECL) == VAR_DECL)            \
+    /* We can not perform GP optimizations on variables which are in   \
+       specific sections, except for .sdata and .sbss which are                \
+       handled above.  */                                              \
+    else if (TARGET_GP_OPT && TREE_CODE (DECL) == VAR_DECL             \
+            && DECL_SECTION_NAME (DECL) == NULL_TREE)                  \
       {                                                                        \
        int size = int_size_in_bytes (TREE_TYPE (DECL));                \
                                                                        \