Skip to content

Commit bbf7998

Browse files
author
kroening
committed
added _Noreturn for clang
git-svn-id: svn+ssh://svn.cprover.org/srv/svn/cbmc/trunk@6023 6afb6bc1-c8e4-404c-8f48-9ae832c5b171
1 parent 5b151e0 commit bbf7998

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ansi-c/c_preprocess.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,9 @@ bool c_preprocess_gcc_clang(
707707
command+=" -D__DEC128_MANT_DIG__=34";
708708
command+=" -D__LDBL_MIN_10_EXP__=\"(-4931)\"";
709709

710+
if(preprocessor==configt::ansi_ct::preprocessort::PP_CLANG)
711+
command+=" -D_Noreturn=__attribute__((__noreturn__))";
712+
710713
if(config.ansi_c.int_width==16)
711714
command+=GCC_DEFINES_16;
712715
else if(config.ansi_c.int_width==32)

0 commit comments

Comments
 (0)