]> Devi Nivas Git - cs3210-lab1.git/commitdiff
Allow gas to use / as divide (instead of comment)
authorFrans Kaashoek <kaashoek@202.sub-75-194-25.myvzw.com>
Tue, 9 Aug 2011 20:09:15 +0000 (16:09 -0400)
committerFrans Kaashoek <kaashoek@202.sub-75-194-25.myvzw.com>
Tue, 9 Aug 2011 20:09:15 +0000 (16:09 -0400)
Maybe not necessary, but don't want to waste time figuring this out again

Makefile

index d52c97666fe46a6db615cc956f9162dd4fd670e0..7fbd99e40b498b5ccc93f561855b570525befb02 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -74,7 +74,7 @@ OBJCOPY = $(TOOLPREFIX)objcopy
 OBJDUMP = $(TOOLPREFIX)objdump
 CFLAGS = -fno-pic -static -fno-builtin -fno-strict-aliasing -O2 -Wall -MD -ggdb -m32 -Werror -fno-omit-frame-pointer
 CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector)
-ASFLAGS = -m32 -gdwarf-2
+ASFLAGS = -m32 -gdwarf-2 -Wa,-divide
 # FreeBSD ld wants ``elf_i386_fbsd''
 LDFLAGS += -m $(shell $(LD) -V | grep elf_i386 2>/dev/null)