On Wed, Jul 11, 2012 at 7:49 AM, Jan-Benedict Glaw <jbg...@lug-owl.de> wrote: > Hi! > > Git revision 4a020a8 [aka. SVN 189359], the large header reordering patch, > broke m68k-linux (.../configure --target=m68k-linux --prefix=... > --enable-languages=c --disable-threads) for me: > > [...] > gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing > -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-format-attribute -pedantic -Wno > -long-long -Wno-variadic-macros -Wno-overlength-strings > -Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -I. -I. > -I../../../../gcc/gcc -I../../../../gcc/gcc/. > -I../../../../gcc/gcc/../include -I../../../../gcc/gcc/../libcpp/include > -I../../../../gcc/gcc/../libdecnumber > -I../../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber > ../../../../gcc/gcc/resource.c -o resource.o > ../../../../gcc/gcc/resource.c: In function ‘init_resource_info’: > ../../../../gcc/gcc/resource.c:1179:5: error: ‘current_function_decl’ > undeclared (first use in this function) > ../../../../gcc/gcc/resource.c:1179:5: note: each undeclared identifier is > reported only once for each function it appears in > make[2]: *** [resource.o] Error 1 > > I suggest the following patch, which is only compile-tested. > > MfG, JBG > > > 2012-07-11 Jan-Benedict Glaw <jbg...@lug-owl.de> > > * config/m68k/m68k.c (m68k_epilogue_uses): New. > * config/m68k/m68k.h (m68k_epilogue_uses): Use new function > instead of former macro. > * config/m68k/m68k-protos.h (m68k_epilogue_uses): Declare.
Did your build already include http://gcc.gnu.org/ml/gcc-patches/2012-07/msg00378.html ? Ciao! Steven