J3/03-170r1 Date: 1-apr-2003 To: J3 From: Donev (interop subgroup) Subject: Edits for UK Comment MCT14 Reference: This paper is a revision of the "Comment MTC14 of the UK" part of J3/03-128. Edits refer to 02-007R3. ------------------------ Comment MTC14 raised 6 issues regarding C interoperability. Issue (1) was later determined by UK to not need an edit, and none is supplied in 03-128. Issues (3) and (4) are addressed in 03-172. Issues (2), (5), and (6) are addressed below. The interaction of C interoperability and exception handling needs to be more explicitly addressed in the standard. This is currently mentioned only in Note 14.7 on page 360. This paper replaces part of Note 14.7 with more specific normative text. Edits: Delete from [360:3+] in Note 14.7: "No such requirements can be placed on procedures defined by means other than Fortran. For such procedures, it is the responsibility of the user to ensure that the floating point status is preserved" [393:0+] After Note 15.25, add: <<15.4.2 Exceptions and IEEE arithmetic procedures>> A procedure defined by means other than Fortran shall not use signal (C standard, 7.14.1) to change the handling of any exception that is being handled by the Fortran processor. A procedure defined by means other than Fortran shall not alter the floating point status (14.5) other than by setting an exception flag to signaling. The values of the floating point exception flags on entry to a procedure defined by means other than Fortran are processor-dependent.