]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: add attributes to more ios_base types
authorJason Merrill <jason@redhat.com>
Mon, 3 Nov 2025 15:55:06 +0000 (18:55 +0300)
committerJason Merrill <jason@redhat.com>
Mon, 3 Nov 2025 15:55:06 +0000 (18:55 +0300)
commit725ce34b6c27a1d840a03911644f4d248858c83d
tree4bd499c97594a33e621504b28c9a3939a2769d8c
parent9f428ffbd4b6de9c940f1a1a304973bcd2f2bd4e
libstdc++: add attributes to more ios_base types

In r15-3499 I added attributes to _Ios_Openmode to avoid -Wswitch false
positives; let's do the same for the other enums in ios_base.

It also seems to me that with these attributes, the tests don't need to
include the end/max/min cases.

libstdc++-v3/ChangeLog:

* include/bits/ios_base.h: Add attribs to _Ios_Fmtflags,
_Ios_Iostate, _ios_seekdir.
* testsuite/27_io/ios_base/types/fmtflags/case_label.cc: Remove
unneeded cases.
* testsuite/27_io/ios_base/types/iostate/case_label.cc: Likewise.
* testsuite/27_io/ios_base/types/openmode/case_label.cc: Likewise.
* testsuite/27_io/ios_base/types/seekdir/case_label.cc: Likewise.
libstdc++-v3/include/bits/ios_base.h
libstdc++-v3/testsuite/27_io/ios_base/types/fmtflags/case_label.cc
libstdc++-v3/testsuite/27_io/ios_base/types/iostate/case_label.cc
libstdc++-v3/testsuite/27_io/ios_base/types/openmode/case_label.cc
libstdc++-v3/testsuite/27_io/ios_base/types/seekdir/case_label.cc