From: Ken Brown <kbrown@cornell.edu>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Katsumi Yamaoka <yamaoka@jpl.org>, 13818@debbugs.gnu.org
Subject: bug#13818: 24.3.50; Bootstrap failed on Cygwin due to revno: 111870
Date: Wed, 27 Feb 2013 06:25:15 -0500 [thread overview]
Message-ID: <512DED1B.3040703@cornell.edu> (raw)
In-Reply-To: <512DBD91.2090001@cs.ucla.edu>
[-- Attachment #1: Type: text/plain, Size: 909 bytes --]
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
[-- Attachment #2: test.s --]
[-- Type: text/plain, Size: 264 bytes --]
.file "test.c"
.def ___main; .scl 2; .type 32; .endef
.text
.p2align 4,,15
.globl _main
.def _main; .scl 2; .type 32; .endef
_main:
pushl %ebp
movl %esp, %ebp
andl $-16, %esp
call ___main
xorl %eax, %eax
movl %ebp, %esp
popl %ebp
ret
.comm _ch, 1, 0
next prev parent reply other threads:[~2013-02-27 11:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-26 7:23 bug#13818: 24.3.50; Bootstrap failed on Cygwin due to revno: 111870 Katsumi Yamaoka
2013-02-26 12:42 ` Ken Brown
2013-02-26 17:35 ` Paul Eggert
2013-02-26 22:59 ` Katsumi Yamaoka
2013-02-27 8:02 ` Paul Eggert
2013-02-27 8:34 ` Andreas Schwab
2013-02-27 11:25 ` Ken Brown [this message]
2013-02-28 3:25 ` Ken Brown
2013-02-26 23:13 ` Ken Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=512DED1B.3040703@cornell.edu \
--to=kbrown@cornell.edu \
--cc=13818@debbugs.gnu.org \
--cc=eggert@cs.ucla.edu \
--cc=yamaoka@jpl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).