This is the mail archive of the mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.

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 5/5] Disable wrapper's -Wunreachable-code


On Wed, Apr 7, 2010 at 2:47 PM, Yann E. MORIN
<> wrote:
> Arnaud, All,
> On Wednesday 07 April 2010 18:35:24 Arnaud Lacombe wrote:
>> It makes the build fails because of unreachable code in stdlib's realpath()
>> implementation on ubuntu 9.04.
> Argh! :-(
> Is this considered a bug in Ubuntu, or a /feature/ ?
actually, I may have been mistaken about Ubuntu. I used a custom GCC
4.2.x/Glibc 3.3.6 toolchain[0] to build that toolchain, so the error
may have come from header of this toolchain. I'll need to check that

The culprit is that inline in <bits/stdlib.h>:

__extern_always_inline __wur char *
__NTH (realpath (__const char *__restrict __name, char *__restrict __resolved))
  if (__bos (__resolved) != (size_t) -1)
#if defined _LIBC_LIMITS_H_ && defined PATH_MAX
      if (__bos (__resolved) < PATH_MAX)
        return __realpath_chk_warn (__name, __resolved, __bos (__resolved));
      return __realpath_chk (__name, __resolved, __bos (__resolved));

  return __realpath_alias (__name, __resolved);

I no longer have the exact error log however. I'll need to have a new
look at that.

 - Arnaud

[0]: because I want to have the new toolchain linked to an old libc to
work with native netbsd compat... until ct-ng support fully static

For unsubscribe information see

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