Wednesday, 25 April 2012

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

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@aaug.net
ReportedBy: duncan_moore@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.

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment