[Bug libstdc++/77760] get_time needs to set tm_wday amd tm_yday

2023-02-16 Thread aoliva at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77760 --- Comment #8 from Alexandre Oliva --- https://gcc.gnu.org/pipermail/gcc-patches/2023-February/612198.html has a simple-minded implementation, that should make it clear what I mean by scratch: get() pays no regard to the incoming bits in tm, it

[Bug libstdc++/77760] get_time needs to set tm_wday amd tm_yday

2023-02-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77760 --- Comment #7 from Jakub Jelinek --- (In reply to Alexandre Oliva from comment #5) > As for tm bits, my suggestion was to overwrite tm fields internally, not to > expose that externally. They'd be used as scratch bits. As in, member > function

[Bug libstdc++/77760] get_time needs to set tm_wday amd tm_yday

2023-02-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77760 --- Comment #6 from Jonathan Wakely --- (In reply to Alexandre Oliva from comment #5) > I'm not entirely sure what the point of testing for __clang__ is, really. > Is libstdc++ used with, or supposed to be used (say, as a system library) > with

[Bug libstdc++/77760] get_time needs to set tm_wday amd tm_yday

2023-02-09 Thread aoliva at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77760 --- Comment #5 from Alexandre Oliva --- I'm not entirely sure what the point of testing for __clang__ is, really. Is libstdc++ used with, or supposed to be used (say, as a system library) with __clang__? If so, wouldn't it be useful if it actua

[Bug libstdc++/77760] get_time needs to set tm_wday amd tm_yday

2023-02-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77760 --- Comment #4 from Jakub Jelinek --- (In reply to Alexandre Oliva from comment #3) > I'm looking at a case in which __clang__ is defined, despite compiling with > GCC, and "%I...%p" parsing fails because the hack to pass state around > doesn't w

[Bug libstdc++/77760] get_time needs to set tm_wday amd tm_yday

2023-02-09 Thread aoliva at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77760 Alexandre Oliva changed: What|Removed |Added CC||aoliva at gcc dot gnu.org --- Comment

[Bug libstdc++/77760] get_time needs to set tm_wday amd tm_yday

2022-01-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77760 --- Comment #2 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:a8d3c98746098e2784be7144c1ccc9fcc34a0888 commit r12-6410-ga8d3c98746098e2784be7144c1ccc9fcc34a0888 Author: Jakub Jelinek Date: Mo

[Bug libstdc++/77760] get_time needs to set tm_wday amd tm_yday

2021-12-15 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77760 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1