We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 990c707 commit 05c9c72Copy full SHA for 05c9c72
llvm/lib/Target/CBackend/CBackend.cpp
@@ -1398,6 +1398,11 @@ static void generateCompilerSpecificCode(std::ostream& Out) {
1398
<< "#define __ATTRIBUTE_DTOR__\n"
1399
<< "#define LLVM_ASM(X)\n"
1400
<< "#endif\n\n";
1401
+
1402
+ Out << "#if __GNUC__ < 4 /* Old GCC's, or compilers not GCC */ \n"
1403
+ << "#define __builtin_stack_save() 0 /* not implemented */\n"
1404
+ << "#define __builtin_stack_restore(X) /* noop */\n"
1405
+ << "#endif\n\n";
1406
1407
// Output target-specific code that should be inserted into main.
1408
Out << "#define CODE_FOR_MAIN() /* Any target-specific code for main()*/\n";
0 commit comments