[cfe-dev] bugfix(1908): http://llvm.org/bugs/show_bug.cgi?id=1908

Csaba Hruska csaba.hruska at gmail.com
Wed Jan 23 01:48:06 PST 2008


static int a2;
extern int a2 = 10;
static int a3 = 10;

compiles to:

@a2 = internal global i32 10            ; <i32*> [#uses=0]
@a3 = internal global i32 10            ; <i32*> [#uses=0]

so it looks like it works :)

2008/1/23, Eli Friedman <eli.friedman at gmail.com>:
>
> On Jan 22, 2008 2:51 PM, Csaba Hruska <csaba.hruska at gmail.com> wrote:
> > this is the final bugfix, i've tested with the test cases in the test
> > directory, and this doesnt changed the result, so it doesnt break any
> other
> > stuff :)
>
> Hmm, looks generally reasonable... how does it work with the following
> testcase?
>
> static int a;
> extern int a = 10;
>
> (a should have internal linkage and be initialized to 10.)
> -Eli
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080123/75d5a804/attachment.html>


More information about the cfe-dev mailing list