Paul,

Thanks for installing the simpler xm_max/xm_map counted_by change. I pulled
tip (dd12f616) and tested here.

On this machine clang is 19.1.7; it rejects -fbounds-safety (unknown
argument), so
./configure CC=clang CFLAGS='-fbounds-safety'
fails at configure.

Without that flag:
./configure CC=clang && make && make check
passed: 238 successful, 28 skipped, 0 failed.

I do not currently have an experimental Clang with -fbounds-safety to
re-run the exact command you suggested. Happy to retest when I do.

Jeff

On Sat, Sep 12, 2026 03:09 PM, Paul Eggert <[email protected]> wrote:

> Yes, the -fbounds-safety stuff is probably best left up to the builder,
> just as -fsanitize=address etc. are. However, it should be a win to tell
> the compiler about the relationship between xm_max and xm_map, as that can
> help static checking even if -fbounds-safety is not used. Also, it should
> help when -fbounds-safety is used.
>
> I installed the attached to GNU tar to do that. This is a simpler than
> what was in Jeff's proposal. Although I tested it it GCC 16.2 and clang
> 22.1.8, I haven't tested it with experimental Clang's new -fbounds-safety
> option - Jeff, could you do that? You should be able to use something like
> "./configure CC=clang CFLAGS='-fbounds-safety' && make check" to do the
> test.

Reply via email to