Bug 148781 - StepMania 3.9 Loops Songs Forever if using GCC 4 with >= -O2 optimizations
Bug#: 148781 Product:  Gentoo Linux Version: 2006.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: cchris0396@students.pcci.edu
Component: Games
URL: 
Summary: StepMania 3.9 Loops Songs Forever if using GCC 4 with >= -O2 optimizations
Keywords:  
Status Whiteboard: 
Opened: 2006-09-23 07:46 0000
Description:   Opened: 2006-09-23 07:46 0000
The ebuild needs a patch that forces -O1 in StepMania 3.9 using GCC 4.*

I've tested it and confirmed that it works with -O1 but not with anything
higher.

------- Comment #1 From SpanKY 2006-09-23 07:55:45 0000 -------
no, figure out the real bug, dont force flags

------- Comment #2 From Charles Christie 2006-09-23 16:13:24 0000 -------
I'm no programmer, I can't find bugs. I did, however, inform the StepMania
developers.

------- Comment #3 From Joel Cunningham 2006-11-01 11:31:23 0000 -------
*** Bug 153728 has been marked as a duplicate of this bug. ***

------- Comment #4 From UncleOwen 2006-11-03 15:34:10 0000 -------
Created an attachment (id=101172) [details]
stepmania-amd64-gcc41-loopfix.patch

I have taken a closer look at what compiler options are included in -O2. This
is what I found.

@Charles: How did you inform them? I did not find a bugtracker, nor did I find
a post from you on the stepmania forums.

------- Comment #5 From Charles Christie 2006-11-05 16:50:51 0000 -------
https://sourceforge.net/tracker/?func=detail&aid=1559774&group_id=37892&atid=421366

------- Comment #6 From Joel Cunningham 2006-11-05 20:53:56 0000 -------
I am running the latest stepmania-cvs snapshot and this problem isn't present.

------- Comment #7 From Charles Christie 2006-11-27 18:31:33 0000 -------
Created an attachment (id=102883) [details]
a patch to fix mostly all of the strict alias issues

StepMania-CVS != StepMania 3.9. Some people prefer 3.9 over 4.0 due to theme
and song compatibility issues. Oh, and someone made a real patch for this...

------- Comment #8 From UncleOwen 2006-11-28 08:49:13 0000 -------
Great. The patch works :)

------- Comment #9 From Chris Gianelloni (RETIRED) 2006-11-29 14:54:04 0000 -------
This patch is applied atop all the others, correct?

------- Comment #10 From UncleOwen 2006-12-01 11:35:01 0000 -------
Correct.

------- Comment #11 From Chris Gianelloni (RETIRED) 2006-12-12 09:50:08 0000 -------
FIXED in CVS...