public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: mvz@hac.hr To: gcc-gnats@gcc.gnu.org Subject: optimization/9417: gcc 3.2 on SunOS 5.8 is making broken ucgendat tool under `-m64' and with ANY -O<N> optimization Date: Thu, 23 Jan 2003 09:16:00 -0000 [thread overview] Message-ID: <20030123091352.21029.qmail@sources.redhat.com> (raw) >Number: 9417 >Category: optimization >Synopsis: gcc 3.2 on SunOS 5.8 is making broken ucgendat tool under `-m64' and with ANY -O<N> optimization >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Jan 23 09:16:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Miroslav Zubcic >Release: Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2/specsConfigured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls Thread model: posix gcc version 3.2 >Organization: >Environment: SunOS 5.8 (Solaris 8) SunOS zvijer 5.8 Generic_108528-17 sun4u sparc SUNW,Ultra-Enterprise >Description: While compiling OpenLDAP 2.1.12 (http://www.OpenLDAP.org) gcc 3.2 is making broken one small peace of code. I have reported bug on openldap-bugs list and OpenLDAP developer told me that this look like optimization bug uin gcc 3.2 The mentioned code is in penldap-2.1.12/libldap/liblunicode. gcc is making help tool "ucgendat" which is producing unicode ".dat" files for use by libldap library, slapd(8) daemon, slapindex(8) and slapadd(8). If I use -O3 -O2 or -O (as for the rest of OpenLDAP code) ucgendat will produce broken unicode tables in dat files. As a consequence mentioned programs will segfault while indexing LDAP attributes which have UTF-8 non/ascii letters in their values. After recompiling ucgendat without optimization and making dat files with *that* ucgendat, everything seems to be OK. >How-To-Repeat: Compile OpenLDAP on SunOS 5.8, with `-m64 -O3 -mcpu=ultrasparc" install it, make a small LDAP database, put non-ascii values in cn or sn attribute, write "index cn,sn,uid pres,eq,approx,sub" in slapd.conf(5) after database definition and run slapindex(8) tool. >Fix: Dunno, For now, I compile unicode dat files again after optimized OpenLDAP build as a workaround. >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2003-01-23 9:16 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-01-23 9:16 mvz [this message] 2003-01-23 9:33 ehrhardt 2003-05-10 7:51 giovannibajo
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030123091352.21029.qmail@sources.redhat.com \ --to=mvz@hac.hr \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).