public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/41248] New: Assertion at 2910 of cfgexpand.c (expand_debug_locations)
@ 2009-09-03 17:01 sje at cup dot hp dot com
2009-09-03 17:10 ` [Bug middle-end/41248] [4.5 Regression] VTA: " rguenth at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: sje at cup dot hp dot com @ 2009-09-03 17:01 UTC (permalink / raw)
To: gcc-bugs
On ia64-hp-hpux11.23, which supports a 32 and 64 bit mode, I get an assertion
failure during bootstrap. This is with version 151382.
insn is:
(debug_insn 52 51 53 9
/proj/opensrc/nightly/src/trunk/libgcc/../gcc/gcov-io.c:238 (var_location:SI
result (high (nil))) -1 (nil))
val is:
(plus:DI (const:DI (plus:DI (symbol_ref:DI ("__gcov_var") [flags 0x2] <var_decl
7b50cba0 __gcov_var>)
(const_int 12 [0xc])))
(mult:SI (plus:SI (reg:SI 340 [ prephitmp.26 ])
(const_int 4 [0x4]))
(const_int 4 [0x4])))
So the modes do not match. I am compiling in 32 bit mode, so ptr_mode is
SImode but Pmode is DImode.
--
Summary: Assertion at 2910 of cfgexpand.c
(expand_debug_locations)
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: build
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sje at cup dot hp dot com
GCC build triplet: ia64-hp-hpux11.23
GCC host triplet: ia64-hp-hpux11.23
GCC target triplet: ia64-hp-hpux11.23
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41248
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/41248] [4.5 Regression] VTA: Assertion at 2910 of cfgexpand.c (expand_debug_locations)
2009-09-03 17:01 [Bug middle-end/41248] New: Assertion at 2910 of cfgexpand.c (expand_debug_locations) sje at cup dot hp dot com
@ 2009-09-03 17:10 ` rguenth at gcc dot gnu dot org
2009-09-03 17:26 ` sje at cup dot hp dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-09-03 17:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-09-03 17:10 -------
Please attach preprocessed source so the issue can be reproduced with a cross.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aoliva at gcc dot gnu dot
| |org
Summary|Assertion at 2910 of |[4.5 Regression] VTA:
|cfgexpand.c |Assertion at 2910 of
|(expand_debug_locations) |cfgexpand.c
| |(expand_debug_locations)
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41248
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/41248] [4.5 Regression] VTA: Assertion at 2910 of cfgexpand.c (expand_debug_locations)
2009-09-03 17:01 [Bug middle-end/41248] New: Assertion at 2910 of cfgexpand.c (expand_debug_locations) sje at cup dot hp dot com
2009-09-03 17:10 ` [Bug middle-end/41248] [4.5 Regression] VTA: " rguenth at gcc dot gnu dot org
@ 2009-09-03 17:26 ` sje at cup dot hp dot com
2009-09-03 23:53 ` aoliva at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: sje at cup dot hp dot com @ 2009-09-03 17:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from sje at cup dot hp dot com 2009-09-03 17:25 -------
The original file was libgcov.c, I used delta to cut it down into an example
that will fail to compile with '-g -O2'.
Testcase:
struct __gcov_var {
unsigned int offset;
unsigned int buffer[(1 << 10) + 1];
} __gcov_var;
unsigned int * gcov_write_words (unsigned int words) {
unsigned int *result;
result = &__gcov_var.buffer[__gcov_var.offset];
return result;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41248
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/41248] [4.5 Regression] VTA: Assertion at 2910 of cfgexpand.c (expand_debug_locations)
2009-09-03 17:01 [Bug middle-end/41248] New: Assertion at 2910 of cfgexpand.c (expand_debug_locations) sje at cup dot hp dot com
2009-09-03 17:10 ` [Bug middle-end/41248] [4.5 Regression] VTA: " rguenth at gcc dot gnu dot org
2009-09-03 17:26 ` sje at cup dot hp dot com
@ 2009-09-03 23:53 ` aoliva at gcc dot gnu dot org
2009-09-08 17:54 ` [Bug debug/41248] " aoliva at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2009-09-03 23:53 UTC (permalink / raw)
To: gcc-bugs
--
aoliva at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |aoliva at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-09-03 23:52:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41248
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug debug/41248] [4.5 Regression] VTA: Assertion at 2910 of cfgexpand.c (expand_debug_locations)
2009-09-03 17:01 [Bug middle-end/41248] New: Assertion at 2910 of cfgexpand.c (expand_debug_locations) sje at cup dot hp dot com
` (2 preceding siblings ...)
2009-09-03 23:53 ` aoliva at gcc dot gnu dot org
@ 2009-09-08 17:54 ` aoliva at gcc dot gnu dot org
2009-09-08 18:59 ` sje at cup dot hp dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2009-09-08 17:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from aoliva at gcc dot gnu dot org 2009-09-08 17:54 -------
Patch (pending approval) is here
http://gcc.gnu.org/ml/gcc-patches/2009-09/msg00385.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41248
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug debug/41248] [4.5 Regression] VTA: Assertion at 2910 of cfgexpand.c (expand_debug_locations)
2009-09-03 17:01 [Bug middle-end/41248] New: Assertion at 2910 of cfgexpand.c (expand_debug_locations) sje at cup dot hp dot com
` (3 preceding siblings ...)
2009-09-08 17:54 ` [Bug debug/41248] " aoliva at gcc dot gnu dot org
@ 2009-09-08 18:59 ` sje at cup dot hp dot com
2009-09-23 16:30 ` aoliva at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: sje at cup dot hp dot com @ 2009-09-08 18:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from sje at cup dot hp dot com 2009-09-08 18:59 -------
This patch, combined with Michael Matz's patch for PR41268, gave me a good
bootstrap on ia64-hp-hpux11.23,
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41248
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug debug/41248] [4.5 Regression] VTA: Assertion at 2910 of cfgexpand.c (expand_debug_locations)
2009-09-03 17:01 [Bug middle-end/41248] New: Assertion at 2910 of cfgexpand.c (expand_debug_locations) sje at cup dot hp dot com
` (4 preceding siblings ...)
2009-09-08 18:59 ` sje at cup dot hp dot com
@ 2009-09-23 16:30 ` aoliva at gcc dot gnu dot org
2009-09-23 16:34 ` aoliva at gcc dot gnu dot org
2009-09-28 20:41 ` hjl at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2009-09-23 16:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from aoliva at gcc dot gnu dot org 2009-09-23 16:29 -------
Subject: Bug 41248
Author: aoliva
Date: Wed Sep 23 16:29:38 2009
New Revision: 152087
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152087
Log:
gcc/ChangeLog:
PR debug/41248
* cfgexpand.c (convert_debug_memory_address): New.
(expand_debug_expr): Convert base address and offset to the same
mode. Use it to convert addresses to other modes. Accept
ptr_mode addresses.
gcc/testsuite/ChangeLog:
PR debug/41248
* gcc.dg/pr41248.c: New.
Added:
trunk/gcc/testsuite/gcc.dg/pr41248.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cfgexpand.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41248
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug debug/41248] [4.5 Regression] VTA: Assertion at 2910 of cfgexpand.c (expand_debug_locations)
2009-09-03 17:01 [Bug middle-end/41248] New: Assertion at 2910 of cfgexpand.c (expand_debug_locations) sje at cup dot hp dot com
` (5 preceding siblings ...)
2009-09-23 16:30 ` aoliva at gcc dot gnu dot org
@ 2009-09-23 16:34 ` aoliva at gcc dot gnu dot org
2009-09-28 20:41 ` hjl at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2009-09-23 16:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from aoliva at gcc dot gnu dot org 2009-09-23 16:33 -------
Fixed
--
aoliva at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41248
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug debug/41248] [4.5 Regression] VTA: Assertion at 2910 of cfgexpand.c (expand_debug_locations)
2009-09-03 17:01 [Bug middle-end/41248] New: Assertion at 2910 of cfgexpand.c (expand_debug_locations) sje at cup dot hp dot com
` (6 preceding siblings ...)
2009-09-23 16:34 ` aoliva at gcc dot gnu dot org
@ 2009-09-28 20:41 ` hjl at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-09-28 20:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from hjl at gcc dot gnu dot org 2009-09-28 20:39 -------
Subject: Bug 41248
Author: hjl
Date: Mon Sep 28 20:38:53 2009
New Revision: 152250
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152250
Log:
2009-09-28 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline:
2009-09-26 Andreas Schwab <schwab@linux-m68k.org>
PR c/41476
* gcc.dg/cond-constqual-1.c: New test.
2009-09-26 Michael Matz <matz@suse.de>
PR lto/40758
PR middle-end/41470
* gcc.dg/pr41470.c: New test.
2009-09-23 Alexandre Oliva <aoliva@redhat.com>
PR debug/41248
* gcc.dg/pr41248.c: New.
2009-09-22 Alexandre Oliva <aoliva@redhat.com>
PR debug/41295
* gcc.dg/pr41295.c: New.
2009-09-20 Andrew Pinski <pinskia@gcc.gnu.org>
PR middle-end/40642
* g++.dg/torture/pr40642.C: New testcase.
2009-09-17 Michael Matz <matz@suse.de>
PR middle-end/41347
* gfortran.dg/pr41347.f90: New test.
2009-09-16 Michael Matz <matz@suse.de>
PR fortran/41212
* gfortran.dg/pr41212.f90: New test.
2009-09-11 Michael Matz <matz@suse.de>
PR middle-end/41275
* g++.dg/tree-ssa/pr41275.C: New test.
2009-09-11 Janus Weil <janus@gcc.gnu.org>
PR fortran/41242
* gfortran.dg/proc_ptr_comp_21.f90: New.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/torture/pr40642.C
- copied unchanged from r152249,
trunk/gcc/testsuite/g++.dg/torture/pr40642.C
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/tree-ssa/pr41275.C
- copied unchanged from r152249,
trunk/gcc/testsuite/g++.dg/tree-ssa/pr41275.C
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/cond-constqual-1.c
- copied unchanged from r152248,
trunk/gcc/testsuite/gcc.dg/cond-constqual-1.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr41248.c
- copied unchanged from r152248, trunk/gcc/testsuite/gcc.dg/pr41248.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr41295.c
- copied unchanged from r152249, trunk/gcc/testsuite/gcc.dg/pr41295.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr41470.c
- copied unchanged from r152248, trunk/gcc/testsuite/gcc.dg/pr41470.c
branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/pr41212.f90
- copied unchanged from r152249,
trunk/gcc/testsuite/gfortran.dg/pr41212.f90
branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/pr41347.f90
- copied unchanged from r152249,
trunk/gcc/testsuite/gfortran.dg/pr41347.f90
branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/proc_ptr_comp_21.f90
- copied unchanged from r152249,
trunk/gcc/testsuite/gfortran.dg/proc_ptr_comp_21.f90
Modified:
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41248
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-09-28 20:41 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-03 17:01 [Bug middle-end/41248] New: Assertion at 2910 of cfgexpand.c (expand_debug_locations) sje at cup dot hp dot com
2009-09-03 17:10 ` [Bug middle-end/41248] [4.5 Regression] VTA: " rguenth at gcc dot gnu dot org
2009-09-03 17:26 ` sje at cup dot hp dot com
2009-09-03 23:53 ` aoliva at gcc dot gnu dot org
2009-09-08 17:54 ` [Bug debug/41248] " aoliva at gcc dot gnu dot org
2009-09-08 18:59 ` sje at cup dot hp dot com
2009-09-23 16:30 ` aoliva at gcc dot gnu dot org
2009-09-23 16:34 ` aoliva at gcc dot gnu dot org
2009-09-28 20:41 ` hjl 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).