[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regex.c value out of range on Solaris compiler
From: |
Paul Eggert |
Subject: |
Re: regex.c value out of range on Solaris compiler |
Date: |
Fri, 14 Apr 2017 19:00:06 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 |
Thanks for reporting the problem.
On 04/14/2017 02:27 PM, Gavin Smith wrote:
> /opt/solarisstudio12.3/bin/c99 -Xc -D_XPG6 -DHAVE_CONFIG_H -I. -I../..
> -D_REENTRANT -I/opt/csw/include -c -o regex.o regex.c
> "regex_internal.h", line 105: warning: macro redefined: gettext
That's odd. Where was the gettext macro originally defined?
> "regex_internal.h", line 734: warning: token-less macro argument
This warns about the use of a C99-ism in code that is protected by "#if
199901L <= __STDC_VERSION__", so it must be a false alarm, and you're
right tno not worry about it.
> Assembler: "/tmp/yabeAAAiUaidC", line 19010 : Value out of range
> "/tmp/yabeAAAiUaidC", line 19031 : Value out of range
Ouch. This appears to be a compiler bug, as a compiler should never
generate invalid assembly-language code. I cannot reproduce the problem
on Solaris 10 sparc (32-bit) with Oracle Developer Studio 12.5. You are
on Solaris 10 x86 (32-bit) and are using 12.3. Do you observe the same
compiler bug with 12.5 or 12.6 beta? If so, I suggest reporting it as a
bug to Oracle.
What happens if you compile with -xO2?
Although I cannot reproduce the problem in my environment, I think I see
why it's happening. I installed the attached patches into Gnulib; do
they fix your problem?
0001-intprops-port-to-Oracle-Studio-12.3-x86.patch
Description: Text Data
0002-intprops-try-to-avoid-tickling-similar-bugs.patch
Description: Text Data