aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2004-12-16 18:23:24 +0000
committerJoern Rennecke <joern.rennecke@embecosm.com>2004-12-16 18:23:24 +0000
commit7768d94ad6ca72735ba41e5fc79569414440d285 (patch)
tree02191fe87b526a10f488c12682c3efff621c955c /gas
parent02292fc117d6a6446939e436a1670b2a1f2dbc70 (diff)
downloadgdb-7768d94ad6ca72735ba41e5fc79569414440d285.zip
gdb-7768d94ad6ca72735ba41e5fc79569414440d285.tar.gz
gdb-7768d94ad6ca72735ba41e5fc79569414440d285.tar.bz2
2004-12-16 Andrew Stubbs <andrew.stubbs@st.com>
* config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather than just ignoring bad code.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-sh64.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gas/config/tc-sh64.c b/gas/config/tc-sh64.c
index fe82b46..6ac4967 100644
--- a/gas/config/tc-sh64.c
+++ b/gas/config/tc-sh64.c
@@ -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;