aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-04-02 00:35:51 -0800
committerRichard Henderson <rth@gcc.gnu.org>2002-04-02 00:35:51 -0800
commitc8b947688ff5b2a16d7b79a8c8cc1170cc0c227e (patch)
tree1362491ee061f59949150f7ad16a80817b707580 /gcc/config
parent9cb88bc20c84072e28f9a15dc91ba0505821ca4d (diff)
downloadgcc-c8b947688ff5b2a16d7b79a8c8cc1170cc0c227e.zip
gcc-c8b947688ff5b2a16d7b79a8c8cc1170cc0c227e.tar.gz
gcc-c8b947688ff5b2a16d7b79a8c8cc1170cc0c227e.tar.bz2
re PR rtl-optimization/190 (Optimization bug for x86 target)
PR opt/190 * final.c (this_is_asm_operands): Export. * output.h (this_is_asm_operands): Declare. * config/i386/i386.c (print_operand): Error odd asm operands. From-SVN: r51741
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/i386/i386.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index f36495e..adb8048 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -5995,6 +5995,8 @@ print_operand (file, x, code)
else if (CONSTANT_ADDRESS_P (x) && code =='P'
&& GET_CODE (x) != CONST_INT)
output_addr_const (file, x);
+ else if (this_is_asm_operands && ! address_operand (x, VOIDmode))
+ output_operand_lossage ("invalid constraints for operand");
else
output_address (x);
}