Re: Fix streaming of target optimization/option nodes

2015-01-05 Thread H.J. Lu
On Mon, Dec 22, 2014 at 3:02 AM, Thomas Schwinge wrote: > Hi! > > On Mon, 15 Dec 2014 23:36:11 +0100, Jan Hubicka wrote: >> this is final version I comitted. > >> PR lto/64043 > >> * tree-streamer.c (preload_common_nodes): Skip preloading >> of main_identifier_node, pid_type and

Re: Fix streaming of target optimization/option nodes

2014-12-22 Thread Thomas Schwinge
Hi! On Mon, 15 Dec 2014 23:36:11 +0100, Jan Hubicka wrote: > this is final version I comitted. > PR lto/64043 > * tree-streamer.c (preload_common_nodes): Skip preloading > of main_identifier_node, pid_type and optimization/option nodes. > --- tree-streamer.c (revision 21872

Re: Fix streaming of target optimization/option nodes

2014-12-16 Thread Richard Biener
On Mon, 15 Dec 2014, Jan Hubicka wrote: > > On Mon, 15 Dec 2014, Jan Hubicka wrote: > > > > > Hi, actually this patch break fortran, I get streaming error in: lto1: > > > internal compiler error: in streamer_get_pickled_tree apparently picking > > > error_mark_node for variable constructor resu

Re: Fix streaming of target optimization/option nodes

2014-12-15 Thread Jan Hubicka
Hi, this is final version I comitted. 20110201-1_0.c actually tests that we optimize cabs on function copmiled with -O0 that is no longer supposed to happen. Honza PR lto/64043 * gcc.dg/lto/20110201-1_0.c: New testcase. * tree-streamer.c (preload_common_nodes): Skip prel

Re: Fix streaming of target optimization/option nodes

2014-12-15 Thread Jan Hubicka
> On Mon, 15 Dec 2014, Jan Hubicka wrote: > > > Hi, actually this patch break fortran, I get streaming error in: lto1: > > internal compiler error: in streamer_get_pickled_tree apparently picking > > error_mark_node for variable constructor results in reading > > integer_type... > > ? > > Pro

Re: Fix streaming of target optimization/option nodes

2014-12-15 Thread Jan Hubicka
> On Mon, 15 Dec 2014, Jan Hubicka wrote: > > > Hi, actually this patch break fortran, I get streaming error in: lto1: > > internal compiler error: in streamer_get_pickled_tree apparently picking > > error_mark_node for variable constructor results in reading > > integer_type... > > ? > > Pro

Re: Fix streaming of target optimization/option nodes

2014-12-15 Thread Richard Biener
On Mon, 15 Dec 2014, Jan Hubicka wrote: > Hi, actually this patch break fortran, I get streaming error in: lto1: > internal compiler error: in streamer_get_pickled_tree apparently picking > error_mark_node for variable constructor results in reading > integer_type... ? Probably the default no

Re: Fix streaming of target optimization/option nodes

2014-12-14 Thread Jan Hubicka
Hi, actually this patch break fortran, I get streaming error in: lto1: internal compiler error: in streamer_get_pickled_tree apparently picking error_mark_node for variable constructor results in reading integer_type... Honza > Hi, > the testcase in PR ipa/61324 fails because it is compiled with

Fix streaming of target optimization/option nodes

2014-12-14 Thread Jan Hubicka
Hi, the testcase in PR ipa/61324 fails because it is compiled with -O0 and linked with -O2. This should not matter anymore if there wasn't the following problem in streamer that makes us to merge all default nodes across units. Bootstrapped/regtested x86_64-linux, plan to commit it after more te