@@ -69,15 +69,15 @@ inline void test_float_arg_inline(float a) {}
69
69
inline void test_float_arg_inline_used (float a ) {}
70
70
// nofp-hard-opt-error@-1 {{'a' requires 'float' type support, but ABI 'aapcs' does not support it}}
71
71
void use_inline () { test_float_arg_inline_used (1.0f ); }
72
- // nofp-hard-error@-1 {{'use_inline ' requires 'float' type support, but ABI 'aapcs' does not support it}}
72
+ // nofp-hard-error@-1 {{'test_float_arg_inline_used ' requires 'float' type support, but ABI 'aapcs' does not support it}}
73
73
74
74
// The always_inline attribute causes an inline function to always be
75
75
// code-genned, even at -O0, so we always emit the error.
76
76
__attribute((always_inline ))
77
77
inline void test_float_arg_always_inline_used (float a ) {}
78
78
// nofp-hard-error@-1 {{'a' requires 'float' type support, but ABI 'aapcs' does not support it}}
79
79
void use_always_inline () { test_float_arg_always_inline_used (1.0f ); }
80
- // nofp-hard-error@-1 {{'use_always_inline ' requires 'float' type support, but ABI 'aapcs' does not support it}}
80
+ // nofp-hard-error@-1 {{'test_float_arg_always_inline_used ' requires 'float' type support, but ABI 'aapcs' does not support it}}
81
81
82
82
// Floating-point expressions, global variables and local variables do not
83
83
// affect the ABI, so are allowed. GCC does reject some uses of floating point
@@ -103,9 +103,9 @@ int test_var_double(int a) {
103
103
extern void extern_float_arg (float );
104
104
extern float extern_float_ret (void );
105
105
void call_extern_float_arg () { extern_float_arg (1.0f ); }
106
- // nofp-hard-error@-1 {{'call_extern_float_arg ' requires 'float' type support, but ABI 'aapcs' does not support it}}
106
+ // nofp-hard-error@-1 {{'extern_float_arg ' requires 'float' type support, but ABI 'aapcs' does not support it}}
107
107
void call_extern_float_ret () { extern_float_ret (); }
108
- // nofp-hard-error@-1 {{'call_extern_float_ret ' requires 'float' type support, but ABI 'aapcs' does not support it}}
108
+ // nofp-hard-error@-1 {{'extern_float_ret ' requires 'float' type support, but ABI 'aapcs' does not support it}}
109
109
110
110
// Definitions of variadic functions, and calls to them which only use integer
111
111
// argument registers, are both fine.
@@ -115,7 +115,7 @@ void call_variadic_int() { variadic(0, 1); }
115
115
// Calls to variadic functions with floating-point arguments are an error,
116
116
// since this would require floating-point registers.
117
117
void call_variadic_double () { variadic (0 , 1.0 ); }
118
- // nofp-hard-error@-1 {{'call_variadic_double ' requires 'double' type support, but ABI 'aapcs' does not support it}}
118
+ // nofp-hard-error@-1 {{'variadic ' requires 'double' type support, but ABI 'aapcs' does not support it}}
119
119
120
120
// Calls through function pointers are also diagnosed.
121
121
void (* fptr )(float );
0 commit comments