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]

glibc 2.0.7 / egcs 1.0.3a inline pow() function bug.



The following code crashes with a seg. fault under glibc 2.0.7 / egcs
1.0.3a when the optimization is turn-on.  It seems to be a problem in
the inline version of pow() in /usr/include/__math.h.

#include <math.h> 

void e(float *a) { }

void 
b()
{
  float z;

  z = 0.0; 
  e(&z); 
  pow(1.0, 2.2);
}

int main() {  b(); }
---------------------------

Has this been reported before?  Is it a known problem?  It there a
quick change I can make to the __math.h file to fix it?  It this
a glibc2 problem or an egcs problem or both?

	Thanks,
	Rick Niles.



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