Subject: Re: bug#13818: 24.3.50; Bootstrap failed on Cygwin due to revno: 111870

From: Ken Brown <[email-masked]>
Date: Wed, 27 Feb 2013 06:25:15 -0500

On 2/27/2013 3:02 AM, Paul Eggert wrote:
> If I'm understanding things correctly, this means the
> following little test program compiles and links OK.
> Can you please check this?
>
> extern char data_start[];
> char ch;
> int
> main ()
> {
>    return data_start == &ch;
> }

It compiles and links OK.  But maybe Andreas explained why.

> If this compiles and links, we need to find out why
> the similar usage in vm-limit.c does not link.
>
> Can you please compile the above program
> with gcc -std=gnu99 -O2 -S and see what
> the machine code looks like?

Attached.

> Also, suppose we change this test program to the following
> instead -- does this test program compile and link?
>
> extern char data_start[];
> char ch;
> int
> main ()
> {
>    return data_start < &ch;
> }

No, this gives the "undefined reference to `_data_start'" error.  Making 
that change in configure.ac fixes the problem.

Ken