[Bug 1772] There are some strict-aliasing warnings during the compillation

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri May 28 13:49:51 EST 2010


https://bugzilla.mindrot.org/show_bug.cgi?id=1772

Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |djm at mindrot.org

--- Comment #1 from Damien Miller <djm at mindrot.org>  ---
We set -fno-strict-aliasing already for gcc4:


if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
        CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
        GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
        case $GCC_VER in
                1.*) no_attrib_nonnull=1 ;;
                2.8* | 2.9*)
                     CFLAGS="$CFLAGS -Wsign-compare"
                     no_attrib_nonnull=1
                     ;;
                2.*) no_attrib_nonnull=1 ;;
                3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security"
;;
                4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign
-Wformat-s
ecurity -fno-strict-aliasing" ;;
                *) ;;
        esac

Is there something in your environment that is skipping this test?

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list