Skip to content

Commit f817f26

Browse files
authored
Add simpler EPILOGUE for clang
1 parent a492181 commit f817f26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common_loongarch64.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,13 @@ REALNAME: ;\
281281
#define GNUSTACK
282282
#endif /* defined(__linux__) && defined(__ELF__) */
283283

284+
#ifdef __clang__
285+
#define EPILOGUE .end
286+
#else
284287
#define EPILOGUE \
285288
.end REALNAME ;\
286289
GNUSTACK
290+
#endif
287291

288292
#define PROFCODE
289293

0 commit comments

Comments
 (0)