* config/tc-mips.c (mips_ip): Fix handling of floating point
authorIan Lance Taylor <ian@airs.com>
Sun, 8 Jan 1995 21:17:56 +0000 (21:17 +0000)
committerIan Lance Taylor <ian@airs.com>
Sun, 8 Jan 1995 21:17:56 +0000 (21:17 +0000)
values when GPOPT is not defined.

gas/ChangeLog
gas/config/tc-mips.c

index 29cd584..7e0f396 100644 (file)
@@ -1,3 +1,8 @@
+Sun Jan  8 16:14:19 1995  Ian Lance Taylor  <ian@tweedledumb.cygnus.com>
+
+       * config/tc-mips.c (mips_ip): Fix handling of floating point
+       values when GPOPT is not defined.
+
 Fri Jan  6 16:59:41 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
 
        * gasp.c: Include string.h.  Put config.h before other includes.
index f377859..9a5df7b 100644 (file)
@@ -4598,11 +4598,11 @@ mips_ip (str, ip)
 
                if (*args == 'f'
                    || (*args == 'l'
-                       && (mips_pic == EMBEDDED_PIC
 #ifdef GPOPT
-                           || g_switch_value < 4
+                       && (mips_pic == EMBEDDED_PIC
+                           || g_switch_value < 4)
 #endif
-                           )))
+                       ))
                  {
                    imm_expr.X_op = O_constant;
                    if (byte_order == LITTLE_ENDIAN)
@@ -4630,10 +4630,10 @@ mips_ip (str, ip)
                      {
                      default: /* unused default case avoids warnings.  */
                      case 'L':
-                       newname = ".lit8";
+                       newname = RDATA_SECTION_NAME;
 #ifdef GPOPT
-                       if (g_switch_value < 8)
-                         newname = RDATA_SECTION_NAME;
+                       if (g_switch_value >= 8)
+                         newname = ".lit8";
 #endif
                        break;
                      case 'F':