From 87105b4d0e779c37b54064da31f71348491a86bd Mon Sep 17 00:00:00 2001 From: junyoung Date: Fri, 6 Aug 2004 03:37:55 +0000 Subject: [PATCH] Use -fno-strict-aliasing to compile usr.sbin/racoon/racoon and document it as a hack. PR toolchain/26516. --- doc/HACKS | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/doc/HACKS b/doc/HACKS index 5da13707bb94..a1c7afcaf701 100644 --- a/doc/HACKS +++ b/doc/HACKS @@ -1,4 +1,4 @@ -# $NetBSD: HACKS,v 1.36 2004/06/06 17:11:33 he Exp $ +# $NetBSD: HACKS,v 1.37 2004/08/06 03:37:55 junyoung Exp $ # # This file is intended to document workarounds for currently unsolved # (mostly) compiler bugs. @@ -96,6 +96,20 @@ descr when all platforms have switched away from GCC2. kcah +hack gcc-strict-aliasing +cdate 6 August 2004 +who junyoung +pr 26516 +file src/usr.sbin/racoon/racoon/Makefile : 1.21 +descr + GCC issues a warning "dereferencing type-punned pointer will break + strict-aliasing rules" when compiling + crypto/dist/kame/racoon/crypto/openssl.c with -O[23s]. Note that this + is due to invalid use of type casting in the code and not a compiler + bug. Once a new release of KAME with a proper fix applied is imported + this should be backed out. +kcah + port vax