This is the mail archive of the
mailing list for the newlib project.
Re: Question: machine/powerpc/times.c
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: Jeff Johnston <jjohnstn at redhat dot com>, "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Thu, 23 May 2013 16:04:49 -0500
- Subject: Re: Question: machine/powerpc/times.c
- References: <519E2142 dot 3050602 at oarcorp dot com> <519E7D1B dot 7060908 at redhat dot com> <519E7E58 dot 50900 at oarcorp dot com> <519E7EB5 dot 5070802 at redhat dot com>
On 5/23/2013 3:40 PM, Aldy Hernandez wrote:
On 05/23/13 15:38, Joel Sherrill wrote:
On 5/23/2013 3:33 PM, Jeff Johnston wrote:
On 05/23/2013 10:01 AM, Joel Sherrill wrote:
The file machine/powerpc/times.c does not appear to
be machine specific but more of a system dependent file.
We don't want to use it on RTEMS.
Any idea why it is there? What uses it?
Removing it is one option but if it is really used, then we would be
breaking something else.
I can't see any history except that Jeff added it, then renamed it. :)
Should it be disabled for RTEMS, moved somewhere more appropriate,
Aldy added the function before I renamed it. I have cc'd him here. I
would imagine he did so to support running a gcc test-suite and so it
should not be removed, but I'll let him pipe in.
If it is specifically to running gcc's test suite on a simulator, then
it would seem
to be part of a libgloss BSP.
To be honest, I have no clue.
:) Time does cause memories to fade. :)
What target might this have been used on powerpc-elf? powerpc-eabi?
libgloss/rs6000 has sim-getrusage.S which this is built upon. Would it
make sense to move it there?
Confusingly, there is reent/timesr.c which calls _times().
All I know is that it is in an architecture specific directory and it is
an OS/libgloss BSP specific file. I just want to find it a new home.
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985