diff options
author | Rickard Green <[email protected]> | 2010-02-08 14:04:16 +0000 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2010-02-08 15:54:01 +0100 |
commit | a4e2377c72f2e6f018792dff10ed967f08cfac5f (patch) | |
tree | 2d5e2debd474214220c59a7596934ee26ed64e07 /erts/emulator/Makefile.in | |
parent | 2db75179169db7ae0126f4d12d6f8a16fded84eb (diff) | |
download | otp-a4e2377c72f2e6f018792dff10ed967f08cfac5f.tar.gz otp-a4e2377c72f2e6f018792dff10ed967f08cfac5f.tar.bz2 otp-a4e2377c72f2e6f018792dff10ed967f08cfac5f.zip |
OTP-8412 Fixed numerous compiler warnings generated by gcc 4.4.1 and
tile-cc 2.0.1.78377 when compiling the runtime system.
Diffstat (limited to 'erts/emulator/Makefile.in')
-rw-r--r-- | erts/emulator/Makefile.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/erts/emulator/Makefile.in b/erts/emulator/Makefile.in index bc846d1e3d..c6adf35cef 100644 --- a/erts/emulator/Makefile.in +++ b/erts/emulator/Makefile.in @@ -606,7 +606,7 @@ endif ifneq ($(filter tile-%,$(TARGET)),) $(OBJDIR)/beam_emu.o: beam/beam_emu.c - $(CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) \ + $(CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) \ -OPT:Olimit=0 -WOPT:lpre=off:spre=off:epre=off \ $(INCLUDES) -c $< -o $@ endif @@ -1086,8 +1086,16 @@ DEP_FLAGS=-MM $(subst -O2,,$(CFLAGS)) $(INCLUDES) -I../etc/win32 -Idrivers/comm # SYS_SRC=$(subst sys/common/erl_poll.c,,$(ALL_SYS_SRC)) else # !win32 + +ifeq ($(findstring tile,$(TARGET)),tile) +# tile-gcc doesn't like -MG +MG_FLAG= +else +MG_FLAG=-MG +endif + DEP_CC=$(CC) -DEP_FLAGS=-MM -MG $(CFLAGS) $(INCLUDES) -Idrivers/common +DEP_FLAGS=-MM $(MG_FLAG) $(CFLAGS) $(INCLUDES) -Idrivers/common SYS_SRC=$(ALL_SYS_SRC) endif |