Friday, 15 May 2015

[gccsdk] Native !GCC gcc and cpp issues

I think unixify failure is wrong description so I have started this new thread as a continuation of the same problems for the Native !GCC

gccsdk/gcc4/recipe/files/gcc/gcc/config/arm/riscos-gcc.c has a function
riscos_convert_filename()

that spoils '*gcc foo.bar.c' from working and also does nothing to help
gcc example.c -I../foo.bar

I have built a native !GCC 4.7.4 with a bypass of that function,
and it fixes the first problem and
gcc foo.bar.c (lex.yy.c)
now works.

Before and after this change to riscos-gcc.c
there is no alteration to the -I../foo.bar problem which currently only
works if the RISC OS name is used
-I^foo/bar or
@.foo/bar (for the current directory)

I now have to find a place to convert the -I../foo.bar to RISC OS.

There is a file
gccsdk/gcc4/recipe/files/gcc/libcpp/rname.c
but it seems to be to do with CROSS_DIRECTORY_STRUCTURE and RISC OS library paths.
maybe the patch to riscosify will have to be in cpp itself.

Ron M.


_______________________________________________
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