public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/26168]  New: improve comment about adding command line options
@ 2006-02-08  2:31 phr-gcc at nightsong dot com
  2006-02-08  2:34 ` [Bug driver/26168] " pinskia at gcc dot gnu dot org
  2007-11-15 17:41 ` manu at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: phr-gcc at nightsong dot com @ 2006-02-08  2:31 UTC (permalink / raw)
  To: gcc-bugs

gcc/gcc.c has a comment at the top that's a guide to adding a command line
option.  It's incomplete: it should say to add the new option to c.opt and
rebuild the compiler, and then describe how the variable OPT_whatever gets
created by the awk scripts during the build process, so you can then check for
the option elsewhere in the compiler.  That mechanism doesn't appear documented
at all, and took me a while to figure out through code tracing.  Some
description in the comment would have been a big help.

Also, the comment at the top of the automatically-generated options.c file says
it's generated by "opts.sh" rather than by those awk scripts.  That's a minor
thing but updating it wouldn't hurt.


-- 
           Summary: improve comment about adding command line options
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: phr-gcc at nightsong dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26168


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug driver/26168] improve comment about adding command line options
  2006-02-08  2:31 [Bug driver/26168] New: improve comment about adding command line options phr-gcc at nightsong dot com
@ 2006-02-08  2:34 ` pinskia at gcc dot gnu dot org
  2007-11-15 17:41 ` manu at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-08  2:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-08 02:34 -------
I think this is more of a dup of bug 19180 which is the bug about lacking
documention about adding an option in general.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26168


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug driver/26168] improve comment about adding command line options
  2006-02-08  2:31 [Bug driver/26168] New: improve comment about adding command line options phr-gcc at nightsong dot com
  2006-02-08  2:34 ` [Bug driver/26168] " pinskia at gcc dot gnu dot org
@ 2007-11-15 17:41 ` manu at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-11-15 17:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from manu at gcc dot gnu dot org  2007-11-15 17:41 -------


*** This bug has been marked as a duplicate of 19180 ***


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26168


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-15 17:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-08  2:31 [Bug driver/26168] New: improve comment about adding command line options phr-gcc at nightsong dot com
2006-02-08  2:34 ` [Bug driver/26168] " pinskia at gcc dot gnu dot org
2007-11-15 17:41 ` manu at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).