[Bug c/117981] -Wc11-c23-compat does not warn for bool, false and true

2024-12-10 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117981 --- Comment #2 from Joseph S. Myers --- The use of standard versions in the option names is deliberate. An option to warn about any version incompatibilities would become like -Wtraditional, less and less useful over time. If your code is known

[Bug c/118106] Erroneous warning: variably modified '' at file scope

2024-12-18 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118106 Joseph S. Myers changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRME

[Bug c/118112] Unhelpful "too many arguments to function" error message (especially w/ C23)

2024-12-18 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118112 --- Comment #9 from Joseph S. Myers --- We do in fact track when () was interpreted as (void) for use by -Wtraditional, but only in the c_arg_info, it doesn't get as far as the actual declarations and types. If using this information in a way th

[Bug target/103370] [12/13/14/15 Regression] Assembler error building glibc for ColdFire soft-float

2024-12-17 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103370 Joseph S. Myers changed: What|Removed |Added CC||aurelien at aurel32 dot net,

[Bug c++/118016] GCC adds excess precision to floating point literals, and therefore rounds incorrectly (x87 FPU, -fexcess-precision=standard)

2024-12-12 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118016 --- Comment #3 from Joseph S. Myers --- For C, see https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1361.htm and the minutes https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1380.pdf where it was accepted (thus reverting an abortive attempt to

[Bug c++/117727] __builtin_bit_cast with target type nullptr_t unimplemented

2024-11-22 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117727 --- Comment #8 from Joseph S. Myers --- As nullptr_t is in C23, arguably psABIs ought to define the representation of nullptr_t as part of defining the C ABI.

[Bug c/112841] typeof_unqual is not removing qualifiers from the element type of array types

2024-11-22 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112841 Joseph S. Myers changed: What|Removed |Added Target Milestone|--- |15.0 Known to work|

[Bug c/114816] Non-standard behavior with void arguments

2024-11-21 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114816 Joseph S. Myers changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Known to work|

gcc-bugs@gcc.gnu.org

2025-01-21 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114877 --- Comment #6 from Joseph S. Myers --- I believe the test is valid: an unspecified (non-wobbly) value is stored, so, for each call to frexp executed in the abstract machine, there must be a value of type int (that compares equal to itself, for

[Bug c/118592] Add builtins/const folding for the new C23 math functions

2025-01-21 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118592 --- Comment #2 from Joseph S. Myers --- Actually, the _FloatN / _FloatNx functions are only reserved if the user defines __STDC_WANT_IEC_60559_TYPES_EXT__ so maybe DEF_EXT_LIB_FLOATN_NX_BUILTINS is right for them. Excluding built-in functions w

[Bug c/118592] Add builtins/const folding for the new C23 math functions

2025-01-21 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118592 --- Comment #1 from Joseph S. Myers --- That's just a small subset of the ones coming to C23 via TS 18661-4. There are also all the functions (added to glibc some years ago) that came via TS 18661-1 (we have roundeven, but not most of the rest).

[Bug target/111814] [SH] __builtin_nan* returns signalling NaNs instead of quiet NaNs and vice versa

2025-01-02 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111814 --- Comment #8 from Joseph S. Myers --- See https://sourceware.org/legacy-ml/libc-alpha/2018-02/msg00440.html and https://sourceware.org/bugzilla/show_bug.cgi?id=30973 regarding glibc fixes that should preferably be done in sync with a GCC fix f

[Bug ipa/119312] Constant array not allocated in read-only segment

2025-03-18 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119312 --- Comment #14 from Joseph S. Myers --- I think an object declared with a structure type with only const fields and no padding can be considered const (no valid way to modify it), yes.

[Bug ipa/119312] Constant array not allocated in read-only segment

2025-03-17 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119312 --- Comment #11 from Joseph S. Myers --- A struct with a const field is not a modifiable lvalue in C, so it's not valid to assign to it. Modifying a const field with memcpy / byte accesses would probably also violate "If an attempt is made to mo

[Bug translation/119684] [15 Regression] Severe bug in german translation

2025-04-10 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119684 --- Comment #21 from Joseph S. Myers --- If we want such checking, it should be done in CI (similar to the CI that verifies generated files that are checked in have been correctly regenerated), not at .pot regeneration time or .po commit time.

[Bug rtl-optimization/120059] [16 regression] ICE when building mesa in vartrack since r16-286

2025-05-02 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120059 Joseph S. Myers changed: What|Removed |Added CC||jsm28 at gcc dot gnu.org --- Comment

[Bug other/119855] Fixincludes needed for assert.h to support C++26's P2264R7

2025-04-29 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119855 --- Comment #9 from Joseph S. Myers --- I don't think a glibc bug "assert should not allow C++ scoped enums" has anything to do with the issue of making assert a variadic macro to allow an argument with a comma in it. As far as I know that C23 c

[Bug c/67224] UTF-8 support for identifier names in GCC

2025-04-29 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67224 --- Comment #39 from Joseph S. Myers --- Spelling is a sequence of characters - and a spelling where those characters include \ and u is different from a spelling where a multibyte source character appears directly, and also different from a spel

[Bug c/119170] Add operators _Widthof, _Minof, _Maxof

2025-03-10 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119170 --- Comment #6 from Joseph S. Myers --- I don't think we should add this prematurely. We can wait for the specification to mature in WG14, and I think it's a bad idea to split the discussion between multiple places.

[Bug c/119170] Add operators _Widthof, _Minof, _Maxof

2025-03-10 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119170 --- Comment #7 from Joseph S. Myers --- In particular, the subtle issues around semantics for bit-field expression operands (see N2958) are definitely something that should be discussed in a single place (i.e. the standard committee) rather than

[Bug c/119170] Add operators _Widthof, _Minof, _Maxof

2025-03-11 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119170 --- Comment #11 from Joseph S. Myers --- The ISO Code of Ethics and Conduct includes "We abide by the policies of ISO and embrace the concepts of compromise and consensus building, and notably in the development of ISO standards and other delive

[Bug cobol/119244] cobol/libgcobol should allow libquadmath to provide 128b floating support.

2025-03-12 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119244 --- Comment #2 from Joseph S. Myers --- If ABI support for _Float128 is added on an architecture that doesn't currently have it, we can also add such support on that architecture in glibc - but that will increase the minimum GCC version for buil

[Bug cobol/119244] cobol/libgcobol should allow libquadmath to provide 128b floating support.

2025-03-12 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119244 --- Comment #6 from Joseph S. Myers --- If P3140 gets into standard C++ that will provide a more substantial reason for extending ABIs / back-end / library support to handle 128-bit integers across all targets.

[Bug c/119170] Add operators _Widthof, _Minof, _Maxof

2025-03-12 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119170 --- Comment #18 from Joseph S. Myers --- bool is a keyword whose spelling inside # and ## is unspecified, and _Bool is an alternative spelling for that keyword. It's permitted for implementations to use a predefined macro, but that's not what GC

[Bug c/97986] [12/13/14/15 Regression] ICE in force_constant_size when applying va_arg to VLA type since r6-91-gf8e89441bc5518f4

2025-03-05 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97986 --- Comment #10 from Joseph S. Myers --- I think my previous comment still applies: when an array type is passed to va_arg, evaluate side effects of the arguments, warn and (except for non-VLAs in C90 mode) generate a call to __builtin_trap that'

[Bug translation/118991] Wrong extracted text in avr.cc

2025-02-25 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118991 --- Comment #3 from Joseph S. Myers --- This sort of concatenation is not expected to work with gettext; except I think for limited cases for standard PRI* etc. macros, translations are always for literal strings, not ones concatenated with host

[Bug c/119624] GCC rejects valid C11 code involving _Generic

2025-04-04 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119624 --- Comment #3 from Joseph S. Myers --- This raises a question of whether the interpretation of the type of the controlling expression "as if it had undergone an lvalue conversion" (per the resolution of issue 0481) also engages the (translation

[Bug c/119624] GCC rejects valid C11 code involving _Generic

2025-04-04 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119624 --- Comment #6 from Joseph S. Myers --- Please see the recent "discarded" papers, which attempt to establish a notion of "discarded relative" which is what's actually wanted (for e.g. establishing whether something is a constant expression).

[Bug c/112761] Using incomplete array types in function prototypes doesn't work

2025-05-07 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112761 --- Comment #5 from Joseph S. Myers --- The basic principle here was established in C90 DR#047: "there is nothing to suggest that a not-strictly-conforming array type can magically be transformed into a strictly conforming pointer parameter via

[Bug target/120304] SPARC lacks __float128 support

2025-05-16 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120304 --- Comment #5 from Joseph S. Myers --- I agree that it's best not to support legacy __float128 for new architectures; if there are any remaining issues with libgcobol using long double / _Float128, those should be fixed instead. float128-mul-u

[Bug c/120381] [14/15/16 Regression] internal compiler error: in composite_type_internal, at c/c-typeck.cc:848

2025-05-21 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120381 --- Comment #2 from Joseph S. Myers --- Nesting one definition of struct A inside another is never valid (and the godbolt link shows the expected "nested redefinition" error that the PR doesn't quote).

[Bug target/120326] problems with attribute __ms_struct__

2025-05-19 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120326 Joseph S. Myers changed: What|Removed |Added Last reconfirmed||2025-05-19 Ever confirmed|0

[Bug c/117025] [C2y] Implement N3369, New _Lengthof()

2025-05-27 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117025 Joseph S. Myers changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

<    1   2   3