GNU bug report logs - #53256
Compiling 3.8 with nvhpc 22.1 : malloca.c 64 bits operations with signed and unsigned operands are currently unsupported by __builtin_add_overflow

Previous Next

Package: diffutils;

Reported by: Olivier Cessenat <cessenat <at> gmail.com>

Date: Fri, 14 Jan 2022 14:00:03 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jeffrey Walton <noloader <at> gmail.com>
To: 53256-done <at> debbugs.gnu.org
Cc: Gnulib bugs <bug-gnulib <at> gnu.org>
Subject: bug#53256: [bug-diffutils] bug#53256: Compiling 3.8 with nvhpc 22.1 : malloca.c 64 bits operations with signed and unsigned operands are currently unsupported by __builtin_add_overflow
Date: Sat, 15 Jan 2022 07:24:38 -0500
On Fri, Jan 14, 2022 at 10:53 PM Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> ...
> Thanks for the bug report. Although nvc 22.1 defines __GNUC__ to be 11
> which means it supports GNU C as of GCC 11, that's obviously untrue for
> __builtin_add_overflow. That's unfortunate. Perhaps you could report
> this as a bug to NVIDIA, as their compiler shouldn't claim to support
> GNU C features that it lacks. nvc can set __GNUC__ to be the version of
> GNU C that it actually does support.

The GCC folks don't approve of other compilers setting __GNUC__. It's
a GCC define, and other compilers should not be defining it. The GCC
folks recommend filing a bug with the other compiler for defining
__GNUC__. [1]

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61146#c2

Jeff




This bug report was last modified 3 years and 121 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.