https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90302
Bug ID: 90302 Summary: Implement __builtin_warning Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- It would be useful to implement a __builtin_warning function to delay a warning which may be removed later by dead code elimination. One application could be PR48655, where warnings are issued about temporary Fortran arrays which are eliminated by the middle end. See the discussion at https://gcc.gnu.org/ml/gcc/2019-04/msg00275.html . (Come to think of it, a __builtin_error function could also be useful in some contexts).