File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -196,8 +196,10 @@ void ansi_c_internal_additions(std::string &code)
196
196
config.ansi_c .arch ==" x86_64" ||
197
197
config.ansi_c .arch ==" x32" )
198
198
{
199
- if (config.ansi_c .mode == configt::ansi_ct::flavourt::CLANG)
200
- code+=" typedef double __float128;\n " ; // clang doesn't do __float128
199
+ // clang doesn't do __float128
200
+ // Note that this is a typedef and not a keyword.
201
+ if (config.ansi_c .mode != configt::ansi_ct::flavourt::CLANG)
202
+ code+=" typedef long double __float128;\n " ;
201
203
}
202
204
203
205
// On 64-bit systems, both gcc and clang have typedefs
Original file line number Diff line number Diff line change @@ -127,8 +127,9 @@ void cpp_internal_additions(std::ostream &out)
127
127
config.ansi_c .arch == " x32" )
128
128
{
129
129
// clang doesn't do __float128
130
- if (config.ansi_c .mode == configt::ansi_ct::flavourt::CLANG)
131
- out << " typedef double __float128;" << ' \n ' ;
130
+ // Note that this is a typedef and not a keyword.
131
+ if (config.ansi_c .mode != configt::ansi_ct::flavourt::CLANG)
132
+ out << " typedef long double __float128;" << ' \n ' ;
132
133
}
133
134
134
135
// On 64-bit systems, gcc has typedefs
You can’t perform that action at this time.
0 commit comments