From 5007bbc009ccc8c8e64fac5f5540c85573d4ae80 Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Wed, 8 May 2013 04:50:56 +0800 Subject: Use uintptr_t when converting integer from/to pointer Perviously we use uint32_t for this, but this doesn't compile for 64-bit environment (and likely doesn't for 16-bit either.) Use uintptr_t so that we don't get size mismatch errors. BUG=chrome-os-partner:19257 TEST=Run host emulated tests BRANCH=None Change-Id: I3cd66a745fa171c41a5f142514284ec106586acb Signed-off-by: Vic Yang Reviewed-on: https://gerrit.chromium.org/gerrit/50358 Reviewed-by: Vincent Palatin --- Makefile.toolchain | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Makefile.toolchain') diff --git a/Makefile.toolchain b/Makefile.toolchain index 0ec8365d8f..82119e5462 100644 --- a/Makefile.toolchain +++ b/Makefile.toolchain @@ -50,6 +50,4 @@ BUILD_CFLAGS= $(LIBFTDI_CFLAGS) $(CPPFLAGS) -O3 $(CFLAGS_DEBUG) $(CFLAGS_WARN) HOST_CFLAGS=$(CPPFLAGS) -O3 $(CFLAGS_DEBUG) $(CFLAGS_WARN) LDFLAGS=-nostdlib -X BUILD_LDFLAGS=$(LIBFTDI_LDLIBS) -# For EC emulation on host environment, we need to force 32-bit binary. -# TODO: Fix this. See crosbug.com/p/19257 -HOST_TEST_LDFLAGS=-T core/host/host_exe.lds -m32 -lrt -pthread +HOST_TEST_LDFLAGS=-T core/host/host_exe.lds -lrt -pthread -- cgit v1.2.1