Skip to content

Commit

Permalink
disable strict aliasing on HP-UX C/aC++ compiler
Browse files Browse the repository at this point in the history
to disable strict aliasing on HP-UX C/aC++, `+Otype_safety=off` is right.
`+Otype_safety=strong` forces ANSI aliasing.
  • Loading branch information
kinichiro committed Aug 4, 2015
1 parent 03ba7b7 commit 9aa4e1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m4/check-os-options.m4
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ case $host_os in
if test "`echo $CC | cut -d ' ' -f 1`" = "gcc" ; then
CFLAGS="$CFLAGS -mlp64"
else
CFLAGS="-g -O2 +DD64 +Otype_safety=strong $USER_CFLAGS"
CFLAGS="-g -O2 +DD64 +Otype_safety=off $USER_CFLAGS"
fi
CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D__STRICT_ALIGNMENT"
AC_SUBST([PLATFORM_LDADD], ['-lpthread'])
Expand Down

0 comments on commit 9aa4e1d

Please sign in to comment.