PATCH: Error if C++ `init_priority' Attribute Not Supported
Jeffrey Oldham
oldham@codesourcery.com
Sun Jan 14 19:38:00 GMT 2001
If an architecture's linker does not support the gcc C++ attribute
init_priority but it is used, issue an error that it is not supported.
The macro "SUPPORTS_INIT_PRIORITY", which may be set in a
configuration file, should be undefined if the attribute is not
supported.
gcc/ChangeLog:
2001-01-14 Jeffrey Oldham <oldham@codesourcery.com>
* defaults.h (SUPPORTS_INIT_PRIORITY): New macro to indicate the
linker supports the init_priority C++ attribute.
* tm.texi (SUPPORTS_INIT_PRIORITY): Documentation for new macro.
* config/mips/iris6.h (SUPPORTS_INIT_PRIORITY): Indicate Irix
linker does not support init_priority C++ attribute.
gcc/cp/ChangeLog:
2001-01-14 Jeffrey Oldham <oldham@codesourcery.com>
* tree.c: Add defaults.h.
(cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY.
* Make-lang.in (cp/tree.o): Add defaults.h.
Tested on mips-sgi-irix6.5 and i686-pc-linux-gnu
Approved by Mark Mitchell (mark@codesourcery.com)
Thanks,
Jeffrey D. Oldham
oldham@codesourcery.com
More information about the Gcc-patches
mailing list