]> Shamusworld >> Repos - rmac/blobdiff - parmode.h
Fix for issue #179: Don't touch o10 when +/~Oall is called. Made the o10 error messag...
[rmac] / parmode.h
index a0cc8de0ec6b19f8a02247437678d7a32fe17001..8aed03ca35e9cf6566a2efe691096fcfa06d6f27 100644 (file)
--- a/parmode.h
+++ b/parmode.h
@@ -1162,16 +1162,15 @@ CHK_FOR_DISPn:
                        // expr[.L]
                        AMn = ABSL;
 
-                       // When PC relative is enforced, check for any symbols that aren't
-                       // EQU'd, in this case it's an illegal mode
-                       if ((CHECK_OPTS(OPT_PC_RELATIVE)) && (AnEXATTR & REFERENCED) && (AnEXATTR & DEFINED) && (!(AnEXATTR & EQUATED)))
-                               return error("relocation not allowed");
-
                        // .L is forced here
                        if (*tok == DOTL)
                        {
+                               // When PC relative is enforced, check for any symbols that aren't
+                               // EQU'd, in this case it's an illegal mode
+                               if ((CHECK_OPTS(OPT_PC_RELATIVE)) && (AnEXATTR & (DEFINED | REFERENCED | EQUATED) == (DEFINED | REFERENCED)))
+                                       return error("relocation not allowed when o10 is enabled9");
+
                                tok++;
-                               AMn = ABSL;
                        }
                        else
                        {