UNREG: add a forward declaration for local literals
authorSergei Trofimovich <siarheit@google.com>
Sun, 29 Jan 2017 21:11:40 +0000 (21:11 +0000)
committerSergei Trofimovich <siarheit@google.com>
Sun, 29 Jan 2017 21:21:42 +0000 (21:21 +0000)
commit4441f90738e27ea7ba368723f27d19c03093aa66
tree25dd00e748c84e0267a576ca3cda538430690a4a
parent34a0205587c8c6017a26ddf7023e91789da2e81b
UNREG: add a forward declaration for local literals

When toplevel literals don't have a way to be exported
from module GHC infers their labels as static.

Example from GHC.Arr:
    static char rdVA_bytes[] = " out of range ";

When this label is used in module internally
we also need to provide it's forward declaration.

Signed-off-by: Sergei Trofimovich <siarheit@google.com>
includes/Stg.h