From: Jan-Benedict G. <jb...@us...> - 2005-12-16 11:35:39
|
Update of /cvsroot/linux-vax/toolchain/patches In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4873 Added Files: uclibc-000030-disable_linktime_warning.patch Log Message: - This modifies the link_warning() macro so that it "only" warns during building and doesn't abort build with an error when the .s file is given to gas. - I've looked into GAS, but I must admit I fail to really figure out how comments are handled. The only "real" place I've found to handle this is in read.c, which really expects "#APP\n" or "#NO_APP", which marks user-supplied assmebly (instead of GCC-generated). Though it seems to work for other archs/targets so I seem to miss the point. It would be nice if you'd look at this. --- NEW FILE: uclibc-000030-disable_linktime_warning.patch --- diff -Nurp src-uclibc-fresh/include/libc-internal.h src-uclibc-hacked/include/libc-internal.h --- src-uclibc-fresh/include/libc-internal.h 2005-12-16 10:26:47.000000000 +0100 +++ src-uclibc-hacked/include/libc-internal.h 2005-12-16 10:27:25.000000000 +0100 @@ -73,6 +73,11 @@ /* Tacking on "\n\t#" to the section name makes gcc put it's bogus section attributes on what looks like a comment to the assembler. */ # define __sec_comment "\n\t#" +# ifdef __vax__ +# warning "__sec_comment commented out..." +# undef __sec_comment +# define __sec_comment "" +# endif # ifdef __cris__ # define link_warning(symbol, msg) # else |