| Submitter | Maxim Kuvyrkov |
|---|---|
| Date | July 21, 2010, 6:39 p.m. |
| Message ID | <4C473ECF.2040502@codesourcery.com> |
| Download | mbox | patch |
| Permalink | /patch/59486/ |
| State | New |
| Headers | show |
Comments
On Wed, Jul 21, 2010 at 2:39 PM, Maxim Kuvyrkov <maxim@codesourcery.com> wrote: > I would rather not duplicate the case statement which matches a non-trivial > list of targets. It would be just too error prone. > > How about instead we make the implicit effects of config/rs6000/sysv4.h > explicit? I.e., default to GLIBC when no C library is specified. This was > the behavior before UCLIBC_DEFAULT was replaced with DEFAULT_LIBC. That seems like a reasonable solution. Okay. Thanks, David
Patch
Index: config/rs6000/sysv4.h =================================================================== --- config/rs6000/sysv4.h (revision 162345) +++ config/rs6000/sysv4.h (working copy) @@ -905,7 +905,7 @@ SVR4_ASM_SPEC \ #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" #if DEFAULT_LIBC == LIBC_UCLIBC #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}" -#elif DEFAULT_LIBC == LIBC_GLIBC +#elif !defined (DEFAULT_LIBC) || DEFAULT_LIBC == LIBC_GLIBC #define CHOOSE_DYNAMIC_LINKER(G, U) "%{muclibc:" U ";:" G "}" #else #error "Unsupported DEFAULT_LIBC"