This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/41711] Z format does not support writing KIND=10 reals
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Oct 2009 01:41:39 -0000
- Subject: [Bug libfortran/41711] Z format does not support writing KIND=10 reals
- References: <bug-41711-10743@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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