public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26991]  New: Target Help Seg Fault.
@ 2006-04-02 17:22 dave dot m at email dot it
  2006-04-02 17:33 ` [Bug middle-end/26991] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 15+ messages in thread
From: dave dot m at email dot it @ 2006-04-02 17:22 UTC (permalink / raw)
  To: gcc-bugs

root@alea:vmw-ste# gcc --target-help

Target specific options:
cc1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.


-- 
           Summary: Target Help Seg Fault.
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dave dot m at email dot it


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


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

* [Bug middle-end/26991] Target Help Seg Fault.
  2006-04-02 17:22 [Bug c++/26991] New: Target Help Seg Fault dave dot m at email dot it
@ 2006-04-02 17:33 ` pinskia at gcc dot gnu dot org
  2006-04-03 17:43 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-02 17:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-04-02 17:33 -------
Can you supply "gcc -v"?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|trivial                     |normal
          Component|c++                         |middle-end


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


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

* [Bug middle-end/26991] Target Help Seg Fault.
  2006-04-02 17:22 [Bug c++/26991] New: Target Help Seg Fault dave dot m at email dot it
  2006-04-02 17:33 ` [Bug middle-end/26991] " pinskia at gcc dot gnu dot org
@ 2006-04-03 17:43 ` pinskia at gcc dot gnu dot org
  2006-06-26 15:03 ` corsepiu at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-03 17:43 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug middle-end/26991] Target Help Seg Fault.
  2006-04-02 17:22 [Bug c++/26991] New: Target Help Seg Fault dave dot m at email dot it
  2006-04-02 17:33 ` [Bug middle-end/26991] " pinskia at gcc dot gnu dot org
  2006-04-03 17:43 ` pinskia at gcc dot gnu dot org
@ 2006-06-26 15:03 ` corsepiu at gcc dot gnu dot org
  2006-06-26 16:46 ` corsepiu at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: corsepiu at gcc dot gnu dot org @ 2006-06-26 15:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from corsepiu at gcc dot gnu dot org  2006-06-26 14:34 -------
# m68k-rtems4.7-gcc --target-help 
Target specific options:
cc1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

# m68k-rtems4.7-gcc --target-help -v
Using built-in specs.
Target: m68k-rtems4.7
Configured with: ../gcc-4.1.1/configure --prefix=/usr --bindir=/usr/bin
--includedir=/usr/include --libdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --build=i686-redhat-linux-gnu
--host=i686-redhat-linux-gnu --target=m68k-rtems4.7 --with-gnu-as --with-gnu-ld
--verbose --with-newlib --with-system-zlib --disable-nls
--without-included-gettext --disable-win32-registry
--enable-version-specific-runtime-libs --enable-languages=c,c++
Thread model: single
gcc version 4.1.1
 /usr/libexec/gcc/m68k-rtems4.7/4.1.1/cc1 -quiet -v help-dummy -quiet -dumpbase
help-dummy -auxbase help-dummy -version --target-help -o /tmp/cclQfte8.s

Target specific options:
cc1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 

corsepiu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |corsepiu at gcc dot gnu dot
                   |                            |org
      Known to fail|                            |4.1.1


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


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

* [Bug middle-end/26991] Target Help Seg Fault.
  2006-04-02 17:22 [Bug c++/26991] New: Target Help Seg Fault dave dot m at email dot it
                   ` (2 preceding siblings ...)
  2006-06-26 15:03 ` corsepiu at gcc dot gnu dot org
@ 2006-06-26 16:46 ` corsepiu at gcc dot gnu dot org
  2006-06-26 16:47   ` Andrew Pinski
  2006-06-26 16:47 ` pinskia at physics dot uc dot edu
                   ` (8 subsequent siblings)
  12 siblings, 1 reply; 15+ messages in thread
From: corsepiu at gcc dot gnu dot org @ 2006-06-26 16:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from corsepiu at gcc dot gnu dot org  2006-06-26 16:41 -------
Traceback:

Program received signal SIGSEGV, Segmentation fault.
print_filtered_help (flag=4194304) at ../../gcc-4.1.1/gcc/opts.c:1301
(gdb) where
#0  print_filtered_help (flag=4194304) at ../../gcc-4.1.1/gcc/opts.c:1301
#1  0x081f61d7 in decode_options (argc=13, argv=0xbfc6fc34) at
../../gcc-4.1.1/gcc/opts.c:738
#2  0x08243b08 in toplev_main (argc=13, argv=0xbfc6fc34) at
../../gcc-4.1.1/gcc/toplev.c:1975
#3  0x080978f2 in main (argc=0, argv=0x1f9) at ../../gcc-4.1.1/gcc/main.c:35
#4  0x00b68724 in __libc_start_main () from /lib/libc.so.6
#5  0x08049ad1 in _start ()

The offending code is this (From gcc-4.1.1/gcc/opts.c):

1293   const char *help, *opt, *tab;
1294   static char *printed;
1295 
1296   if (flag == CL_COMMON || flag == CL_TARGET)
1297     {
1298       filter = flag;
1299       if (!printed)
1300         printed = xmalloc (cl_options_count);
1301       memset (printed, 0, cl_options_count);
1302     }

=> the SEGFAULT occurs in memset.

Could it be, "static char* printed" should be initialized = 0?

I.e. static char* printed = 0;


-- 


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


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

* [Bug middle-end/26991] Target Help Seg Fault.
  2006-04-02 17:22 [Bug c++/26991] New: Target Help Seg Fault dave dot m at email dot it
                   ` (3 preceding siblings ...)
  2006-06-26 16:46 ` corsepiu at gcc dot gnu dot org
@ 2006-06-26 16:47 ` pinskia at physics dot uc dot edu
  2006-06-26 16:49 ` [Bug middle-end/26991] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: pinskia at physics dot uc dot edu @ 2006-06-26 16:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at physics dot uc dot edu  2006-06-26 16:46 -------
Subject: Re:  Target Help Seg Fault.


On Jun 26, 2006, at 9:41 AM, corsepiu at gcc dot gnu dot org wrote:

>
>
> ------- Comment #3 from corsepiu at gcc dot gnu dot org  2006-06-26  
> 16:41 -------
> Traceback:
>
> => the SEGFAULT occurs in memset.
>
> Could it be, "static char* printed" should be initialized = 0?

Looks like reload is storing to cl_options_count :).  There was a 4.2  
bug
about this, somehow it got exposed for 4.1.x now.

-- Pinski


-- 


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


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

* Re: [Bug middle-end/26991] Target Help Seg Fault.
  2006-06-26 16:46 ` corsepiu at gcc dot gnu dot org
@ 2006-06-26 16:47   ` Andrew Pinski
  0 siblings, 0 replies; 15+ messages in thread
From: Andrew Pinski @ 2006-06-26 16:47 UTC (permalink / raw)
  To: gcc-bugzilla; +Cc: gcc-bugs


On Jun 26, 2006, at 9:41 AM, corsepiu at gcc dot gnu dot org wrote:

>
>
> ------- Comment #3 from corsepiu at gcc dot gnu dot org  2006-06-26  
> 16:41 -------
> Traceback:
>
> => the SEGFAULT occurs in memset.
>
> Could it be, "static char* printed" should be initialized = 0?

Looks like reload is storing to cl_options_count :).  There was a 4.2  
bug
about this, somehow it got exposed for 4.1.x now.

-- Pinski


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

* [Bug middle-end/26991] [4.1 Regression] Target Help Seg Fault.
  2006-04-02 17:22 [Bug c++/26991] New: Target Help Seg Fault dave dot m at email dot it
                   ` (4 preceding siblings ...)
  2006-06-26 16:47 ` pinskia at physics dot uc dot edu
@ 2006-06-26 16:49 ` pinskia at gcc dot gnu dot org
  2006-06-26 17:01 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-26 16:49 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|0                           |1
 GCC target triplet|                            |i686-linux-gnu
      Known to work|                            |4.2.0
   Last reconfirmed|0000-00-00 00:00:00         |2006-06-26 16:47:30
               date|                            |
            Summary|Target Help Seg Fault.      |[4.1 Regression] Target Help
                   |                            |Seg Fault.
   Target Milestone|---                         |4.1.2


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


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

* [Bug middle-end/26991] [4.1 Regression] Target Help Seg Fault.
  2006-04-02 17:22 [Bug c++/26991] New: Target Help Seg Fault dave dot m at email dot it
                   ` (5 preceding siblings ...)
  2006-06-26 16:49 ` [Bug middle-end/26991] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2006-06-26 17:01 ` pinskia at gcc dot gnu dot org
  2006-06-26 17:06 ` corsepiu at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-26 17:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-06-26 16:48 -------
PR 25636 was the 4.2.0 bug and the patch there should fix it if someone
backports it.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |25636


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


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

* [Bug middle-end/26991] [4.1 Regression] Target Help Seg Fault.
  2006-04-02 17:22 [Bug c++/26991] New: Target Help Seg Fault dave dot m at email dot it
                   ` (6 preceding siblings ...)
  2006-06-26 17:01 ` pinskia at gcc dot gnu dot org
@ 2006-06-26 17:06 ` corsepiu at gcc dot gnu dot org
  2006-06-26 17:22 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: corsepiu at gcc dot gnu dot org @ 2006-06-26 17:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from corsepiu at gcc dot gnu dot org  2006-06-26 17:01 -------
(In reply to comment #5)
> PR 25636 was the 4.2.0 bug and the patch there should fix it if someone
> backports it.

For the record, the compiler exposing this is FC5's gcc-4.1.1-1.fc5


-- 


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


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

* [Bug middle-end/26991] [4.1 Regression] Target Help Seg Fault.
  2006-04-02 17:22 [Bug c++/26991] New: Target Help Seg Fault dave dot m at email dot it
                   ` (7 preceding siblings ...)
  2006-06-26 17:06 ` corsepiu at gcc dot gnu dot org
@ 2006-06-26 17:22 ` pinskia at gcc dot gnu dot org
  2006-06-29 10:06 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-26 17:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2006-06-26 17:06 -------
(In reply to comment #6)
> For the record, the compiler exposing this is FC5's gcc-4.1.1-1.fc5

For the record, that is not a FSF release so it should be reported directly to
Redhat.


-- 


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


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

* [Bug middle-end/26991] [4.1 Regression] Target Help Seg Fault.
  2006-04-02 17:22 [Bug c++/26991] New: Target Help Seg Fault dave dot m at email dot it
                   ` (8 preceding siblings ...)
  2006-06-26 17:22 ` pinskia at gcc dot gnu dot org
@ 2006-06-29 10:06 ` jakub at gcc dot gnu dot org
  2006-06-29 10:49 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-06-29 10:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jakub at gcc dot gnu dot org  2006-06-29 09:58 -------
Created an attachment (id=11778)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11778&action=view)
o.c

For the record, the same can be reproduced also with vanilla FSF
gcc-4_1-branch.
./cc1 --version; ./cc1 -quiet -m32 -O2 -mtune=pentium4 o.c; grep
cl_options_count o.s
GNU C version 4.1.2 20060629 (prerelease) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.1.1 20060525 (Red Hat 4.1.1-1).
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128109
        movl    cl_options_count, %edx
        cmpl    cl_options_count, %esi
        cmpl    cl_options_count, %esi
        movl    cl_options_count, %ebx
        movl    %ebx, cl_options_count
        cmpl    cl_options_count, %esi
        movl    cl_options_count, %ebx


-- 


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


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

* [Bug middle-end/26991] [4.1 Regression] Target Help Seg Fault.
  2006-04-02 17:22 [Bug c++/26991] New: Target Help Seg Fault dave dot m at email dot it
                   ` (9 preceding siblings ...)
  2006-06-29 10:06 ` jakub at gcc dot gnu dot org
@ 2006-06-29 10:49 ` jakub at gcc dot gnu dot org
  2006-07-04 13:48 ` jakub at gcc dot gnu dot org
  2006-07-04 14:38 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 15+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-06-29 10:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jakub at gcc dot gnu dot org  2006-06-29 10:06 -------
And 111129 commit indeed fixes this.  Will bootstrap/regtest now.


-- 


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


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

* [Bug middle-end/26991] [4.1 Regression] Target Help Seg Fault.
  2006-04-02 17:22 [Bug c++/26991] New: Target Help Seg Fault dave dot m at email dot it
                   ` (10 preceding siblings ...)
  2006-06-29 10:49 ` jakub at gcc dot gnu dot org
@ 2006-07-04 13:48 ` jakub at gcc dot gnu dot org
  2006-07-04 14:38 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 15+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-07-04 13:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from jakub at gcc dot gnu dot org  2006-07-04 13:47 -------
Subject: Bug 26991

Author: jakub
Date: Tue Jul  4 13:47:35 2006
New Revision: 115176

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115176
Log:
        PR middle-end/26991
        Backport from mainline
        2006-02-16  Bernd Schmidt  <bernd.schmidt@analog.com>

        PR rtl-optimization/25636
        * local-alloc.c (update_equiv_regs): Lose a bogus rtx_equal_p test
        when deciding whether an insn is an initializing insn.

Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/local-alloc.c


-- 


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


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

* [Bug middle-end/26991] [4.1 Regression] Target Help Seg Fault.
  2006-04-02 17:22 [Bug c++/26991] New: Target Help Seg Fault dave dot m at email dot it
                   ` (11 preceding siblings ...)
  2006-07-04 13:48 ` jakub at gcc dot gnu dot org
@ 2006-07-04 14:38 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-04 14:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pinskia at gcc dot gnu dot org  2006-07-04 14:38 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2006-07-04 14:38 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-02 17:22 [Bug c++/26991] New: Target Help Seg Fault dave dot m at email dot it
2006-04-02 17:33 ` [Bug middle-end/26991] " pinskia at gcc dot gnu dot org
2006-04-03 17:43 ` pinskia at gcc dot gnu dot org
2006-06-26 15:03 ` corsepiu at gcc dot gnu dot org
2006-06-26 16:46 ` corsepiu at gcc dot gnu dot org
2006-06-26 16:47   ` Andrew Pinski
2006-06-26 16:47 ` pinskia at physics dot uc dot edu
2006-06-26 16:49 ` [Bug middle-end/26991] [4.1 Regression] " pinskia at gcc dot gnu dot org
2006-06-26 17:01 ` pinskia at gcc dot gnu dot org
2006-06-26 17:06 ` corsepiu at gcc dot gnu dot org
2006-06-26 17:22 ` pinskia at gcc dot gnu dot org
2006-06-29 10:06 ` jakub at gcc dot gnu dot org
2006-06-29 10:49 ` jakub at gcc dot gnu dot org
2006-07-04 13:48 ` jakub at gcc dot gnu dot org
2006-07-04 14:38 ` 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).