From patchwork Thu Jun 24 20:50:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Steven Bosscher X-Patchwork-Id: 56841 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id BB0A7B6F18 for ; Fri, 25 Jun 2010 06:50:55 +1000 (EST) Received: (qmail 20909 invoked by alias); 24 Jun 2010 20:50:53 -0000 Received: (qmail 20901 invoked by uid 22791); 24 Jun 2010 20:50:53 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-vw0-f47.google.com (HELO mail-vw0-f47.google.com) (209.85.212.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 24 Jun 2010 20:50:46 +0000 Received: by vws19 with SMTP id 19so1731051vws.20 for ; Thu, 24 Jun 2010 13:50:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.99.210 with SMTP id v18mr6513220qan.87.1277412639059; Thu, 24 Jun 2010 13:50:39 -0700 (PDT) Received: by 10.151.154.11 with HTTP; Thu, 24 Jun 2010 13:50:38 -0700 (PDT) In-Reply-To: References: Date: Thu, 24 Jun 2010 22:50:38 +0200 Message-ID: Subject: Re: [patch][4.5] Backport Mach-O LTO support From: Steven Bosscher To: Richard Guenther Cc: GCC Patches , Jakub Jelinek Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org On Thu, Jun 24, 2010 at 10:26 PM, Richard Guenther wrote: > On Thu, Jun 24, 2010 at 9:38 PM, Steven Bosscher wrote: >> Hi, >> >> Pretty straight-forward port of the patches from trunk to gcc 4.5.1. >> There are new test suite failures if configured with --enable-lto but >> those are the same as on trunk (where some test cases have been >> patched to xfail ELF-isms in the lto test suite). >> >> Bootstrapped & tested on x86_64-unknown-linux-gnu. OK for GCC 4.5? > > Ok.  Can you amend gcc-4.5/changes.html (adding a GCC 4.5.1 section > like we have for previous releases)? Sure. Like so? Index: changes.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.5/changes.html,v retrieving revision 1.91 diff -u -r1.91 changes.html --- changes.html 6 Jun 2010 13:36:29 -0000 1.91 +++ changes.html 24 Jun 2010 20:50:08 -0000 @@ -832,6 +832,23 @@ +

GCC 4.5.1

+ +

All languages

+
    +
  • GCC's new link-time optimizer (-flto) now also works on a few non-ELF targets:

    + +
      +
    • Cygwin (*-cygwin*)
    • +
    • MinGW (*-mingw*)
    • +
    • Darwin on x86-64 (x86_64-apple-darwin*)
    • +
        + +

        LTO is not enabled by default for these targets. To enable LTO, + you should configure with the --enable-lto option.

        +