[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc
Subject:    __builtin_dynamic_object_size
From:       Jonathan Wakely <jwakely.gcc () gmail ! com>
Date:       2019-01-23 10:40:43
Message-ID: CAH6eHdQc4w3AQpA65GQ+oNtdHGeb-6CCsMVGsqwN7DXkcTwYxQ () mail ! gmail ! com
[Download RAW message or body]

There's a patch to add __builtin_dynamic_object_size to clang:
https://reviews.llvm.org/D56760

It was suggested that this could be done via a new flag bit for
__builtin_object_size, but only if GCC would support that too
(otherwise it would be done as a separate builtin).

Is there any interest in adding that as an option to __builtin_object_size?

I know Jakub is concerned about arbitrarily complex expressions, when
__builtin_object_size is supposed to always be efficient and always
evaluate at compile time (which would imply the dynamic behaviour
should be a separate builtin, if it exists at all).
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic