public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/15712] New: ICE with 'extern inline' and -funit-at-a-time -dU
@ 2004-05-29  2:23 belyshev at lubercy dot com
  2004-05-29  2:24 ` [Bug middle-end/15712] " belyshev at lubercy dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: belyshev at lubercy dot com @ 2004-05-29  2:23 UTC (permalink / raw)
  To: gcc-bugs

cat > bug.i <<EOF
extern inline int putchar ()
{
	return 0;
}

int main ()
{
	putchar ();
	return 0;
}
EOF
gdb --args ./cc1 -quiet bug.i -std=gnu99 -Wall -Wextra -O1 -funit-at-a-time -dU
run
where

Program received signal SIGSEGV, Segmentation fault.
0x08395652 in lhd_decl_printable_name (decl=0xe68805c6, verbosity=2)
    at ../../gcc/gcc/langhooks.c:294
294       return IDENTIFIER_POINTER (DECL_NAME (decl));
(gdb) where
#0  0x08395652 in lhd_decl_printable_name (decl=0xe68805c6, verbosity=2)
    at ../../gcc/gcc/langhooks.c:294
#1  0x084f0810 in cgraph_node_name (node=0x84f48f0) at ../../gcc/gcc/cgraph.c:452
#2  0x084f3dc0 in cgraph_decide_inlining () at ../../gcc/gcc/cgraphunit.c:1483
#3  0x084f48f0 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1743
#4  0x080af0bc in c_objc_common_finish_file () at ../../gcc/gcc/c-objc-common.c:241
#5  0x08056b27 in finish_file () at ../../gcc/gcc/c-lang.c:213
#6  0x080a3e35 in c_common_parse_file (set_yydebug=0) at ../../gcc/gcc/c-opts.c:1240
#7  0x08491a9a in compile_file () at ../../gcc/gcc/toplev.c:1653
#8  0x084939f6 in do_compile () at ../../gcc/gcc/toplev.c:2699
#9  0x08493a5b in toplev_main (argc=9, argv=0xbffff8e4) at
../../gcc/gcc/toplev.c:2731
#10 0x40039b45 in __libc_start_main (main=0xbffffb39, argc=-1073743018,
ubp_av=0xbffffb68, 
    init=0x85b97e0 <__libc_csu_init>, fini=0x85b9840 <__libc_csu_fini>, 
    rtld_fini=0x4000baa0 <_dl_fini>, stack_end=0xbffffbbd)
    at ../sysdeps/generic/libc-start.c:209
#11 0x08049ab1 in _start () at ../sysdeps/i386/elf/start.S:102

-- 
           Summary: ICE with 'extern inline' and -funit-at-a-time -dU
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: belyshev at lubercy dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug middle-end/15712] ICE with 'extern inline' and -funit-at-a-time -dU
  2004-05-29  2:23 [Bug middle-end/15712] New: ICE with 'extern inline' and -funit-at-a-time -dU belyshev at lubercy dot com
@ 2004-05-29  2:24 ` belyshev at lubercy dot com
  2004-05-29  2:25 ` belyshev at lubercy dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: belyshev at lubercy dot com @ 2004-05-29  2:24 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.5.0
      Known to work|                            |3.4.1


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


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

* [Bug middle-end/15712] ICE with 'extern inline' and -funit-at-a-time -dU
  2004-05-29  2:23 [Bug middle-end/15712] New: ICE with 'extern inline' and -funit-at-a-time -dU belyshev at lubercy dot com
  2004-05-29  2:24 ` [Bug middle-end/15712] " belyshev at lubercy dot com
@ 2004-05-29  2:25 ` belyshev at lubercy dot com
  2004-05-29  3:04 ` [Bug c/15712] [3.5 Regression] " pinskia at gcc dot gnu dot org
  2004-06-07  6:22 ` belyshev at lubercy dot com
  3 siblings, 0 replies; 5+ messages in thread
From: belyshev at lubercy dot com @ 2004-05-29  2:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From belyshev at lubercy dot com  2004-05-28 18:32 -------
Created an attachment (id=6419)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6419&action=view)
tescase (85 bytes)


-- 


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


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

* [Bug c/15712] [3.5 Regression] ICE with 'extern inline' and -funit-at-a-time -dU
  2004-05-29  2:23 [Bug middle-end/15712] New: ICE with 'extern inline' and -funit-at-a-time -dU belyshev at lubercy dot com
  2004-05-29  2:24 ` [Bug middle-end/15712] " belyshev at lubercy dot com
  2004-05-29  2:25 ` belyshev at lubercy dot com
@ 2004-05-29  3:04 ` pinskia at gcc dot gnu dot org
  2004-06-07  6:22 ` belyshev at lubercy dot com
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-29  3:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-28 19:06 -------
Confirmed, this looks more like a front-end issue which does not set the DECL_NAME for some 
functions decls.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zack at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
          Component|middle-end                  |c
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-28 19:06:17
               date|                            |
            Summary|ICE with 'extern inline' and|[3.5 Regression] ICE with
                   |-funit-at-a-time -dU        |'extern inline' and -funit-
                   |                            |at-a-time -dU
   Target Milestone|---                         |3.5.0


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


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

* [Bug c/15712] [3.5 Regression] ICE with 'extern inline' and -funit-at-a-time -dU
  2004-05-29  2:23 [Bug middle-end/15712] New: ICE with 'extern inline' and -funit-at-a-time -dU belyshev at lubercy dot com
                   ` (2 preceding siblings ...)
  2004-05-29  3:04 ` [Bug c/15712] [3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-06-07  6:22 ` belyshev at lubercy dot com
  3 siblings, 0 replies; 5+ messages in thread
From: belyshev at lubercy dot com @ 2004-06-07  6:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From belyshev at lubercy dot com  2004-06-07 06:22 -------
Fixed by:

2004-06-06  Eric Botcazou  <ebotcazou@libertysurf.fr>

	* cgraphunit.c (cgraph_decide_inlining): Adjust dump lines in
	always_inline pass.


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


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


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

end of thread, other threads:[~2004-06-07  6:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-29  2:23 [Bug middle-end/15712] New: ICE with 'extern inline' and -funit-at-a-time -dU belyshev at lubercy dot com
2004-05-29  2:24 ` [Bug middle-end/15712] " belyshev at lubercy dot com
2004-05-29  2:25 ` belyshev at lubercy dot com
2004-05-29  3:04 ` [Bug c/15712] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-06-07  6:22 ` belyshev at lubercy dot com

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).