bugAVR C Runtime Library - Bugs: bug #38135, Install a dummy stdfix-avrlibc.h


bug #38135: Install a dummy stdfix-avrlibc.h

Submitted by:  Georg-Johann Lay <gjlayde>
Submitted on:  Mon 21 Jan 2013 06:50:39 PM UTC  
Category:  Feature Request Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build system
Status:  Fixed Assigned to:  Joerg Wunsch <joerg_wunsch>
Percent Complete:  0% Open/Closed:  Closed
Release:  1.8.0 Fixed Release:  1.8.1

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 03 May 2013 04:09:17 PM UTC, comment #2: 

Added in SVN r2389.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Tue 22 Jan 2013 04:07:26 PM UTC, comment #1: 

After a short discussion with Johann, here's a template for
the desired header:

* Copyright ...

/* $Id$ */


/* reference to ISO/IEC TR 18037 */

#ifndef _AVRGCC_STDFIX_H  /* Defined in stdfix.h from avr-gcc */
#warning please include <stdfix.h> directly rather than <stdfix-avrlibc.h>
#endif /* _AVRGCC_STDFIX_H */

/* Room for avr-libc specific extensions */

#endif /* _STDFIX_AVRLIBC_H */

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Mon 21 Jan 2013 06:50:39 PM UTC, original submission:  

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

  • bits/fx/
  • /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.

Georg-Johann Lay <gjlayde>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by gjlayde (Submitted the item)



    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-05-03 joerg_wunsch StatusNone => Fixed
        Assigned toNone => joerg_wunsch
        Open/ClosedOpen => Closed
        Fixed ReleaseNone => 1.8.1

    Back to the top

    Powered by Savane 3.5