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]

egcs-1.0.3prerelease - SIGFPE on alphaev5-dev-linux-gnu



Compiling and running the code

int main( int, char ** )
{
    double temp = 1.01;
    double temp2 = 7.24316e-312;
    double temp3 = temp * temp2;
    return 0;
}

gives a SIGFPE. gdb-4.16 reports:

(gdb) run
Starting program: /home/jochen/source/bugs/./a.out

Program received signal SIGFPE, Arithmetic exception.
0x120000758 in main () at fpe01.cc:5
5           double temp3 = temp * temp2;

Jochen

--
-----------------------------------------------------------------------
  Jochen K"upper

  Heinrich-Heine-Universit"at D"usseldorf   jochen@uni-duesseldorf.de
  Institut f"ur Physikalische Chemie I
  Universit"atsstr. 1, Geb 26.43 Raum 02.29    phone ++49-211-8113681
  40225 D"usseldorf                            fax   ++49-211-8115195
  Germany             http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------


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