https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110360

--- Comment #22 from anlauf at gcc dot gnu.org ---
Created attachment 55418
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55418&action=edit
Slighty revised version of 3rd patch

I've looked at gfc_conv_string_parameter, which I was not aware of.
This can be used for a more readable patch.

It appears one could even use the revised part for constant arguments, too.
However, this changes the tree-dump for gfortran.dg/bind_c_usage_13.f03
slightly in two places, implying the need for an adjustment of the pattern.
As I am not entirely sure whether the result of that change is correct,
I refrained from using that version.

(The partial output from Power BE appears to suggest that constant argument
is still right.)

Mikael: do you want to test on Power, or shall I proceed?
I will extend the testcase to cover the failures from comment#17.

Reply via email to