* config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
authorAlan Modra <amodra@gmail.com>
Thu, 6 Feb 2003 01:24:17 +0000 (01:24 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 6 Feb 2003 01:24:17 +0000 (01:24 +0000)
x@toc+off works.

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

index 82d1072bdb6baba0ce206a4f807dbc57a67a7e23..58f3165fbf09de3ac924b1ebae40902b7916c829 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-06  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
+       x@toc+off works.
+
 2003-02-05  Alan Modra  <amodra@bigpond.net.au>
 
        * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
index 56af40abfbdc8ea8633a61d94f7c63391987f821..293627e3d847c87dadc56dba8a66411adb6f1c3d 100644 (file)
@@ -1580,31 +1580,29 @@ ppc_elf_suffix (str_p, exp_p)
          }
 
        if (!ppc_obj64)
+         if (exp_p->X_add_number != 0
+             && (reloc == (int) BFD_RELOC_16_GOTOFF
+                 || reloc == (int) BFD_RELOC_LO16_GOTOFF
+                 || reloc == (int) BFD_RELOC_HI16_GOTOFF
+                 || reloc == (int) BFD_RELOC_HI16_S_GOTOFF))
+           as_warn (_("identifier+constant@got means identifier@got+constant"));
+
+       /* Now check for identifier@suffix+constant.  */
+       if (*str == '-' || *str == '+')
          {
-           if (exp_p->X_add_number != 0
-               && (reloc == (int) BFD_RELOC_16_GOTOFF
-                   || reloc == (int) BFD_RELOC_LO16_GOTOFF
-                   || reloc == (int) BFD_RELOC_HI16_GOTOFF
-                   || reloc == (int) BFD_RELOC_HI16_S_GOTOFF))
-             as_warn (_("identifier+constant@got means identifier@got+constant"));
-
-           /* Now check for identifier@suffix+constant.  */
-           if (*str == '-' || *str == '+')
+           char *orig_line = input_line_pointer;
+           expressionS new_exp;
+
+           input_line_pointer = str;
+           expression (&new_exp);
+           if (new_exp.X_op == O_constant)
              {
-               char *orig_line = input_line_pointer;
-               expressionS new_exp;
-
-               input_line_pointer = str;
-               expression (&new_exp);
-               if (new_exp.X_op == O_constant)
-                 {
-                   exp_p->X_add_number += new_exp.X_add_number;
-                   str = input_line_pointer;
-                 }
-
-               if (&input_line_pointer != str_p)
-                 input_line_pointer = orig_line;
+               exp_p->X_add_number += new_exp.X_add_number;
+               str = input_line_pointer;
              }
+
+           if (&input_line_pointer != str_p)
+             input_line_pointer = orig_line;
          }
        *str_p = str;
 
This page took 0.03201 seconds and 4 git commands to generate.