This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [fortran, patch] IEEE intrinsic modules


Hello!

> +int
>  get_fpu_except_flags (void)
>  {
>    unsigned short cw;
>    int excepts;
>    int result = 0;
>
> -  __asm__ __volatile__ ("fnstsw\t%0" : "=a" (cw));
> +  __asm__ __volatile__ ("fnstsw\t%0" : "=m" (cw));
>    excepts = cw;
>
>    if (has_sse())

You can use "=am" constraint here, and the compiler will be free to
choose the most appropriate form.

Also, you should use __asm__ __volatile__ consistently in the headers.

Uros.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]