[gccsdk] [Bug 227] New: GCC 4.1.2 Release 1 getcwd problem

bugzilla-daemon at riscos.info bugzilla-daemon at riscos.info
Wed Apr 25 09:40:57 PDT 2012


http://www.riscos.info/bugzilla3/show_bug.cgi?id=227

           Summary: GCC 4.1.2 Release 1 getcwd problem
           Product: GCC/GCCSDK
           Version: other
          Platform: Other
        OS/Version: RISC OS
            Status: NEW
          Severity: normal
          Priority: P1
         Component: C compiler
        AssignedTo: John.Tytgat at aaug.net
        ReportedBy: duncan_moore at ntlworld.com
   Estimated Hours: 0.0


VRPC RISC OS 4.39

#include <stdio.h>
#include <string.h>
#include <unistd.h>
int main() {
  printf("%i\n",strlen(getcwd(NULL,0)));
  return 0;
}

With GCC 4.1.2 Release 1:

*gcc -o test getcwd.c
*test
0

Earlier versions give correct output like:

43

-- 
Configure bugmail: http://www.riscos.info/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.




More information about the gcc mailing list