Build error with GCC13 + newlib 4.1.0 - error: 'float_t' undeclared

Chris Packham <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <CAFOYHZCDJUVtpz-QF4gLPE62W056mqK7GEBVDU4gYvvD17OSGA@mail.gmail.com>
Hello from CT-NG,

I user reported the following build error with newlib after GCC13.1
was added recently

src/newlib/newlib/libm/math/wf_log2.c:34:22: error: 'float_t'
undeclared (first use in this function); did you mean 'float'?
       34 |   return (logf(x) / (float_t) M_LN2);
          |                      ^~~~~~~
          |                      float

From what I've been able to follow so far this may have something to
do with how FLT_EVAL_METHOD is defined. It's not really mentioned in
the GCC docs as something that has changed but I wonder if it is
perhaps implied by a C standard the default of which probably has
changed.

Does this ring any bells for anyone?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.