カテゴリ | 重要度 | ステータス | 解決状況 | 登録日時 | 最終更新 |
---|---|---|---|---|---|
![]() | 低 | 解決済み | 修正済み | 2008-12-19 02:11 | 2008-12-25 10:40 |
テスター | qmc2 | 担当者 | aaron | ソース | |
バージョン | 0.128u6 | 発生バージョン | 修正バージョン | 0.129 | |
フラグ | |||||
セット | |||||
セット詳細 | |||||
概 要 | openSUSE 11.1/gcc 4.3.2でOPTIMIZE=3設定時のコンパイルエラー。 | ||||
詳 細 | On openSUSE 11.1 (32-bit) I get the following error (warning, treated as an error) with OPTIMIZE=3: ... Compiling src/emu/input.c... cc1: warnings being treated as errors src/emu/input.c: In function ‘input_device_add’: src/emu/input.c:1664: error: array subscript is below array bounds make: *** [obj/sdl/mame/emu/input.o] Error 1 It works with OPTIMIZE=0, though. Quoting couriersud: (see http://www.bannister.org/forums/ubbthreads.php?ubb=showflat&Number=46957&page=2) "Here is the offending code: int symmetric = (colnum >= 5); UINT8 val = map->map[rownum][symmetric ? (8 - colnum) : (colnum - 1)]; And it is not a compiler bug. For colnum==0 val=map->map[rownum][0 ? 8 : -1]." | ||||
再現手順 | Simply use a standard compile for 32-bit (no make options) - not sure about 64-bit builds, though. The 64-bit build worked fine on openSUSE 11.0 at least (gcc 4.3.1). | ||||
追加情報 | GCC version: $ gcc -v Using built-in specs. Target: i586-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.3 --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=i586-suse-linux Thread model: posix gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) | ||||
添付ファイル |