------- Comment #2 from burnus at gcc dot gnu dot org  2007-11-27 12:38 -------
Valgrind finds:
==26293== Use of uninitialised value of size 4
==26293==    at 0x80485D5: returnA (bind_c_usage_16.f03:14)

==26293==  Bad permissions for mapped region at address 0x8048B10
==26293==    at 0x80485C1: returnB (bind_c_usage_16.f03:17)

gimple dump (excerpt): The following <retval> looks a bit odd, but maybe I'm
just not used to gimple:

--- bind_c_usage_16.f03.m32gimp
+++ bind_c_usage_16.f03.m64gimp
+  character(kind=1) D.864[1:1];
   character(kind=1) __result_foo[1:1];
   __result_foo[1]{lb: 1 sz: 1} = 66;
-  <retval> = __result_foo;
-  return <retval>;
+  D.864 = __result_foo;
+  return D.864;


-- 


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

Reply via email to