The following issue has been REOPENED. ====================================================================== https://austingroupbugs.net/view.php?id=1304 ====================================================================== Reported By: joerg Assigned To: ====================================================================== Project: 1003.1(2016)/Issue7+TC2 Issue ID: 1304 Category: Shell and Utilities Type: Enhancement Request Severity: Editorial Priority: normal Status: Under Review Name: Jörg Schilling Organization: User Reference: Section: C99 Page Number: 2543 Line Number: 82297-8298 Interp Status: --- Final Accepted Text: See https://austingroupbugs.net/view.php?id=1304#c4715. ====================================================================== Date Submitted: 2019-11-27 11:15 UTC Last Modified: 2020-04-30 14:31 UTC ====================================================================== Summary: Align c99 -o with reality, the standard should not be more restrictive than implementations ====================================================================== Relationships ID Summary ---------------------------------------------------------------------- related to 0001294 POSIX recognizes the existence of dynam... ======================================================================
---------------------------------------------------------------------- (0004833) geoffclare (manager) - 2020-04-30 14:31 https://austingroupbugs.net/view.php?id=1304#c4833 ---------------------------------------------------------------------- Reopening because the changes in https://austingroupbugs.net/view.php?id=1304#c4715 clash with the -o changes in bug https://austingroupbugs.net/view.php?id=1294. Also, a needed change to the DESCRIPTION was missed. New proposed changes... On page 2542 line 82232 section c99, change:<blockquote>If the <b>-c</b> option is specified, for all pathname operands</blockquote>to:<blockquote>If the <b>-c</b> option is specified and the <b>-o</b> option is not specified, for all pathname operands</blockquote> On page 2543 line 82297-82298 section c99, after applying bug 1254 change:<blockquote>Name the output file to be produced. If the <b>-o</b> option is present with <b>-c</b> or <b>-E</b>, the result is unspecified.</blockquote>to:<blockquote>Name the output file to be produced. If the <b>-o</b> option is present with <b>-E</b>, or with <b>-c</b> and more than one input file, the result is unspecified. When creating a single object file (by using <b>-c</b> with a single input file), use the pathname <i>outfile</i>, instead of the default <i>file</i><b>.o</b>, for the object file produced.</blockquote> Add the following new paragraphs to Rationale after P2551, L82609:<blockquote><tt>c99 -c -o ...</tt> is frequently used to directly place the <b>.o</b> file into an alternative directory without a need to separately rename the output file. This helps to support concurrent compilations and out of tree builds.<p>Some implementations allow <b>-c -o </b><i>directory</i> to produce <i>directory</i><b>/</b><i>file</i><b>.o</b> even when there is more than one input file; however, portable applications using <b>-c</b> with <b>-o</b> must compile only one file at a time and must specify the final destination filename rather than a directory.</blockquote> Issue History Date Modified Username Field Change ====================================================================== 2019-11-27 11:15 joerg New Issue 2019-11-27 11:15 joerg Name => Jörg Schilling 2019-11-27 11:15 joerg Section => C99 2019-11-27 11:15 joerg Page Number => 2543 2019-11-27 11:15 joerg Line Number => 82297-8298 2019-11-27 15:53 geoffclare Note Added: 0004670 2019-11-27 16:04 joerg Note Added: 0004671 2019-11-27 16:07 joerg Note Edited: 0004671 2020-01-06 16:53 eblake Relationship added related to 0001294 2020-01-09 17:15 Don Cragun Note Added: 0004715 2020-01-09 17:19 Don Cragun Note Edited: 0004715 2020-01-09 17:25 Don Cragun Interp Status => --- 2020-01-09 17:25 Don Cragun Final Accepted Text => See https://austingroupbugs.net/view.php?id=1304#c4715. 2020-01-09 17:25 Don Cragun Status New => Resolved 2020-01-09 17:25 Don Cragun Resolution Open => Accepted As Marked 2020-01-09 17:25 Don Cragun Tag Attached: issue8 2020-01-09 17:38 Don Cragun Note Edited: 0004715 2020-01-09 17:38 Don Cragun Note Edited: 0004715 2020-04-30 14:31 geoffclare Note Added: 0004833 2020-04-30 14:31 geoffclare Status Resolved => Under Review 2020-04-30 14:31 geoffclare Resolution Accepted As Marked => Reopened ======================================================================