------- Comment #1 from rguenth at gcc dot gnu dot org  2009-03-14 17:33 -------
You should be able to do this already with something like

void do_the_warning (void) __attribute__((warning("assertion always false")));

#define assert(X) \
if (__builtin_constant_p (X) \
    && !(X))                  \
  do_the_warning ();          \
if (!(X)) abort ();


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39462

Reply via email to