[Bug 1596] libtests/malloc03/init.c: GCC diagnoses testcase as bad code
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Wed Jun 30 14:12:19 UTC 2010
https://www.rtems.org/bugzilla/show_bug.cgi?id=1596
--- Comment #1 from Joel Sherrill <joel.sherrill at oarcorp.com> 2010-06-30 09:12:16 CDT ---
It would be nice to disable this warning for this test. We still need to
be sure that this case is caught by free().
I took off all warning flags. I was hoping to find a specific warning flag
that triggered this. This warning doesn't disappear until you drop
to -O0. That wasn't the solution I was looking for but it is an option.
Grabbing the current stack pointer and trying to free is an equivalent
operation from a testing view. Attached is the diff to do that.
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list