bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* regex error with NetBSD pcc
@ 2016-01-12 14:38 Gavin Smith
  2016-01-12 22:40 ` Paul Eggert
  0 siblings, 1 reply; 2+ messages in thread
From: Gavin Smith @ 2016-01-12 14:38 UTC (permalink / raw
  To: bug-gnulib

Using the "regex" module, I had the error

 #error "Add case for new bitset_word_t size"

from regex_internal.h when using pcc under NetBSD.

$ pcc --version
pcc 1.2.0.DEVEL 20141228 for x86_64--netbsd

The problem appears to be that the C preprocessor thinks that
ULONG_MAX is a negative value. With

#if 0xffffffffffffffffUL < 0
#warning OK
#endif

the message "OK" is printed. This appears to be the same bug mentioned here:

http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00045.html

I recommend that NOTHING BE DONE about this failure. I write this
email, not to get a fix, but to stop others spending time if they have
the same problem.

The amount of workarounds for bugs and non-comformance to standards
should reduce over time, not increase (maybe one beautiful day there
won't even be a need for gnulib), which won't happen if people keep on
writing new buggy, defective compilers from scratch. Adding
portability workarounds for these new compilers just encourages people
to use them.

Earlier on pcc on this mailing list:

http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00205.html
http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00110.html


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: regex error with NetBSD pcc
  2016-01-12 14:38 regex error with NetBSD pcc Gavin Smith
@ 2016-01-12 22:40 ` Paul Eggert
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggert @ 2016-01-12 22:40 UTC (permalink / raw
  To: Gavin Smith, bug-gnulib

On 01/12/2016 06:38 AM, Gavin Smith wrote:
> I recommend that NOTHING BE DONE about this failure.

Yes, Bruno's April 2011 review was pretty devastating. I don't think 
it's even worth documenting PCC's bugs; there are too many, and useful 
free compiliers like GCC are readily available.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-12 22:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-12 14:38 regex error with NetBSD pcc Gavin Smith
2016-01-12 22:40 ` Paul Eggert

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).