public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: IainS <developer@sandoe-acoustics.co.uk>
To: Ian Lance Taylor <iant@google.com>
Cc: Dave Korn <dave.korn.cygwin@gmail.com>,
	Andi Kleen <andi@firstfloor.org>,
	       Andrew Pinski <pinskia@gmail.com>,
	       Mark Mitchell <mark@codesourcery.com>,
	       GCC Mailing List <gcc@gcc.gnu.org>,
	       GCC Patches <gcc-patches@gcc.gnu.org>,
	       Jack Howarth <howarth@bromo.med.uc.edu>
Subject: Re: Discussion about merging Go frontend
Date: Fri, 29 Oct 2010 13:31:00 -0000	[thread overview]
Message-ID: <072916A7-8894-445B-AF30-05F2E5D40435@sandoe-acoustics.co.uk> (raw)
In-Reply-To: <4CCA8C22.8030308@gmail.com>


On 29 Oct 2010, at 09:56, Dave Korn wrote:
>> This implements an object file reader/writer which does everything
>> required by LTO and gccgo.  The ELF code works.  I have not tested  
>> the
>> Mach-O and COFF code at all beyond compiling it; I hope that somebody
>> else can test those targets and fix them.
>
>  I'm right here :) Can't help with Darwin but hopefully Jack/Iain  
> will be
> available.


I tried with 166058 on ppc-darwin9 (my other machines are tied up  
right now)

-flto fails on link with missing _main.
e.g:
Executing on host: /Volumes/ScratchCS/gcc-4-6-trunk-build/gcc/xgcc -B/ 
Volumes/ScratchCS/gcc-4-6-trunk-build/gcc/ c_lto_20081024_0.o  -
O0 -flto       -m32 -o gcc-dg-lto-20081024-21    (timeout = 60)
Undefined symbols:
   "_main", referenced from:
       start in crt1.10.5.o

-whopr ices with:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x007f8e18 in objfile_mach_o_find_sections (objfile=0x40e078b0,  
pfn=0x1d7ec <lto_obj_add_section>, data=0xbffff19c, err=0xbffff198)  
at /GCC/gcc-live-trunk/libiberty/objfile-mach-o.c:469
469           memcpy (name, sechdr + sectname_offset, MACH_O_NAME_LEN);
(gdb) bt
#0  0x007f8e18 in objfile_mach_o_find_sections (objfile=0x40e078b0,  
pfn=0x1d7ec <lto_obj_add_section>, data=0xbffff19c, err=0xbffff198)  
at /GCC/gcc-live-trunk/libiberty/objfile-mach-o.c:469
#1  0x007f5dbc in objfile_find_sections (objfile=<value temporarily  
unavailable, due to optimizations>, pfn=<value temporarily  
unavailable, due to optimizations>, data=<value temporarily  
unavailable, due to optimizations>, err=<value temporarily  
unavailable, due to optimizations>) at /GCC/gcc-live-trunk/libiberty/ 
objfile.c:173
#2  0x0001dc60 in lto_obj_build_section_table (lto_file=<value  
temporarily unavailable, due to optimizations>) at /GCC/gcc-live-trunk/ 
gcc/lto/lto-objfile.c:270
#3  0x0001af80 in lto_read_all_file_options () at /GCC/gcc-live-trunk/ 
gcc/lto/lto.c:2052
#4  0x00003960 in lto_post_options (pfilename=<value temporarily  
unavailable, due to optimizations>) at /GCC/gcc-live-trunk/gcc/lto/lto- 
lang.c:709
#5  0x004f0eec in toplev_main (argc=15, argv=Cannot access memory at  
address 0x1c
) at /GCC/gcc-live-trunk/gcc/toplev.c:1778
#6  0x00001944 in start ()

if you need more analysis - ping me with what and I'll try and do sth  
-- or maybe Jack can help with a user on his machine.

cheers,
Iain


  reply	other threads:[~2010-10-29 11:10 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mcr7hh8qhb5.fsf@google.com>
     [not found] ` <4CC45302.9000702@gmail.com>
     [not found]   ` <mcrhbgbyoef.fsf@google.com>
     [not found]     ` <4CC59F1E.7040505@codesourcery.com>
     [not found]       ` <mcrbp6ixhny.fsf@google.com>
     [not found]         ` <AANLkTikEy7ER+CkQdWo0XHPoBORvbp8JZ226QFM68PZv@mail.gmail.com>
     [not found]           ` <87pquy3yh5.fsf@basil.nowhere.org>
     [not found]             ` <4CC60C5E.6050605@gmail.com>
2010-10-29  6:56               ` Ian Lance Taylor
2010-10-29 13:19                 ` Dave Korn
2010-10-29 13:31                   ` IainS [this message]
2010-10-29 14:50                     ` Ian Lance Taylor
2010-10-29 13:45                   ` Jack Howarth
2010-10-29 14:34                     ` Dave Korn
2010-10-29 14:35                     ` Ian Lance Taylor
2010-10-29 15:10                       ` Jack Howarth
2010-10-29 13:51                 ` Richard Guenther
2010-10-29 14:31                   ` Dave Korn
2010-10-29 15:30                 ` Mark Mitchell
2010-10-30  8:07                 ` Richard Henderson
2010-10-30 13:59                   ` Dave Korn
2010-10-31  0:31                     ` Richard Henderson
2010-10-31  3:33                       ` Dave Korn
2010-10-31  7:16                         ` Richard Henderson
2010-10-31  8:47                           ` Dave Korn
2010-10-31 19:43                             ` Ian Lance Taylor
2010-10-31 20:00                   ` Ian Lance Taylor
2010-10-30 16:31                 ` Dave Korn
2010-10-30 20:02                   ` [PATCH] Enable linker plugin for windows [was Re: Discussion about merging Go frontend] Dave Korn
2010-11-05 22:02                     ` Ian Lance Taylor
2010-11-05 22:03                       ` Dave Korn
2010-11-16 16:38                       ` [withdrawn] " Dave Korn
2010-11-02 15:12                   ` Discussion about merging Go frontend Ian Lance Taylor
2010-11-02 22:22                     ` Dave Korn
2010-11-02 22:30                       ` Ian Lance Taylor
2010-11-02 22:50                         ` Dave Korn
2010-11-03  6:09                       ` Ralf Wildenhues
2010-11-03  7:05                         ` Dave Korn
2010-10-30 19:30                 ` Dave Korn
2010-10-31 20:18                   ` Ian Lance Taylor
2010-11-01 17:36                 ` Tom Tromey
2010-11-01 18:23                   ` Ian Lance Taylor
2010-11-02 10:51                     ` Paolo Bonzini
2010-11-02 11:01                       ` Paolo Bonzini
2010-11-01 22:30                   ` Ian Lance Taylor
2010-11-02 15:06                     ` Ian Lance Taylor
2010-11-02 17:58                       ` H.J. Lu
2010-11-02 22:51                         ` Dave Korn
2010-11-03  0:16                           ` Dave Korn
2010-11-03  0:38                             ` Dave Korn
2010-11-03  2:04                               ` Dave Korn
2010-11-03  4:29                                 ` Dave Korn
2010-11-03  4:46                                   ` Dave Korn
2010-11-03  4:36                                 ` Ian Lance Taylor
2010-11-03  4:43                                   ` Dave Korn
2010-11-03  4:47                                     ` Ian Lance Taylor
2010-11-03  5:06                                       ` Dave Korn
2010-11-03  5:40                                         ` Dave Korn
2010-11-03  9:47                                           ` Dave Korn
2010-11-03 16:19                                             ` H.J. Lu
2010-11-03 21:03                                               ` [PATCH] Fix PR46291: broken lto-bootstrap [was Re: Discussion about merging Go frontend] Dave Korn
2010-11-03 21:12                                                 ` Ian Lance Taylor
2010-11-03 21:40                                                   ` [PATCH,take2] " Dave Korn
2010-11-03 22:06                                                     ` Ian Lance Taylor
2010-11-03 23:53                                                       ` Dave Korn
2010-11-05 17:33                                                 ` H.J. Lu
2010-11-02 23:00                       ` Discussion about merging Go frontend Dave Korn
2010-11-02 23:36                         ` Ian Lance Taylor
2010-11-02 17:43                     ` H.J. Lu
2010-11-02 18:01                       ` Ian Lance Taylor
2010-11-02 18:06                         ` H.J. Lu
2010-11-06 20:01                 ` Eric Botcazou
2010-11-16 18:34                   ` simple-object vs. Solaris Ian Lance Taylor
2010-11-16 20:12                     ` Dave Korn
2010-11-17  0:49                     ` Eric Botcazou
2010-11-17  2:31                       ` Ian Lance Taylor
     [not found] <9EE4BD58-E9A3-4637-926F-B4F42EE82164@sandoe-acoustics.co.uk>
2010-10-29 18:19 ` Discussion about merging Go frontend IainS

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=072916A7-8894-445B-AF30-05F2E5D40435@sandoe-acoustics.co.uk \
    --to=developer@sandoe-acoustics.co.uk \
    --cc=andi@firstfloor.org \
    --cc=dave.korn.cygwin@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gcc@gcc.gnu.org \
    --cc=howarth@bromo.med.uc.edu \
    --cc=iant@google.com \
    --cc=mark@codesourcery.com \
    --cc=pinskia@gmail.com \
    /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.
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).