[Bug tree-optimization/37969] [4.3 Regression] -O2 -funswitch-loops causes ICE in build_int_cst_wide, at tree.c:891 (OpenOffice.org)

2008-10-31 Thread h dot mth at web dot de


--- Comment #7 from h dot mth at web dot de  2008-10-31 10:43 ---
Created an attachment (id=16596)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16596action=view)
more reduced testcase

With one of these changes the ICE hides.

[EMAIL PROTECTED]:/tmp $ cat hide01
--- b3dgeom.3.cpp.ice   2008-10-31 11:38:37.0 +0100
+++ b3dgeom.3.cpp   2008-10-31 11:38:46.0 +0100
@@ -1,7 +1,7 @@
 #include iostream
 class B3DRange  {
double mnMinimum;
-   double mnMaximum;
+// double mnMaximum;
 public:
double getWidth() const {
if(mnMinimum)
[EMAIL PROTECTED]:/tmp $ cat hide02
--- b3dgeom.3.cpp.ice   2008-10-31 11:38:37.0 +0100
+++ b3dgeom.3.cpp   2008-10-31 11:39:02.0 +0100
@@ -4,7 +4,7 @@
double mnMaximum;
 public:
double getWidth() const {
-   if(mnMinimum)
+   if(!mnMinimum)
  return mnMinimum;
else
  return 0.0;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37969



[Bug tree-optimization/37969] [4.3 Regression] -O2 -funswitch-loops causes ICE in build_int_cst_wide, at tree.c:891 (OpenOffice.org)

2008-10-31 Thread h dot mth at web dot de


--- Comment #8 from h dot mth at web dot de  2008-10-31 10:55 ---
To hide the ICE from reduced testcase:

$ diff -u b3dgeom.3.cpp.orig b3dgeom.3.cpp
--- b3dgeom.3.cpp.orig  2008-10-31 11:52:10.0 +0100
+++ b3dgeom.3.cpp   2008-10-31 11:52:46.0 +0100
@@ -41,9 +41,9 @@
}
typename Traits::DifferenceType getRange() const   {
if(isEmpty())
- return Traits::neutral();
-   else
  return (mnMaximum - mnMinimum);
+   else
+ return Traits::neutral();
}
 };
 struct DoubleTraits {


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37969



[Bug c++/37969] New: -O2 -funswitch-loops causes ICE in build_int_cst_wide, at tree.c:891 (OpenOffice.org)

2008-10-30 Thread h dot mth at web dot de
CFLAGS=-O2 -funswitch-loops for OpenOffice.org build cause this:

# LC_ALL=C g++  -Wreturn-type -fmessage-length=0 -c -O2 -fno-strict-aliasing
-Wuninitialized -DENABLE_LAYOUT=0   -I.  -I../../unxlngx6.pro/inc/base3d
-I../inc -I../../inc/pch -I../../inc -I../../unx/inc -I../../unxlngx6.pro/inc
-I.
-I/mnt/data/tmp/portage/app-office/openoffice-3.0.0._pre9/work/ooo-build/build/ooo300-m9/solver/300/unxlngx6.pro/inc/stl
-I/mnt/data/tmp/portage/app-office/openoffice-3.0.0._pre9/work/ooo-build/build/ooo300-m9/solver/300/unxlngx6.pro/inc/external
-I/mnt/data/tmp/portage/app-office/openoffice-3.0.0._pre9/work/ooo-build/build/ooo300-m9/solver/300/unxlngx6.pro/inc
-I/mnt/data/tmp/portage/app-office/openoffice-3.0.0._pre9/work/ooo-build/build/ooo300-m9/solenv/unxlngx6/inc
-I/mnt/data/tmp/portage/app-office/openoffice-3.0.0._pre9/work/ooo-build/build/ooo300-m9/solenv/inc
-I/mnt/data/tmp/portage/app-office/openoffice-3.0.0._pre9/work/ooo-build/build/ooo300-m9/res
-I/mnt/data/tmp/portage/app-office/openoffice-3.0.0._pre9/work/ooo-build/build/ooo300-m9/solver/300/unxlngx6.pro/inc/stl
-I/mnt/data/tmp/portage/app-office/openoffice-3.0.0._pre9/work/ooo-build/build/ooo300-m9/solenv/inc/Xp31
-I/usr/lib/icedtea-6.1.4.12_pre20081028/include
-I/usr/lib/icedtea-6.1.4.12_pre20081028/include/linux
-I/usr/lib/icedtea-6.1.4.12_pre20081028/include/native_threads/include
-Idefault_x_includes 
-I/mnt/data/tmp/portage/app-office/openoffice-3.0.0._pre9/work/ooo-build/build/ooo300-m9/solver/300/unxlngx6.pro/inc/offuh
-I. -I../../res -I. -pipe -funswitch-loops -w -Wno-ctor-dtor-privacy
-fno-use-cxa-atexit -Wall -Wextra -Wendif-labels -Wshadow
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor   -fpic -DLINUX -DUNX -DVCL
-DGCC -DC341 -DX86_64 -DCVER=C341 -DNPTL -DGLIBC=2 -DX86_64 -D_PTHREADS
-D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400
-DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3
-DGXX_INCLUDE_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4
-DSUPD=300 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE
-DGSTREAMER -DCUI -DSOLAR_JAVA   -DSHAREDLIB -D_DLL_   -fexceptions
-fno-enforce-eh-specs -DEXCEPTIONS_ON  -o ../../unxlngx6.pro/slo/b3dgeom.o
/mnt/data/tmp/portage/app-office/openoffice-3.0.0._pre9/work/ooo-build/build/ooo300-m9/goodies/source/base3d/b3dgeom.cxx
 
/mnt/data/tmp/portage/app-office/openoffice-3.0.0._pre9/work/ooo-build/build/ooo300-m9/goodies/source/base3d/b3dgeom.cxx:
In member function 'void B3dGeometry::CreateDefaultTexture(sal_uInt16,
sal_Bool)':
/mnt/data/tmp/portage/app-office/openoffice-3.0.0._pre9/work/ooo-build/build/ooo300-m9/goodies/source/base3d/b3dgeom.cxx:837:
internal compiler error: in build_int_cst_wide, at tree.c:891

CFLAGS=-O1 -funswitch-loops compile it just fine.

# LC_ALL=C gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with:
/mnt/data/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.2
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--enable-nls --without-included-gettext --with-system-zlib --disable-checking
--disable-werror --enable-secureplt --disable-multilib --disable-libmudflap
--disable-libssp --disable-libgomp --enable-cld --disable-libgcj
--enable-languages=c,c++,treelang --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.2 p1.0'
Thread model: posix
gcc version 4.3.2 (Gentoo 4.3.2 p1.0)

Gentoo bugreport
https://bugs.gentoo.org/show_bug.cgi?id=237997

Failing loop to unswitch
http://lxr.go-oo.org/source/graphics/goodies/source/base3d/b3dgeom.cxx#813


-- 
   Summary: -O2 -funswitch-loops causes ICE in build_int_cst_wide,
at tree.c:891 (OpenOffice.org)
   Product: gcc
   Version: 4.3.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: h dot mth at web dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37969



[Bug middle-end/37969] -O2 -funswitch-loops causes ICE in build_int_cst_wide, at tree.c:891 (OpenOffice.org)

2008-10-30 Thread h dot mth at web dot de


--- Comment #2 from h dot mth at web dot de  2008-10-30 23:14 ---
Too big to attach. See:
http://geki.ath.cx/hacks/b3dgeom.ii


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37969



[Bug bootstrap/33992] Building libstdc++-v3: include/limits: stray '\275' in program

2007-12-05 Thread h dot mth at web dot de


--- Comment #10 from h dot mth at web dot de  2007-12-05 13:01 ---
Replacing -O2 with -O1 in BOOT_CFLAGS hides the error here. At least one can
install gcc 4.3 again. :)

Gentoo users would edit toolchain.eclass:

--- /usr/portage/eclass/toolchain.eclass.orig   2007-12-05 13:58:52.0
+0100
+++ /usr/portage/eclass/toolchain.eclass2007-12-05 13:58:59.0
+0100
@@ -1467,7 +1467,7 @@

# In general gcc does not like optimization, and add -O2 where
# it is safe.  This is especially true for gcc 3.3 + 3.4
-   replace-flags -O? -O2
+   replace-flags -O? -O1

# ... sure, why not?
strip-unsupported-flags


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33992



[Bug bootstrap/33992] Building libstdc++-v3: include/limits: stray '\275' in program

2007-12-04 Thread h dot mth at web dot de


--- Comment #9 from h dot mth at web dot de  2007-12-04 17:43 ---
I wonder what goes wrong with building cpp at stage 3(?). :)

ana build # for f in $(find ./ -type f -name cpp); do ls -l $f; PATH=$(dirname
$f) $f -dM /dev/null | grep __DBL_MAX__; done
-rwxr-xr-x 1 root root 279196  4. Dez 18:20 ./gcc/cpp
#define __DBL_MAX__ ½.3200111555710001e+310
-rwxr-xr-x 1 root root 258066  4. Dez 17:47 ./stage1-gcc/cpp
#define __DBL_MAX__ 1.7976931348623157e+308
-rwxr-xr-x 1 root root 389702  4. Dez 18:09 ./prev-gcc/cpp
#define __DBL_MAX__ 1.7976931348623157e+308

LDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common
STAGE1_CFLAGS=-O2
BOOT_CFLAGS= -O2 -mtune=nocona -march=nocona -pipe


(Hint for bad defines from:
http://forums.gentoo.org/viewtopic-p-4569014.html#4569014)


-- 

h dot mth at web dot de changed:

   What|Removed |Added

 CC||h dot mth at web dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33992



[Bug java/32484] New: build of junit 4.3.1 native lib fails

2007-06-24 Thread h dot mth at web dot de
# /usr/lib/gcj-4.3.0_alpha20070622/bin/gcj -shared -Wl,-Bsymbolic -fPIC
-findirect-dispatch -fjni -g0 -O0 -mtune=nocona -march=nocona -pipe -w
-save-temps -o libjunit.jar.so junit.jar

gcj: Warnung: -pipe ignoriert, da -save-temps angegeben
junit.s: Assembler messages:
junit.s:2812: Error: junk at end of line, first unrecognized character is `-'
junit.s:2813: Error: bad or irreducible absolute expression
junit.s:2813: Error: junk at end of line, first unrecognized character is `,'
junit.s:2816: Error: unrecognized symbol type 
junit.s:2816: Error: junk at end of line, first unrecognized character is `-'
junit.s:2817: Error: expected comma after name `_CD_junit_extensions_package'
in .size directive
junit.s:2818: Error: invalid character '_' in mnemonic
junit.s:2822: Error: unrecognized symbol type 
junit.s:2822: Error: junk at end of line, first unrecognized character is `-'
junit.s:2823: Error: expected comma after name `_CT_junit_extensions_package'
in .size directive
junit.s:2824: Error: invalid character '_' in mnemonic
junit.s:2828: Error: unrecognized symbol type 
junit.s:2828: Error: junk at end of line, first unrecognized character is `-'
junit.s:2829: Error: expected comma after name
`_catch_classes_junit.extensions.package' in .size directive
junit.s:2830: Error: invalid character '_' in mnemonic

(... and more like these)

junit.s first failing part looks like:

2804:   .hidden _ZN5junit10extensions11TestSetup$17class$$E
2805:.globl _ZN5junit10extensions11TestSetup$17class$$E
2806-   .bss
2807-   .align 8
2808:   .type   _ZN5junit10extensions11TestSetup$17class$$E, @object
2809:   .size   _ZN5junit10extensions11TestSetup$17class$$E, 8
2810:_ZN5junit10extensions11TestSetup$17class$$E:
2811-   .zero   8
2812-   .local  _MT_junit_extensions_package-info
2813-   .comm   _MT_junit_extensions_package-info,0,8
2814-   .section.data.rel.local
2815-   .align 16
2816-   .type   _CD_junit_extensions_package-info, @object
2817-   .size   _CD_junit_extensions_package-info, 16
2818-_CD_junit_extensions_package-info:
2819-   .quad   0
2820-   .quad   _Utf65
2821-   .data
2822-   .type   _CT_junit_extensions_package-info, @object
2823-   .size   _CT_junit_extensions_package-info, 2
2824-_CT_junit_extensions_package-info:
2825-   .byte   0
2826-   .byte   7
2827-   .align 32
2828-   .type   _catch_classes_junit.extensions.package-info, @object
2829-   .size   _catch_classes_junit.extensions.package-info, 48
2830-_catch_classes_junit.extensions.package-info:
2831-   .zero   48
2832-   .section.rodata
2833-   .align 2
2834-   .type   _Utf69, @object
2835-   .size   _Utf69, 4

# LC_ALL=C /usr/lib/gcj-4.3.0_alpha20070622/bin/gcj -v
Using built-in specs.
Reading specs from
/usr/lib64/gcj-4.3.0_alpha20070622/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.3.0-alpha20070622/../../../libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
Target: x86_64-unknown-linux-gnu
Configured with:
/mnt/data/tmp/portage/dev-java/gcj-4.3.0_alpha20070622/work/gcc-4.3-20070622/configure
--prefix=/usr/lib/gcj-4.3.0_alpha20070622
--libdir=/usr/lib/gcj-4.3.0_alpha20070622/lib64
--libexecdir=/usr/lib/gcj-4.3.0_alpha20070622/lib64
--with-gxx-include-dir=/usr/lib/gcj-4.3.0_alpha20070622/include/c++
--enable-languages=c,c++,java --enable-ssp --enable-libstdcxx-allocator=new
--disable-static --disable-altivec --disable-gtktest --disable-glibtest
--disable-multilib --disable-maintainer-mode --disable-libada
--disable-libarttest --disable-libjava-multilib --disable-libmudflap
--disable-libssp --with-system-zlib --disable-checking --disable-werror
--disable-libunwind-exceptions --enable-secureplt --enable-nls
--without-included-gettext --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --enable-java-awt=gtk
--with-java-home=/usr/lib/gcj-4.3.0_alpha20070622/jre --enable-plugin
--disable-gconf-peer --with-ecj-jar=/usr/share/eclipse-ecj-3.
 3/lib/ecj.jar --enable-java-maintainer-mode
Thread model: posix
gcc version 4.3.0-alpha20070622  (experimental) (Gentoo 4.3.0_alpha20070622)

binutils version is 2.17.


-- 
   Summary: build of junit 4.3.1 native lib fails
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: h dot mth at web dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32484



[Bug java/32484] build of junit 4.3.1 native lib fails

2007-06-24 Thread h dot mth at web dot de


--- Comment #1 from h dot mth at web dot de  2007-06-24 14:22 ---
Created an attachment (id=13780)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13780action=view)
jar file


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32484



[Bug target/30770] [4.3 regression] BOOT_CFLAGS=-O2 -g -mtune=nocona miscompiled the stage 3 compiler

2007-02-23 Thread h dot mth at web dot de


--- Comment #4 from h dot mth at web dot de  2007-02-23 23:29 ---
JFYI, '-O2 -march=athlon64' also fails.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30770



[Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac

2006-08-28 Thread h dot mth at web dot de


--- Comment #7 from h dot mth at web dot de  2006-08-28 21:45 ---
I stored my broken ecj-3.2.jar here:
http://geki.ath.cx/hacks/ecj.jar


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663



[Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac

2006-08-27 Thread h dot mth at web dot de


--- Comment #6 from h dot mth at web dot de  2006-08-27 12:31 ---
After some testing I can say that this is caused by the fix to bug 27529.


-- 

h dot mth at web dot de changed:

   What|Removed |Added

 CC||h dot mth at web dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663