Group static constructors and destructors in specific subsections, take 2

Jack Howarth howarth@bromo.med.uc.edu
Wed Nov 10 22:26:00 GMT 2010


On Wed, Nov 10, 2010 at 06:13:17PM +0100, Jan Hubicka wrote:
> > Makefile now has this funny message of copying tm.texi.in into tm.texi.  It seems that you copied
> > doc/tm.texi.in into doc/tm.texi while you need to copy tm.texi.in from your build directory.
> 
> You can also just revert the doc directory change.  It needs no testing on multiple targets.
> 
> Thanks for doing the Darwin run BTW :)
> Honza
> > 
> > Honza

Honza,
   I can't seem to get past the error...

gcc   -g -O2 -DIN_GCC   -W -Wall -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 -DGENERATOR_FILE  -o build/gengenrtl \
	    build/gengenrtl.o build/errors.o ../build-x86_64-apple-darwin10.5.0/libiberty/libiberty.a
/bin/sh ../../gcc/gcc/../move-if-change tmp-tm.texi tm.texi

Verify that you have permission to grant a GFDL license for all
new text in tm.texi, then copy it to ../../gcc/gcc/doc/tm.texi.
make[2]: *** [s-tm-texi] Error 1
make[2]: *** Waiting for unfinished jobs....
rm gfdl.pod cpp.pod gcov.pod fsf-funding.pod gcc.pod
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2

even with the simple build...

../gcc/configure --prefix=/Users/howarth/dist --with-gmp=/sw --with-mpc=/sw --with-libiconv-prefix=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --enable-languages=c --disable-bootstrap

...using your patch except for the section...

Index: doc/tm.texi
===================================================================
--- doc/tm.texi	(revision 166490)
+++ doc/tm.texi	(working copy)
@@ -7335,6 +7335,8 @@ macro is not defined, nothing is output 
 @end defmac
 
 @deftypefn {Target Hook} void TARGET_ASM_NAMED_SECTION (const char *@var{name}, unsigned int @var{flags}, tree @var{decl})
+
+@deftypefn {Target Hook} {section *} TARGET_ASM_FUNCTION_SECTION (tree @var{decl}, enum node_frequency @var{freq}, bool @var{startup}, bool @var{exit})
 Output assembly directives to switch to section @var{name}.  The section
 should have attributes as specified by @var{flags}, which is a bit mask
 of the @code{SECTION_*} flags defined in @file{output.h}.  If @var{decl}

that I pruned off of it. If I revert your patch and repeat the build, the error disappears. It is unclear
to me what section in the remainder of the patch could be causing this problem.
         Jack



More information about the Gcc-patches mailing list