public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/19848] "options passed" from -verbose-asm do not adequately reflect optimization
[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
1 sibling, 0 replies; 9+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-10-07 7:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jvdelisle at gcc dot gnu dot org 2005-10-07 07:30 -------
Thomas, perhaps we could divide and conquer. We could manually eliminate each
of the 204 optimzations one at a time until the breakage disappears. Maybe we
develop a script to locate those, bubblestrap, test, remove, and go on to the
next until its discovered.
I know its a pain, but it could be done. If not a script, then get several
volunteers and assign them out to check. It would be nice to claim a final
victory on this.
Any thoughts anyone
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jvdelisle at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19848
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/19848] "options passed" from -verbose-asm do not adequately reflect optimization
[not found] <bug-19848-9515@http.gcc.gnu.org/bugzilla/>
2005-10-07 7:30 ` [Bug driver/19848] "options passed" from -verbose-asm do not adequately reflect optimization jvdelisle at gcc dot gnu dot org
@ 2007-11-14 2:39 ` manu at gcc dot gnu dot org
1 sibling, 0 replies; 9+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-11-14 2:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from manu at gcc dot gnu dot org 2007-11-14 02:38 -------
I don't think this is a valid bug. There are optimizations that won't be
controlled by a flag. We already have way too many flags.
Please, reopen if I misunderstood the report.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19848
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/19848] "options passed" from -verbose-asm do not adequately reflect optimization
2005-02-09 17:48 [Bug driver/19848] New: " Thomas dot Koenig at online dot de
` (5 preceding siblings ...)
2005-02-10 23:13 ` Thomas dot Koenig at online dot de
@ 2005-02-10 23:14 ` Thomas dot Koenig at online dot de
6 siblings, 0 replies; 9+ messages in thread
From: Thomas dot Koenig at online dot de @ 2005-02-10 23:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From Thomas dot Koenig at online dot de 2005-02-10 20:35 -------
(In reply to comment #4)
> $ find . -name '*.c' | xargs grep '[(&|!] *optimize[) =!><|&]' | wc -l
> 204
Any idea how I should go about further debugging PR 5900? There is a
wrong-code for ia-64 there, which apparently depends on one of these
204 places.
Thomas
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19848
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/19848] "options passed" from -verbose-asm do not adequately reflect optimization
2005-02-09 17:48 [Bug driver/19848] New: " Thomas dot Koenig at online dot de
` (4 preceding siblings ...)
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
6 siblings, 0 replies; 9+ messages in thread
From: Thomas dot Koenig at online dot de @ 2005-02-10 23:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From Thomas dot Koenig at online dot de 2005-02-10 20:31 -------
*** Bug 19825 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19848
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/19848] "options passed" from -verbose-asm do not adequately reflect optimization
2005-02-09 17:48 [Bug driver/19848] New: " Thomas dot Koenig at online dot de
` (3 preceding siblings ...)
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
6 siblings, 0 replies; 9+ messages in thread
From: schwab at suse dot de @ 2005-02-10 17:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From schwab at suse dot de 2005-02-10 10:33 -------
$ find . -name '*.c' | xargs grep '[(&|!] *optimize[) =!><|&]' | wc -l
204
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19848
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/19848] "options passed" from -verbose-asm do not adequately reflect optimization
2005-02-09 17:48 [Bug driver/19848] New: " Thomas dot Koenig at online dot de
` (2 preceding siblings ...)
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
` (2 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Thomas dot Koenig at online dot de @ 2005-02-10 14:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From Thomas dot Koenig at online dot de 2005-02-10 08:52 -------
(In reply to comment #2)
> There are a gazillion places where we just check "if (optimize)" without
> any specific flag. It would be quite a lot of work to introduce flags for all
> of them, and I'm not sure it's worth it...
$ find . -name '*.c' | xargs grep '( *optimize[) =!><|&]' | wc -l
151
Hmm...
It would still be better if this could be at least lumped into an
option (maybe -foptimize-misc or whatever) which would still be
visible in -fverbose-asm.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19848
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/19848] "options passed" from -verbose-asm do not adequately reflect optimization
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
@ 2005-02-10 1:13 ` falk at debian dot org
2005-02-10 14:15 ` Thomas dot Koenig at online dot de
` (3 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: falk at debian dot org @ 2005-02-10 1:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From falk at debian dot org 2005-02-09 22:57 -------
There are a gazillion places where we just check "if (optimize)" without
any specific flag. It would be quite a lot of work to introduce flags for all
of them, and I'm not sure it's worth it...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19848
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/19848] "options passed" from -verbose-asm do not adequately reflect optimization
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
2005-02-10 1:13 ` falk at debian dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Thomas dot Koenig at online dot de @ 2005-02-10 0:44 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug driver/19848] "options passed" from -verbose-asm do not adequately reflect optimization
2005-02-09 17:48 [Bug driver/19848] New: " Thomas dot Koenig at online dot de
@ 2005-02-09 17:50 ` Thomas dot Koenig at online dot de
2005-02-10 0:44 ` Thomas dot Koenig at online dot de
` (5 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Thomas dot Koenig at online dot de @ 2005-02-09 17:50 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |5900
nThis| |
Version|unknown |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19848
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-11-14 2:39 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-19848-9515@http.gcc.gnu.org/bugzilla/>
2005-10-07 7:30 ` [Bug driver/19848] "options passed" from -verbose-asm do not adequately reflect optimization jvdelisle at gcc dot gnu dot org
2007-11-14 2:39 ` manu at gcc dot gnu dot org
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
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
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).