This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/8915: optimalisation on HP problems
- From: joeri dot verbiest at esat dot kuleuven dot ac dot be
- To: gcc-gnats at gcc dot gnu dot org
- Date: 12 Dec 2002 16:16:58 -0000
- Subject: c++/8915: optimalisation on HP problems
- Reply-to: joeri dot verbiest at esat dot kuleuven dot ac dot be
>Number: 8915
>Category: c++
>Synopsis: optimalisation on HP problems
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Thu Dec 12 08:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: joeri.verbiest@esat.kuleuven.ac.be
>Release: gcc version 3.2.1
>Organization:
>Environment:
HP-UX B.11.00 A
>Description:
When I do (via makefile):
OBJS = programname.o
CC = g++
LIBS = -lm
EXEC = programname
CFLAGS = -O3 -Wall -Wno-deprecated
#
## compile & link
#
all : $(EXEC)
programname.o : programname.c
$(CC) $(CFLAGS) -c programname.c
$(EXEC): $(OBJS)
rm -f $(EXEC)
$(CC) $(CFLAGS) -o $(EXEC) programname.o $(LIBS)
I get:
/freeware/gcc/hppa/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.2.1/include/c++/bits/stl_threads.h: In instantiation of `__gthread_mutex_t std::_Swap_lock_struct<0>::_S_swap_lock':
/freeware/gcc/hppa/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.2.1/include/c++/bits/stl_threads.h:122: instantiated from here
/freeware/gcc/hppa/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.2.1/include/c++/bits/stl_threads.h:115: warning: aggregate
has a partly bracketed initializer
/freeware/gcc/hppa/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.2.1/include/c++/bits/stl_threads.h:115: warning: aggregate
has a partly bracketed initializer
/freeware/gcc/hppa/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.2.1/include/c++/bits/stl_threads.h:115: warning: aggregate
has a partly bracketed initializer
/freeware/gcc/hppa/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.2.1/include/c++/bits/stl_threads.h:115: warning: aggregate
has a partly bracketed initializer
/freeware/gcc/hppa/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.2.1/include/c++/bits/stl_threads.h:115: warning: aggregate
has a partly bracketed initializer
/freeware/gcc/hppa/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.2.1/include/c++/bits/stl_threads.h:115: warning: aggregate
has a partly bracketed initializer
/freeware/gcc/hppa/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.2.1/include/c++/bits/stl_threads.h:115: warning: aggregate
has a partly bracketed initializer
fdtdkernel.c: In function `int main(int, char**)':
fdtdkernel.c:4367: Internal compiler error in output_cbranch, at config/pa/pa.c
:5240
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
I have looked in the code if there was an error. From the moment I
reach line 3455 I get the error:
fdtdkernel.c: In function `int main(int, char**)':
fdtdkernel.c:4367: Internal compiler error in output_cbranch, at config/pa/pa.c
:5240
When I place line 3455 to the end I get this error no more. I have
check the code but there is no error.
I get this eror ONLY when I do an optimalisation of the code O1, O2 and O3.
This error I doesn't when I compile the program with O3 under linux
Suse 7.2 (Linux 2.4.4-4GB #1 i686 with (gcc version 2.95.3 20010315 (SuSE))
It is maybe because it is a HP environment. The question is
how can I solve this?
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: