GNU bug report logs -
#9262
test.c runs afoul of GCC 4.6.1 bug if --enable-gcc-warnings
Previous Next
Reported by: Paul Eggert <eggert <at> cs.ucla.edu>
Date: Mon, 8 Aug 2011 19:09:02 UTC
Severity: normal
Tags: notabug
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9262 in the body.
You can then email your comments to 9262 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#9262
; Package
coreutils
.
(Mon, 08 Aug 2011 19:09:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Paul Eggert <eggert <at> cs.ucla.edu>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Mon, 08 Aug 2011 19:09:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I'm running into a problem with GCC 4.6.1 x86-64 when
compiling coreutils (latest git version), configured
with --enable-gcc-warnings. A bogus warning is generated,
causing "make" to fail. The warning is "function might be
candidate for attribute 'pure' if it is known to return
normally [-Wsuggest-attribute=pure]", and it points to the
"advance" function in test.c. The warning is also generated
for lbracket.c, which includes test.c.
This is due to a GCC bug that has just been confirmed; see
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50021>.
For now I'm leaving this alone, but I thought I'd give
others a heads-up. The coreutils code is pretty
crufty but on the other hand I dislike modifying code just
to work around bugs in static checkers.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#9262
; Package
coreutils
.
(Mon, 08 Aug 2011 21:12:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 9262 <at> debbugs.gnu.org (full text, mbox):
Paul Eggert wrote:
> I'm running into a problem with GCC 4.6.1 x86-64 when
> compiling coreutils (latest git version), configured
> with --enable-gcc-warnings. A bogus warning is generated,
> causing "make" to fail. The warning is "function might be
> candidate for attribute 'pure' if it is known to return
> normally [-Wsuggest-attribute=pure]", and it points to the
> "advance" function in test.c. The warning is also generated
> for lbracket.c, which includes test.c.
>
> This is due to a GCC bug that has just been confirmed; see
> <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50021>.
>
> For now I'm leaving this alone, but I thought I'd give
> others a heads-up. The coreutils code is pretty
> crufty but on the other hand I dislike modifying code just
> to work around bugs in static checkers.
Thanks for the heads up.
This came up in July:
http://thread.gmane.org/gmane.comp.gnu.coreutils.general/1399
This is why I now build with gcc-4.7.x.
With it, I no longer get that invalid warning.
Ideally, configure would check for the buggy compiler
and disable the offending option when found.
If you're not going to work on that, what do you
think about sending a message to control <at> debbugs.gnu.org
with this in the body?
tags 9262 + notabug
close 9262
Since this isn't a bug in coreutils, and I'm trying to close
issues we're not likely to work on.
Added tag(s) notabug.
Request was from
Paul Eggert <eggert <at> cs.ucla.edu>
to
control <at> debbugs.gnu.org
.
(Tue, 09 Aug 2011 04:17:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
9262 <at> debbugs.gnu.org and Paul Eggert <eggert <at> cs.ucla.edu>
Request was from
Paul Eggert <eggert <at> cs.ucla.edu>
to
control <at> debbugs.gnu.org
.
(Tue, 09 Aug 2011 04:17:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 06 Sep 2011 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 288 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.