Bug 1349064 - Wrap std::regex_error for GCC. r=glandium

This commit is contained in:
Jeff Gilbert 2019-02-20 14:16:30 -08:00
parent eac3025b28
commit ec5431c0a2
2 changed files with 10 additions and 0 deletions

View File

@ -132,6 +132,14 @@ MOZ_THROW_NORETURN MOZ_THROW_EXPORT MOZ_THROW_INLINE void __throw_system_error(
mozalloc_abort(error);
}
MOZ_THROW_NORETURN MOZ_EXPORT MOZ_ALWAYS_INLINE void __throw_regex_error(
int err) {
char error[128];
snprintf(error, sizeof(error) - 1, "fatal: STL threw regex_error: %s (%d)",
strerror(err), err);
mozalloc_abort(error);
}
} // namespace std
#undef MOZ_THROW_NORETURN

View File

@ -25,3 +25,5 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
]
NO_PGO = True
DisableStlWrapping()