ObjFW  Check-in [3f704f13c4]

Overview
Comment:configure: Remove check for GCC bug objc/27438

GCC < 4.6 is not supported anymore, so there is no version supported
anymore that has this bug.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3f704f13c41a5d04d1b15e96fb86983fc23218ac79afbc11864861e69ab1ce2f
User & Date: js on 2016-05-21 21:53:27
Other Links: manifest | tags
Context
2016-05-21
22:19
OFDate: Use _mktime64() on Windows check-in: 7d381048fb user: js tags: trunk
21:53
configure: Remove check for GCC bug objc/27438 check-in: 3f704f13c4 user: js tags: trunk
21:47
RuntimeTests: Add tests for super lookup check-in: 5fb89d6804 user: js tags: trunk
Changes

Modified configure.ac from [33df8b04cc] to [757dafee63].

1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
		])
	])
])

AS_IF([test x"$GOBJC" = x"yes"], [
	OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Wpointer-arith -Werror"

	AC_MSG_CHECKING(whether we have GCC bug objc/27438)
	AC_TRY_COMPILE([
		@interface OFConstantString
		{
			struct objc_class *isa;
			const char *string;
			unsigned long size;
		}
		@end

		void *_OFConstantStringClassReference;
	], [
		OFConstantString *test = @"";
		(void)test; /* Get rid of unused variable warning */
	], [
		AC_MSG_RESULT(no)
	], [
		AC_MSG_RESULT([yes, adding -Wno-unused-variable])
		OBJCFLAGS="$OBJCFLAGS -Wno-unused-variable"
		AC_SUBST(NO_WARN_UNUSED, "-Wno-unused-variable")
	])

	AC_MSG_CHECKING(whether we need -Wno-strict-aliasing due to GCC bugs)
	AC_TRY_COMPILE([
		@interface Foo
		{
			struct objc_class *isa;
		}
		@end







<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<







1101
1102
1103
1104
1105
1106
1107






















1108
1109
1110
1111
1112
1113
1114
		])
	])
])

AS_IF([test x"$GOBJC" = x"yes"], [
	OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Wpointer-arith -Werror"























	AC_MSG_CHECKING(whether we need -Wno-strict-aliasing due to GCC bugs)
	AC_TRY_COMPILE([
		@interface Foo
		{
			struct objc_class *isa;
		}
		@end