]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2004-12-16 Andrew Stubbs <andrew.stubbs@st.com>
authorJoern Rennecke <joern.rennecke@embecosm.com>
Thu, 16 Dec 2004 18:23:24 +0000 (18:23 +0000)
committerJoern Rennecke <joern.rennecke@embecosm.com>
Thu, 16 Dec 2004 18:23:24 +0000 (18:23 +0000)
* config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather
than just ignoring bad code.

gas/config/tc-sh64.c

index fe82b4632cc5115d9d58c9fe9ae5d32c82b20cd2..6ac4967e022866380675233fe15d3106f18c917d 100644 (file)
@@ -2677,7 +2677,10 @@ shmedia_build_Mytes (shmedia_opcode_info *opcode,
 
            /* Don't allow complex expressions here.  */
            if (opjp->immediate.X_op_symbol != NULL)
-             return 0;
+             {
+               as_bad(_("invalid operand: expression in PT target"));
+               return 0;
+             }
 
            if (opjp->reloctype == BFD_RELOC_32_PLT_PCREL)
              init = max = min = SH64PCRELPLT;
@@ -2714,7 +2717,10 @@ shmedia_build_Mytes (shmedia_opcode_info *opcode,
 
            /* Don't allow complex expressions here.  */
            if (opjp->immediate.X_op_symbol != NULL)
-             return 0;
+             {
+               as_bad(_("invalid operand: expression in PT target"));
+               return 0;
+             }
 
            if (opjp->reloctype == BFD_RELOC_32_PLT_PCREL)
              init = max = min = SH64PCRELPLT;