Lines Matching refs:time
12 actually works in Bionic at the time of writing. Other FORTIFY implementations
48 to provide useful run-time checks. For the purpose of this document, all
80 * complexity and irrelevance. It turns into a compile-time warning if the
137 - Producing a compile-time error if the number of bytes to copy trivially
140 available at the destination, a run-time check is inserted to crash the
143 determined at compile-time[^1].
236 ### How does Clang offer compile-time diagnostics?
252 mempcpy(buf, input_buf, 5); // Emits a compile-time error since sizeof(buf) < 5.
253 __builtin_mempcpy(buf, input_buf, 5); // No compile-time error.
254 (&mempcpy)(buf, input_buf, 5); // No compile-time error, since __builtin_mempcpy is selected.
286 mempcpy(buf, input_buf, 5); // Emits a compile-time error since sizeof(buf) < 5.
288 mempcpy(buf_ptr, input_buf, 5); // No compile-time error; `buf_ptr`'s target can't be determined.
292 ### How does Clang insert run-time checks?
295 in instances where there is no chance of catching a bug at run-time. Otherwise,
296 it introduces a tiny additional run-time cost to ensure that functions aren't
303 compile-time error, rather than producing a binary.
312 diagnose_if and assuming run-time checks are enabled):
352 always fold to a constant value by the time LLVM emits machine code.
397 - report misuses of stdlib functions at compile-time, and
398 - insert run-time checks for uses of functions that might be incorrect, but only
465 - Turns calls to `open` with too many arguments into a compile-time error.
466 - Diagnoses calls to `open` with missing modes at compile-time and run-time
479 #### Compile-time error on too many arguments
491 attribute, all of these calls turn into compile-time errors.
493 #### Compile-time or run-time error on missing arguments
514 Like `mempcpy`, `diagnose_if` handles emitting a compile-time error if the call
520 performs a run-time check:
528 #### Compile-time warning if modes are pointless
561 (Preemptively: at the time of writing, Clang has no literal `__builtin_poll`
600 compile-time error if possible using `diagnose_if`.
601 - If this can't be observed until run-time, `__poll_chk` verifies this.
649 `__builtin_object_size(p, N)` is intended to evaluate at compile-time how many
818 As time has moved on, Clang has increasingly gained support for emitting