Skip to content

Commit 15b92ae

Browse files
fixup! WIP: Add support for function attributes
Add support for returns_twice attribute in libgccjit
1 parent 70d876b commit 15b92ae

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

gcc/jit/jit-playback.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,8 @@ const char* fn_attribute_to_string(gcc_jit_fn_attribute attr)
529529
return "visibility";
530530
case GCC_JIT_FN_ATTRIBUTE_COLD:
531531
return "cold";
532+
case GCC_JIT_FN_ATTRIBUTE_RETURNS_TWICE:
533+
return "returns_twice";
532534
}
533535
return NULL;
534536
}

gcc/jit/libgccjit.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,6 +2104,7 @@ enum gcc_jit_fn_attribute
21042104
GCC_JIT_FN_ATTRIBUTE_USED,
21052105
GCC_JIT_FN_ATTRIBUTE_VISIBILITY,
21062106
GCC_JIT_FN_ATTRIBUTE_COLD,
2107+
GCC_JIT_FN_ATTRIBUTE_RETURNS_TWICE,
21072108
};
21082109

21092110
/* Add an attribute to a function. */

0 commit comments

Comments
 (0)