diff options
author | 2021-05-13 20:41:12 +0100 | |
---|---|---|
committer | 2021-05-13 20:41:41 +0100 | |
commit | fe517dd9524963f017c8d7ff504a3a0a54ff574d (patch) | |
tree | ff62b747b834458c259338e5f701704c9781ac82 /games-emulation/zsnes/files | |
parent | www-servers/gunicorn: Remove old (diff) | |
download | gentoo-fe517dd9524963f017c8d7ff504a3a0a54ff574d.tar.gz gentoo-fe517dd9524963f017c8d7ff504a3a0a54ff574d.tar.bz2 gentoo-fe517dd9524963f017c8d7ff504a3a0a54ff574d.zip |
games-emulation/zsnes: add more stack realignment annotations
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'games-emulation/zsnes/files')
-rw-r--r-- | games-emulation/zsnes/files/zsnes-1.51-stack-align-v4.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/games-emulation/zsnes/files/zsnes-1.51-stack-align-v4.patch b/games-emulation/zsnes/files/zsnes-1.51-stack-align-v4.patch new file mode 100644 index 000000000000..7e015d53ebd9 --- /dev/null +++ b/games-emulation/zsnes/files/zsnes-1.51-stack-align-v4.patch @@ -0,0 +1,45 @@ +--- a/linux/sdllink.c ++++ b/linux/sdllink.c +@@ -1170,7 +1170,7 @@ void sem_sleep_die(void) + } + } + +-void UpdateVFrame(void) ++void __attribute__((force_align_arg_pointer)) UpdateVFrame(void) + { + //Quick fix for GUI CPU usage + if (GUIOn || GUIOn2 || EMUPause) { usleep(6000); } +@@ -1237,16 +1237,16 @@ void UnloadSDL() + SDL_Quit(); + } + +-int GetMouseX(void) ++int __attribute__((force_align_arg_pointer)) GetMouseX(void) + { + return ((int) MouseX); + } +-int GetMouseY(void) ++int __attribute__((force_align_arg_pointer)) GetMouseY(void) + { + return ((int) MouseY); + } + +-int GetMouseMoveX(void) ++int __attribute__((force_align_arg_pointer)) GetMouseMoveX(void) + { + // InputRead(); + //SDL_GetRelativeMouseState(&MouseMove2X, NULL); +@@ -1254,11 +1254,11 @@ int GetMouseMoveX(void) + return (MouseMove2X); + } + +-int GetMouseMoveY(void) ++int __attribute__((force_align_arg_pointer)) GetMouseMoveY(void) + { + return (MouseMove2Y); + } +-int GetMouseButton(void) ++int __attribute__((force_align_arg_pointer)) GetMouseButton(void) + { + return ((int) MouseButton); + } |