public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/44897] -fwhopr + ipa-sra misoptimize sqlite
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
@ 2010-10-02 14:13 ` hubicka at gcc dot gnu.org
  2010-12-15  1:51 ` hubicka at gcc dot gnu.org
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 22+ messages in thread
From: hubicka at gcc dot gnu.org @ 2010-10-02 14:13 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2010-07-18 20:21:12         |2010-10-02 20:21:12

--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> 2010-10-02 14:13:03 UTC ---
reconfirmed.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -fwhopr + ipa-sra misoptimize sqlite
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
  2010-10-02 14:13 ` [Bug tree-optimization/44897] -fwhopr + ipa-sra misoptimize sqlite hubicka at gcc dot gnu.org
@ 2010-12-15  1:51 ` hubicka at gcc dot gnu.org
  2011-01-10 15:29 ` hubicka at gcc dot gnu.org
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 22+ messages in thread
From: hubicka at gcc dot gnu.org @ 2010-12-15  1:51 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2010-10-02 20:21:12         |2010-12-14 20:21:12

--- Comment #7 from Jan Hubicka <hubicka at gcc dot gnu.org> 2010-12-15 01:51:12 UTC ---
still fails.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -fwhopr + ipa-sra misoptimize sqlite
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
  2010-10-02 14:13 ` [Bug tree-optimization/44897] -fwhopr + ipa-sra misoptimize sqlite hubicka at gcc dot gnu.org
  2010-12-15  1:51 ` hubicka at gcc dot gnu.org
@ 2011-01-10 15:29 ` hubicka at gcc dot gnu.org
  2011-01-10 16:40 ` [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only) hubicka at gcc dot gnu.org
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 22+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-10 15:29 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #8 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-10 15:01:05 UTC ---
jh@evans:/abuild/jh/sqlite-3.6.23.1> /abuild/jh/trunk-install/bin/gcc  -fPIC
-O0 -flto=24  -fno-strict-aliasing -pthread -pipe  -O2    shell.c sqlite3.c
-ldl  -g  ; echo "create table memos(text, priority INTEGER);" | ./a.out
jh@evans:/abuild/jh/sqlite-3.6.23.1> /abuild/jh/trunk-install/bin/gcc  -fPIC
-O0 -flto=24  -fno-strict-aliasing -pthread -pipe  -O2    shell.c sqlite3.c
-ldl  -g -flto-partition=none ; echo "create table memos(text, priority
INTEGER);" | ./a.out
jh@evans:/abuild/jh/sqlite-3.6.23.1> /abuild/jh/trunk-install/bin/gcc  -fPIC
-O0 -flto=24  -fno-strict-aliasing -pthread -pipe  -O2    shell.c sqlite3.c
-ldl  -g -flto-partition=1to1 ; echo "create table memos(text, priority
INTEGER);" | ./a.out
jh@evans:/abuild/jh/sqlite-3.6.23.1> 

So it seems solved now.  I will try if mozilla now builds w/o
lto-partition=none passed to C compiler.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only)
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-01-10 15:29 ` hubicka at gcc dot gnu.org
@ 2011-01-10 16:40 ` hubicka at gcc dot gnu.org
  2011-01-10 22:34 ` hubicka at gcc dot gnu.org
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 22+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-10 16:40 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |
            Summary|-fwhopr + ipa-sra           |-flto + ipa-sra misoptimize
                   |misoptimize sqlite          |sqlite (non-plugin only)

--- Comment #9 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-10 16:33:18 UTC ---
Hmm, sadly we still get:
 /abuild/jh/trunk-install/bin/gcc  -fPIC -O0 -flto=24  -fno-strict-aliasing
-pthread -pipe  -O2    shell.c sqlite3.c -ldl  -g -flto-partition=1to1
-fno-use-linker-plugin ; echo "create table memos(text, priority INTEGER);" |
./a.out
Segmentation fault (core dumped)


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only)
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2011-01-10 16:40 ` [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only) hubicka at gcc dot gnu.org
@ 2011-01-10 22:34 ` hubicka at gcc dot gnu.org
  2011-03-10 16:07 ` markus at trippelsdorf dot de
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 22+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-10 22:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-10 22:10:11 UTC ---
It also appears with lto-partition=none with profile feedback, so it is not
WHOPR only bug.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only)
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2011-01-10 22:34 ` hubicka at gcc dot gnu.org
@ 2011-03-10 16:07 ` markus at trippelsdorf dot de
  2011-03-10 16:26 ` hubicka at ucw dot cz
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 22+ messages in thread
From: markus at trippelsdorf dot de @ 2011-03-10 16:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-03-10 16:07:34 UTC ---
In the Firefox case sqlite3.o gets compiled correctly,
it is libmozsqlite3.so that segfaults when compiled with -flto
and -fprofile-use :

gcc  -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W -pedantic
-Wno-long-long -march=native -fpermissive -fno-strict-aliasing -pthread -pipe 
-DNDEBUG -DTRIMMED -flto=4 -fwhole-program -fprofile-use -fprofile-correction
-Wcoverage-mismatch -freorder-blocks-and-partition -O3 -fPIC -shared
-Wl,-z,defs -Wl,-h,libmozsqlite3.so -o libmozsqlite3.so  sqlite3.o    
-lpthread -Wl,-O1,--hash-style=gnu,--as-needed,--no-keep-memory  -fprofile-use
-Wl,-rpath-link,/var/tmp/mozilla-central/moz-build-dir/dist/bin
-Wl,-rpath-link,/usr/lib   -ldl

This version runs fine (no -flto):

gcc -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W -pedantic
-Wno-long-long -march=native -fpermissive -fno-strict-aliasing -pthread -pipe
-DNDEBUG -DTRIMMED -Wcoverage-mismatch -freorder-blocks-and-partition
-fwhole-program -fprofile-use -O3 -fPIC -shared -Wl,-z,defs
-Wl,-h,libmozsqlite3.so -o libmozsqlite3.so sqlite3.o -lpthread
-Wl,-O1,--hash-style=gnu,--as-needed,--no-keep-memory
-Wl,-rpath-link,/var/tmp/mozilla-central/moz-build-dir/dist/bin
-Wl,-rpath-link,/usr/lib -ldl

And this one gives an internal compiler error (only -flto , no -fprofile-use):

gcc -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W -pedantic
-Wno-long-long -march=native -fpermissive -fno-strict-aliasing -pthread -pipe
-DNDEBUG -DTRIMMED -Wcoverage-mismatch -freorder-blocks-and-partition -flto -O3
-fPIC -shared -Wl,-z,defs -Wl,-h,libmozsqlite3.so -o libmozsqlite3.so sqlite3.o
-lpthread -Wl,-O1,--hash-style=gnu,--as-needed,--no-keep-memory
-Wl,-rpath-link,/var/tmp/mozilla-central/moz-build-dir/dist/bin
-Wl,-rpath-link,/usr/lib -ldl
lto1: internal compiler error: Floating point exception
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: /usr/x86_64-pc-linux-gnu/gcc-bin/4.6.0/gcc returned 1 exit status
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/../../../../x86_64-pc-linux-gnu/bin/ld:
fatal error: lto-wrapper failed
collect2: ld returned 1 exit status

(All these commands should be run from: 
./mozilla-central/moz-build-dir/db/sqlite3/src
One can copy the resulting libmozsqlite3.so directly into 
/usr/lib/firefox-4.0b13pre and try to start Firefox, to check
if it's OK or not)


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only)
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2011-03-10 16:07 ` markus at trippelsdorf dot de
@ 2011-03-10 16:26 ` hubicka at ucw dot cz
  2011-03-10 18:39 ` markus at trippelsdorf dot de
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 22+ messages in thread
From: hubicka at ucw dot cz @ 2011-03-10 16:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Jan Hubicka <hubicka at ucw dot cz> 2011-03-10 16:26:01 UTC ---
> gcc -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W -pedantic
> -Wno-long-long -march=native -fpermissive -fno-strict-aliasing -pthread -pipe
> -DNDEBUG -DTRIMMED -Wcoverage-mismatch -freorder-blocks-and-partition -flto -O3
> -fPIC -shared -Wl,-z,defs -Wl,-h,libmozsqlite3.so -o libmozsqlite3.so sqlite3.o
> -lpthread -Wl,-O1,--hash-style=gnu,--as-needed,--no-keep-memory
> -Wl,-rpath-link,/var/tmp/mozilla-central/moz-build-dir/dist/bin
> -Wl,-rpath-link,/usr/lib -ldl
> lto1: internal compiler error: Floating point exception

This should be easy to fix. Having backtrace would save me from some burden
trying to reproduce it ;)

Honza


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only)
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2011-03-10 16:26 ` hubicka at ucw dot cz
@ 2011-03-10 18:39 ` markus at trippelsdorf dot de
  2011-03-10 19:14 ` markus at trippelsdorf dot de
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 22+ messages in thread
From: markus at trippelsdorf dot de @ 2011-03-10 18:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-03-10 18:39:21 UTC ---
Here's what I got:
(gdb) set follow-fork-mode child
(gdb) run -plugin /usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.0/liblto_plugin.so
-plugin-opt=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccZJwWXj.res -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lpthread
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lgcc_s -flto --eh-frame-hdr -m elf_x86_64 -shared -o
libmozsqlite3.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/crtbeginS.o
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/../../../../x86_64-pc-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/../../.. -z defs -h libmozsqlite3.so
sqlite3.o -lpthread --hash-style=gnu -rpath-link
/var/tmp/mozilla-central/moz-build-dir/dist/bin -rpath-link /usr/lib -ldl -lgcc
--as-needed -lgcc_s --no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s
--no-as-needed /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/crtendS.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/../../../../lib64/crtn.o
Starting program: /usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.0/collect2 -plugin
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.0/liblto_plugin.so
-plugin-opt=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccZJwWXj.res -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lpthread
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lgcc_s -flto --eh-frame-hdr -m elf_x86_64 -shared -o
libmozsqlite3.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/crtbeginS.o
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/../../../../x86_64-pc-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/../../.. -z defs -h libmozsqlite3.so
sqlite3.o -lpthread --hash-style=gnu -rpath-link
/var/tmp/mozilla-central/moz-build-dir/dist/bin -rpath-link /usr/lib -ldl -lgcc
--as-needed -lgcc_s --no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s
--no-as-needed /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/crtendS.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/../../../../lib64/crtn.o
[New process 16093]
process 16093 is executing new program:
/usr/x86_64-pc-linux-gnu/binutils-bin/2.21.51.0.7/ld
[New process 16102]
process 16102 is executing new program:
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.0/lto-wrapper
[New process 16103]
process 16103 is executing new program:
/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.0/gcc
[New process 16104]
process 16104 is executing new program:
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.0/lto1

Program received signal SIGFPE, Arithmetic exception.
[Switching to process 16104]
0x0000000000862ca7 in ?? ()
(gdb) bt
#0  0x0000000000862ca7 in ?? ()
#1  0x000000000066f176 in execute_one_pass(opt_pass*) ()
#2  0x000000000066fa52 in execute_ipa_pass_list(opt_pass*) ()
#3  0x00000000004f284e in lto_main() ()
#4  0x00000000006fc247 in toplev_main(int, char**) ()
#5  0x00007ffff6d28f8d in __libc_start_main () from /lib/libc.so.6
#6  0x00000000004cd9f9 in _start ()
(gdb)


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only)
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2011-03-10 18:39 ` markus at trippelsdorf dot de
@ 2011-03-10 19:14 ` markus at trippelsdorf dot de
  2011-04-03  9:00 ` hubicka at gcc dot gnu.org
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 22+ messages in thread
From: markus at trippelsdorf dot de @ 2011-03-10 19:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-03-10 19:13:55 UTC ---
And the same with debugging symbols:

Program received signal SIGFPE, Arithmetic exception.
[Switching to process 5046]
0x000000000086d41c in cgraph_decide_recursive_inlining
(new_edges=0x7fffffffd750, node=0x7ffff65dbb00) at
../../gcc/gcc/ipa-inline.c:906
906               if (curr->count * 100 / node->count < probability)
(gdb) bt
#0  0x000000000086d41c in cgraph_decide_recursive_inlining
(new_edges=0x7fffffffd750, node=0x7ffff65dbb00) at
../../gcc/gcc/ipa-inline.c:906
#1  cgraph_decide_inlining_of_small_functions () at
../../gcc/gcc/ipa-inline.c:1193
#2  cgraph_decide_inlining () at ../../gcc/gcc/ipa-inline.c:1479
#3  0x00000000006571e9 in execute_one_pass (pass=0x102ee00) at
../../gcc/gcc/passes.c:1556
#4  0x000000000065787a in execute_ipa_pass_list (pass=0x102ee00) at
../../gcc/gcc/passes.c:1923
#5  0x00000000004c152f in do_whole_program_analysis () at
../../gcc/gcc/lto/lto.c:2350
#6  lto_main () at ../../gcc/gcc/lto/lto.c:2462
#7  0x00000000006e7510 in compile_file () at ../../gcc/gcc/toplev.c:579
#8  do_compile () at ../../gcc/gcc/toplev.c:1900
#9  toplev_main (argc=40, argv=0x11679c0) at ../../gcc/gcc/toplev.c:1963
#10 0x00007ffff6d28f8d in __libc_start_main () from /lib/libc.so.6
#11 0x00000000004a9979 in _start () at ../sysdeps/x86_64/elf/start.S:113
(gdb)


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only)
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2011-03-10 19:14 ` markus at trippelsdorf dot de
@ 2011-04-03  9:00 ` hubicka at gcc dot gnu.org
  2011-05-19  8:42 ` vincenzo.innocente at cern dot ch
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 22+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-04-03  9:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-04-03 09:00:04 UTC ---
Sorry, forgot about the division by zero issue. Testing patch.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only)
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2011-04-03  9:00 ` hubicka at gcc dot gnu.org
@ 2011-05-19  8:42 ` vincenzo.innocente at cern dot ch
  2011-05-19  9:24 ` hubicka at ucw dot cz
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 22+ messages in thread
From: vincenzo.innocente at cern dot ch @ 2011-05-19  8:42 UTC (permalink / raw)
  To: gcc-bugs

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

vincenzo Innocente <vincenzo.innocente at cern dot ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vincenzo.innocente at cern
                   |                            |dot ch

--- Comment #16 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2011-05-19 08:12:20 UTC ---
I'm getting a whole bunch of
lto1: internal compiler error: Floating point exception
using
g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.6.1/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure -enable-gold=yes --enable-lto --with-fpmath=avx
--with-build-config=bootstrap-lto --with-gmp-lib=/usr/local/lib64
--with-mpfr-lib=/usr/local/lib64 -with-mpc-lib=/usr/local/lib64
Thread model: posix
gcc version 4.6.1 20110513 (prerelease) (GCC) 

before submitting a new bug report I would like to know if the patch by Honza
quoted below is already in it or still pending


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only)
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2011-05-19  8:42 ` vincenzo.innocente at cern dot ch
@ 2011-05-19  9:24 ` hubicka at ucw dot cz
  2011-05-25 12:04 ` hubicka at gcc dot gnu.org
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 22+ messages in thread
From: hubicka at ucw dot cz @ 2011-05-19  9:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Jan Hubicka <hubicka at ucw dot cz> 2011-05-19 08:56:37 UTC ---
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44897
> 
> vincenzo Innocente <vincenzo.innocente at cern dot ch> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |vincenzo.innocente at cern
>                    |                            |dot ch
> 
> --- Comment #16 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2011-05-19 08:12:20 UTC ---
> I'm getting a whole bunch of
> lto1: internal compiler error: Floating point exception
> using
> g++ -v
> Using built-in specs.
> COLLECT_GCC=g++
> COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.6.1/lto-wrapper
> Target: x86_64-unknown-linux-gnu
> Configured with: ./configure -enable-gold=yes --enable-lto --with-fpmath=avx
> --with-build-config=bootstrap-lto --with-gmp-lib=/usr/local/lib64
> --with-mpfr-lib=/usr/local/lib64 -with-mpc-lib=/usr/local/lib64
> Thread model: posix
> gcc version 4.6.1 20110513 (prerelease) (GCC) 
> 
> before submitting a new bug report I would like to know if the patch by Honza
> quoted below is already in it or still pending

It is in mainline, I should backport it to 4.6.1. Will try to do it today or
tomorrow.

Honza
> 
> -- 
> Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only)
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
                   ` (11 preceding siblings ...)
  2011-05-19  9:24 ` hubicka at ucw dot cz
@ 2011-05-25 12:04 ` hubicka at gcc dot gnu.org
  2011-05-25 12:27 ` hubicka at gcc dot gnu.org
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 22+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-05-25 12:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #18 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-05-25 11:36:53 UTC ---
Author: hubicka
Date: Wed May 25 11:36:49 2011
New Revision: 174183

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174183
Log:

    PR tree-optimization/44897 
    * ipa-inline.c (cgraph_decide_recursive_inlining): Do not divide
    by zero for insane profiles.

Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/ipa-inline.c


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only)
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
                   ` (12 preceding siblings ...)
  2011-05-25 12:04 ` hubicka at gcc dot gnu.org
@ 2011-05-25 12:27 ` hubicka at gcc dot gnu.org
  2011-06-02  1:13 ` hubicka at gcc dot gnu.org
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 22+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-05-25 12:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #19 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-05-25 11:44:17 UTC ---
OK, division by 0 should be fixed both on mainline and 4.6 branch.  I think the
wrong code issue might be the corruption of jump tables, but will need to get
past firewall to double check unless Martin beats me.  It is his bug after all
;)


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only)
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
                   ` (13 preceding siblings ...)
  2011-05-25 12:27 ` hubicka at gcc dot gnu.org
@ 2011-06-02  1:13 ` hubicka at gcc dot gnu.org
  2011-06-02 16:11 ` markus at trippelsdorf dot de
  2011-06-02 21:52 ` hubicka at gcc dot gnu.org
  16 siblings, 0 replies; 22+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-06-02  1:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #20 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-06-02 01:12:12 UTC ---
The problem as confirmed in Comment 9 no longer reproduce on mainline. So
problem is either fixed or went latent.  I am going to try 4.6.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only)
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
                   ` (14 preceding siblings ...)
  2011-06-02  1:13 ` hubicka at gcc dot gnu.org
@ 2011-06-02 16:11 ` markus at trippelsdorf dot de
  2011-06-02 21:52 ` hubicka at gcc dot gnu.org
  16 siblings, 0 replies; 22+ messages in thread
From: markus at trippelsdorf dot de @ 2011-06-02 16:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #21 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-06-02 16:10:40 UTC ---
(In reply to comment #20)
> The problem as confirmed in Comment 9 no longer reproduce on mainline. So
> problem is either fixed or went latent.  I am going to try 4.6.

Confirmed on mainline. With "-flto -fprofile-use" libmozsqlite3.so no longer
segfaults. Must have been a recent change. It still segfaulted ~ a week ago.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only)
       [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
                   ` (15 preceding siblings ...)
  2011-06-02 16:11 ` markus at trippelsdorf dot de
@ 2011-06-02 21:52 ` hubicka at gcc dot gnu.org
  16 siblings, 0 replies; 22+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-06-02 21:52 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #22 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-06-02 21:50:54 UTC ---
Thanks for confirmation. My best bet is:
2011-05-29  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/49217
        * ipa-pure-const.c (propagate_pure_const): Fix typos.

this bug could've caused symptoms seen here.  Closing the PR then.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -fwhopr + ipa-sra misoptimize sqlite
  2010-07-10  2:02 [Bug tree-optimization/44897] New: -fwhopr + ipa-sra misoptimize sqlite hubicka at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-07-18 20:21 ` steven at gcc dot gnu dot org
@ 2010-07-18 22:36 ` hubicka at ucw dot cz
  4 siblings, 0 replies; 22+ messages in thread
From: hubicka at ucw dot cz @ 2010-07-18 22:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from hubicka at ucw dot cz  2010-07-18 22:35 -------
Subject: Re:  -fwhopr + ipa-sra misoptimize
        sqlite

> IPA-SRA => Martin
Well, the trick is that IPA-SRA is run before LTO streaming, so it means that
it should not be affected
by -fwhopr at all (and linking resulting .o file w/o LTO seems to work).  So it
is really combination
of those.


-- 


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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -fwhopr + ipa-sra misoptimize sqlite
  2010-07-10  2:02 [Bug tree-optimization/44897] New: -fwhopr + ipa-sra misoptimize sqlite hubicka at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-07-10  2:05 ` hubicka at gcc dot gnu dot org
@ 2010-07-18 20:21 ` steven at gcc dot gnu dot org
  2010-07-18 22:36 ` hubicka at ucw dot cz
  4 siblings, 0 replies; 22+ messages in thread
From: steven at gcc dot gnu dot org @ 2010-07-18 20:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from steven at gcc dot gnu dot org  2010-07-18 20:21 -------
IPA-SRA => Martin


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jamborm at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-07-18 20:21:12
               date|                            |


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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -fwhopr + ipa-sra misoptimize sqlite
  2010-07-10  2:02 [Bug tree-optimization/44897] New: -fwhopr + ipa-sra misoptimize sqlite hubicka at gcc dot gnu dot org
  2010-07-10  2:03 ` [Bug tree-optimization/44897] " hubicka at gcc dot gnu dot org
  2010-07-10  2:04 ` hubicka at gcc dot gnu dot org
@ 2010-07-10  2:05 ` hubicka at gcc dot gnu dot org
  2010-07-18 20:21 ` steven at gcc dot gnu dot org
  2010-07-18 22:36 ` hubicka at ucw dot cz
  4 siblings, 0 replies; 22+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2010-07-10  2:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from hubicka at gcc dot gnu dot org  2010-07-10 02:05 -------
-O1 -fipa-sra also leads to ICE.


-- 


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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -fwhopr + ipa-sra misoptimize sqlite
  2010-07-10  2:02 [Bug tree-optimization/44897] New: -fwhopr + ipa-sra misoptimize sqlite hubicka at gcc dot gnu dot org
  2010-07-10  2:03 ` [Bug tree-optimization/44897] " hubicka at gcc dot gnu dot org
@ 2010-07-10  2:04 ` hubicka at gcc dot gnu dot org
  2010-07-10  2:05 ` hubicka at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 22+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2010-07-10  2:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hubicka at gcc dot gnu dot org  2010-07-10 02:04 -------
Created an attachment (id=21170)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21170&action=view)
sqlite shell


-- 


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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug tree-optimization/44897] -fwhopr + ipa-sra misoptimize sqlite
  2010-07-10  2:02 [Bug tree-optimization/44897] New: -fwhopr + ipa-sra misoptimize sqlite hubicka at gcc dot gnu dot org
@ 2010-07-10  2:03 ` hubicka at gcc dot gnu dot org
  2010-07-10  2:04 ` hubicka at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 22+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2010-07-10  2:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hubicka at gcc dot gnu dot org  2010-07-10 02:03 -------
Created an attachment (id=21169)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21169&action=view)
sqlite sources


-- 


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


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2011-06-02 21:52 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-44897-4@http.gcc.gnu.org/bugzilla/>
2010-10-02 14:13 ` [Bug tree-optimization/44897] -fwhopr + ipa-sra misoptimize sqlite hubicka at gcc dot gnu.org
2010-12-15  1:51 ` hubicka at gcc dot gnu.org
2011-01-10 15:29 ` hubicka at gcc dot gnu.org
2011-01-10 16:40 ` [Bug tree-optimization/44897] -flto + ipa-sra misoptimize sqlite (non-plugin only) hubicka at gcc dot gnu.org
2011-01-10 22:34 ` hubicka at gcc dot gnu.org
2011-03-10 16:07 ` markus at trippelsdorf dot de
2011-03-10 16:26 ` hubicka at ucw dot cz
2011-03-10 18:39 ` markus at trippelsdorf dot de
2011-03-10 19:14 ` markus at trippelsdorf dot de
2011-04-03  9:00 ` hubicka at gcc dot gnu.org
2011-05-19  8:42 ` vincenzo.innocente at cern dot ch
2011-05-19  9:24 ` hubicka at ucw dot cz
2011-05-25 12:04 ` hubicka at gcc dot gnu.org
2011-05-25 12:27 ` hubicka at gcc dot gnu.org
2011-06-02  1:13 ` hubicka at gcc dot gnu.org
2011-06-02 16:11 ` markus at trippelsdorf dot de
2011-06-02 21:52 ` hubicka at gcc dot gnu.org
2010-07-10  2:02 [Bug tree-optimization/44897] New: -fwhopr + ipa-sra misoptimize sqlite hubicka at gcc dot gnu dot org
2010-07-10  2:03 ` [Bug tree-optimization/44897] " hubicka at gcc dot gnu dot org
2010-07-10  2:04 ` hubicka at gcc dot gnu dot org
2010-07-10  2:05 ` hubicka at gcc dot gnu dot org
2010-07-18 20:21 ` steven at gcc dot gnu dot org
2010-07-18 22:36 ` hubicka at ucw dot cz

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).