From 77c94e75b646415b3f468e316384c7b6e6af1dce Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Sun, 16 Sep 2007 19:24:07 +0000 Subject: Merge from ragge's tree: Needed an extra check for leal to avoid --. Reported by otto. --- usr.bin/pcc/arch/x86/local2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/pcc/arch/x86/local2.c b/usr.bin/pcc/arch/x86/local2.c index 4da1a26e0cd..fc96a741f6a 100644 --- a/usr.bin/pcc/arch/x86/local2.c +++ b/usr.bin/pcc/arch/x86/local2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: local2.c,v 1.2 2007/09/15 22:04:38 ray Exp $ */ +/* $Id: local2.c,v 1.3 2007/09/16 19:24:06 otto Exp $ */ /* * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). * All rights reserved. @@ -1043,7 +1043,8 @@ special(NODE *p, int shape) return SRREG; break; case SPCON: - if (o != ICON || p->n_name[0] || p->n_lval < 0) + if (o != ICON || p->n_name[0] || + p->n_lval < 0 || p->n_lval > 0x7fffffff) break; return SRDIR; } -- cgit v1.2.3