Summary: | Some option names are truncated in gcc --help -v | ||
---|---|---|---|
Product: | gcc | Reporter: | Adriaan van Os <gcc> |
Component: | other | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-bugs |
Priority: | P2 | ||
Version: | 3.3 | ||
Target Milestone: | 3.4.0 | ||
Host: | powerpc-apple-darwin | Target: | powerpc-apple-darwin |
Build: | powerpc-apple-darwin | Known to work: | |
Known to fail: | Last reconfirmed: | 2003-07-10 01:00:49 | |
Attachments: | Patch to stop truncating options in toplev.c |
Description
Adriaan van Os
2003-06-08 08:45:07 UTC
Does this only happen with Pascal? Or are there c/c++/f77 cases where this happens too? Happens on the mainline (20030609): in C++ -fno-implicit-inline-te Only emit explicit instantiations of inline templates ... -Wno-non-template-frien Don't warn when non-templatized friend functions are declared within a template and in f77: -fbadu77-intrinsics-del Delete libU77 intrinsics with bad interfaces -fbadu77-intrinsics-dis Disable libU77 intrinsics with bad interfaces -fbadu77-intrinsics-hid Hide libU77 intrinsics with bad interfaces -ff2c-intrinsics-delete Delete non-FORTRAN-77 intrinsics f2c supports -ff2c-intrinsics-disabl Disable non-FORTRAN-77 intrinsics f2c supports -ff2c-intrinsics-hide Hide non-FORTRAN-77 intrinsics f2c supports -ff90-intrinsics-delete Delete non-FORTRAN-77 intrinsics F90 supports -ff90-intrinsics-disabl Disable non-FORTRAN-77 intrinsics F90 supports -ff90-intrinsics-hide Hide non-FORTRAN-77 intrinsics F90 supports -fgnu-intrinsics-delete Delete non-FORTRAN-77 intrinsics g77 supports -fgnu-intrinsics-disabl Disable non-FORTRAN 77 intrinsics F90 supports -fgnu-intrinsics-hide Hide non-FORTRAN 77 intrinsics F90 supports -fmil-intrinsics-delete Delete MIL-STD 1753 intrinsics -fmil-intrinsics-disabl Disable MIL-STD 1753 intrinsics -fmil-intrinsics-hide Hide MIL-STD 1753 intrinsics -funix-intrinsics-delet Delete libU77 intrinsics -funix-intrinsics-disab Disable libU77 intrinsics -funix-intrinsics-hide Hide libU77 intrinsics -fvxt-intrinsics-delete Delete non-FORTRAN-77 intrinsics VXT FORTRAN supports -fvxt-intrinsics-disabl Disable non-FORTRAN-77 intrinsics VXT FORTRAN supports Subject: Re: Some option names are truncated in gcc --help -v > dhazeghi@yahoo.com changed: > > What |Removed |Added > ----------------------------------------------------------------------- > ----- > Status|UNCONFIRMED |WAITING > > > ------- Additional Comments From dhazeghi@yahoo.com 2003-06-09 08:08 > ------- > Does this only happen with Pascal? Or are there c/c++/f77 cases where > this happens too? It happens with the Pascal compiler (gpc --help -v) and also with the C compiler (gcc --help -v). I haven't checked the c++ and fortran compiler. Regards, Adriaan van Os This can be reproduced easily on the mainline. It appears to trigger on options which have not been converted to the new option handling mechanism, and not on options which have. The new option handling mechanism works correctly. So the correct fix, now, is to convert everything to the new option handling schema. Actually, though, the bug is pretty obvious in the code; it's in display_help in toplev.c. So I'm working up a patch. Created attachment 4377 [details]
Patch to stop truncating options in toplev.c
Fixed on mainline by application of my patch. Whee. Subject: Bug 11123 CVSROOT: /cvs/gcc Module name: gcc Changes by: neroden@gcc.gnu.org 2003-07-13 20:31:39 Modified files: gcc : toplev.c ChangeLog Log message: PR other/11123 * toplev.c: Don't cut off option names. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/toplev.c.diff?cvsroot=gcc&r1=1.806&r2=1.807 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.481&r2=2.482 |