This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libfortran/41711] Z format does not support writing KIND=10 reals



------- Comment #7 from jvdelisle at gcc dot gnu dot org  2009-10-16 01:41 -------
I had a chance to review our code here.  It uses gfc_xtoa which resides in
runtime\error.c.  All of our conversion routines are dependent on
GFC_UINTEGER_LARGEST which is platform dependent.  I think there is a
significant rework we would have to do to support conversion of real(10) to a
hex string on all platforms.

One possible way would be to embed some special case helper functions in the
existing routines.  We would be in effect implementing an internal kind=16
integer of sorts for the older x86 machines.  i am not sure its worth the
effort.

For now, I think we need to trap the kind and give a decent error message,
possibly at compile time.  Any other thoughts.  If the demand is there, we
could implement this.  I just don't think the demand is there.

Comments?


-- 


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


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