Re: Gcc bugs break java/jdk15 build? [Workaround]

From: Michiel Boland <michiel_at_boland.org>
Date: Thu, 16 Aug 2007 15:51:05 +0200 (MEST)
> I tried already with the gcc 4.2.1 patch from 
> (http://people.freebsd.org/~kan/contrib-gcc421.tar.gz),
> but the build also breaks with optimization. (I am not sure, if it was the 
> same error) Without optimization it was working.

FWIW the builds succeeds for me if I add -fno-tree-vrp to OPT_CFLAGS:

diff -ur o/jdk15.patches n/jdk15.patches
--- o/jdk15.patches	2007-07-26 18:00:23.000000000 +0200
+++ n/jdk15.patches	2007-08-16 14:12:04.000000000 +0200
_at__at_ -16460,7 +16460,7 _at__at_
  +CFLAGS += $(GCC_SAVE_TEMPS)
  +
  +# The flags to use for an Optimized g++ build
-+OPT_CFLAGS += -O3
++OPT_CFLAGS += -O3 -fno-tree-vrp
  +# Hotspot uses very unstrict aliasing turn this optimization off
  +OPT_CFLAGS += -fno-strict-aliasing
  +
Received on Thu Aug 16 2007 - 11:52:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:16 UTC