This is the mail archive of the mailing list for the GCC 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]

[Bug libfortran/21185] libgfortran unusable for cross-testing for newlib targets

------- Comment #15 from fxcoudert at gcc dot gnu dot org  2007-09-14 13:38 -------
Created an attachment (id=14208)
 --> (
Updated patch

(In reply to comment #13)
> /home/hp/combe/combined/libgfortran/io/unix.c:1794: error: static declaration
> of 'access' follows non-static declaration
> /home/hp/combe/combined/newlib/libc/include/sys/unistd.h:19: error: previous
> declaration of 'access' was here

Oh, you have a prototype for access() in standard headers but no function in
the libc? That's weird! Embedded targets will always surprise me.

> Besides the obvious s/amod/amode/ typo

Hum, how did that even get past my testing? I thought I had commented out
HAVE_ACCESS on my x86_64-linux.

> maybe use a different name for the internal function

Yup, you're right (the second version). I'm attaching an updated patch that
should do the same thing you did.

(In reply to comment #12)
> Testing on v850-unknown-elf suggests that getcwd() is also needed by
> libgfortran.

Also fixed in the attached new patch.


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