ObjFW  Check-in [66da30b8a9]

Overview
Comment:Restore -O2 on HP-UX
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 66da30b8a9aa24c4d5c425aad6df86387d5f19052654d64e7859a121c78576b7
User & Date: js on 2021-01-01 21:52:28
Other Links: manifest | tags
Context
2021-01-01
21:53
platform.h: Add a define for HP-UX check-in: d94fe339fc user: js tags: trunk
21:52
Restore -O2 on HP-UX check-in: 66da30b8a9 user: js tags: trunk
21:43
runtime/exception.m: Implement DW_EH_PE_aligned check-in: 029db9e275 user: js tags: trunk
Changes

Modified configure.ac from [78ab9b805e] to [b8bbd3b61b].

118
119
120
121
122
123
124



125
126
127
128
129
130
131
	enable_threads="no"	# TODO
	enable_sockets="no"	# TODO
	check_pedantic="no"

	AC_SUBST(MAP_LDFLAGS, ['-Wl,-Map,$@.map'])
	;;
hppa*-*-hpux*)



	dnl HP-UX 11.11's inttypes.h defines UINTPTR_MAX etc. to nothing. GCC's
	dnl stdint.h defines those correctly, but if inttypes.h gets included
	dnl after something included stdint.h, it gets broken again. Therefore,
	dnl always include inttypes.h as the very first thing.
	dnl We need to put this into OBJCFLAGS and not CPPFLAGS as CPPFLAGS are
	dnl also used for .S files.
	OBJCFLAGS="$OBJCFLAGS -include inttypes.h"







>
>
>







118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
	enable_threads="no"	# TODO
	enable_sockets="no"	# TODO
	check_pedantic="no"

	AC_SUBST(MAP_LDFLAGS, ['-Wl,-Map,$@.map'])
	;;
hppa*-*-hpux*)
	dnl Don't default to -g: It creates errors from the assembler and breaks
	dnl exceptions.
	AS_IF([test x"$OBJCFLAGS" = x""], [OBJCFLAGS="-O2"])
	dnl HP-UX 11.11's inttypes.h defines UINTPTR_MAX etc. to nothing. GCC's
	dnl stdint.h defines those correctly, but if inttypes.h gets included
	dnl after something included stdint.h, it gets broken again. Therefore,
	dnl always include inttypes.h as the very first thing.
	dnl We need to put this into OBJCFLAGS and not CPPFLAGS as CPPFLAGS are
	dnl also used for .S files.
	OBJCFLAGS="$OBJCFLAGS -include inttypes.h"