public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� `
@ 2012-09-20  7:55 dimhen at gmail dot com
  2012-09-20  7:57 ` [Bug lto/54632] " dimhen at gmail dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: dimhen at gmail dot com @ 2012-09-20  7:55 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 54632
           Summary: not supported in LTO streams : tree code '�F ��D�� `
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dimhen@gmail.com


$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/local/gcc_current/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/dimhen/src/gcc-current/configure
--prefix=/usr/local/gcc_current --with-multilib-list=m64 --enable-__cxa_atexit
--enable-shared --enable-checking=df,fold,rtl,tree,yes
--enable-gnu-unique-object --enable-linker-build-id
--enable-languages=c,c++,lto --enable-plugin
--enable-version-specific-runtime-libs
Thread model: posix
gcc version 4.8.0 20120920 (experimental) [trunk revision 191511] (GCC) 


191461 - OK
191511 - FAIL

(gdb) start ....
Temporary breakpoint 1, main (argc=62, argv=0x7fffffffda58) at
/home/dimhen/src/gcc-current/gcc/main.c:36
36      return toplev_main (argc, argv);
(gdb) br  lto-streamer-out.c:325
(gdb) c
.......
GNU C++ (GCC) version 4.8.0 20120920 (experimental) [trunk revision 191511]
(x86_64-unknown-linux-gnu)
    compiled by GNU C version 4.8.0 20120920 (experimental) [trunk revision
191511], GMP version 5.0.2, MPFR version 3.1.0, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 1f967a1f0c91e49e73881f044e47ede6

Breakpoint 2, lto_write_tree (ref_p=<optimized out>, expr=<optimized out>,
ob=<optimized out>) at /home/dimhen/src/gcc-current/gcc/lto-streamer-out.c:326
326                    tree_code_name[TREE_CODE (expr)]);
(gdb) bt
#0  lto_write_tree (ref_p=<optimized out>, expr=<optimized out>, ob=<optimized
out>) at /home/dimhen/src/gcc-current/gcc/lto-streamer-out.c:326
#1  lto_output_tree (ob=ob@entry=0x15a03e0, expr=0x7ffff5d13dc0,
ref_p=ref_p@entry=true, this_ref_p=this_ref_p@entry=true) at
/home/dimhen/src/gcc-current/gcc/lto-streamer-out.c:426
#2  0x0000000000b8e450 in write_ts_exp_tree_pointers (ref_p=true,
expr=0x7ffff5d0ee70, ob=0x15a03e0) at
/home/dimhen/src/gcc-current/gcc/tree-streamer-out.c:672
#3  streamer_write_tree_body (ob=0x15a03e0, expr=0x7ffff5d0ee70,
ref_p=<optimized out>) at
/home/dimhen/src/gcc-current/gcc/tree-streamer-out.c:855
#4  0x000000000094919a in lto_write_tree (ref_p=<optimized out>,
expr=<optimized out>, ob=<optimized out>) at
/home/dimhen/src/gcc-current/gcc/lto-streamer-out.c:339
#5  lto_output_tree (ob=ob@entry=0x15a03e0, expr=0x7ffff5d0ee70,
ref_p=ref_p@entry=true, this_ref_p=this_ref_p@entry=true) at
/home/dimhen/src/gcc-current/gcc/lto-streamer-out.c:426
#6  0x0000000000b8dbe4 in write_ts_decl_common_tree_pointers (ref_p=true,
expr=0x7ffff5d232f8, ob=0x15a03e0) at
/home/dimhen/src/gcc-current/gcc/tree-streamer-out.c:507
#7  streamer_write_tree_body (ob=0x15a03e0, expr=0x7ffff5d232f8,
ref_p=<optimized out>) at
/home/dimhen/src/gcc-current/gcc/tree-streamer-out.c:828
#8  0x000000000094919a in lto_write_tree (ref_p=<optimized out>,
expr=<optimized out>, ob=<optimized out>) at
/home/dimhen/src/gcc-current/gcc/lto-streamer-out.c:339
#9  lto_output_tree (ob=0x15a03e0, expr=0x7ffff5d232f8, ref_p=<optimized out>,
this_ref_p=<optimized out>) at
/home/dimhen/src/gcc-current/gcc/lto-streamer-out.c:426
#10 0x00000000009498ef in output_struct_function_base (fn=0x7ffff62e8140,
ob=0x15a03e0) at /home/dimhen/src/gcc-current/gcc/lto-streamer-out.c:751
#11 output_function (node=0x7ffff62ff618) at
/home/dimhen/src/gcc-current/gcc/lto-streamer-out.c:808
#12 lto_output () at /home/dimhen/src/gcc-current/gcc/lto-streamer-out.c:1009
#13 0x000000000097e871 in ipa_write_summaries_2 (pass=0x1320ac0,
state=0x1548310) at /home/dimhen/src/gcc-current/gcc/passes.c:2291
#14 0x000000000097f6be in ipa_write_summaries_1 (encoder=<optimized out>) at
/home/dimhen/src/gcc-current/gcc/passes.c:2321
#15 ipa_write_summaries () at /home/dimhen/src/gcc-current/gcc/passes.c:2375
#16 0x000000000078385a in ipa_passes () at
/home/dimhen/src/gcc-current/gcc/cgraphunit.c:1875
#17 compile () at /home/dimhen/src/gcc-current/gcc/cgraphunit.c:1961
#18 0x0000000000783a95 in finalize_compilation_unit () at
/home/dimhen/src/gcc-current/gcc/cgraphunit.c:2089
#19 0x00000000005b032b in cp_write_global_declarations () at
/home/dimhen/src/gcc-current/gcc/cp/decl2.c:4024
#20 0x0000000000a1e385 in compile_file () at
/home/dimhen/src/gcc-current/gcc/toplev.c:560
#21 0x0000000000a1ff5a in do_compile () at
/home/dimhen/src/gcc-current/gcc/toplev.c:1863
#22 toplev_main (argc=62, argv=0x7fffffffda58) at
/home/dimhen/src/gcc-current/gcc/toplev.c:1939
#23 0x00000038e3421735 in __libc_start_main (main=0xebc6a0 <main(int, char**)>,
argc=62, ubp_av=0x7fffffffda58, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, 
    stack_end=0x7fffffffda48) at libc-start.c:226
#24 0x00000000004cb7d9 in _start ()
(gdb) up
#1  lto_output_tree (ob=ob@entry=0x15a03e0, expr=0x7ffff5d13dc0,
ref_p=ref_p@entry=true, this_ref_p=this_ref_p@entry=true) at
/home/dimhen/src/gcc-current/gcc/lto-streamer-out.c:426
426          lto_write_tree (ob, expr, ref_p);
(gdb) print *expr
....
(gdb) c
/home/dimhen/src/CSPbuild/shared/cplib/DateTime.cpp: In function
'CryptoPro::GeneralizedTimeToTm(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, unsigned int&, bool)':
\x01Hc���8\x01D\x01�Hc�f;�CSPbuil`' is not supported in LTO streams internal compiler
error: tree code '�F\x12��D��\x12`
 } // namespace CryptoPro
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[Inferior 1 (process 9854) exited with code 04]


output from 'print *expr' attached.
almost everywhere fld 'code' = 42405, but at once = 2779096485

i'll try to reduce test


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

* [Bug lto/54632] not supported in LTO streams : tree code '�F ��D�� `
  2012-09-20  7:55 [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� ` dimhen at gmail dot com
@ 2012-09-20  7:57 ` dimhen at gmail dot com
  2012-09-20 11:32 ` [Bug lto/54632] [4.8 Regression] " rguenth at gcc dot gnu.org
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dimhen at gmail dot com @ 2012-09-20  7:57 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Dmitry G. Dyachenko <dimhen at gmail dot com> 2012-09-20 07:56:54 UTC ---
Created attachment 28226
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28226
lto_output_tree() : print *expr


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

* [Bug lto/54632] [4.8 Regression] not supported in LTO streams : tree code '�F ��D�� `
  2012-09-20  7:55 [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� ` dimhen at gmail dot com
  2012-09-20  7:57 ` [Bug lto/54632] " dimhen at gmail dot com
@ 2012-09-20 11:32 ` rguenth at gcc dot gnu.org
  2012-09-23  9:22 ` dimhen at gmail dot com
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-20 11:32 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dehao at gcc dot gnu.org
   Target Milestone|---                         |4.8.0
            Summary|not supported in LTO        |[4.8 Regression] not
                   |streams : tree code '�F     |supported in LTO streams :
                   |��D�� `                     |tree code '�F ��D�� `

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-20 11:31:49 UTC ---
It's outputting a garbage collected tree.  Suspect it was a BLOCK.


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

* [Bug lto/54632] [4.8 Regression] not supported in LTO streams : tree code '�F ��D�� `
  2012-09-20  7:55 [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� ` dimhen at gmail dot com
  2012-09-20  7:57 ` [Bug lto/54632] " dimhen at gmail dot com
  2012-09-20 11:32 ` [Bug lto/54632] [4.8 Regression] " rguenth at gcc dot gnu.org
@ 2012-09-23  9:22 ` dimhen at gmail dot com
  2012-09-23  9:33 ` dimhen at gmail dot com
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dimhen at gmail dot com @ 2012-09-23  9:22 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Dmitry G. Dyachenko <dimhen at gmail dot com> 2012-09-23 09:22:20 UTC ---
191649 FAIL

and, sorry, i cant reduce testcase :(

if i run 
'g++ -DHAVE_CONFIG_H -I. -I/home/dimhen/src/CSPbuild/shared/cplib -I../..
-I/usr/local/include -DUNIX -DLINUX -I/home/dimhen/src/CSPbuild
-I/home/dimhen/src/CSPbuild/reader/include
-I/home/dimhen/src/CSPbuild/CSP/src/include
-I/home/dimhen/src/CSPbuild/shared/include
-I/home/dimhen/src/CSPbuild/shared/include/atl
-I/home/dimhen/src/CSPbuild/shared/include/cplib -DNO_ASN1_RT_REDUNDANT
-D_COMPACT -fno-common -Ofast -flto -flto-partition=none -pipe -m64
-Woverloaded-virtual -fvisibility-inlines-hidden -MT DateTime.lo -MD -MP -MF
.deps/DateTime.Tpo -c /home/dimhen/src/CSPbuild/shared/cplib/DateTime.cpp 
-fPIC -DPIC -o .libs/DateTime.o'

i receive 
/home/dimhen/src/CSPbuild/shared/cplib/DateTime.cpp: In function
'CryptoPro::GeneralizedTimeToTm(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, unsigned int&, bool)':
/home/dimhen/src/CSPbuild/shared/cplib/DateTime.cpp:934:1: internal compiler
error: tree code '�F\x12��D��\x12`\x01Hc���\x18\x01D\x01�Hc�f;�    `\x01�b����FD���(\x01D��    �\x01�
                                                                               
                                                                           ��
                                                                               
                                                                            
HD��\x01�H����!\x01��=�' is not supported in LTO streams
 } // namespace CryptoPro
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

if i add '-save-temps' and recompile ii-file, then i not receive any err
message


$ LANG=C g++ -DHAVE_CONFIG_H -I. -I/home/dimhen/src/CSPbuild/shared/cplib
-I../.. -I/usr/local/include -DUNIX -DLINUX -I/home/dimhen/src/CSPbuild
-I/home/dimhen/src/CSPbuild/reader/include
-I/home/dimhen/src/CSPbuild/CSP/src/include
-I/home/dimhen/src/CSPbuild/shared/include
-I/home/dimhen/src/CSPbuild/shared/include/atl
-I/home/dimhen/src/CSPbuild/shared/include/cplib -DNO_ASN1_RT_REDUNDANT
-D_COMPACT -fno-common -Ofast -flto -flto-partition=none -pipe -m64
-Woverloaded-virtual -fvisibility-inlines-hidden -MT DateTime.lo -MD -MP -MF
.deps/DateTime.Tpo -c /home/dimhen/src/CSPbuild/shared/cplib/DateTime.cpp 
-fPIC -DPIC -o .libs/DateTime.o -save-temps
g++: warning: -pipe ignored because -save-temps specified
$ ll -tr
итого 1712
-rw-rw-r--. 1 dimhen dimhen  22385 сент. 23 13:04 Makefile
-rw-rw-r--. 1 dimhen dimhen    260 сент. 23 13:06 Blob.lo
-rw-rw-r--. 1 dimhen dimhen 854468 сент. 23 13:18 DateTime.ii
-rw-rw-r--. 1 dimhen dimhen 864446 сент. 23 13:18 DateTime.s

$ LANG=C g++ -DHAVE_CONFIG_H -I. -I/home/dimhen/src/CSPbuild/shared/cplib
-I../.. -I/usr/local/include -DUNIX -DLINUX -I/home/dimhen/src/CSPbuild
-I/home/dimhen/src/CSPbuild/reader/include
-I/home/dimhen/src/CSPbuild/CSP/src/include
-I/home/dimhen/src/CSPbuild/shared/include
-I/home/dimhen/src/CSPbuild/shared/include/atl
-I/home/dimhen/src/CSPbuild/shared/include/cplib -DNO_ASN1_RT_REDUNDANT
-D_COMPACT -fno-common -Ofast -flto -flto-partition=none -pipe -m64
-Woverloaded-virtual -fvisibility-inlines-hidden -MT DateTime.lo -MD -MP -MF
.deps/DateTime.Tpo -c ./DateTime.ii  -fPIC -DPIC -o .libs/DateTime.o

so, how i can help?


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

* [Bug lto/54632] [4.8 Regression] not supported in LTO streams : tree code '�F ��D�� `
  2012-09-20  7:55 [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� ` dimhen at gmail dot com
                   ` (2 preceding siblings ...)
  2012-09-23  9:22 ` dimhen at gmail dot com
@ 2012-09-23  9:33 ` dimhen at gmail dot com
  2012-09-23 10:50 ` zsojka at seznam dot cz
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dimhen at gmail dot com @ 2012-09-23  9:33 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Dmitry G. Dyachenko <dimhen at gmail dot com> 2012-09-23 09:33:32 UTC ---
new in r191649 is eer.location --> DateTime.cpp:934:1
line 934 is outermost '}' in src file


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

* [Bug lto/54632] [4.8 Regression] not supported in LTO streams : tree code '�F ��D�� `
  2012-09-20  7:55 [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� ` dimhen at gmail dot com
                   ` (3 preceding siblings ...)
  2012-09-23  9:33 ` dimhen at gmail dot com
@ 2012-09-23 10:50 ` zsojka at seznam dot cz
  2012-09-23 10:55 ` dimhen at gmail dot com
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: zsojka at seznam dot cz @ 2012-09-23 10:50 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Zdenek Sojka <zsojka at seznam dot cz> 2012-09-23 10:50:29 UTC ---
Created attachment 28253
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28253
partially reduced testcase

Reducing goes very slowly, this has been reducing for over a day


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

* [Bug lto/54632] [4.8 Regression] not supported in LTO streams : tree code '�F ��D�� `
  2012-09-20  7:55 [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� ` dimhen at gmail dot com
                   ` (4 preceding siblings ...)
  2012-09-23 10:50 ` zsojka at seznam dot cz
@ 2012-09-23 10:55 ` dimhen at gmail dot com
  2012-09-23 13:06 ` markus at trippelsdorf dot de
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dimhen at gmail dot com @ 2012-09-23 10:55 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #6 from Dmitry G. Dyachenko <dimhen at gmail dot com> 2012-09-23 10:55:08 UTC ---
valgrind show no any appropriate with debug-compiled gcc, only over-optimized
access in parser.

Hmmm, i am under impression that BUILD_CONFIG=bootstrap-O1 has no effect, and
BOOT_CFLAGS='-O0 -g' has no effect too. --> gcc is compiled with '-O2 -g'

But, at least, i made it :)

according http://gcc.gnu.org/install/build.html

~/src/gcc-current/configure --prefix=/usr/local/gcc_current
--with-multilib-list=m64 --enable-__cxa_atexit --enable-shared
--enable-checking=df,fold,rtl,tree,yes --enable-gnu-unique-object
--enable-linker-build-id --enable-languages=c,c++,lto --enable-plugin
--enable-version-specific-runtime-libs --enable-bootstrap4

BUILD_CONFIG="bootstrap-O1" make -j7

make install -j4

cp /usr/local/gcc_current/lib/gcc/x86_64-unknown-linux-gnu/lib64/libgcc_s.so
/usr/local/gcc_current/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/

$g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/local/gcc_current/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/dimhen/src/gcc-current/configure
--prefix=/usr/local/gcc_current --with-multilib-list=m64 --enable-__cxa_atexit
--enable-shared --enable-checking=df,fold,rtl,tree,yes
--enable-gnu-unique-object --enable-linker-build-id
--enable-languages=c,c++,lto --enable-plugin
--enable-version-specific-runtime-libs --enable-bootstrap4
Thread model: posix
gcc version 4.8.0 20120923 (experimental) [trunk revision 191649] (GCC)

$ /usr/local/gcc_current/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/cc1plus
-quiet -v -I . -I /home/dimhen/src/CSPbuild/shared/cplib -I ../.. -I
/usr/local/include -I /home/dimhen/src/CSPbuild -I
/home/dimhen/src/CSPbuild/reader/include -I
/home/dimhen/src/CSPbuild/CSP/src/include -I
/home/dimhen/src/CSPbuild/shared/include -I
/home/dimhen/src/CSPbuild/shared/include/atl -I
/home/dimhen/src/CSPbuild/shared/include/cplib -MD .libs/DateTime.d -MF
.deps/DateTime.Tpo -MP -MT DateTime.lo -D_GNU_SOURCE -D HAVE_CONFIG_H -D UNIX
-D LINUX -D NO_ASN1_RT_REDUNDANT -D _COMPACT -D PIC
/home/dimhen/src/CSPbuild/shared/cplib/DateTime.cpp -quiet -dumpbase
DateTime.cpp -m64 -mtune=generic -march=x86-64 -auxbase-strip .libs/DateTime.o
-Ofast -Woverloaded-virtual -version -fno-common -flto -flto-partition=none
-fvisibility-inlines-hidden -fPIC -o .libs/DateTime.o

....

/home/dimhen/src/CSPbuild/shared/cplib/DateTime.cpp: In function
'CryptoPro::GeneralizedTimeToTm(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, unsigned int&, bool)':
/home/dimhen/src/CSPbuild/shared/cplib/DateTime.cpp:934:1: internal compiler
error: tree code '�F\x12��D��\x12�\x01Hc��' is not supported in LTO streams
 } // namespace CryptoPro
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ valgrind
/usr/local/gcc_current/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/cc1plus
-quiet -v -I . -I /home/dimhen/src/CSPbuild/shared/cplib -I ../.. -I
/usr/local/include -I /home/dimhen/src/CSPbuild -I
/home/dimhen/src/CSPbuild/reader/include -I
/home/dimhen/src/CSPbuild/CSP/src/include -I
/home/dimhen/src/CSPbuild/shared/include -I
/home/dimhen/src/CSPbuild/shared/include/atl -I
/home/dimhen/src/CSPbuild/shared/include/cplib -MD .libs/DateTime.d -MF
.deps/DateTime.Tpo -MP -MT DateTime.lo -D_GNU_SOURCE -D HAVE_CONFIG_H -D UNIX
-D LINUX -D NO_ASN1_RT_REDUNDANT -D _COMPACT -D PIC
/home/dimhen/src/CSPbuild/shared/cplib/DateTime.cpp -quiet -dumpbase
DateTime.cpp -m64 -mtune=generic -march=x86-64 -auxbase-strip .libs/DateTime.o
-Ofast -Woverloaded-virtual -version -fno-common -flto -flto-partition=none
-fvisibility-inlines-hidden -fPIC -o .libs/DateTime.o
[dimhen@dim cplib]$ valgrind
/usr/local/gcc_current/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/cc1plus
-quiet -v -I . -I /home/dimhen/src/CSPbuild/shared/cplib -I ../.. -I
/usr/local/include -I /home/dimhen/src/CSPbuild -I
/home/dimhen/src/CSPbuild/reader/include -I
/home/dimhen/src/CSPbuild/CSP/src/include -I
/home/dimhen/src/CSPbuild/shared/include -I
/home/dimhen/src/CSPbuild/shared/include/atl -I
/home/dimhen/src/CSPbuild/shared/include/cplib -MD .libs/DateTime.d -MF
.deps/DateTime.Tpo -MP -MT DateTime.lo -D_GNU_SOURCE -D HAVE_CONFIG_H -D UNIX
-D LINUX -D NO_ASN1_RT_REDUNDANT -D _COMPACT -D PIC
/home/dimhen/src/CSPbuild/shared/cplib/DateTime.cpp -quiet -dumpbase
DateTime.cpp -m64 -mtune=generic -march=x86-64 -auxbase-strip .libs/DateTime.o
-Ofast -Woverloaded-virtual -version -fno-common -flto -flto-partition=none
-fvisibility-inlines-hidden -fPIC -o .libs/DateTime.o
==2065== Memcheck, a memory error detector
==2065== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==2065== Using Valgrind-3.9.0.SVN and LibVEX; rerun with -h for copyright info
==2065== Command:
/usr/local/gcc_current/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/cc1plus
-quiet -v -I . -I /home/dimhen/src/CSPbuild/shared/cplib -I ../.. -I
/usr/local/include -I /home/dimhen/src/CSPbuild -I
/home/dimhen/src/CSPbuild/reader/include -I
/home/dimhen/src/CSPbuild/CSP/src/include -I
/home/dimhen/src/CSPbuild/shared/include -I
/home/dimhen/src/CSPbuild/shared/include/atl -I
/home/dimhen/src/CSPbuild/shared/include/cplib -MD .libs/DateTime.d -MF
.deps/DateTime.Tpo -MP -MT DateTime.lo -D_GNU_SOURCE -D HAVE_CONFIG_H -D UNIX
-D LINUX -D NO_ASN1_RT_REDUNDANT -D _COMPACT -D PIC
/home/dimhen/src/CSPbuild/shared/cplib/DateTime.cpp -quiet -dumpbase
DateTime.cpp -m64 -mtune=generic -march=x86-64 -auxbase-strip .libs/DateTime.o
-Ofast -Woverloaded-virtual -version -fno-common -flto -flto-partition=none
-fvisibility-inlines-hidden -fPIC -o .libs/DateTime.o
==2065== 

.....

==2065== Invalid read of size 8
==2065==    at 0xEDA014: search_line_sse42(unsigned char const*, unsigned char
const*) (lex.c:464)
==2065==    by 0xEDA53E: _cpp_clean_line (lex.c:742)
==2065==    by 0xEDAFCB: _cpp_get_fresh_line (lex.c:2035)
==2065==    by 0xEDC7B0: _cpp_lex_direct (lex.c:2100)
==2065==    by 0xEDD50B: _cpp_lex_token (lex.c:1974)
==2065==    by 0xEE2117: cpp_get_token_1(cpp_reader*, unsigned int*)
(macro.c:2357)
==2065==    by 0x6EF622: c_lex_with_flags(tree_node**, unsigned int*, unsigned
char*, int) (c-lex.c:299)
==2065==    by 0x5C6C73: cp_lexer_get_preprocessor_token(cp_lexer*, cp_token*)
(parser.c:719)
==2065==    by 0x5F1035: c_parse_file() (parser.c:27358)
==2065==    by 0x6F60B4: c_common_parse_file() (c-opts.c:1138)
==2065==    by 0xA1E3FB: compile_file() (toplev.c:546)
==2065==    by 0xA20019: toplev_main(int, char**) (toplev.c:1863)
==2065==  Address 0x49f64f0 is 9,696 bytes inside a block of size 9,700 alloc'd
==2065==    at 0x480890E: realloc (vg_replace_malloc.c:662)
==2065==    by 0xF0861C: xrealloc (xmalloc.c:179)
==2065==    by 0xECED58: _cpp_convert_input (charset.c:1734)
==2065==    by 0xED772A: read_file(cpp_reader*, _cpp_file*) (files.c:685)
==2065==    by 0xED82FD: _cpp_stack_file (files.c:756)
==2065==    by 0xED0140: do_include_common(cpp_reader*, include_type)
(directives.c:792)
==2065==    by 0xED0F80: _cpp_handle_directive (directives.c:491)
==2065==    by 0xEDD53C: _cpp_lex_token (lex.c:1986)
==2065==    by 0xEE2117: cpp_get_token_1(cpp_reader*, unsigned int*)
(macro.c:2357)
==2065==    by 0x6EF622: c_lex_with_flags(tree_node**, unsigned int*, unsigned
char*, int) (c-lex.c:299)
==2065==    by 0x5C6C73: cp_lexer_get_preprocessor_token(cp_lexer*, cp_token*)
(parser.c:719)
==2065==    by 0x5F1035: c_parse_file() (parser.c:27358)
==2065== 
==2065== Invalid read of size 8
==2065==    at 0xEDA046: search_line_sse42(unsigned char const*, unsigned char
const*) (lex.c:445)
==2065==    by 0xEDA53E: _cpp_clean_line (lex.c:742)
==2065==    by 0xEDAFCB: _cpp_get_fresh_line (lex.c:2035)
==2065==    by 0xEDC7B0: _cpp_lex_direct (lex.c:2100)
==2065==    by 0xEDD50B: _cpp_lex_token (lex.c:1974)
==2065==    by 0xEE2117: cpp_get_token_1(cpp_reader*, unsigned int*)
(macro.c:2357)
==2065==    by 0x6EF622: c_lex_with_flags(tree_node**, unsigned int*, unsigned
char*, int) (c-lex.c:299)
==2065==    by 0x5C6C73: cp_lexer_get_preprocessor_token(cp_lexer*, cp_token*)
(parser.c:719)
==2065==    by 0x5F1035: c_parse_file() (parser.c:27358)
==2065==    by 0x6F60B4: c_common_parse_file() (c-opts.c:1138)
==2065==    by 0xA1E3FB: compile_file() (toplev.c:546)
==2065==    by 0xA20019: toplev_main(int, char**) (toplev.c:1863)
==2065==  Address 0x4b21ae0 is 0 bytes after a block of size 176 alloc'd
==2065==    at 0x480890E: realloc (vg_replace_malloc.c:662)
==2065==    by 0xF0861C: xrealloc (xmalloc.c:179)
==2065==    by 0xECED58: _cpp_convert_input (charset.c:1734)
==2065==    by 0xED772A: read_file(cpp_reader*, _cpp_file*) (files.c:685)
==2065==    by 0xED82FD: _cpp_stack_file (files.c:756)
==2065==    by 0xED0140: do_include_common(cpp_reader*, include_type)
(directives.c:792)
==2065==    by 0xED0F80: _cpp_handle_directive (directives.c:491)
==2065==    by 0xEDD53C: _cpp_lex_token (lex.c:1986)
==2065==    by 0xEE2117: cpp_get_token_1(cpp_reader*, unsigned int*)
(macro.c:2357)
==2065==    by 0x6EF622: c_lex_with_flags(tree_node**, unsigned int*, unsigned
char*, int) (c-lex.c:299)
==2065==    by 0x5C6C73: cp_lexer_get_preprocessor_token(cp_lexer*, cp_token*)
(parser.c:719)
==2065==    by 0x5F1035: c_parse_file() (parser.c:27358)
==2065== 
==2065== Invalid read of size 8
==2065==    at 0xEDA014: search_line_sse42(unsigned char const*, unsigned char
const*) (lex.c:464)
==2065==    by 0xEDA53E: _cpp_clean_line (lex.c:742)
==2065==    by 0xEDAB56: _cpp_skip_block_comment (lex.c:999)
==2065==    by 0xEDD196: _cpp_lex_direct (lex.c:2229)
==2065==    by 0xEDD50B: _cpp_lex_token (lex.c:1974)
==2065==    by 0xECFB3A: check_eol(cpp_reader*, bool) (directives.c:220)
==2065==    by 0xED0687: do_endif(cpp_reader*) (directives.c:2010)
==2065==    by 0xED0F80: _cpp_handle_directive (directives.c:491)
==2065==    by 0xEDD53C: _cpp_lex_token (lex.c:1986)
==2065==    by 0xEE2117: cpp_get_token_1(cpp_reader*, unsigned int*)
(macro.c:2357)
==2065==    by 0x6EF622: c_lex_with_flags(tree_node**, unsigned int*, unsigned
char*, int) (c-lex.c:299)
==2065==    by 0x5C6C73: cp_lexer_get_preprocessor_token(cp_lexer*, cp_token*)
(parser.c:719)
==2065==  Address 0x4b3fa40 is 13,504 bytes inside a block of size 13,507
alloc'd
==2065==    at 0x480890E: realloc (vg_replace_malloc.c:662)
==2065==    by 0xF0861C: xrealloc (xmalloc.c:179)
==2065==    by 0xECED58: _cpp_convert_input (charset.c:1734)
==2065==    by 0xED772A: read_file(cpp_reader*, _cpp_file*) (files.c:685)
==2065==    by 0xED82FD: _cpp_stack_file (files.c:756)
==2065==    by 0xED0140: do_include_common(cpp_reader*, include_type)
(directives.c:792)
==2065==    by 0xED0F80: _cpp_handle_directive (directives.c:491)
==2065==    by 0xEDD53C: _cpp_lex_token (lex.c:1986)
==2065==    by 0xEE2117: cpp_get_token_1(cpp_reader*, unsigned int*)
(macro.c:2357)
==2065==    by 0x6EF622: c_lex_with_flags(tree_node**, unsigned int*, unsigned
char*, int) (c-lex.c:299)
==2065==    by 0x5C6C73: cp_lexer_get_preprocessor_token(cp_lexer*, cp_token*)
(parser.c:719)
==2065==    by 0x5F1100: c_parse_file() (parser.c:598)
==2065== 
/home/dimhen/src/CSPbuild/shared/cplib/DateTime.cpp: In function
'CryptoPro::GeneralizedTimeToTm(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, unsigned int&, bool)':
/home/dimhen/src/CSPbuild/shared/cplib/DateTime.cpp:934:1: internal compiler
error: tree code '�F\x12��D��\x12�\x01Hc��' is not supported in LTO streams
 } // namespace CryptoPro
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
==2065== 
==2065== HEAP SUMMARY:
==2065==     in use at exit: 1,912,637 bytes in 11,020 blocks
==2065==   total heap usage: 463,331 allocs, 452,311 frees, 503,527,977 bytes
allocated
==2065== 
==2065== LEAK SUMMARY:
==2065==    definitely lost: 5,936 bytes in 7 blocks
==2065==    indirectly lost: 0 bytes in 0 blocks
==2065==      possibly lost: 80,320 bytes in 10 blocks
==2065==    still reachable: 1,826,381 bytes in 11,003 blocks
==2065==         suppressed: 0 bytes in 0 blocks
==2065== Rerun with --leak-check=full to see details of leaked memory
==2065== 
==2065== For counts of detected and suppressed errors, rerun with: -v
==2065== ERROR SUMMARY: 359 errors from 3 contexts (suppressed: 2 from 2)


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

* [Bug lto/54632] [4.8 Regression] not supported in LTO streams : tree code '�F ��D�� `
  2012-09-20  7:55 [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� ` dimhen at gmail dot com
                   ` (5 preceding siblings ...)
  2012-09-23 10:55 ` dimhen at gmail dot com
@ 2012-09-23 13:06 ` markus at trippelsdorf dot de
  2012-09-24  9:26 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: markus at trippelsdorf dot de @ 2012-09-23 13:06 UTC (permalink / raw)
  To: gcc-bugs


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

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot
                   |                            |de

--- Comment #7 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-09-23 13:05:43 UTC ---
(In reply to comment #5)
> Created attachment 28253 [details]
> partially reduced testcase
> 
> Reducing goes very slowly, this has been reducing for over a day

If the failure depends somehow on the size of the input file then delta will
approach it only asymptotically...


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

* [Bug lto/54632] [4.8 Regression] not supported in LTO streams : tree code '�F ��D�� `
  2012-09-20  7:55 [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� ` dimhen at gmail dot com
                   ` (6 preceding siblings ...)
  2012-09-23 13:06 ` markus at trippelsdorf dot de
@ 2012-09-24  9:26 ` rguenth at gcc dot gnu.org
  2012-09-24  9:39 ` zsojka at seznam dot cz
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-24  9:26 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-24 09:26:25 UTC ---
If it's triggered by GC I suggest to try reducing with --param ggc-min-expand=0
--param ggc-min-heapsize=0 (not that this will make it any faster ;))


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

* [Bug lto/54632] [4.8 Regression] not supported in LTO streams : tree code '�F ��D�� `
  2012-09-20  7:55 [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� ` dimhen at gmail dot com
                   ` (7 preceding siblings ...)
  2012-09-24  9:26 ` rguenth at gcc dot gnu.org
@ 2012-09-24  9:39 ` zsojka at seznam dot cz
  2012-09-24  9:46 ` dimhen at gmail dot com
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: zsojka at seznam dot cz @ 2012-09-24  9:39 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #9 from Zdenek Sojka <zsojka at seznam dot cz> 2012-09-24 09:38:40 UTC ---
If I remember correctly, with --param ggc-min-expand=0
--param ggc-min-heapsize=0 the program didn't crash - maybe the space was
reallocated of another tree, so the pointer became valid again.

I tried to compile gcc with --disable-bootstrap --enable-checking=valgrind, but
the compilation fails when linking (saying I should use -fPIC). That would give
me the chance to use valgrind to find the invalid memory access (memory
allocations aren't hooked by valgrind here; valgrind checking adds explicit
calls to valgrind routines).

I am not reducing the file any longer, if it's caused by invalid memory
references, the crash could appear and disappear 'randomly' with changes in the
code.


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

* [Bug lto/54632] [4.8 Regression] not supported in LTO streams : tree code '�F ��D�� `
  2012-09-20  7:55 [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� ` dimhen at gmail dot com
                   ` (8 preceding siblings ...)
  2012-09-24  9:39 ` zsojka at seznam dot cz
@ 2012-09-24  9:46 ` dimhen at gmail dot com
  2012-09-24 12:28 ` markus at trippelsdorf dot de
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dimhen at gmail dot com @ 2012-09-24  9:46 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #10 from Dmitry G. Dyachenko <dimhen at gmail dot com> 2012-09-24 09:46:12 UTC ---
for me testcase FAIl with -O2 -flto --param ggc-min-heapsize=0
and OK with -O3 -flto --param ggc-min-expand=0


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

* [Bug lto/54632] [4.8 Regression] not supported in LTO streams : tree code '�F ��D�� `
  2012-09-20  7:55 [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� ` dimhen at gmail dot com
                   ` (9 preceding siblings ...)
  2012-09-24  9:46 ` dimhen at gmail dot com
@ 2012-09-24 12:28 ` markus at trippelsdorf dot de
  2012-09-24 12:43 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: markus at trippelsdorf dot de @ 2012-09-24 12:28 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #11 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-09-24 12:27:28 UTC ---
I get:

==24033== Memcheck, a memory error detector
==24033== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==24033== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==24033== Command:
/var/tmp/foo/usr/local/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/cc1plus
-fpreprocessed test.ii -quiet -dumpbase test.ii -mtune=generic -march=x86-64
-auxbase test -O2 -Wfatal-errors -w -std=c++11 -flto -flto-partition=none
--param ggc-min-heapsize=0 -o /tmp/ccj0VbuA.s
==24033== 
==24033== Invalid read of size 2
==24033==    at 0x947E70: lto_output_tree(output_block*, tree_node*, bool,
bool) (lto-streamer-out.c:127)
==24033==    by 0xB8D64F: streamer_write_tree_body(output_block*, tree_node*,
bool) (tree-streamer-out.c:672)
==24033==    by 0x948569: lto_output_tree(output_block*, tree_node*, bool,
bool) (lto-streamer-out.c:339)
==24033==    by 0xB8CDE3: streamer_write_tree_body(output_block*, tree_node*,
bool) (tree-streamer-out.c:507)
==24033==    by 0x948569: lto_output_tree(output_block*, tree_node*, bool,
bool) (lto-streamer-out.c:339)
==24033==    by 0x948CAE: lto_output() (lto-streamer-out.c:751)
==24033==    by 0x97DBE0: ipa_write_summaries_2(opt_pass*, lto_out_decl_state*)
(passes.c:2284)
==24033==    by 0x97EA2D: ipa_write_summaries() (passes.c:2314)
==24033==    by 0x782919: compile() (cgraphunit.c:1866)
==24033==    by 0x782B54: finalize_compilation_unit() (cgraphunit.c:2080)
==24033==    by 0x5AE5FA: cp_write_global_declarations() (decl2.c:4024)
==24033==    by 0xA1D784: compile_file() (toplev.c:560)
==24033==  Address 0x8c46af0 is not stack'd, malloc'd or (recently) free'd
==24033== 
==24033== Invalid read of size 2
==24033==    at 0x947E99: lto_output_tree(output_block*, tree_node*, bool,
bool) (tree-streamer.h:63)
==24033==    by 0xB8D64F: streamer_write_tree_body(output_block*, tree_node*,
bool) (tree-streamer-out.c:672)
==24033==    by 0x948569: lto_output_tree(output_block*, tree_node*, bool,
bool) (lto-streamer-out.c:339)
==24033==    by 0xB8CDE3: streamer_write_tree_body(output_block*, tree_node*,
bool) (tree-streamer-out.c:507)
==24033==    by 0x948569: lto_output_tree(output_block*, tree_node*, bool,
bool) (lto-streamer-out.c:339)
==24033==    by 0x948CAE: lto_output() (lto-streamer-out.c:751)
==24033==    by 0x97DBE0: ipa_write_summaries_2(opt_pass*, lto_out_decl_state*)
(passes.c:2284)
==24033==    by 0x97EA2D: ipa_write_summaries() (passes.c:2314)
==24033==    by 0x782919: compile() (cgraphunit.c:1866)
==24033==    by 0x782B54: finalize_compilation_unit() (cgraphunit.c:2080)
==24033==    by 0x5AE5FA: cp_write_global_declarations() (decl2.c:4024)
==24033==    by 0xA1D784: compile_file() (toplev.c:560)
==24033==  Address 0x8c46af0 is not stack'd, malloc'd or (recently) free'd
==24033== 
test.ii: In member function ‘AirportTileTableIterator::operator++()’:
test.ii:10619:6: internal compiler error: tree code ‘�F���’ is not supported in
LTO streams
      }
      ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug lto/54632] [4.8 Regression] not supported in LTO streams : tree code '�F ��D�� `
  2012-09-20  7:55 [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� ` dimhen at gmail dot com
                   ` (10 preceding siblings ...)
  2012-09-24 12:28 ` markus at trippelsdorf dot de
@ 2012-09-24 12:43 ` rguenth at gcc dot gnu.org
  2012-09-24 15:03 ` rguenth at gcc dot gnu.org
  2012-09-24 15:03 ` rguenth at gcc dot gnu.org
  13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-24 12:43 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-09-24
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #12 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-24 12:42:27 UTC ---
The backtrace hints at trees containing DECL_VALUE/DEBUG_EXPRs.  We
are indeed writing TREE_BLOCK which has been garbage-collected.

(gdb) up
#3  0x0000000000dcf803 in write_ts_exp_tree_pointers (ob=0x1c809d0, 
    expr=0x7ffff4de0000, ref_p=true)
    at /space/rguenther/src/svn/trunk/gcc/tree-streamer-out.c:674
674       stream_write_tree (ob, TREE_BLOCK (expr), ref_p);
...
#7  0x0000000000dcea3c in write_ts_decl_common_tree_pointers (ob=0x1c809d0, 
    expr=0x7ffff4ddc2f8, ref_p=true)
    at /space/rguenther/src/svn/trunk/gcc/tree-streamer-out.c:509
509         stream_write_tree (ob, DECL_DEBUG_EXPR (expr), ref_p);
...
#11 0x0000000000ad8e10 in output_struct_function_base (ob=0x1c809d0, 
    fn=0x7ffff5440c80)
    at /space/rguenther/src/svn/trunk/gcc/lto-streamer-out.c:751
748       /* Output all the local variables in the function.  */
749       streamer_write_hwi (ob, VEC_length (tree, fn->local_decls));
750       FOR_EACH_VEC_ELT (tree, fn->local_decls, i, t)
751         stream_write_tree (ob, t, true);

so somehow GC does not mark this block as used (or it is not marked
as used in the block tree and thus removed in remove_unused_scope_block_p).

We indeed forget to walk all locals in clear_unused_block_pointer ().

Testing

Index: gcc/tree-ssa-live.c
===================================================================
--- gcc/tree-ssa-live.c (revision 191664)
+++ gcc/tree-ssa-live.c (working copy)
@@ -620,11 +620,6 @@ clear_unused_block_pointer_1 (tree *tp,
   if (EXPR_P (*tp) && TREE_BLOCK (*tp)
       && !TREE_USED (TREE_BLOCK (*tp)))
     TREE_SET_BLOCK (*tp, NULL);
-  if (TREE_CODE (*tp) == VAR_DECL && DECL_DEBUG_EXPR_IS_FROM (*tp))
-    {
-      tree debug_expr = DECL_DEBUG_EXPR (*tp);
-      walk_tree (&debug_expr, clear_unused_block_pointer_1, NULL, NULL);
-    }
   return NULL_TREE;
 }

@@ -636,6 +631,16 @@ clear_unused_block_pointer ()
 {
   basic_block bb;
   gimple_stmt_iterator gsi;
+  tree t;
+  unsigned i;
+
+  FOR_EACH_VEC_ELT (tree, cfun->local_decls, i, t)
+    if (TREE_CODE (t) == VAR_DECL && DECL_DEBUG_EXPR_IS_FROM (t))
+      {
+       tree debug_expr = DECL_DEBUG_EXPR (t);
+       walk_tree (&debug_expr, clear_unused_block_pointer_1, NULL, NULL);
+      }
+
   FOR_EACH_BB (bb)
     for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi))
       {


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

* [Bug lto/54632] [4.8 Regression] not supported in LTO streams : tree code '�F ��D�� `
  2012-09-20  7:55 [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� ` dimhen at gmail dot com
                   ` (12 preceding siblings ...)
  2012-09-24 15:03 ` rguenth at gcc dot gnu.org
@ 2012-09-24 15:03 ` rguenth at gcc dot gnu.org
  13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-24 15:03 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #13 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-24 15:03:01 UTC ---
Author: rguenth
Date: Mon Sep 24 15:02:53 2012
New Revision: 191669

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191669
Log:
2012-09-24  Richard Guenther  <rguenther@suse.de>

    PR middle-end/54632
    * tree-ssa-live.c (clear_unused_block_pointer_1): Do not
    handle DECL_DEBUG_EXPR_IS_FROM here...
    (clear_unused_block_pointer): ... but here when walking all
    local decls.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-ssa-live.c


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

* [Bug lto/54632] [4.8 Regression] not supported in LTO streams : tree code '�F ��D�� `
  2012-09-20  7:55 [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� ` dimhen at gmail dot com
                   ` (11 preceding siblings ...)
  2012-09-24 12:43 ` rguenth at gcc dot gnu.org
@ 2012-09-24 15:03 ` rguenth at gcc dot gnu.org
  2012-09-24 15:03 ` rguenth at gcc dot gnu.org
  13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-24 15:03 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

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

--- Comment #14 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-24 15:03:28 UTC ---
Fixed.


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

end of thread, other threads:[~2012-09-24 15:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-20  7:55 [Bug lto/54632] New: not supported in LTO streams : tree code '�F ��D�� ` dimhen at gmail dot com
2012-09-20  7:57 ` [Bug lto/54632] " dimhen at gmail dot com
2012-09-20 11:32 ` [Bug lto/54632] [4.8 Regression] " rguenth at gcc dot gnu.org
2012-09-23  9:22 ` dimhen at gmail dot com
2012-09-23  9:33 ` dimhen at gmail dot com
2012-09-23 10:50 ` zsojka at seznam dot cz
2012-09-23 10:55 ` dimhen at gmail dot com
2012-09-23 13:06 ` markus at trippelsdorf dot de
2012-09-24  9:26 ` rguenth at gcc dot gnu.org
2012-09-24  9:39 ` zsojka at seznam dot cz
2012-09-24  9:46 ` dimhen at gmail dot com
2012-09-24 12:28 ` markus at trippelsdorf dot de
2012-09-24 12:43 ` rguenth at gcc dot gnu.org
2012-09-24 15:03 ` rguenth at gcc dot gnu.org
2012-09-24 15:03 ` rguenth at gcc dot gnu.org

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