PR modula2/111085 nexttoward and nexttowardf contain incorrect definitions
The definition for procedures nexttoward and nexttowardf contain second incorrect parameter and return types. This bug was discovered when attempting to resolve PR 108143 and is applied separately and prior to PR 108143. gcc/m2/ChangeLog: PR modula2/111085 * gm2-libs/Builtins.def (nexttoward): Alter the second parameter to LONGREAL. (nexttowardf): Alter the second parameter to LONGREAL. * gm2-libs/Builtins.mod (nexttoward): Alter the second parameter to LONGREAL. (nexttowardf): Alter the second parameter to LONGREAL. * gm2-libs/cbuiltin.def (nexttoward): Alter the second parameter to LONGREAL. (nexttowardf): Alter the second parameter to LONGREAL. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
This commit is contained in:
parent
6d33602650
commit
a724c6e93d
3 changed files with 6 additions and 6 deletions
|
@ -91,8 +91,8 @@ PROCEDURE __BUILTIN__ nextafter (x, y: REAL) : REAL ;
|
|||
PROCEDURE __BUILTIN__ nextafterf (x, y: SHORTREAL) : SHORTREAL ;
|
||||
PROCEDURE __BUILTIN__ nextafterl (x, y: LONGREAL) : LONGREAL ;
|
||||
|
||||
PROCEDURE __BUILTIN__ nexttoward (x, y: REAL) : LONGREAL ;
|
||||
PROCEDURE __BUILTIN__ nexttowardf (x, y: SHORTREAL) : LONGREAL ;
|
||||
PROCEDURE __BUILTIN__ nexttoward (x: REAL; y: LONGREAL) : REAL ;
|
||||
PROCEDURE __BUILTIN__ nexttowardf (x: SHORTREAL; y: LONGREAL) : SHORTREAL ;
|
||||
PROCEDURE __BUILTIN__ nexttowardl (x, y: LONGREAL) : LONGREAL ;
|
||||
|
||||
PROCEDURE __BUILTIN__ scalbln (x: REAL; n: LONGINT) : REAL ;
|
||||
|
|
|
@ -267,12 +267,12 @@ BEGIN
|
|||
RETURN cbuiltin.nextafterl (x, y)
|
||||
END nextafterl ;
|
||||
|
||||
PROCEDURE __ATTRIBUTE__ __BUILTIN__ ((__builtin_nexttoward)) nexttoward (x, y: REAL) : LONGREAL ;
|
||||
PROCEDURE __ATTRIBUTE__ __BUILTIN__ ((__builtin_nexttoward)) nexttoward (x: REAL; y: LONGREAL) : REAL ;
|
||||
BEGIN
|
||||
RETURN cbuiltin.nexttoward (x, y)
|
||||
END nexttoward ;
|
||||
|
||||
PROCEDURE __ATTRIBUTE__ __BUILTIN__ ((__builtin_nexttowardf)) nexttowardf (x, y: SHORTREAL) : LONGREAL ;
|
||||
PROCEDURE __ATTRIBUTE__ __BUILTIN__ ((__builtin_nexttowardf)) nexttowardf (x: SHORTREAL; y: LONGREAL) : SHORTREAL ;
|
||||
BEGIN
|
||||
RETURN cbuiltin.nexttowardf (x, y)
|
||||
END nexttowardf ;
|
||||
|
|
|
@ -118,8 +118,8 @@ PROCEDURE nextafter (x, y: REAL) : REAL ;
|
|||
PROCEDURE nextafterf (x, y: SHORTREAL) : SHORTREAL ;
|
||||
PROCEDURE nextafterl (x, y: LONGREAL) : LONGREAL ;
|
||||
|
||||
PROCEDURE nexttoward (x, y: REAL) : REAL ;
|
||||
PROCEDURE nexttowardf (x, y: SHORTREAL) : SHORTREAL ;
|
||||
PROCEDURE nexttoward (x: REAL; y: LONGREAL) : REAL ;
|
||||
PROCEDURE nexttowardf (x: SHORTREAL; y: LONGREAL) : SHORTREAL ;
|
||||
PROCEDURE nexttowardl (x, y: LONGREAL) : LONGREAL ;
|
||||
|
||||
PROCEDURE scalb (x, n: REAL) : REAL ;
|
||||
|
|
Loading…
Add table
Reference in a new issue