[Bug fortran/37472] bad output on default-format write of double in common block with -m64 flag i

dominiq at lps dot ens dot fr gcc-bugzilla@gcc.gnu.org
Sun Dec 21 13:36:00 GMT 2008



------- Comment #14 from dominiq at lps dot ens dot fr  2008-12-21 13:34 -------
> This little patch eliminates the misalignment of output characters with -m32
> and gets rid of a many many valgrind errors.
>
> @@ -628,7 +637,7 @@ output_float_FMT_G_ ## x (st_parameter_d
> \
>   while (low <= high)\
>      { \
> -      GFC_REAL_ ## x temp;\
> +      float temp;\
>        mid = (low + high) / 2;\
>  \
>        temp = 0.1 * calculate_exp_ ## x (mid) - 0.5\

Do you understand why? Such a change is the opposite of what I understand of
the GFC_REAL_* machinery, although I have no knowledge about mixed calculations
in C.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37472



More information about the Gcc-bugs mailing list