public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: Daniel Mierswa <impulze@impulze.org>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Inline ASM and stack/base pointer
Date: Fri, 10 Jun 2011 01:21:00 -0000	[thread overview]
Message-ID: <mcr4o3y20x1.fsf@coign.corp.google.com> (raw)
In-Reply-To: <4DF148B9.6070709@impulze.org> (Daniel Mierswa's message of "Thu,	09 Jun 2011 22:27:05 +0000")

Daniel Mierswa <impulze@impulze.org> writes:

>> What happens if you compile only with -fomit-frame-pointer? I'm not sure
>> if it will be activated without adding an -Ox option. Can you add an
>> example code?
> impulze@istari ~ $ gcc-4.4 -S -fomit-frame-pointer test.c && grep -m1
> lea test.s
> 	lea 12(%esp), %edi
> impulze@istari ~ $ gcc-4.5 -S -fomit-frame-pointer test.c && grep -m1
> lea test.s
> 	lea 12(%esp), %edi
> impulze@istari ~ $ gcc-4.6 -S -fomit-frame-pointer test.c && grep -m1
> lea test.s
> 	lea 12(%esp), %edi
> impulze@istari ~ $ cat test.c
> void f()
> {
>     int i;
>     __asm__ __volatile__("lea %0, %%edi\n"::"m"(i):"%esp");
> }
>
>> What gcc you use?
> 4.4.5, 4.5.2, 4.6.0

Bother, you're right, I was looking at an invalid example.  I don't know
of a way to do this.  Sorry.

Ian

      reply	other threads:[~2011-06-09 20:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-09 15:22 Daniel Mierswa
2011-06-09 18:09 ` Ian Lance Taylor
2011-06-09 18:47   ` kevin diggs
2011-06-09 19:53     ` Ian Lance Taylor
2011-06-09 20:26   ` Daniel Mierswa
2011-06-09 20:41   ` Daniel Mierswa
     [not found]     ` <BANLkTikg+N_E=OYU-wU2Od=2rsh=K=Ktsg@mail.gmail.com>
2011-06-09 23:12       ` Daniel Mierswa
2011-06-10  1:21         ` Ian Lance Taylor [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=mcr4o3y20x1.fsf@coign.corp.google.com \
    --to=iant@google.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=impulze@impulze.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.
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).