This is the mail archive of the gcc-bugs@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]

Re: c/1613: gcc version 2.97 20010110 (experimental) does not build sh-linux-gnu-gcc


soka@line.co.jp wrote:
> 
> >Number:         1613
> >Category:       c
> >Synopsis:       gcc version 2.97 20010110 (experimental) does not build sh-linux-gnu-gcc
> >Confidential:   no
> >Severity:       critical
> >Priority:       medium
> >Responsible:    unassigned
> >State:          open
> >Class:          ice-on-legal-code
> >Submitter-Id:   net
> >Arrival-Date:   Thu Jan 11 01:16:00 PST 2001
> >Closed-Date:
> >Last-Modified:
> >Originator:     Sachio Okamoto
> >Release:        gcc version 2.97 20010110 (experimental)
> >Organization:
> >Environment:
> Debian GNU/Linux 2.2r1 on x86
> >Description:
> I did configure of gcc-20010110.
> 
> ../egcs/configure --target=sh-linux-gnu --prefix=/usr/local/experimental --enable-languages=c
> 
> Then I executed make. Make was successful to making xgcc.
> Make uses xgcc sequentially and is going to make sh-linux-gnu-gcc.
> However, ICE occurred during the compilation.
> 
> I attached the source file which simplified the file which generated ICE.
> 
> I show error message in the following.
> 
> foo.c: In function `__muldf3':
> foo.c:43: Internal compiler error in gen_reg_rtx, at emit-rtl.c:542
> Please submit a full bug report.
>  See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
> >How-To-Repeat:

I encountered the same problem.

It involves inlining and -fpic.  _fpmul_parts is defined "static __inline__".
If you remove __inline__ or turn off optimization (-O0), the error disappears.
If you remove -fpic, the error also disappears.

-- 

Michael Eager
Senior Tools Developer	  Phone: (408) 328-8426
MontaVista Software, Inc.   Fax: (408) 328-9204
1237 E. Arques Avenue	    Web: www.hardhatlinux.com
Sunnyvale, CA 94085	  Email: eager@mvista.com

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