public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/16152] New: perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux
@ 2004-06-23  6:15 debian-gcc at lists dot debian dot org
  2004-06-23  6:46 ` [Bug target/16152] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2004-06-23  6:15 UTC (permalink / raw)
  To: gcc-bugs

sorry, unfortunately the symptom only.

on {ia64,arm,m68k}-linux 3.3.4 fails to build a working miniperl, the one built
segfaults on the first invocation.

on ia64-linux, 5.8.3 builds using 3.3.4, 5.8.4 builds using 3.4 and using the
3.3 hammer branch.

maybe not a gcc regression in a strict sense.

build logs:
http://buildd.debian.org/fetch.php?&pkg=perl&ver=5.8.4-2&arch=ia64&stamp=1084318930&file=log&as=raw
http://buildd.debian.org/fetch.php?&pkg=perl&ver=5.8.4-2&arch=arm&stamp=1086823011&file=log&as=raw
http://buildd.debian.org/fetch.php?&pkg=perl&ver=5.8.4-2&arch=m68k&stamp=1086372477&file=log&as=raw

-- 
           Summary: perl-5.8.4 fails to build using gcc-3.3.4 on
                    {ia64,arm,m68k}-linux
           Product: gcc
           Version: 3.3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org
                CC: gcc-bugs at gcc dot gnu dot org,gdr at gcc dot gnu dot
                    org
  GCC host triplet: {ia64,arm,m68k}-linux


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


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

* [Bug target/16152] perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux
  2004-06-23  6:15 [Bug target/16152] New: perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux debian-gcc at lists dot debian dot org
@ 2004-06-23  6:46 ` pinskia at gcc dot gnu dot org
  2004-08-16 10:34 ` giovannibajo at libero dot it
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-23  6:46 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.3.5


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


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

* [Bug target/16152] perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux
  2004-06-23  6:15 [Bug target/16152] New: perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux debian-gcc at lists dot debian dot org
  2004-06-23  6:46 ` [Bug target/16152] " pinskia at gcc dot gnu dot org
@ 2004-08-16 10:34 ` giovannibajo at libero dot it
  2004-09-28 13:35 ` gdr at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: giovannibajo at libero dot it @ 2004-08-16 10:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-08-16 10:34 -------
We need some kind of preprocessed source, otherwise there is not much we can do 
about this.

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


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


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

* [Bug target/16152] perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux
  2004-06-23  6:15 [Bug target/16152] New: perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux debian-gcc at lists dot debian dot org
  2004-06-23  6:46 ` [Bug target/16152] " pinskia at gcc dot gnu dot org
  2004-08-16 10:34 ` giovannibajo at libero dot it
@ 2004-09-28 13:35 ` gdr at gcc dot gnu dot org
  2004-11-29 14:34 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-09-28 13:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-09-28 13:34 -------
Adjust milestone

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.3.5                       |3.3.6


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


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

* [Bug target/16152] perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux
  2004-06-23  6:15 [Bug target/16152] New: perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux debian-gcc at lists dot debian dot org
                   ` (2 preceding siblings ...)
  2004-09-28 13:35 ` gdr at gcc dot gnu dot org
@ 2004-11-29 14:34 ` pinskia at gcc dot gnu dot org
  2005-02-25 14:48 ` rearnsha at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-29 14:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-29 14:34 -------
No feedback in over 3 months.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


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


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

* [Bug target/16152] perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux
  2004-06-23  6:15 [Bug target/16152] New: perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux debian-gcc at lists dot debian dot org
                   ` (3 preceding siblings ...)
  2004-11-29 14:34 ` pinskia at gcc dot gnu dot org
@ 2005-02-25 14:48 ` rearnsha at gcc dot gnu dot org
  2005-02-25 14:49 ` [Bug rtl-optimization/16152] " rearnsha at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2005-02-25 14:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rearnsha at gcc dot gnu dot org  2005-02-25 01:49 -------
I've just reproduced this on arm-netbsdelf using gcc-3.3.3.  I've managed to
track it down to a miscompilation of pp_hot.c, and the key flag seems to be
-fcse-skip-blocks (-O2 -fno-cse-skip-blocks is OK, -O2 is not).



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


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


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

* [Bug rtl-optimization/16152] perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux
  2004-06-23  6:15 [Bug target/16152] New: perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux debian-gcc at lists dot debian dot org
                   ` (4 preceding siblings ...)
  2005-02-25 14:48 ` rearnsha at gcc dot gnu dot org
@ 2005-02-25 14:49 ` rearnsha at gcc dot gnu dot org
  2005-02-25 14:49 ` [Bug target/16152] " rearnsha at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2005-02-25 14:49 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rearnsha at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|target                      |rtl-optimization
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-25 01:51:42
               date|                            |


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


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

* [Bug target/16152] perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux
  2004-06-23  6:15 [Bug target/16152] New: perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux debian-gcc at lists dot debian dot org
                   ` (5 preceding siblings ...)
  2005-02-25 14:49 ` [Bug rtl-optimization/16152] " rearnsha at gcc dot gnu dot org
@ 2005-02-25 14:49 ` rearnsha at gcc dot gnu dot org
  2005-02-25 15:02 ` [Bug rtl-optimization/16152] " rearnsha at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2005-02-25 14:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rearnsha at gcc dot gnu dot org  2005-02-25 01:50 -------
Created an attachment (id=8281)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8281&action=view)
preprocessed source


-- 


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


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

* [Bug rtl-optimization/16152] perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux
  2004-06-23  6:15 [Bug target/16152] New: perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux debian-gcc at lists dot debian dot org
                   ` (6 preceding siblings ...)
  2005-02-25 14:49 ` [Bug target/16152] " rearnsha at gcc dot gnu dot org
@ 2005-02-25 15:02 ` rearnsha at gcc dot gnu dot org
  2005-04-30 13:46 ` gdr at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2005-02-25 15:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rearnsha at gcc dot gnu dot org  2005-02-25 02:04 -------
It's hard to be completely sure what's wrong here, but something *very*
suspcision appears near original source line 2669.
The good code (on ARM) contains:

.L1706:
.LBB453:
	ldr	r3, [r6, #4]
.LBE453:
.LBB454:
	add	r3, r3, #2
	str	r3, [r6, #4]
.LBE454:
	mov	r0, r5
	mov	r1, r6
	bl	Perl_save_freesv

but the bad code has

.L1705:
.LBB457:
	ldr	r3, [r6, #4]
	add	r3, r3, #1
	str	r3, [r6, #4]
.LBE457:
	mov	r0, r5
	mov	r1, r6
	bl	Perl_save_freesv
	b	.L1665

Note that in the second case r3 is only incremented by 1 not 2.  This seems to
have come from the following pre-processed sequence:

 cx->cx_u.cx_blk.blk_u.blku_sub.cv = cv; cx->cx_u.cx_blk.blk_u.blku_sub.o
lddepth = ((XPVCV*)(cv)->sv_any)->xcv_depth; cx->cx_u.cx_blk.blk_u.blku_sub.hasa
rgs = hasargs; if (!((XPVCV*)(cv)->sv_any)->xcv_depth) { (void)({ SV *_sv = (SV*
)(cv); if (_sv) (++(_sv)->sv_refcnt); _sv; }); (void)({ SV *_sv = (SV*)(cv); if 
(_sv) (++(_sv)->sv_refcnt); _sv; }); Perl_save_freesv(my_perl, (SV*)(cv)); } cx-
>cx_u.cx_blk.blk_u.blku_sub.lval = (my_perl->Top)->op_private & (128|4);;

Note the double increment of sv->sv_refcnt.


-- 


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


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

* [Bug rtl-optimization/16152] perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux
  2004-06-23  6:15 [Bug target/16152] New: perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux debian-gcc at lists dot debian dot org
                   ` (7 preceding siblings ...)
  2005-02-25 15:02 ` [Bug rtl-optimization/16152] " rearnsha at gcc dot gnu dot org
@ 2005-04-30 13:46 ` gdr at gcc dot gnu dot org
  2005-08-27 14:07 ` buytenh at wantstofly dot org
  2005-08-27 15:23 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-04-30 13:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2005-04-30 13:46 -------
removing target milestone

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.3.6                       |---


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


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

* [Bug rtl-optimization/16152] perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux
  2004-06-23  6:15 [Bug target/16152] New: perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux debian-gcc at lists dot debian dot org
                   ` (8 preceding siblings ...)
  2005-04-30 13:46 ` gdr at gcc dot gnu dot org
@ 2005-08-27 14:07 ` buytenh at wantstofly dot org
  2005-08-27 15:23 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: buytenh at wantstofly dot org @ 2005-08-27 14:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From buytenh at wantstofly dot org  2005-08-27 13:53 -------
https://bugzilla.redhat.com/bugzilla/long_list.cgi?buglist=141694 implies that
the fix for PR rtl-optimization/14279 fixes this PR.

-- 


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


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

* [Bug rtl-optimization/16152] perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux
  2004-06-23  6:15 [Bug target/16152] New: perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux debian-gcc at lists dot debian dot org
                   ` (9 preceding siblings ...)
  2005-08-27 14:07 ` buytenh at wantstofly dot org
@ 2005-08-27 15:23 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-27 15:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-27 15:23 -------


*** This bug has been marked as a duplicate of 14279 ***

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


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


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

end of thread, other threads:[~2005-08-27 15:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-23  6:15 [Bug target/16152] New: perl-5.8.4 fails to build using gcc-3.3.4 on {ia64,arm,m68k}-linux debian-gcc at lists dot debian dot org
2004-06-23  6:46 ` [Bug target/16152] " pinskia at gcc dot gnu dot org
2004-08-16 10:34 ` giovannibajo at libero dot it
2004-09-28 13:35 ` gdr at gcc dot gnu dot org
2004-11-29 14:34 ` pinskia at gcc dot gnu dot org
2005-02-25 14:48 ` rearnsha at gcc dot gnu dot org
2005-02-25 14:49 ` [Bug rtl-optimization/16152] " rearnsha at gcc dot gnu dot org
2005-02-25 14:49 ` [Bug target/16152] " rearnsha at gcc dot gnu dot org
2005-02-25 15:02 ` [Bug rtl-optimization/16152] " rearnsha at gcc dot gnu dot org
2005-04-30 13:46 ` gdr at gcc dot gnu dot org
2005-08-27 14:07 ` buytenh at wantstofly dot org
2005-08-27 15:23 ` 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).