[Patch,libgcc]: Apply filter-out to fixed-bit.c

Georg-Johann Lay avr@gjlay.de
Thu Aug 23 13:43:00 GMT 2012


Hi, this patch adds support for LIB2FUNCS_EXCLUDE to the objects
generated from fixed-bit.c

Currently the backend has no means to filter out undesired
functions like it is possible with LIB2FUNCS_EXCLUDE for
the functions/objects from libgcc2.c

I am planning to add fixed-point support for the avr port.
Several functions use hand-written assembler and use non-ABI
interfaces to cooperate with gcc.  Therefore, the default
ABI function that has the same name must not be used.

The patch is tested against my local copy that actually adds
entries like _addQQ3,  _fractQQHQ etc. to LIB2FUNCS_EXCLUDE
so that the list has a non-empty intersection with fixed-bit.c

If the name "LIB2FUNCS_EXCLUDE" is too confusing, please
suppose a different name for the variable.  I chose that
name because I found it straight forward and intuitive and
it does not conflict with the current use.  It's rather
confusing if LIB2FUNCS_EXCLUDE does not work as expected...

The generation of the primary lists by gen-fixed.sh is
not changed because it is not easy to pass down several
hundreds of entries and the performance is bad.

Instead, the lists are generated and processed as usual so
that they are kept in sync.  The respective dependencies
are not generated and the objects are not added to
libgcc-[s-]objects.

Ok for trunk?

Johann

libgcc/
	* Makefile.in (fixed-funcs,fixed-conv-funcs): filter-out
	LIB2FUNCS_EXCLUDE before adding them to libgcc-objects,
	libgcc-s-objects.
	* fixed-obj.mk: Only expand dependency if $o is not in
	LIB2FUNCS_EXCLUDE.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgcc-filter-fixed.diff
Type: text/x-patch
Size: 1879 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120823/8dde2e11/attachment.bin>


More information about the Gcc-patches mailing list