From: Shamus Hammons Date: Thu, 14 Feb 2013 19:22:54 +0000 (-0600) Subject: Added optimization flags to makefile (how long was THAT missing?) X-Git-Tag: 1.3.0~19 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=commitdiff_plain;h=adc2f2df316f46cc70f8939f30c5f39ce6470a20 Added optimization flags to makefile (how long was THAT missing?) --- diff --git a/makefile b/makefile index e817900..5e377d3 100644 --- a/makefile +++ b/makefile @@ -9,7 +9,7 @@ rm = /bin/rm -f CC = $(CROSS)gcc HOSTCC = gcc -CFLAGS = -g -D__GCCUNIX__ -I. +CFLAGS = -g -D__GCCUNIX__ -I. -O2 SRCS = amode.c debug.c direct.c eagen.c error.c expr.c listing.c mach.c macro.c mark.c object.c procln.c risca.c rmac.c sect.c symbol.c token.c diff --git a/risca.c b/risca.c index 4d0aa29..f5821f5 100644 --- a/risca.c +++ b/risca.c @@ -768,16 +768,7 @@ int GenerateRISCCode(int state) } else { -#if 0 - val = eval; - - if (orgactive) - reg2 = ((int)(val - (orgaddr + 2))) / 2; - else - reg2 = ((int)(val - (sloc + 2))) / 2; -#else reg2 = ((int)(eval - ((orgactive ? orgaddr : sloc) + 2))) / 2; -#endif if ((reg2 < -16) || (reg2 > 15)) error("PC relative overflow");