Re: RFC: A redesign of `-Mmodules` output

2025-02-28 Thread Paul Smith via Gcc
On Fri, 2025-02-28 at 19:26 +0100, Ben Boeckel via Gcc wrote: > > In POSIX make, including GNU Make, if a command doesn't modify the > > modification time of the target then that target is not considered > > updated, and other targets which list it as a prerequisite are not > > invoked: > > Hmm. M

Re: RFC: A redesign of `-Mmodules` output

2025-02-28 Thread Paul Smith via Gcc
On Fri, 2025-02-28 at 13:07 -0500, Paul Smith via Gcc wrote: >   ~$ touch three; make -f /tmp/x3.mk MKTWO=echo Sorry this should be just "make MKTWO=echo"; my typo.

Re: RFC: A redesign of `-Mmodules` output

2025-02-28 Thread Paul Smith via Gcc
On Fri, 2025-02-28 at 18:05 +0100, Ben Boeckel via Gcc wrote: > Note that one thing that is missing is ninja's `restat = 1` feature. > This "restats" the output for the associated rule (probably spelled > `.RESTAT: output` in Make) and skips running dependent rules if the > output has not updated t

Re: Using gcc as a sort of scripting language.

2024-12-28 Thread Paul Smith via Gcc
On Sat, 2024-12-28 at 09:00 -0600, Paul Markfort via Gcc wrote: > I realize that C is not a line oriented language and usually > completely ignores line termination characters (so yes this is > probably not a simple thing to do). You probably really want this capability added to the preprocessor,

GCC 14.2: Configuring with zstd support

2024-09-23 Thread Paul Smith via Gcc
Many of the GNU toolchain projects are adding zstd compression. This is good, but the configure support for this is not ideal. In particular for GCC, there are a number of issues. The first problem is that the two subdirectories that use zstd (libbacktrace and gcc) use very different methods to

GCC 12.3 ICE: format(printf...) failing in C++ with virtual inheritance

2023-12-08 Thread Paul Smith via Gcc
I've tried this with both older versions as well as GCC 12.3 (latest I have access to). This is on GNU/Linux on x86_64. I have the following code: #include class Exception : public std::exception { public: Exception(const char* text, ...) __attribute__((format(printf, 2,

[PATCH 2/2] libstdc++: Use template form for pretty-printing tuple elements

2021-06-13 Thread Paul Smith via Gcc
std::tuple elements are retrieved via std::get<> (template) not [] (array); have the generated output string match this. libstdc++-v3/ChangeLog: * python/libstdcxx/v6/printers.py (StdTuplePrinter): Use <> not []. --- The previous patch seems uncontroversial to me. I don't know about this

[PATCH 1/2] libstdc++: Count pretty-printed tuple elements from 0 not 1

2021-06-13 Thread Paul Smith via Gcc
Show 0-based offsets for std::tuple members, to match with std::get. libstdc++-v3/ChangeLog: * python/libstdcxx/v6/printers.py (StdTuplePrinter): don't increment self.count until after generating the result string. --- libstdc++-v3/python/libstdcxx/v6/printers.py | 13 +++