SHA256
1
0
forked from pool/binutils
binutils/0002-S-390-Add-check-for-length-field-operand.patch
Michael Matz d30ea5816d - Add patches for s390 z13 support (backports from
to-be 2.26):
  0001-S-390-Add-support-for-IBM-z13.patch
  0002-S-390-Add-check-for-length-field-operand.patch
  0003-S-390-Add-more-IBM-z13-instructions.patch
  0004-S-390-Fixes-for-z13-instructions.patch
  0005-S-390-z13-use-GNU-attribute-to-indicate-vector-ABI.patch .

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=189
2015-07-09 14:43:01 +00:00

35 lines
938 B
Diff

From ae2046d38892cc42febb799141b2457f4e519fd0 Mon Sep 17 00:00:00 2001
From: Andreas Krebbel <krebbel@linux.vnet.ibm.com>
Date: Tue, 10 Mar 2015 12:41:57 +0100
Subject: [PATCH 2/5] S/390: Add check for length field operand
gas/
2015-03-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* gas/config/tc-s390.c (md_gather_operands): Check for valid
length field operands.
# Conflicts:
# gas/ChangeLog
---
gas/config/tc-s390.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gas/config/tc-s390.c b/gas/config/tc-s390.c
index 052baf1..a8394c5 100644
--- a/gas/config/tc-s390.c
+++ b/gas/config/tc-s390.c
@@ -1216,6 +1216,9 @@ md_gather_operands (char *str,
}
else
{
+ if ((operand->flags & S390_OPERAND_LENGTH)
+ && ex.X_op != O_constant)
+ as_fatal (_("invalid length field specified"));
if ((operand->flags & S390_OPERAND_INDEX)
&& ex.X_add_number == 0
&& warn_areg_zero)
--
2.3.0