User account creation filtered due to spam.

Bug 23430 - --with-comment configure option isn't documented
Summary: --with-comment configure option isn't documented
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.0.1
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: documentation
Depends on:
Blocks:
 
Reported: 2005-08-17 01:52 UTC by Flash Sheridan
Modified: 2005-12-25 15:32 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-08-17 01:56:10


Attachments
Proposed patch (917 bytes, text/plain)
2005-08-17 01:53 UTC, Flash Sheridan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Flash Sheridan 2005-08-17 01:52:17 UTC
When trying to keep track of various builds of GCC, it would be convenient to be able to store a 
comment to be read back with -v.  Since -v echoes the full configure command line, all that's required 
is not rejecting an argument containing the desired comment.
    I'll upload a patch which permits this.  All it does is add a --comment option which does nothing; it's 
just seventeen copies of the following, one for each configure file:

  --comment=*)
     ;;                #Do nothing; this is just so that the comment will show up with -v. 

    There may be an easier way for maintainers to patch this, using auto-configuration; but I've never 
run that.  There are workarounds, such as embedding configuration information into directory names, 
but this approach seems simpler.
    A patched checking=yes build passed make check. 

Sample Session:
32> /opt2/gcc401-chk-all-4p/bin/g++ -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /opt2/gcc-4.0.1-src/configure --enable-checking=all --prefix=/opt2/gcc401-chk-
all-4p/ --enable-languages=c,c++ --comment=PalmSource checking=all build by Flash Sheridan 
2005-08-11 via distcc.  Patches 20161-8277, 22508-2005-08-00326, 22600-9330, 
22604-2005-08-00334, plus a local patch to seventeen versions of configure to allow this comment.
Thread model: posix
gcc version 4.0.1
Comment 1 Flash Sheridan 2005-08-17 01:53:19 UTC
Created attachment 9508 [details]
Proposed patch
Comment 2 Andrew Pinski 2005-08-17 01:56:10 UTC
One thing you could do is replace the place where the configure options where, unless you want the 
configure options also.
Comment 3 Andreas Schwab 2005-08-17 08:50:49 UTC
Use --with-comment instead. 
Comment 4 Flash Sheridan 2005-08-17 19:41:53 UTC
Thanks, --with-comment seems to work, but it doesn't seem to be documented.  Grepping both the 
documentation and source folder didn't find it; Googling for it turned it up in the context of MySQL, but 
not GCC.  So I'm re-titling and reopening the bug.  I think the option should be listed in --help, but it 
certainly needs to be documented somewhere.
Comment 5 Andrew Pinski 2005-08-21 19:29:14 UTC
The main reason why it is documented, it is not a real configure option.   But we (autoconf) ignores 
unknown --with options.