public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "Thomas dot Koenig at online dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/19848] "options passed" from -verbose-asm do not adequately reflect optimization
Date: Thu, 10 Feb 2005 00:44:00 -0000	[thread overview]
Message-ID: <20050209211956.9074.qmail@sourceware.org> (raw)
In-Reply-To: <20050209124042.19848.Thomas.Koenig@online.de>


------- Additional Comments From Thomas dot Koenig at online dot de  2005-02-09 21:19 -------
Same thing on i686-pc-linux-gnu with the gcc driver:

$ cat main.c
int main()
{
        return 0;
}
$ gcc -S -fverbose-asm -o main-o0.s main.c
$ gcc -S -fno-cprop-registers -fno-defer-pop -fno-guess-branch-probability
-fno-if-conversion -fno-if-conversion2 -fno-loop-optimize -fno-merge-constants
-fno-tree-ccp -fno-tree-ch -fno-tree-copyrename -fno-tree-dce
-fno-tree-dominator-opts -fno-tree-dse -fno-tree-fre -fno-tree-lrs -fno-tree-sra
-fno-tree-ter -fverbose-asm -O1 -o main-o1.s main.c


$ diff -u main-o0.s main-o1.s
--- main-o0.s   2005-02-09 22:17:54.000000000 +0100
+++ main-o1.s   2005-02-09 22:18:14.000000000 +0100
@@ -2,7 +2,12 @@
 # GNU C version 4.0.0 20050208 (experimental) (i686-pc-linux-gnu)
 #      compiled by GNU C version 4.0.0 20050203 (experimental).
 # GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
-# options passed:  -mtune=pentiumpro -auxbase-strip -fverbose-asm
+# options passed:  -mtune=pentiumpro -auxbase-strip -O1
+# -fno-cprop-registers -fno-defer-pop -fno-guess-branch-probability
+# -fno-if-conversion -fno-if-conversion2 -fno-loop-optimize
+# -fno-merge-constants -fno-tree-ccp -fno-tree-ch -fno-tree-copyrename
+# -fno-tree-dce -fno-tree-dominator-opts -fno-tree-dse -fno-tree-fre
+# -fno-tree-lrs -fno-tree-sra -fno-tree-ter -fverbose-asm
 # options enabled:  -falign-loops -fargument-alias -fbranch-count-reg
 # -fcommon -feliminate-unused-debug-types -ffunction-cse -fgcse-lm -fident
 # -fivopts -fkeep-static-consts -fleading-underscore -floop-optimize2
@@ -21,13 +26,8 @@
        movl    %esp, %ebp      #,
        subl    $8, %esp        #,
        andl    $-16, %esp      #,
-       movl    $0, %eax        #, tmp60
-       addl    $15, %eax       #, tmp61
-       addl    $15, %eax       #, tmp62
-       shrl    $4, %eax        #, tmp63
-       sall    $4, %eax        #, tmp64
-       subl    %eax, %esp      # tmp64,
-       movl    $0, %eax        #, D.1118
+       subl    $16, %esp       #,
+       movl    $0, %eax        #, <result>
        leave
        ret
        .size   main, .-main


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19848


  parent reply	other threads:[~2005-02-09 21:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-09 17:48 [Bug driver/19848] New: " Thomas dot Koenig at online dot de
2005-02-09 17:50 ` [Bug driver/19848] " Thomas dot Koenig at online dot de
2005-02-10  0:44 ` Thomas dot Koenig at online dot de [this message]
2005-02-10  1:13 ` falk at debian dot org
2005-02-10 14:15 ` Thomas dot Koenig at online dot de
2005-02-10 17:21 ` schwab at suse dot de
2005-02-10 23:13 ` Thomas dot Koenig at online dot de
2005-02-10 23:14 ` Thomas dot Koenig at online dot de
     [not found] <bug-19848-9515@http.gcc.gnu.org/bugzilla/>
2005-10-07  7:30 ` jvdelisle at gcc dot gnu dot org
2007-11-14  2:39 ` manu at gcc dot gnu dot org

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=20050209211956.9074.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.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).