[bug #57071] Fix math.h and function names that block 64-bit double

2020-01-17 Thread Georg-Johann Lay
Follow-up Comment #13, bug #57071 (project avr-libc): [comment #12 comment #12:] > Here is a small addendum which fixes some problems that I ran into when building avr-libc with avr-gcc v3.4.6: Note: Just the fact that current avr-libc can be built with avr-gcc v3.4.6 does not mean the result is

[bug #57071] Fix math.h and function names that block 64-bit double

2020-01-16 Thread Georg-Johann Lay
Follow-up Comment #12, bug #57071 (project avr-libc): Here is a small addendum which fixes some problems that I ran into when building avr-libc with avr-gcc v3.4.6: 1) The compiler might not recognize -Wno-sign-compare or -Wno-maybe-uninitialized which are used to silence some build warnings. 2)

[bug #57071] Fix math.h and function names that block 64-bit double

2019-12-09 Thread Georg-Johann Lay
Follow-up Comment #11, bug #57071 (project avr-libc): Hi, here is an updated version of the patch. Compared to the patch proposed in comment #10, it fixes the vfprintf issues: * Treat %f like %lf, same for other float printers. If double is 64 bits, it will only print "?". * Support %Lf for lo

[bug #57071] Fix math.h and function names that block 64-bit double

2019-11-27 Thread Georg-Johann Lay
Follow-up Comment #10, bug #57071 (project avr-libc): Here is an updated version of the patch with the following changes: * It also defines alias symbols for long double provided long double = float. * It provides long double prototypes in math.h. * Adds a new file common/alias.h which defines la

[bug #57071] Fix math.h and function names that block 64-bit double

2019-11-08 Thread Georg-Johann Lay
Follow-up Comment #9, bug #57071 (project avr-libc): The GCC feature is upstream: https://gcc.gnu.org/r277908 The new configure options are: --with-double={32|64|32,64|64,32} --with-long-double={32|64|32,64|64,32|double} For a documentation, see https://gcc.gnu.org/install/configure.html#avr

[bug #57071] Fix math.h and function names that block 64-bit double

2019-10-25 Thread Georg-Johann Lay
Follow-up Comment #8, bug #57071 (project avr-libc): FYI, there is the according GCC issue + patch http://gcc.gnu.org/PR92055 >From the doc of https://gcc.gnu.org/bugzilla/attachment.cgi?id=47114&action=diff +@item -mdouble=@var{bits} +@opindex mdouble +Set the size (in bits) of the @code{doub

[bug #57071] Fix math.h and function names that block 64-bit double

2019-10-25 Thread Georg-Johann Lay
Follow-up Comment #7, bug #57071 (project avr-libc): [comment #6 comment #6:] > The current patch is supposed to be a no-op, so that > no observable effect should occur. There are observable effects actually: The patch should also result in the resolution of bug #49984. ___

[bug #57071] Fix math.h and function names that block 64-bit double

2019-10-25 Thread Georg-Johann Lay
Follow-up Comment #6, bug #57071 (project avr-libc): [comment #5 comment #5:] > Thanks for the explanation. > > I think I'll apply the patch then as is by now, and we might > add some words about the usage later on, when the configuration > is settled. Great. The current patch is supposed to be

[bug #57071] Fix math.h and function names that block 64-bit double

2019-10-24 Thread Joerg Wunsch
Follow-up Comment #5, bug #57071 (project avr-libc): Thanks for the explanation. I think I'll apply the patch then as is by now, and we might add some words about the usage later on, when the configuration is settled. ___ Reply to this ite

[bug #57071] Fix math.h and function names that block 64-bit double

2019-10-24 Thread Georg-Johann Lay
Follow-up Comment #4, bug #57071 (project avr-libc): [comment #3 comment #3:] > Curious, what's the compiler switch to select 32- vs. 64-bit double? I'd like to add a bit of documentation about the entire topic as well. I didn't settle on an interface yet, my preferred choice would be configure o

[bug #57071] Fix math.h and function names that block 64-bit double

2019-10-23 Thread Joerg Wunsch
Follow-up Comment #3, bug #57071 (project avr-libc): Thanks, something "auto-configuring" like the second patch is much appreciated. Curious, what's the compiler switch to select 32- vs. 64-bit double? I'd like to add a bit of documentation about the entire topic as well. ___

[avr-libc-dev] [bug #57071] Fix math.h and function names that block 64-bit double

2019-10-18 Thread Georg-Johann Lay
Follow-up Comment #2, bug #57071 (project avr-libc): Here is a version without __asm(symbol) that defines a symbol for double only if sizeof(double) == sizeof(float). * include/math.h (cosf, sinf, tanf, fmodf, modff, sqrtf, cbrtf, hypotf, squaref) (floorf, ceilf, frexpf,

[avr-libc-dev] [bug #57071] Fix math.h and function names that block 64-bit double

2019-10-17 Thread Georg-Johann Lay
Follow-up Comment #1, bug #57071 (project avr-libc): * include/math.h (cos, sin, tan, fmod, modf, sqrt, cbrt, hypot, square, floor, ceil) (frexp, ldexp, exp, cosh, sinh, tanh, asin, acos, atan, atan2) (log, log10, pow, isnan, isinf, signbit, fdim, fma, fmax, fmin)

[avr-libc-dev] [bug #57071] Fix math.h and function names that block 64-bit double

2019-10-17 Thread Georg-Johann Lay
URL: Summary: Fix math.h and function names that block 64-bit double Project: AVR C Runtime Library Submitted by: gjlayde Submitted on: Thu 17 Oct 2019 07:10:37 AM UTC Category: No