[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2019-01-21 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

Enji Cooper  changed:

   What|Removed |Added

 Status|Closed  |Open
   Assignee|b...@freebsd.org|n...@freebsd.org
 Resolution|FIXED   |---

--- Comment #15 from Enji Cooper  ---
Test hasn't been fixed. Reopening.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2019-01-21 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

Oleksandr Tymoshenko  changed:

   What|Removed |Added

 CC||go...@freebsd.org
 Resolution|--- |FIXED
 Status|New |Closed

--- Comment #14 from Oleksandr Tymoshenko  ---
There is a commit referencing this PR, but it's still not closed and has been
inactive for some time. Closing the PR as fixed but feel free to re-open it if
the issue hasn't been completely resolved.

Thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2016-09-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

--- Comment #13 from commit-h...@freebsd.org ---
A commit references this bug:

Author: bde
Date: Mon Sep 19 12:34:29 UTC 2016
New revision: 305971
URL: https://svnweb.freebsd.org/changeset/base/305971

Log:
  MFC r305380:

  Fix missing fmodl() on arches with 53-bit long doubles.

  PR:   199422, 211965

Changes:
  stable/11/lib/msun/src/e_fmod.c

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2016-09-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

--- Comment #12 from commit-h...@freebsd.org ---
A commit references this bug:

Author: bde
Date: Sun Sep  4 12:01:32 UTC 2016
New revision: 305380
URL: https://svnweb.freebsd.org/changeset/base/305380

Log:
  Fix missing fmodl() on arches with 53-bit long doubles.

  PR:   199422, 211965
  MFC after:1 week

Changes:
  head/lib/msun/src/e_fmod.c

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2015-05-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

--- Comment #11 from commit-h...@freebsd.org ---
A commit references this bug:

Author: ngie
Date: Wed May 13 10:12:17 UTC 2015
New revision: 282836
URL: https://svnweb.freebsd.org/changeset/base/282836

Log:
  MFC r282056:

  The fmodl compat shims on arm/mips/powerpc aren't complete

  Disable the test code for now on those architectures

  PR: 199422

Changes:
_U  stable/10/
  stable/10/contrib/netbsd-tests/lib/libm/t_fmod.c

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2015-04-26 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

--- Comment #10 from commit-h...@freebsd.org ---
A commit references this bug:

Author: ngie
Date: Mon Apr 27 06:46:34 UTC 2015
New revision: 282056
URL: https://svnweb.freebsd.org/changeset/base/282056

Log:
  The fmodl compat shims on arm/mips/powerpc aren't complete

  Disable the test code for now on those architectures

  MFC after: 1 week
  PR: 199422

Changes:
_U  head/
  head/contrib/netbsd-tests/lib/libm/t_fmod.c

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2015-04-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

--- Comment #9 from commit-h...@freebsd.org ---
A commit references this bug:

Author: ngie
Date: Thu Apr 16 08:50:42 UTC 2015
New revision: 281597
URL: https://svnweb.freebsd.org/changeset/base/281597

Log:
  the fmodl compat shims on arm/mips/powerpc don't seem to be all there
  #if 0 the code for now

  PR: 199422

Changes:
  user/ngie/more-tests/contrib/netbsd-tests/lib/libm/t_fmod.c

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2015-04-14 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

--- Comment #8 from Garrett Cooper,425-314-3911  ---
Yes. Part or all of the logic I committed in that revision should be committed
depending on the outcome...

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2015-04-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

--- Comment #7 from Ed Maste  ---
As an aside, by the same logic it looks like r274601 should be reverted

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2015-04-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

--- Comment #5 from Garrett Cooper,425-314-3911  ---
Nevermind. I just reread that. You're right -- it's an issue with libc.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2015-04-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

--- Comment #6 from Garrett Cooper,425-314-3911  ---
(In reply to Garrett Cooper,425-314-3911 from comment #5)

msun, not libc.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2015-04-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

--- Comment #4 from Ed Maste  ---
(In reply to Garrett Cooper,425-314-3911 from comment #3)

> so it's a problem with the testcases

I don't follow; the tests in t_fmod.c should build and pass on all
architectures.
> ATF_CHECK(fmodl(2.0, 1.0) == 0);

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2015-04-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

--- Comment #3 from Garrett Cooper,425-314-3911  ---
(In reply to Ed Maste from comment #2)

The NetBSD testcases poke directly at fmodl and friends in t_fmod.c, so it's a
problem with the testcases.

Thanks for the clarification :).

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2015-04-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

Ed Maste  changed:

   What|Removed |Added

 CC||ema...@freebsd.org

--- Comment #2 from Ed Maste  ---
I'm not aware of any overall list, you'll have to handle it on a case by case
basis.

That said, I think there's an actual error here -- fmodl should be an alias for
fmod when long double == double.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: [Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2015-04-13 Thread Bruce Evans

On Mon, 13 Apr 2015 bugzilla-nore...@freebsd.org wrote:


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

I testing out a change to build lib/msun/tests on all architectures, and I
lib/msun/tests/fmod_test failed to compile on MACHINE == {arm,mips,powerpc}
with the following error:

t_fmod.o: In function `atfu_fmod_body':
t_fmod.c:(.text+0x200): undefined reference to `fmodl'
t_fmod.c:(.text+0x204): undefined reference to `fmodl'
t_fmod.c:(.text+0x2f0): undefined reference to `fmodl'
t_fmod.c:(.text+0x2f4): undefined reference to `fmodl'
t_fmod.c:(.text+0x434): undefined reference to `fmodl'
t_fmod.o:t_fmod.c:(.text+0x438): more undefined references to `fmodl' follow
--- fmod_test ---
*** [fmod_test] Error code 1

make[8]: stopped in /home/ngie/head/lib/msun/tests

Are these functions supposed to be fully defined?


fmodl just seems to be missing a weak definition.  Try this fix.

X diff -u2 e_fmod.c~ e_fmod.c
X --- e_fmod.c~ 2013-05-30 08:14:16.0 +
X +++ e_fmod.c  2015-04-13 17:18:19.493921000 +
X @@ -21,4 +21,6 @@
X   */
X 
X +#include 

X +
X  #include "math.h"
X  #include "math_private.h"
X @@ -131,2 +133,6 @@
X   return x;   /* exact output */
X  }
X +
X +#if (LDBL_MANT_DIG == 53)
X +__weak_reference(fmod, fmodl);
X +#endif

Testing weak aliases is mostly redundant, but it is
probably easier to not have special cases for them.
The special cases would still need existence tests.

Bruce
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2015-04-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

--- Comment #1 from Garrett Cooper,425-314-3911  ---
lib/msun/Makefile only defines fmodl on select architectures:

 97 .if ${LDBL_PREC} != 53
 98 # If long double != double use these; otherwise, we alias the double
versions.
 99 COMMON_SRCS+=   e_acoshl.c e_acosl.c e_asinl.c e_atan2l.c e_atanhl.c \
100 e_coshl.c e_fmodl.c e_hypotl.c \

This seems to support what I've seen.

Is there a list of functions that are only partially implemented on some
architectures, so I can modify the testcases accordingly to skip them?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2015-04-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

Garrett Cooper,425-314-3911  changed:

   What|Removed |Added

 CC||d...@freebsd.org,
   ||ka...@freebsd.org
   Severity|Affects Only Me |Affects Some People

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 199422] fmodl not fully defined on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2015-04-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422

Bug ID: 199422
   Summary: fmodl not fully defined on architectures where
LDBL_PREC == 53 (arm, mips, powerpc)
   Product: Base System
   Version: 11.0-CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: bin
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: n...@freebsd.org

I testing out a change to build lib/msun/tests on all architectures, and I
lib/msun/tests/fmod_test failed to compile on MACHINE == {arm,mips,powerpc}
with the following error:

t_fmod.o: In function `atfu_fmod_body':
t_fmod.c:(.text+0x200): undefined reference to `fmodl'
t_fmod.c:(.text+0x204): undefined reference to `fmodl'
t_fmod.c:(.text+0x2f0): undefined reference to `fmodl'
t_fmod.c:(.text+0x2f4): undefined reference to `fmodl'
t_fmod.c:(.text+0x434): undefined reference to `fmodl'
t_fmod.o:t_fmod.c:(.text+0x438): more undefined references to `fmodl' follow
--- fmod_test ---
*** [fmod_test] Error code 1

make[8]: stopped in /home/ngie/head/lib/msun/tests

Are these functions supposed to be fully defined?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"