From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15218 invoked by alias); 24 Aug 2003 15:45:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 15210 invoked by uid 48); 24 Aug 2003 15:45:57 -0000 Date: Sun, 24 Aug 2003 15:45:00 -0000 From: "t dot artem at mailcity dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20030824154554.12045.t.artem@mailcity.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/12045] New: gcc 3.3.1 with -Os flag once again builds QT library incorrectly X-Bugzilla-Reason: CC X-SW-Source: 2003-08/txt/msg02777.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12045 Summary: gcc 3.3.1 with -Os flag once again builds QT library incorrectly Product: gcc Version: 3.3.1 Status: UNCONFIRMED Severity: critical Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: t dot artem at mailcity dot com CC: gcc-bugs at gcc dot gnu dot org My system: Linux RedHat 9.0 GCC version: 3.3.1 vanilla with no 3d party patches applied Application I tried to compile: QT library 3.2 (www.trolltech.com) Issue: I changed the compilation flag of QT library found in mkspecs/g++- linux/... The default was "-O2" I put "-Os -march=pentium2". Hint: I'm building multithreaded QT libary The problem: After building libqt-mt.so and building uic (a part of QT suit) application, uic itself segfaults almost after _every_ _second_ time I try to use it to build other QT based applications (uic means user interface compiler). Actually it does its work but then after munmap it produces segfault. I encountered this problem with _all_ gcc 3.x.x (version < 3.3) versions _except_ gcc 3.3. It works perfectly with this (-Os) flag. So I decided to stay with 3.3 release