This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11254] New: g++ (3.3): ...Error: Field out of range (optimisation pb)
- From: "joel dot soete at tiscali dot be" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jun 2003 17:05:20 -0000
- Subject: [Bug c++/11254] New: g++ (3.3): ...Error: Field out of range (optimisation pb)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11254
Summary: g++ (3.3): ...Error: Field out of range (optimisation
pb)
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: joel.soete@tiscali.be
CC: gcc-bugs@gcc.gnu.org
Hi all,
Trying to rebuild OpenCascade 4.0 libs onto a GNU/Linux parisc, I encounter
following pb:
g3.3 -DHAVE_CONFIG_H -I. -I/CAD/OpenCascade/src/OCC/OCC/src/TKFillet -I../..
-I/CAD/OpenCascade/src/OCC/OCC/inc -I/CAD/OpenCascade/src/OCC/OCC/drv/ChFiDS
-I/CAD/OpenCascade/src/OCC/OCC/drv/ChFi2d -I/CAD/OpenCascade/src/OCC/OCC/drv/ChFi3d
-I/CAD/OpenCascade/src/OCC/OCC/drv/ChFiKPart
-I/CAD/OpenCascade/src/OCC/OCC/drv/Blend
-I/CAD/OpenCascade/src/OCC/OCC/drv/BRepBlend
-I/CAD/OpenCascade/src/OCC/OCC/drv/BlendFunc
-I/CAD/OpenCascade/src/OCC/OCC/drv/BRepFilletAPI
-I/CAD/OpenCascade/src/OCC/OCC/drv/FilletSurf
-g -O2 -DCSFDB -MT ChFi3d_Builder_CnCrn.lo -MD -MP -MF
.deps/ChFi3d_Builder_CnCrn.Tpo
-c /CAD/OpenCascade/src/OCC/OCC/src/ChFi3d/ChFi3d_Builder_CnCrn.cxx -fPIC
-DPIC -o .libs/ChFi3d_Builder_CnCrn.o
/tmp/ccQuyyIf.s: Assembler messages:
/tmp/ccQuyyIf.s:146240: Error: Field out of range [-262144..262143] (-290528).
make[3]: *** [ChFi3d_Builder_CnCrn.lo] Error 1
make[3]: Leaving directory `/CAD/OpenCascade/build-40/src/TKFillet'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/CAD/OpenCascade/build-40/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/CAD/OpenCascade/build-40'
make: *** [all] Error 2
Following discussion with Dave:
<http://lists.parisc-linux.org/pipermail/parisc-linux/2003-June/020191.html>
I so fill in this PR.
This occures with:
palx2000:/CAD/OpenCascade/build-40# dpkg -l g3.3
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
=======================-=======================-==============================================================
ii g3.3 3.3-3 The GNU C compiler
# g++ -v
Reading specs from /usr/lib/gcc-lib/hppa-linux/3.3/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --enable-__cxa_atexit
--enable-sjlj-exceptions --enable-clocale=gnu --enable-debug --enable-objc-gc
hppa-linux
Thread model: posix
gcc version 3.3 (Debian)
and with binutils 2.13.90.0.18-1.7 as with 2.14.90.0.4-0.1 debian dpkg but also
with my own build ov cvs date 20030618:
# as --version
GNU assembler 2.14.90 20030618
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
This assembler was configured for a target of `hppa-linux'.
This problem is just solved by following compiling options:
no optimisation at all (ie no -O2)
-O1
-fno-default-inline (i suppose that -fno-inline also)
But not by either:
-finline-limit=225000 (doesn't help)
-finline-limit=120000 (doesn't help more)
or equivalent (?)
--param max-inline-insns=[300 ... 50]
-fno-implicit-templates and/or -fno-implicit-inline-templates.
Thanks in advance for help,
Joel
PS: I will try to join my pre-compile file asap