URL: <http://savannah.nongnu.org/bugs/?38135>
Summary: Install a dummy stdfix-avrlibc.h Project: AVR C Runtime Library Submitted by: gjlayde Submitted on: Mo 21 Jan 2013 18:50:39 GMT Category: Feature Request Severity: 3 - Normal Priority: 5 - Normal Item Group: Build system Status: None Percent Complete: 0% Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Release: 1.8.0 Fixed Release: None _______________________________________________________ Details: avr-gcc installs the ISO/IEC TR18037 "Embedded C" header stdfix.h in an install path prior to $target/inlude. If avr-libc wants to hook in, it should install it's addendum to stdfix.h. There are basically two ways to do it: 1) Install it as stdfix-avrlibc.h and stdfix.h will pick it up (preferred). 2) Use the GNU extension #include_next <stdfix.h> to include avr-libc's stdfix.h Stuff that avr-gcc's stdfix.h provides are basic definitions from * 7.18a.1 Introduction (sat, fract, accum) * 7.18a.3 Precision macros (IBIT, FBIT, MN, MAX, EPSILON, ...) and maybe more stuff that's easy to implement like * 2.1.7.4 bits/fx/ * 2.1.7.5 /fx/bits * more such basic stuff like absfx, roundfx that could be provided with built-ins. It would already help if you provide a dummy file that does nothing. Without even a dummy, the above includes will barf, of course. But with them, you can hook in new stuff at any time and at your option. _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?38135> _______________________________________________ Nachricht gesendet von/durch Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev