public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/26274] New: gcc --target-help segfaults
@ 2006-02-14 7:35 uros at kss-loka dot si
2006-02-14 12:21 ` [Bug driver/26274] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: uros at kss-loka dot si @ 2006-02-14 7:35 UTC (permalink / raw)
To: gcc-bugs
gcc segfaults in print_filtered_help when invoked with --target-help option:
Starting program: /export/home/uros/gcc-build/gcc/cc1 --target-help
Target specific options:
Program received signal SIGSEGV, Segmentation fault.
0x0838547b in print_filtered_help (flag=4194304)
at ../../gcc-svn/trunk/gcc/opts.c:1335
1335 memset (printed, 0, cl_options_count);
(gdb) bt
#0 0x0838547b in print_filtered_help (flag=4194304)
at ../../gcc-svn/trunk/gcc/opts.c:1335
#1 0x0838635e in decode_options (argc=2, argv=0xbffffa24)
at ../../gcc-svn/trunk/gcc/opts.c:746
#2 0x083eb77b in toplev_main (argc=2, argv=0xbffffa24)
at ../../gcc-svn/trunk/gcc/toplev.c:1970
print_filtered_help (unsigned int flag)
{
unsigned int i, len, filter, indent = 0;
bool duplicates = false;
const char *help, *opt, *tab;
static char *printed;
if (flag == CL_COMMON || flag == CL_TARGET)
{
filter = flag;
if (!printed)
printed = xmalloc (cl_options_count);
>> memset (printed, 0, cl_options_count); <<
}
else
--
Summary: gcc --target-help segfaults
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: uros at kss-loka dot si
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26274
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug driver/26274] gcc --target-help segfaults
2006-02-14 7:35 [Bug driver/26274] New: gcc --target-help segfaults uros at kss-loka dot si
@ 2006-02-14 12:21 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-14 12:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-02-14 12:21 -------
opts.c is being miscompiled.
This is a dup of bug 25636.
*** This bug has been marked as a duplicate of 25636 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26274
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-02-14 12:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-14 7:35 [Bug driver/26274] New: gcc --target-help segfaults uros at kss-loka dot si
2006-02-14 12:21 ` [Bug driver/26274] " pinskia 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).