Comments (2)
it's a know issue , GCC6.0 change default behavior .
libretro/mame2010-libretro@0f020ca
https://gcc.gnu.org/gcc-6/porting_to.html
When optimizing, GCC now assumes the this pointer can never be null, which is guaranteed by the language rules. Invalid programs which assume it is OK to invoke a member function through a null pointer (possibly relying on checks like this != NULL) may crash or otherwise fail at run time if null pointer checks are optimized away. With the -Wnull-dereference option the compiler tries to warn when it detects such invalid code.
If the program cannot be fixed to remove the undefined behavior then the option -fno-delete-null-pointer-checks can be used to disable this optimization. That option also disables other optimizations involving pointers, not only those involving this.
So to be short fix the core to remove the undefined behavior (best way as also stated Alcaro )
or (bad way) add -fno-delete-null-pointer-checks as we did in 2010 as it is time consuming to fix old core.
from mame2015-libretro.
It's working now!
from mame2015-libretro.
Related Issues (20)
- src/emu/drawgfxm.h:403:17: 错误: ‘elements’在此作用域中尚未声明 assert(code < elements()); HOT 1
- long compile times
- stvbios roms hang retroarch with mame armhf core HOT 3
- (buildbot) armhf linux build failure HOT 6
- Remove hack and have a proper fix for segfaults. HOT 7
- Compiling for wii
- Compile for ios 7 ? HOT 1
- hi score possible?
- stack smashing detected HOT 2
- VS. Hogan's Alley doesn't detect aim! Can't start the game!
- Building instruction to get the same core as released
- MAME 2015 crashes RetroArch when trying to load a game
- XML dat naming conflict
- [WiiU] [REQ] WiiU Core?
- Lightgun improvements for gun-like devices (e.g., Sinden)? HOT 1
- UI_CANCEL shouldn't unload current game/show game selection screen
- Use python3 for build (not python2)
- Lakka Failure HOT 1
- iOS Retroarch
- Builds for osx-arm64 are failing in the libretro buildbot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mame2015-libretro.