This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/38587] [4.4 Regression] psim miscompiled #2
- From: "joel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jan 2009 22:20:53 -0000
- Subject: [Bug middle-end/38587] [4.4 Regression] psim miscompiled #2
- References: <bug-38587-296@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from joel at gcc dot gnu dot org 2009-01-19 22:20 -------
(In reply to comment #15)
> Revision 142516 gave:
>
> [hjl@gnu-28 pr38587]$ ./psim-4.10 ./powerpc-psim-ticker.ralf
> events.c:329: assertion failed - !events->processing
That sounds like the previous psim miscompiled bug.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38387
I closed it when the problem went away with no explanation.
I first saw the bug around this revision.
gcc (GCC) 4.4.0 20081205 (experimental) [trunk revision 142492]
So you have to go back further than that to miss psim regression #1
>
> [hjl@gnu-28 pr38587]$
>
> Revision 142517 gave:
>
> [hjl@gnu-34 pr38587]$ ./psim-4.10 ./powerpc-psim-ticker.ralf
>
>
> *** CLOCK TICK TEST ***
> TA1 - rtems_clock_get - 09:00:00 12/31/1988
> TA2 - rtems_clock_get - 09:00:00 12/31/1988
> TA3 - rtems_clock_get - 09:00:00 12/31/1988
> TA1 - rtems_clock_get - 09:00:05 12/31/1988
> TA2 - rtems_clock_get - 09:00:10 12/31/1988
> TA1 - rtems_clock_get - 09:00:10 12/31/1988
> TA3 - rtems_clock_get - 09:00:15 12/31/1988
> TA1 - rtems_clock_get - 09:00:15 12/31/1988
> TA2 - rtems_clock_get - 09:00:20 12/31/1988
> TA1 - rtems_clock_get - 09:00:20 12/31/1988
> TA1 - rtems_clock_get - 09:00:25 12/31/1988
> TA3 - rtems_clock_get - 09:00:30 12/31/1988
> TA1 - rtems_clock_get - 09:00:30 12/31/1988
> TA2 - rtems_clock_get - 09:00:30 12/31/1988
> *** END OF CLOCK TICK TEST ***
> idecode.c:6591: assertion failed - current_cpu >= 0 && current_cpu < nr_cpus
>
> [hjl@gnu-34 pr38587]$
>
> Is that possible a bug in sim?
>
psim is very old code written by Andrew Cagney over a decade ago. It has
compiled and worked with all gcc versions since that time. My test script
on CFARM builds a native GCC from SVN and uses that to build the crosses.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38587