__attribute__ ((mode (XX))) incorrectly determined by autoconf.

Andreev Konstantin andreev at swemel.ru
Tue Jun 23 12:48:49 CEST 2009


Hello.

Autoconf script incorrectly determines working "__attribute__ ((mode (SI)))" for "SunStudio Express 2009/03" compiler:


[andreev at jabba gmp-4.3.1]$ cc -V
cc: Sun Ceres C 5.10 SunOS_i386 2009/03/06
[andreev at jabba gmp-4.3.1]$ echo 'typedef int SItype __attribute__ ((mode (SI)));' >test.c
[andreev at jabba gmp-4.3.1]$ cc -c test.c
"test.c", line 1: warning:  attribute "mode" is unknown, ignored
"test.c", line 1: warning: attribute parameter "SI" is undefined
[andreev at jabba gmp-4.3.1]$ echo $?
0


I suppose, in your acinclude.m4 you should use the same technique for "__attribute__ ((mode (SI)))" as for "__attribute__ ((malloc))" to detect warning about ignored attribute.

Best regards,
--
Konstantin Andreev.



More information about the gmp-bugs mailing list