From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19264 invoked by alias); 12 Dec 2002 16:26:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 19245 invoked by uid 71); 12 Dec 2002 16:26:02 -0000 Resent-Date: 12 Dec 2002 16:26:02 -0000 Resent-Message-ID: <20021212162602.19244.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, joeri.verbiest@esat.kuleuven.ac.be Received: (qmail 15325 invoked by uid 61); 12 Dec 2002 16:16:58 -0000 Message-Id: <20021212161658.15324.qmail@sources.redhat.com> Date: Thu, 12 Dec 2002 08:26:00 -0000 From: joeri.verbiest@esat.kuleuven.ac.be Reply-To: joeri.verbiest@esat.kuleuven.ac.be To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/8915: optimalisation on HP problems X-SW-Source: 2002-12/txt/msg00716.txt.bz2 List-Id: >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 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: