diff options
| author | Paul Eggert | 2019-04-29 12:27:04 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-04-29 12:27:46 -0700 |
| commit | 6ae0a50bc881e7b710a828ac89b5d1f834edac85 (patch) | |
| tree | 3587e4551f4cd0e8a5554b275ab22d48aadf67fc /src | |
| parent | 7c7ee1dd52239ecc3665b7542bd5e0ebc9b74795 (diff) | |
| download | emacs-6ae0a50bc881e7b710a828ac89b5d1f834edac85.tar.gz emacs-6ae0a50bc881e7b710a828ac89b5d1f834edac85.zip | |
Disable __attribute__ ((cold)) on MinGW
* src/conf_post.h (ATTRIBUTE_COLD) [__MINGW32__]:
Define to empty on this platform.
Diffstat (limited to 'src')
| -rw-r--r-- | src/conf_post.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/conf_post.h b/src/conf_post.h index 7699d2c95bc..4af1ba9331f 100644 --- a/src/conf_post.h +++ b/src/conf_post.h | |||
| @@ -59,7 +59,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 59 | into the same 1-, 2-, or 4-byte allocation unit in the MinGW | 59 | into the same 1-, 2-, or 4-byte allocation unit in the MinGW |
| 60 | builds. It was also needed to port to pre-C99 compilers, although | 60 | builds. It was also needed to port to pre-C99 compilers, although |
| 61 | we don't care about that any more. */ | 61 | we don't care about that any more. */ |
| 62 | #if NS_IMPL_GNUSTEP || defined(__MINGW32__) | 62 | #if NS_IMPL_GNUSTEP || defined __MINGW32__ |
| 63 | typedef unsigned int bool_bf; | 63 | typedef unsigned int bool_bf; |
| 64 | #else | 64 | #else |
| 65 | typedef bool bool_bf; | 65 | typedef bool bool_bf; |
| @@ -225,7 +225,9 @@ extern void _DebPrint (const char *fmt, ...); | |||
| 225 | extern char *emacs_getenv_TZ (void); | 225 | extern char *emacs_getenv_TZ (void); |
| 226 | extern int emacs_setenv_TZ (char const *); | 226 | extern int emacs_setenv_TZ (char const *); |
| 227 | 227 | ||
| 228 | #if __has_attribute (cold) | 228 | /* Avoid __attribute__ ((cold)) on MinGW; see thread starting at |
| 229 | <https://lists.gnu.org/r/emacs-devel/2019-04/msg01152.html>. */ | ||
| 230 | #if __has_attribute (cold) && !defined __MINGW32__ | ||
| 229 | # define ATTRIBUTE_COLD __attribute__ ((cold)) | 231 | # define ATTRIBUTE_COLD __attribute__ ((cold)) |
| 230 | #else | 232 | #else |
| 231 | # define ATTRIBUTE_COLD | 233 | # define ATTRIBUTE_COLD |