c/2035: Internal compiler error on complex casts. Only withoptimisation.
Mike van Emmerik
emmerik@csee.uq.edu.au
Sun Jun 24 20:33:00 GMT 2001
On 22 Jun 2001 jsm28@gcc.gnu.org wrote:
> Synopsis: Internal compiler error on complex casts. Only with optimisation.
>
> State-Changed-From-To: open->feedback
> State-Changed-By: jsm28
> State-Changed-When: Fri Jun 22 03:43:02 2001
> State-Changed-Why:
> Does this problem still occur with GCC 3.0?
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2035&database=gcc
>
Yes, it does:
/home/00/emmerik> gcc3 -O4 -o foo main.i
main.c: In function `main':
main.c:57: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
main.c:64: Internal compiler error in extract_bit_field, at expmed.c:1104
Only the line number of the error has changed since 2.95.2. The
warning is also apparently new.
My gcc3:
/home/00/emmerik> gcc3 -v
Reading specs from
/opt/local/stow/gcc-3.00/lib/gcc-lib/sparc-sun-solaris2.8/3.0/specs
Configured with: ./configure --prefix=/opt/local/stow/gcc-3.00
Thread model: posix
gcc version 3.0
As before, the error only shows up with optimisation (e.g. -O4).
The bug is intermittent, in that some programs generated by our
translator work OK, and others don't. However, with the submitted
example, it fails 100% sure every time.
- Mike
More information about the Gcc-bugs
mailing list