CI updates
This commit is contained in:
+2
-2
@@ -135,7 +135,7 @@ struct BEPolicy final
|
||||
S u32_compare_signed(const void *a, const void *b) C { return be32_compare_signed(a, b); }
|
||||
S u64_compare_signed(const void *a, const void *b) C { return be64_compare_signed(a, b); }
|
||||
|
||||
static void compileTimeAssertions() {
|
||||
static void compileTimeAssertions() noexcept {
|
||||
COMPILE_TIME_ASSERT(sizeof(U16) == 2)
|
||||
COMPILE_TIME_ASSERT(sizeof(U32) == 4)
|
||||
COMPILE_TIME_ASSERT(sizeof(U64) == 8)
|
||||
@@ -194,7 +194,7 @@ struct LEPolicy final
|
||||
S u32_compare_signed(const void *a, const void *b) C { return le32_compare_signed(a, b); }
|
||||
S u64_compare_signed(const void *a, const void *b) C { return le64_compare_signed(a, b); }
|
||||
|
||||
static void compileTimeAssertions() {
|
||||
static void compileTimeAssertions() noexcept {
|
||||
COMPILE_TIME_ASSERT(sizeof(U16) == 2)
|
||||
COMPILE_TIME_ASSERT(sizeof(U32) == 4)
|
||||
COMPILE_TIME_ASSERT(sizeof(U64) == 8)
|
||||
|
||||
@@ -262,7 +262,7 @@ ASSERT_SAME_TYPE(short, upx_int16_t);
|
||||
ASSERT_SAME_TYPE(unsigned short, upx_uint16_t);
|
||||
ASSERT_SAME_TYPE(int, upx_int32_t);
|
||||
ASSERT_SAME_TYPE(unsigned, upx_uint32_t);
|
||||
#if (__SIZEOF_LONG_LONG__ + 0 < 128)
|
||||
#if (__SIZEOF_LONG_LONG__ + 0 < 16)
|
||||
ASSERT_SAME_TYPE(long long, upx_int64_t);
|
||||
ASSERT_SAME_TYPE(unsigned long long, upx_uint64_t);
|
||||
#endif
|
||||
|
||||
+4
-4
@@ -119,7 +119,7 @@ static_assert((char) (-1) == 255); // -funsigned-char
|
||||
#define upx_std_atomic(Type) Type
|
||||
#define upx_std_once_flag upx_std_atomic(size_t)
|
||||
template <class NoexceptCallable>
|
||||
inline void upx_std_call_once(upx_std_once_flag &flag, NoexceptCallable &&f) {
|
||||
inline void upx_std_call_once(upx_std_once_flag &flag, NoexceptCallable &&f) noexcept {
|
||||
if (__acc_unlikely(!flag)) {
|
||||
flag = 1;
|
||||
f();
|
||||
@@ -809,7 +809,7 @@ extern const char *progname;
|
||||
bool main_set_exit_code(int ec);
|
||||
int main_get_options(int argc, char **argv);
|
||||
void main_get_envoptions();
|
||||
int upx_main(int argc, char *argv[]) may_throw;
|
||||
noinline int upx_main(int argc, char *argv[]) may_throw;
|
||||
|
||||
// msg.cpp
|
||||
void printSetNl(int need_nl) noexcept;
|
||||
@@ -826,8 +826,8 @@ void infoHeader();
|
||||
void infoWriting(const char *what, upx_int64_t size);
|
||||
|
||||
// work.cpp
|
||||
void do_one_file(const char *iname, char *oname) may_throw;
|
||||
int do_files(int i, int argc, char *argv[]) may_throw;
|
||||
noinline void do_one_file(const char *iname, char *oname) may_throw;
|
||||
noinline int do_files(int i, int argc, char *argv[]) may_throw;
|
||||
|
||||
// help.cpp
|
||||
extern const char gitrev[];
|
||||
|
||||
+3
-3
@@ -857,9 +857,9 @@ void Packer::relocateLoader() {
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
// void Packer::compressWithFilters():
|
||||
// Try compression with several methods and filters, choose the best
|
||||
/ or first working one. Needs buildLoader().
|
||||
// void Packer::compressWithFilters():
|
||||
// Try compression with several methods and filters, choose the best
|
||||
// or first working one. Needs buildLoader().
|
||||
//
|
||||
// Required inputs:
|
||||
// this->ph
|
||||
|
||||
+1
-1
@@ -248,7 +248,7 @@ protected:
|
||||
int patch_le32(void *b, int blen, const void *old, unsigned new_);
|
||||
void checkPatch(void *b, int blen, int boff, int size);
|
||||
|
||||
// relocation util
|
||||
// relocation util [see packer_r.cpp]
|
||||
static unsigned optimizeReloc(unsigned relocnum, SPAN_P(byte) relocs, SPAN_S(byte) out,
|
||||
SPAN_P(byte) image, unsigned image_size, int bits, bool bswap,
|
||||
int *big);
|
||||
|
||||
@@ -477,7 +477,6 @@ forceinline constexpr T wrapping_add(const T &a, const T &b) noexcept {
|
||||
typedef std::make_unsigned_t<T> U;
|
||||
return T(U(a) + U(b));
|
||||
}
|
||||
|
||||
template <class T>
|
||||
forceinline constexpr T wrapping_sub(const T &a, const T &b) noexcept {
|
||||
static_assert(std::is_integral_v<T>);
|
||||
|
||||
Reference in New Issue
Block a user