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

target/10072: internal compiler error: in trunc_int_for_mode, at explow.c:54


>Number:         10072
>Category:       target
>Synopsis:       internal compiler error: in trunc_int_for_mode, at explow.c:54
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 14 04:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Peter van Hoof
>Release:        3.3 20030310 (prerelease)
>Organization:
Queen's University of Belfast
>Environment:
System: SunOS scooby 5.9 Generic_112233-04 sun4u sparc SUNW,Sun-Blade-100
Architecture: sun4

	
host: sparc-sun-solaris2.9
build: sparc-sun-solaris2.9
target: sparc-sun-solaris2.9
configured with: /scratch/temp/ss/gcc-20030310/configure --prefix=/opt/local/gcc330
>Description:
The compiler generates an internal compiler error when optimizing
for an ultrasparc in fast-math mode. This program compiles OK with
gcc 3.2.2 using the same command line options
>How-To-Repeat:
scooby>	gcc -v -c -O1 -mcpu=ultrasparc -ffast-math phymir.c
Reading specs from /opt/local/gcc330/lib/gcc-lib/sparc-sun-solaris2.9/3.3/specs
Configured with: /scratch/temp/ss/gcc-20030310/configure --prefix=/opt/local/gcc330
Thread model: posix
gcc version 3.3 20030310 (prerelease)
 /opt/local/gcc330/lib/gcc-lib/sparc-sun-solaris2.9/3.3/cc1 -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -Dsparc -D__sparc__ -D__sparc -D__sparcv8 -D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc phymir.c -quiet -dumpbase phymir.c -mcpu=ultrasparc -auxbase phymir -O1 -version -ffast-math -o /var/tmp//ccoMpVGP.s
GNU C version 3.3 20030310 (prerelease) (sparc-sun-solaris2.9)
	compiled by GNU C version 3.3 20030310 (prerelease).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/opt/local/gcc330/sparc-sun-solaris2.9/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /opt/local/gcc330/include
 /opt/local/gcc330/lib/gcc-lib/sparc-sun-solaris2.9/3.3/include
 /usr/include
End of search list.
phymir.c: In function `p':
phymir.c:6: internal compiler error: in trunc_int_for_mode, at explow.c:54
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.


The input follows:

scooby>	more phymir.c 
void p()
{
        long int i,j;
        float a,b,c,x[1];
        x[i] = (a/(((b)>(c)) ? (b) : (c)) - (((i) == (j)) ? 1.f : 0.f));
}

>Fix:
Omitting any one of the command line options works around the problem.
>Release-Note:
>Audit-Trail:
>Unformatted:


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