NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/54463: FORTIFY_SOURCE won't work with clang.

On 17/08/2019 13:20, Joerg Sonnenberger wrote:
The following reply was made to PR toolchain/54463; it has been noted by GNATS.

From: Joerg Sonnenberger <>
Subject: Re: toolchain/54463: FORTIFY_SOURCE won't work with clang.
Date: Sat, 17 Aug 2019 20:04:12 +0200

  On Wed, Aug 14, 2019 at 01:20:00AM +0000, wrote:
  > However, clang does behave very different from GCC and can't really support FORTIFY_SOURCE.
Well, we have various tests in the test suite and I know that they work
  with clang. I'm therefore a bit puzzled by this report, especially since
  it doesn't actually contain anything actionable.

Hmm ... even more puzzling, FreeBSD has the same tests but we don't support FORTIFY_SOURCE at all, so at this time I have no idea what we are testing :-/.

I found an old posting (2015), that explains the problem:

It may be that __builtin_object_size got fixed in recent versions of clang, but there are surely differences to account for, like the lack of __builtin_va_arg_*.

Perhaps NetBSD's FORTIFY_SOURCE ignores any compiler like clang that reports itself as old as GCC 4.2. In that case perhaps its best to just close the PR.


Home | Main Index | Thread Index | Old Index