Bug 21546 - internal compiler error: in convert_move, at expr.c:339
Summary: internal compiler error: in convert_move, at expr.c:339
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.1
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2005-05-13 10:14 UTC by Ralf Menzel
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host: sparc-sun-solaris2.9
Target: sparc-sun-solaris2.9
Build: sparc-sun-solaris2.9
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Menzel 2005-05-13 10:14:23 UTC
When I compile the following file with 'gcc -O2 file.c' I get:

file.c: In function 'clip':
file.c:2: internal compiler error: in convert_move, at expr.c:339
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

--- file.c ---
void clip(double v, long *vbuf)
{
  if (v >= 0.0)	{
    v = 2147483647.0f;
  } else {
    v = 0.0;
  }
  *vbuf = v;
}
--- end of file.c ---

Bye,
Ralf Menzel
Comment 1 Ralf Menzel 2005-05-13 10:16:01 UTC
Oh, I forgot, here is the output of 'gcc -v':

Using built-in specs.
Target: sparc-sun-solaris2.9
Configured with: /home/menzel/src/4.0.0/gcc-4.0.0/configure
--prefix=/home/menzel/sw5.9-gcc4.0.0 : (reconfigured)
/home/menzel/src/4.0.0/gcc-4.0.0/configure --prefix=/home/menzel/sw5.9-gcc4.0.0
Thread model: posix
gcc version 4.0.0
Comment 2 Eric Botcazou 2005-05-15 11:30:45 UTC
Fixed in gcc version 4.0.1 20050510 (prerelease).