https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91287

--- Comment #4 from Xiong Hu XS Luo <luoxhu at cn dot ibm.com> ---
(In reply to Martin Liška from comment #3)
> (In reply to Xiong Hu XS Luo from comment #1)
> > Martin's commit 4ee64e30659a9125a47eeea882d8044e690ce334 will cause ICE.
> > 
> > It's a REGRESSION not related to this current issue.
> > 
> > ~/local/gcc_t/bin/gfortran -O3 -mcpu=power9 hellofortran.f90
> > -mveclibabi=mass -L/opt/mass/8.1.3/Linux_LE/lib/ -lmass -flto -lmass_simdp8
> > -lmassv -lmassvp8
> > lto1: internal compiler error: bytecode stream: expected tag identifier_node
> > instead of LTO_UNKNOWN
> > 
> > It's not fixed even updated to commit
> > cf474017fbb8fbb71d69b0ca4b4b34260cfe5ab3 (Mon Jul 29, Fix ICE seen in
> > tree-ssa-dce.c for new/delete pair.).
> > 
> > 
> > commit 4ee64e30659a9125a47eeea882d8044e690ce334
> > Author: marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
> > Date:   Thu Jul 25 09:36:38 2019 +0000
> > 
> >     Extend DCE to remove unnecessary new/delete-pairs (PR c++/23383).
> > 
> >     2019-07-25  Martin Liska  <mli...@suse.cz>
> 
> Which should be hopefully fixed by:
> https://gcc.gnu.org/ml/gcc-patches/2019-07/msg01761.html

Still fail to build after applying your changes, but different from before:

~/workspace/gcc-git/gcc-master_build/gcc/xgcc
-B/home/luoxhu/workspace/gcc-git/gcc-master_build/gcc/ -O3 -mcpu=power9
hellofortran.f90 -mveclibabi=mass -L/opt/mass/8.1.3/Linux_LE/lib/ -lmass -flto
-lmass_simdp8 -lmassv -lmassvp8
/tmp/cctrpu2h.ltrans0.ltrans.o: In function `MAIN__':
<artificial>:(.text+0x114): undefined reference to `_gfortran_st_write'
<artificial>:(.text+0x12c): undefined reference to
`_gfortran_transfer_character_write'
<artificial>:(.text+0x140): undefined reference to
`_gfortran_transfer_integer_write'
<artificial>:(.text+0x154): undefined reference to
`_gfortran_transfer_integer_write'
<artificial>:(.text+0x168): undefined reference to
`_gfortran_transfer_integer_write'
<artificial>:(.text+0x174): undefined reference to `_gfortran_st_write_done'
/tmp/cctrpu2h.ltrans0.ltrans.o: In function `main':
<artificial>:(.text.startup+0x14): undefined reference to `_gfortran_set_args'
<artificial>:(.text.startup+0x28): undefined reference to
`_gfortran_set_options'
collect2: error: ld returned 1 exit status

Reply via email to