This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] SH: Bootstrap failure


Joern RENNECKE <joern.rennecke@st.com> wrote:
> I'm not sure if we need to do this extra initialization also for the
> optimize && flag_delayed_branch case (I.e. if we compile with
> -O2 -fno-schedule-insns-2)  Even if we don't, this
> selective initializing becomes ever more brittle as we add more
> things that need to be initialized, all of which might become used
> in more passes later on.  I think we should make the extra
> initializations - up to the "find_basic_blocks (insns);" - dependent
> on "if  (optimize)" only.  Likewise for the entire clean-up code
> (free_basic_block_vars is harmless and quick if there is nothing to clean
> up).  The extra initialization code before dbr_schedule can then go.

It sounds reasonable that doing init and clean up the minimal CFG
stuff always when optimize > 0.

BTW, even with that extra initialization of the bb info, the compile
of libstdc++-v3/src/strstream.cc with '-O2 -fno-schedule-insns2 -fPIC'
fails:

gcc/libstdc++-v3/src/strstream.cc: In member function 'void std::strstream::_ZTv0_n12_NSt9strstreamD0Ev()':
gcc/libstdc++-v3/src/strstream.cc:415: internal compiler error: in final_scan_insn, at final.c:2425

I'll look into it more closely.

Regards,
	kaz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]