[Bug target/13685] Building KDE3.2 clock applet with -march=pentium3 -O1 gives SIGSEGV

hubicka at ucw dot cz gcc-bugzilla@gcc.gnu.org
Mon Jan 19 10:42:00 GMT 2004


------- Additional Comments From hubicka at ucw dot cz  2004-01-19 10:42 -------
Subject: Re:  Building KDE3.2 clock applet with -march=pentium3 -O1 gives SIGSEGV

> 
> ------- Additional Comments From roger dot larsson at norran dot net  2004-01-19 08:11 -------
> This is the shortest code yet (matrix.cpp) I found that generates the 
> offending instruction (movaps) - but I have not yet succeeded in getting 
> the stack unaligned... [Do you need that too?] 

Roger,
I am not able to reproduce it from your testcase, but sending the
assembly file produces with g++ -O1 -march=pentium3 -dp -S will probably
give me enough information to fix it.

Thanks!
Honza
>  
> class RTime 
> { 
> public: 
>     int minute() {} 
> }; 
>  
> void rotate(float x) 
> { 
> } 
>  
> int main() 
> { 
>     RTime _time; 
>  
>     // hour 
>     float h_angle = _time.minute(); 
>     rotate(-h_angle); 
>  
>     // minute 
>     float m_angle = _time.minute(); 
>     rotate(-m_angle); 
> } 
>  
> I am pretty sure that Qt should be simple to  
> Compile with: 
> gcc -I/usr/src/kde/qt-copy/mkspecs/linux-g++ -I../../include -o matrix.o 
> -march=pentium3 -O1 matrix.cpp 
> 
> -- 
> 
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685



More information about the Gcc-bugs mailing list