caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Anthony Tavener <anthony.tavener@gmail.com>
To: Gabriel Kerneis <kerneis@pps.jussieu.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Re: ocaml 3.12.1 and delimcc
Date: Thu, 25 Oct 2012 21:47:54 -0600	[thread overview]
Message-ID: <CAN=ouMTwppjOe9JSLCyev7uWuoK2QhUGPa+=DhYwBEL7vrd3nA@mail.gmail.com> (raw)
In-Reply-To: <20121019103535.GA3865@kerneis.info>

[-- Attachment #1: Type: text/plain, Size: 803 bytes --]

It turns out there is one specific optimization to disable with gcc 4.7.x:
 -fno-ipa-sra

So stacks-native.c can be compiled with -O2 -fno-ipa-sra.

The reason I continued to have a problem even after -O0, as Oleg found
out, is that testd0opt would link to my bad system-installed library
rather than the new one in the current directory. *facepalm*


On Fri, Oct 19, 2012 at 4:35 AM, Gabriel Kerneis <kerneis@pps.jussieu.fr>wrote:

> On Fri, Oct 19, 2012 at 02:20:56AM -0000, oleg@okmij.org wrote:
> > I'll see if I could find a pragma or other way to disable undesirable
> > optimizations.
>
> No tested, but you could try -fno-optimize-sibling-calls:
> $ gcc --help=optimizers|grep "tail recursive"
>   -foptimize-sibling-calls    Optimize sibling and tail recursive calls
>
> Best,
> --
> Gabriel
>

[-- Attachment #2: Type: text/html, Size: 1337 bytes --]

      parent reply	other threads:[~2012-10-26  3:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-16  7:06 oleg
2012-10-16 14:59 ` Anthony Tavener
2012-10-19  2:20   ` oleg
2012-10-19 10:35     ` Gabriel Kerneis
2012-10-20 17:25       ` Anthony Tavener
2012-10-26  3:47       ` Anthony Tavener [this message]

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='CAN=ouMTwppjOe9JSLCyev7uWuoK2QhUGPa+=DhYwBEL7vrd3nA@mail.gmail.com' \
    --to=anthony.tavener@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=kerneis@pps.jussieu.fr \
    /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 NNTP newsgroup(s).