From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25276 invoked by alias); 15 Nov 2010 18:54:19 -0000 Received: (qmail 25266 invoked by uid 22791); 15 Nov 2010 18:54:18 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Nov 2010 18:53:25 +0000 From: "lk0946 at att dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/46488] New: server/core_filters.c from apache httpd 2.2.17 does not produce good code with optimizations (-O) used on Solaris Sparc 64-bit X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lk0946 at att dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 15 Nov 2010 18:55:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-11/txt/msg01962.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46488 Summary: server/core_filters.c from apache httpd 2.2.17 does not produce good code with optimizations (-O) used on Solaris Sparc 64-bit Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned@gcc.gnu.org ReportedBy: lk0946@att.com Created attachment 22403 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22403 Preprocessed server/core_filters.c Compiling the latest Apache httpd (2.2.17) using GCC 4.5.1 on Solaris Sparc and 64-bit produces a non-functioning web server. Attempts to connect to httpd result in an immediate hang-up with no logs. Recompiling server/core_filters.c without -O[2,3] produces a working httpd. GCC was built with the following options: ../configure --with-gnu-as --with-as=/sites/compiler/bin/as \ --without-gnu-ld \ --with-ld=/usr/ccs/bin/ld \ --enable-shared --enable-languages=c,c++ \ --with-gmp=/sites/compiler/64bit --with-mpfr=/sites/compiler/64bit \ --prefix=/sites/compiler/64bit \ --build=sparc64-sun-solaris2.10 GNU C (GCC) version 4.5.1 (sparc64-sun-solaris2.10) compiled by GNU C version 4.5.1, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 There are no compiler warnings when compiling httpd. httpd configure command: ./configure --prefix=/sites/httpd-2.2.17-worker-niagara-64 --enable-mods-shared=all --with-mpm=worker --enable-logio --enable-headers --disable-autoindex --enable-cgi --disable-userdir --enable-so --enable-ssl --disable-ipv6 --with-ssl=/sites/OPENSSL/openssl-1.0.0-niagara-64 --enable-info --enable-nonportable-atomics=yes --enable-deflate --enable-unique-id --with-pcre=/sites/utils --enable-proxy --build=sparc64-sun-solaris2.10 CFLAGS are: CFLAGS='-m64 -mcpu=niagara -mtune=niagara -O3' Pre-processed file is attached.