summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-01-22 20:33:37 +0100
committerThomas Martitz <kugel@rockbox.org>2012-01-22 20:33:37 +0100
commit74c87465950d7373fae090a575332fa66d9b7047 (patch)
treeeae4691db07b42eab1e17be020e022c60a6d9f3a
parent9f4ee795425624ed56beb6c8133d5532b7344b7b (diff)
downloadrockbox-74c87465950d7373fae090a575332fa66d9b7047.tar.gz
rockbox-74c87465950d7373fae090a575332fa66d9b7047.zip
Don't filter out -O for sims.
It's not useful as it means we test code at a different -O level than we run it at. Fixes build errors caused by gcc 4.3. Fix some warnings the change would introduce as well. Change-Id: Id9ff31dc08694b0bfc5272f5e690c41f7918ed22
-rw-r--r--apps/codecs/wma.c2
-rw-r--r--apps/plugin.h14
-rw-r--r--apps/plugins/doom/z_zone.c2
-rwxr-xr-xtools/configure4
4 files changed, 10 insertions, 12 deletions
diff --git a/apps/codecs/wma.c b/apps/codecs/wma.c
index 8986531744..361fee6175 100644
--- a/apps/codecs/wma.c
+++ b/apps/codecs/wma.c
@@ -46,7 +46,7 @@ enum codec_status codec_run(void)
46 asf_waveformatex_t wfx; 46 asf_waveformatex_t wfx;
47 size_t resume_offset; 47 size_t resume_offset;
48 int i; 48 int i;
49 int wmares; 49 int wmares = 0;
50 int res = 0; 50 int res = 0;
51 uint8_t* audiobuf; 51 uint8_t* audiobuf;
52 int audiobufsize; 52 int audiobufsize;
diff --git a/apps/plugin.h b/apps/plugin.h
index 918206ab69..d83f6f4845 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -37,6 +37,14 @@
37#include "string-extra.h" 37#include "string-extra.h"
38#include "gcc_extensions.h" 38#include "gcc_extensions.h"
39 39
40
41
42/* on some platforms strcmp() seems to be a tricky define which
43 * breaks if we write down strcmp's prototype */
44#undef strcmp
45#undef strncmp
46#undef strchr
47
40char* strncpy(char *, const char *, size_t); 48char* strncpy(char *, const char *, size_t);
41void* plugin_get_buffer(size_t *buffer_size); 49void* plugin_get_buffer(size_t *buffer_size);
42 50
@@ -119,12 +127,6 @@ void* plugin_get_buffer(size_t *buffer_size);
119#endif 127#endif
120 128
121 129
122/* on some platforms strcmp() seems to be a tricky define which
123 * breaks if we write down strcmp's prototype */
124#undef strcmp
125#undef strncmp
126#undef strchr
127
128#ifdef PLUGIN 130#ifdef PLUGIN
129 131
130#if defined(DEBUG) || defined(SIMULATOR) 132#if defined(DEBUG) || defined(SIMULATOR)
diff --git a/apps/plugins/doom/z_zone.c b/apps/plugins/doom/z_zone.c
index adf17a7ee0..df00d6a9d7 100644
--- a/apps/plugins/doom/z_zone.c
+++ b/apps/plugins/doom/z_zone.c
@@ -248,7 +248,7 @@ void Z_Init(void)
248 248
249 zonebase_size=size; 249 zonebase_size=size;
250 250
251 printf("Z_Init: Allocated %uldKb zone memory\n", (long unsigned)(size >> 10)); 251 printf("Z_Init: Allocated %luKb zone memory\n", (long unsigned)(size >> 10));
252 252
253 // Align on cache boundary 253 // Align on cache boundary
254 254
diff --git a/tools/configure b/tools/configure
index ac2c66a6b1..795966c9eb 100755
--- a/tools/configure
+++ b/tools/configure
@@ -227,10 +227,6 @@ simcc () {
227 app_type=$1 227 app_type=$1
228 winbuild="" 228 winbuild=""
229 GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` 229 GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//`
230 if [ "$app_type" != "sdl-app" ]; then
231 # Disable optimizations for non-app builds
232 GCCOPTS=`echo $GCCOPTS | sed -e s/-O//`
233 fi
234 230
235 GCCOPTS="$GCCOPTS -fno-builtin -g" 231 GCCOPTS="$GCCOPTS -fno-builtin -g"
236 GCCOPTIMIZE='' 232 GCCOPTIMIZE=''