This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [PATCH, V850] Add libgloss support for V850


Hi,

>> 1. Why is v850ea support being removed?

There was only partially support for V850EA. Hence it was removed.
However, we have retained that support in the modified patch.


>> Top-level files don't belong to newlib.  See the top-level MAINTAINERS file
>> for info on who owns what files or what mailing lists need to be notified.

We will post patch for 'configure.ac' at 'binutils@sourceware.org' and
'gdb-patches@sourceware.org'


>> 2. Does the gcc list know you are planning on removing v850 from newlib
>> and is there a corresponding change that is occurring?
>> The reason I mention this is that without a change to gcc, any v850
>> users will start seeing link errors because they used to get syscalls
>> thrown in when they linked in newlib.  Now linking requires
>> additional reference to the new linker script sim.ld.

Yes, we have made corresponding changes in GCC. We have posted the patch at,
http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00521.html


>> 3. You don't need to remove libnosys support.
Yes, thank you for pointing this out. I have made the changes in the
attached patch.

>> 4. It would be good to mention that you are moving newlib files to
>> libgloss in the ChangeLog entry.  Helps for tracking history.

Added as per suggestion.

>> 5. Are you aware that it is possible to disable the newlib sys library
>> as opposed to removing it outright via a configuration option:
>> --disable-newlib-supplied-syscalls?  This allows a transition period
>> if one needs to get compiler support in place without breaking
>> things that assume that the syscalls will be automatically linked in.

Yes we are aware of the option. We have made corresponding changes in GCC.
We have posted the patch at,
http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00521.html

However the suggestion seems to be a better option till the GCC patch gets
accepted. The attached patch has the changes for this.

>>6. You are calling your bsp library libsim.a and linker script sim.ld.
>> Can it be confirmed that the moved code was targeted to run on a
>> simulator vs a real board?

Currently, the moved code is targeted to run on simulator. We will add
support for a target board in the future.


Please find attached the modified patch
"v850-newlib-v850-libgloss-support.patch".


2010-07-02  Naveen.H.S  <naveenh1@kpitcummins.com>
                Gina Verlekar <gina.verlekar@kpitcummins.com>

        * configure: Add support for v850*-*-*.
        * configure.ac: Likewise.
        * newlib/configure.host: Add support for v850*-*-*.
        * newlib/libc/sys/sysnecv850/Makefile.in: Add support for
        '--disable-newlib-supplied-syscalls' option.
        * libgloss/libnosys/configure: Add support for v850*-*-*.
        * libgloss/libnosys/configure.in: Likewise.
        * libgloss: Moving files from libc/sys/sysnecv850 to libgloss/v850
        * libgloss/configure: Add libgloss support for V850.
        * libgloss/configure.in: Likewise.
        * libgloss/v850/access.c: New file.
        * libgloss/v850/aclocal.m4: New.
        * libgloss/v850/chmod.c: New.
        * libgloss/v850/chown.c: New.
        * libgloss/v850/close.c: New.
        * libgloss/v850/configure: New.
        * libgloss/v850/configure.in: New.
        * libgloss/v850/crt0.S: New.
        * libgloss/v850/crt1.c: New.
        * libgloss/v850/execv.c: New.
        * libgloss/v850/execve.c: New.
        * libgloss/v850/_exit.c: New.
        * libgloss/v850/fork.c: New.
        * libgloss/v850/fstat.c: New.
        * libgloss/v850/getpid.c: New.
        * libgloss/v850/gettime.c: New.
        * libgloss/v850/isatty.c: New.
        * libgloss/v850/kill.c: New.
        * libgloss/v850/link.c: New.
        * libgloss/v850/lseek.c: New.
        * libgloss/v850/Makefile.in: New.
        * libgloss/v850/open.c: New.
        * libgloss/v850/pipe.c: New.
        * libgloss/v850/read.c: New.
        * libgloss/v850/sbrk.c: New.
        * libgloss/v850/sim.ld: New.
        * libgloss/v850/stat.c: New.
        * libgloss/v850/time.c: New.
        * libgloss/v850/times.c: New.
        * libgloss/v850/trap.S: New.
        * libgloss/v850/unlink.c: New.
        * libgloss/v850/utime.c: New.
        * libgloss/v850/wait.c: New.
        * libgloss/v850/write.c: New.


Please review the patch and let me know if there should be any modifications
 in it.

Thanks & Regards,
Gina Verlekar
www.kpitgnutools.com


-----Original Message-----
From: Jeff Johnston [mailto:jjohnstn@redhat.com]
Sent: Wednesday, June 16, 2010 2:25 AM
To: Naveen H. S
Cc: newlib@sourceware.org; Gina Verlekar; Nick Clifton; DJ Delorie
Subject: Re: [PATCH, V850] Add libgloss support for V850

A few questions and some comments.  I cc'd Nick and DJ as they have
performed some of the latest maintenance on sysnecv850 files and might
have something to say about the proposed move to libgloss.

1. Why is v850ea support being removed?  Top-level files don't belong
    to newlib.  See the top-level MAINTAINERS file for info on
    who owns what files or what mailing lists need to be notified.

2. Does the gcc list know you are planning on removing v850 from newlib
    and is there a corresponding change that is occurring?
    The reason I mention this is that without a change to gcc, any v850
    users will start seeing link errors because they used to get syscalls
    thrown in when they linked in newlib.  Now linking requires
    additional reference to the new linker script sim.ld.

3. You don't need to remove libnosys support.

4. It would be good to mention that you are moving newlib files to
    libgloss in the ChangeLog entry.  Helps for tracking history.

5. Are you aware that it is possible to disable the newlib sys library
    as opposed to removing it outright via a configuration option:
    --disable-newlib-supplied-syscalls?  This allows a transition period
    if one needs to get compiler support in place without breaking
    things that assume that the syscalls will be automatically linked in.

6. You are calling your bsp library libsim.a and linker script sim.ld.
    Can it be confirmed that the moved code was targeted to run on a
    simulator vs a real board?

-- Jeff J.

On 06/08/2010 12:50 AM, Naveen H. S wrote:
> Hi,
>
> Please find attached the "v850-newlib-v850-libgloss-support.patch".
> The patch adds libgloss support for V850 target.
>
> Please review the patch and let me know if there should be any modifications in it.
>
> 2010-06-08  Naveen.H.S  naveenh1@kpitcummins.com
>               Gina Verlekar  gina.verlekar@kpitcummins.com
>
>        * configure: Remove support for V850ea.
>        * configure.ac: Likewise.
>       * libgloss/configure: Add libgloss support for V850.
>       * libgloss/configure.in: Likewise.
>       * libgloss/libnosys/configure.in: Remove support for V850
>       * libgloss/libnosys/configure: Likewise
>       * libgloss/v850/access.c: New file.
>       * libgloss/v850/aclocal.m4: New.
>       * libgloss/v850/chmod.c: New.
>       * libgloss/v850/chown.c: New.
>       * libgloss/v850/close.c: New.
>       * libgloss/v850/configure: New.
>       * libgloss/v850/configure.in: New.
>       * libgloss/v850/crt0.S: New.
>       * libgloss/v850/crt1.c: New.
>       * libgloss/v850/execv.c: New.
>       * libgloss/v850/execve.c: New.
>       * libgloss/v850/_exit.c: New.
>       * libgloss/v850/fork.c: New.
>       * libgloss/v850/fstat.c: New.
>       * libgloss/v850/getpid.c: New.
>       * libgloss/v850/gettime.c: New.
>       * libgloss/v850/isatty.c: New.
>       * libgloss/v850/kill.c: New.
>       * libgloss/v850/link.c: New.
>       * libgloss/v850/lseek.c: New.
>       * libgloss/v850/Makefile.in: New.
>       * libgloss/v850/open.c: New.
>       * libgloss/v850/pipe.c: New.
>       * libgloss/v850/read.c: New.
>       * libgloss/v850/sbrk.c: New.
>       * libgloss/v850/sim.ld: New.
>       * libgloss/v850/stat.c: New.
>       * libgloss/v850/time.c: New.
>       * libgloss/v850/times.c: New.
>       * libgloss/v850/trap.S: New.
>       * libgloss/v850/unlink.c: New.
>       * libgloss/v850/utime.c: New.
>       * libgloss/v850/wait.c: New.
>       * libgloss/v850/write.c: New.
>       * newlib/configure.host: Remove V850 support.
>       * newlib/libc/sys/configure.in: Remove v850 support.
>       * newlib/libc/sys/sysnecv850/access.c: Remove.
>       * newlib/libc/sys/sysnecv850/aclocal.m4: Remove.
>       * newlib/libc/sys/sysnecv850/chmod.c: Remove.
>       * newlib/libc/sys/sysnecv850/chown.c: Remove.
>       * newlib/libc/sys/sysnecv850/close.c: Remove.
>       * newlib/libc/sys/sysnecv850/configure: Remove.
>       * newlib/libc/sys/sysnecv850/configure.in: Remove.
>       * newlib/libc/sys/sysnecv850/creat.c: Remove.
>       * newlib/libc/sys/sysnecv850/crt0.S: Remove.
>       * newlib/libc/sys/sysnecv850/crt1.c: Remove.
>       * newlib/libc/sys/sysnecv850/execv.c: Remove.
>       * newlib/libc/sys/sysnecv850/execve.c: Remove.
>       * newlib/libc/sys/sysnecv850/_exit.c: Remove.
>       * newlib/libc/sys/sysnecv850/fork.c: Remove.
>       * newlib/libc/sys/sysnecv850/access.c: Remove.
>       * newlib/libc/sys/sysnecv850/fstat.c: Remove.
>       * newlib/libc/sys/sysnecv850/getpid.c: Remove.
>       * newlib/libc/sys/sysnecv850/gettime.c: Remove.
>       * newlib/libc/sys/sysnecv850/isatty.c: Remove.
>       * newlib/libc/sys/sysnecv850/kill.c: Remove.
>       * newlib/libc/sys/sysnecv850/link.c: Remove.
>       * newlib/libc/sys/sysnecv850/lseek.c: Remove.
>       * newlib/libc/sys/sysnecv850/Makefile.am: Remove.
>       * newlib/libc/sys/sysnecv850/Makefile.in: Remove.
>
> Thanks&  Regards,
> Naveen.H.S

Attachment: v850-newlib-v850-libgloss-support-patch.tar.bz2
Description: v850-newlib-v850-libgloss-support-patch.tar.bz2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]