diff mbox

[fortran] Re: Make array_at_struct_end_p to grok MEM_REFs

Message ID 20160524132605.GA61144@kam.mff.cuni.cz
State New
Headers show

Commit Message

Jan Hubicka May 24, 2016, 1:26 p.m. UTC
> As said I'd simply use NULL TYPE_MAX_VALUE, not drop TYPE_DOMAIN 
> completely (yes, NULL TYPE_DOMAIN is equal to [0:] so we can as well
> print that - as you say, not sure what else breaks with that ;))

NULL TYPE_MAX_VALUE was used by my previous patch, because it used 
gfc_array_range_type that was built as such.  I am testing the patch
bellow + tree-pretty-print update:
I suppose this is slightly better because it will make things more regular
across frontends and will make LTO to merge bit more.

Honza
diff mbox

Patch

Index: tree-pretty-print.c
===================================================================
--- tree-pretty-print.c (revision 236556)
+++ tree-pretty-print.c (working copy)
@@ -362,7 +362,7 @@  dump_array_domain (pretty_printer *pp, t
        }
     }
   else
-    pp_string (pp, "<unknown>");
+    pp_string (pp, "0:");
   pp_right_bracket (pp);
 }