1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Thomas Martitz 2012-01-22 20:33:37 +01:00
parent 9f4ee79542
commit 74c8746595
4 changed files with 10 additions and 12 deletions

View file

@ -46,7 +46,7 @@ enum codec_status codec_run(void)
asf_waveformatex_t wfx; asf_waveformatex_t wfx;
size_t resume_offset; size_t resume_offset;
int i; int i;
int wmares; int wmares = 0;
int res = 0; int res = 0;
uint8_t* audiobuf; uint8_t* audiobuf;
int audiobufsize; int audiobufsize;

View file

@ -37,6 +37,14 @@
#include "string-extra.h" #include "string-extra.h"
#include "gcc_extensions.h" #include "gcc_extensions.h"
/* on some platforms strcmp() seems to be a tricky define which
* breaks if we write down strcmp's prototype */
#undef strcmp
#undef strncmp
#undef strchr
char* strncpy(char *, const char *, size_t); char* strncpy(char *, const char *, size_t);
void* plugin_get_buffer(size_t *buffer_size); void* plugin_get_buffer(size_t *buffer_size);
@ -119,12 +127,6 @@ void* plugin_get_buffer(size_t *buffer_size);
#endif #endif
/* on some platforms strcmp() seems to be a tricky define which
* breaks if we write down strcmp's prototype */
#undef strcmp
#undef strncmp
#undef strchr
#ifdef PLUGIN #ifdef PLUGIN
#if defined(DEBUG) || defined(SIMULATOR) #if defined(DEBUG) || defined(SIMULATOR)

View file

@ -248,7 +248,7 @@ void Z_Init(void)
zonebase_size=size; zonebase_size=size;
printf("Z_Init: Allocated %uldKb zone memory\n", (long unsigned)(size >> 10)); printf("Z_Init: Allocated %luKb zone memory\n", (long unsigned)(size >> 10));
// Align on cache boundary // Align on cache boundary

4
tools/configure vendored
View file

@ -227,10 +227,6 @@ simcc () {
app_type=$1 app_type=$1
winbuild="" winbuild=""
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//`
if [ "$app_type" != "sdl-app" ]; then
# Disable optimizations for non-app builds
GCCOPTS=`echo $GCCOPTS | sed -e s/-O//`
fi
GCCOPTS="$GCCOPTS -fno-builtin -g" GCCOPTS="$GCCOPTS -fno-builtin -g"
GCCOPTIMIZE='' GCCOPTIMIZE=''