Overview
Comment: | Avoid warning about empty .o files on x86_64 macOS |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
26007971b2e719968c3e271d8f6fa3a4 |
User & Date: | js on 2023-09-04 21:22:43 |
Other Links: | manifest | tags |
Context
2023-09-04
| ||
22:03 | Update buildsys check-in: 9e971288b9 user: js tags: trunk | |
21:22 | Avoid warning about empty .o files on x86_64 macOS check-in: 26007971b2 user: js tags: trunk | |
21:11 | Update buildsys check-in: f19f07371d user: js tags: trunk | |
Changes
Modified configure.ac from [8459b172b9] to [59e4e29514].
︙ | ︙ | |||
500 501 502 503 504 505 506 507 508 509 510 511 512 513 | ]) ]) AC_MSG_RESULT($objc_runtime) case "$objc_runtime" in "ObjFW runtime") AC_DEFINE(OF_OBJFW_RUNTIME, 1, [Whether we use the ObjFW runtime]) AC_MSG_CHECKING([whether -fobjc-runtime=objfw is supported]) old_OBJCFLAGS="$OBJCFLAGS" OBJCFLAGS="$OBJCFLAGS -Xclang -fobjc-runtime=objfw" AC_LINK_IFELSE([ AC_LANG_PROGRAM([ | > | 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 | ]) ]) AC_MSG_RESULT($objc_runtime) case "$objc_runtime" in "ObjFW runtime") AC_DEFINE(OF_OBJFW_RUNTIME, 1, [Whether we use the ObjFW runtime]) AC_SUBST(USE_SRCS_TAGGED_POINTER, '${SRCS_TAGGED_POINTER}') AC_MSG_CHECKING([whether -fobjc-runtime=objfw is supported]) old_OBJCFLAGS="$OBJCFLAGS" OBJCFLAGS="$OBJCFLAGS -Xclang -fobjc-runtime=objfw" AC_LINK_IFELSE([ AC_LANG_PROGRAM([ |
︙ | ︙ |
Modified extra.mk.in from [b5365e9ecb] to [2655c558ed].
︙ | ︙ | |||
80 81 82 83 84 85 86 87 88 89 90 | UNICODE_M = @UNICODE_M@ USE_INCLUDES_ATOMIC = @USE_INCLUDES_ATOMIC@ USE_SRCS_APPLETALK = @USE_SRCS_APPLETALK@ USE_SRCS_FILES = @USE_SRCS_FILES@ USE_SRCS_IPX = @USE_SRCS_IPX@ USE_SRCS_PLUGINS = @USE_SRCS_PLUGINS@ USE_SRCS_SOCKETS = @USE_SRCS_SOCKETS@ USE_SRCS_THREADS = @USE_SRCS_THREADS@ USE_SRCS_UNIX_SOCKETS = @USE_SRCS_UNIX_SOCKETS@ USE_SRCS_WINDOWS = @USE_SRCS_WINDOWS@ WRAPPER = @WRAPPER@ | > | 80 81 82 83 84 85 86 87 88 89 90 91 | UNICODE_M = @UNICODE_M@ USE_INCLUDES_ATOMIC = @USE_INCLUDES_ATOMIC@ USE_SRCS_APPLETALK = @USE_SRCS_APPLETALK@ USE_SRCS_FILES = @USE_SRCS_FILES@ USE_SRCS_IPX = @USE_SRCS_IPX@ USE_SRCS_PLUGINS = @USE_SRCS_PLUGINS@ USE_SRCS_SOCKETS = @USE_SRCS_SOCKETS@ USE_SRCS_TAGGED_POINTER = @USE_SRCS_TAGGED_POINTER@ USE_SRCS_THREADS = @USE_SRCS_THREADS@ USE_SRCS_UNIX_SOCKETS = @USE_SRCS_UNIX_SOCKETS@ USE_SRCS_WINDOWS = @USE_SRCS_WINDOWS@ WRAPPER = @WRAPPER@ |
Modified src/Makefile from [3e54ffc274] to [483f968f9c].
︙ | ︙ | |||
202 203 204 205 206 207 208 | OFMutableUTF8String.m \ OFRangeCharacterSet.m \ OFSandbox.m \ OFStrFTime.m \ OFStrPTime.m \ OFSubarray.m \ OFSubdata.m \ | < < < | > > > > | 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 | OFMutableUTF8String.m \ OFRangeCharacterSet.m \ OFSandbox.m \ OFStrFTime.m \ OFStrPTime.m \ OFSubarray.m \ OFSubdata.m \ OFUTF8String.m \ ${LIBBASES_M} \ ${RUNTIME_AUTORELEASE_M} \ ${RUNTIME_INSTANCE_M} \ ${UNICODE_M} \ ${USE_SRCS_TAGGED_POINTER} SRCS_FILES += OFFileIRIHandler.m SRCS_SOCKETS += OFAsyncIPSocketConnector.m \ OFDNSResolverSettings.m \ ${OF_EPOLL_KERNEL_EVENT_OBSERVER_M} \ OFHTTPIRIHandler.m \ OFHostAddressResolver.m \ OFKernelEventObserver.m \ ${OF_KQUEUE_KERNEL_EVENT_OBSERVER_M} \ ${OF_POLL_KERNEL_EVENT_OBSERVER_M} \ ${OF_SELECT_KERNEL_EVENT_OBSERVER_M} \ OFTCPSocketSOCKS5Connector.m SRCS_TAGGED_POINTER = OFTaggedPointerColor.m \ OFTaggedPointerDate.m \ OFTaggedPointerNumber.m SRCS_WINDOWS += platform/Windows/OFWin32ConsoleStdIOStream.m \ versioninfo.rc OBJS_EXTRA = exceptions/exceptions.a \ encodings/encodings.a \ forwarding/forwarding.a LIB_OBJS_EXTRA = exceptions/exceptions.lib.a \ |
︙ | ︙ |
Modified src/OFTaggedPointerColor.h from [10e58a16ea] to [236b8e40fc].
︙ | ︙ | |||
13 14 15 16 17 18 19 | * file. */ #import "OFColor.h" OF_ASSUME_NONNULL_BEGIN | < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | * file. */ #import "OFColor.h" OF_ASSUME_NONNULL_BEGIN @interface OFTaggedPointerColor: OFColor + (OFTaggedPointerColor *)colorWithRed: (uint8_t)red green: (uint8_t)green blue: (uint8_t)blue; @end OF_ASSUME_NONNULL_END |
Modified src/OFTaggedPointerColor.m from [0651eb80cd] to [cd03108b2d].
︙ | ︙ | |||
13 14 15 16 17 18 19 | * file. */ #include "config.h" #import "OFTaggedPointerColor.h" | < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | * file. */ #include "config.h" #import "OFTaggedPointerColor.h" static int colorTag; @implementation OFTaggedPointerColor + (void)initialize { if (self == [OFTaggedPointerColor class]) colorTag = objc_registerTaggedPointerClass(self); |
︙ | ︙ | |||
48 49 50 51 52 53 54 | if (alpha != NULL) *alpha = 1; } OF_SINGLETON_METHODS @end | < | 47 48 49 50 51 52 53 | if (alpha != NULL) *alpha = 1; } OF_SINGLETON_METHODS @end |
Modified src/OFTaggedPointerDate.h from [f3031387d9] to [6927b6ee5d].
︙ | ︙ | |||
13 14 15 16 17 18 19 | * file. */ #import "OFDate.h" OF_ASSUME_NONNULL_BEGIN | | | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | * file. */ #import "OFDate.h" OF_ASSUME_NONNULL_BEGIN #if UINTPTR_MAX == UINT64_MAX @interface OFTaggedPointerDate: OFDate + (OFTaggedPointerDate *)dateWithUInt64TimeIntervalSince1970: (uint64_t)value; @end #endif OF_ASSUME_NONNULL_END |
Modified src/OFTaggedPointerDate.m from [1b188d7d8a] to [d5cac14af1].
︙ | ︙ | |||
11 12 13 14 15 16 17 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFTaggedPointerDate.h" | | | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFTaggedPointerDate.h" #if UINTPTR_MAX == UINT64_MAX static int dateTag; @implementation OFTaggedPointerDate + (void)initialize { if (self == [OFTaggedPointerDate class]) dateTag = objc_registerTaggedPointerClass(self); |
︙ | ︙ |
Modified src/OFTaggedPointerNumber.h from [ab4cf3f56e] to [f83fa1deb9].
︙ | ︙ | |||
13 14 15 16 17 18 19 | * file. */ #import "OFNumber.h" OF_ASSUME_NONNULL_BEGIN | < | < | 13 14 15 16 17 18 19 20 21 22 23 24 25 | * file. */ #import "OFNumber.h" OF_ASSUME_NONNULL_BEGIN #define OFTaggedPointerNumberTagBits 4 @interface OFTaggedPointerNumber: OFNumber @end OF_ASSUME_NONNULL_END |
Modified src/OFTaggedPointerNumber.m from [afd66e3faa] to [046d1b8a88].
︙ | ︙ | |||
15 16 17 18 19 20 21 | #include "config.h" #import "OFTaggedPointerNumber.h" #import "OFInvalidFormatException.h" | < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #include "config.h" #import "OFTaggedPointerNumber.h" #import "OFInvalidFormatException.h" enum Tag { tagChar, tagShort, tagInt, tagLong, tagLongLong, tagUnsignedChar, |
︙ | ︙ | |||
138 139 140 141 142 143 144 | case tagUnsignedLongLong: return @encode(unsigned long long); default: @throw [OFInvalidFormatException exception]; } } | | | 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | case tagUnsignedLongLong: return @encode(unsigned long long); default: @throw [OFInvalidFormatException exception]; } } #define RETURN_VALUE \ uintptr_t value = object_getTaggedPointerValue(self); \ \ switch (value & tagMask) { \ case tagChar: \ return (signed char)(unsigned char) \ (value >> OFTaggedPointerNumberTagBits); \ case tagShort: \ |
︙ | ︙ | |||
189 190 191 192 193 194 195 | RETURN_VALUE } - (double)doubleValue { RETURN_VALUE } | | < | 188 189 190 191 192 193 194 195 196 197 198 | RETURN_VALUE } - (double)doubleValue { RETURN_VALUE } #undef RETURN_VALUE OF_SINGLETON_METHODS @end |