public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/39631] New: f951 seg faults while building libgfortran
@ 2009-04-03 20:20 sje at cup dot hp dot com
2009-04-03 21:19 ` [Bug bootstrap/39631] " sje at cup dot hp dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: sje at cup dot hp dot com @ 2009-04-03 20:20 UTC (permalink / raw)
To: gcc-bugs
f951 generates a seg fault while building on hppa1.1-hp-hpux11.11. It can be
reproduced by compiling the following fortran code with -O2 optimization:
elemental function gfortran_specific_dim_r16 (p1, p2)
real (kind=16), intent (in) :: p1, p2
real (kind=16) :: gfortran_specific_dim_r16
gfortran_specific_dim_r16 = dim (p1, p2)
end function
The segfault is coming from the ira_assert in ira_reuse_stack_slot at line 2966
of ira-color.c. allocno is NULL but gets dereferenced in the
ALLOCNO_HARD_REGNO macro.
It started failing sometime before r145385 and after r145268. During that
period the compiler was not building correctly on PA so I don't yet know
exactly what change broke it.
--
Summary: f951 seg faults while building libgfortran
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: build
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sje at cup dot hp dot com
GCC target triplet: hppa1.1-hp-hpux11.11
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39631
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/39631] f951 seg faults while building libgfortran
2009-04-03 20:20 [Bug bootstrap/39631] New: f951 seg faults while building libgfortran sje at cup dot hp dot com
@ 2009-04-03 21:19 ` sje at cup dot hp dot com
2009-04-03 21:32 ` hjl dot tools at gmail dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: sje at cup dot hp dot com @ 2009-04-03 21:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from sje at cup dot hp dot com 2009-04-03 21:18 -------
Putting in a workaround to fix another build problem allowed me to track this
problem down as starting with version r145309:
2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
* reload.c (push_reload, find_dummy_reload): Use df_get_live_out
instead of DF_LR_OUT.
* ira-lives.c (process_bb_node_lives): Ditto.
* ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
instead of DF_LR_{OUT,IN}.
* ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
* ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39631
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/39631] f951 seg faults while building libgfortran
2009-04-03 20:20 [Bug bootstrap/39631] New: f951 seg faults while building libgfortran sje at cup dot hp dot com
2009-04-03 21:19 ` [Bug bootstrap/39631] " sje at cup dot hp dot com
@ 2009-04-03 21:32 ` hjl dot tools at gmail dot com
2009-04-03 21:37 ` vmakarov at redhat dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-04-03 21:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from hjl dot tools at gmail dot com 2009-04-03 21:31 -------
Can you try comment #3 in PR 39607?
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl dot tools at gmail dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39631
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/39631] f951 seg faults while building libgfortran
2009-04-03 20:20 [Bug bootstrap/39631] New: f951 seg faults while building libgfortran sje at cup dot hp dot com
2009-04-03 21:19 ` [Bug bootstrap/39631] " sje at cup dot hp dot com
2009-04-03 21:32 ` hjl dot tools at gmail dot com
@ 2009-04-03 21:37 ` vmakarov at redhat dot com
2009-04-03 21:40 ` sje at cup dot hp dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: vmakarov at redhat dot com @ 2009-04-03 21:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from vmakarov at redhat dot com 2009-04-03 21:36 -------
Steve, thanks for tracking it down. I did not reproduce the bug on x86-hppa
cross compiler. Therefore finding the patch is important to me.
This is not a single problem introduced by the patch. Another one is PR39607.
Kenny pointed to me that IRA should use LIVE (not LR) info. I had some doubts
therefore I did not commit the patch before the 4.4 branch creation. Now I see
that the patch creates too many problems. So I am going to revert it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39631
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/39631] f951 seg faults while building libgfortran
2009-04-03 20:20 [Bug bootstrap/39631] New: f951 seg faults while building libgfortran sje at cup dot hp dot com
` (2 preceding siblings ...)
2009-04-03 21:37 ` vmakarov at redhat dot com
@ 2009-04-03 21:40 ` sje at cup dot hp dot com
2009-04-03 22:26 ` hjl at gcc dot gnu dot org
2009-04-12 18:44 ` danglin at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: sje at cup dot hp dot com @ 2009-04-03 21:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from sje at cup dot hp dot com 2009-04-03 21:40 -------
> Can you try comment #3 in PR 39607?
I tried that change but it did not fix the problem. Looks like Vladimir is
going to revert the entire patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39631
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/39631] f951 seg faults while building libgfortran
2009-04-03 20:20 [Bug bootstrap/39631] New: f951 seg faults while building libgfortran sje at cup dot hp dot com
` (3 preceding siblings ...)
2009-04-03 21:40 ` sje at cup dot hp dot com
@ 2009-04-03 22:26 ` hjl at gcc dot gnu dot org
2009-04-12 18:44 ` danglin at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-04-03 22:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hjl at gcc dot gnu dot org 2009-04-03 22:25 -------
Subject: Bug 39631
Author: hjl
Date: Fri Apr 3 22:25:32 2009
New Revision: 145522
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145522
Log:
Mention
PR rtl-optimization/39607
PR rtl-optimization/39631
in ChangeLog for revision 145521.
Modified:
trunk/gcc/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39631
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/39631] f951 seg faults while building libgfortran
2009-04-03 20:20 [Bug bootstrap/39631] New: f951 seg faults while building libgfortran sje at cup dot hp dot com
` (4 preceding siblings ...)
2009-04-03 22:26 ` hjl at gcc dot gnu dot org
@ 2009-04-12 18:44 ` danglin at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-04-12 18:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from danglin at gcc dot gnu dot org 2009-04-12 18:43 -------
This is fixed in my builds. Steve, if this is still a problem,
you can reopen.
--
danglin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39631
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-04-12 18:44 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-03 20:20 [Bug bootstrap/39631] New: f951 seg faults while building libgfortran sje at cup dot hp dot com
2009-04-03 21:19 ` [Bug bootstrap/39631] " sje at cup dot hp dot com
2009-04-03 21:32 ` hjl dot tools at gmail dot com
2009-04-03 21:37 ` vmakarov at redhat dot com
2009-04-03 21:40 ` sje at cup dot hp dot com
2009-04-03 22:26 ` hjl at gcc dot gnu dot org
2009-04-12 18:44 ` danglin 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).