https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432
--- Comment #17 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Created attachment 34765 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34765&action=edit Handle KIND=1 and KIND=2 This updated patch gives a proposed way to handle KIND=1 and KIND=2. This is done by adding a new KIND=2 function in the library that accepts a fourth argument used to flag when a KIND=1 for any of the arguments. For KIND=1 rate is set to 1, max is set to 127, count rolls over after 127 to 0. For KIND=2 rate is set to 1000, max is 32767 THis is still in testing. I think we can handle the mixed integer and real situations using this fourth argument with different values to designate real KINDs that are encountered. You may notice that if we mix KIND=2 count and limit, with REAL(8) rate, the rate shows way too large. I am working on the mixed integer/real part. I have attached so others can review and comment. I will keep going with the mixed real/integer cases if no objections.