public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/42380] New: CFI statements vs. -pg
@ 2009-12-15 16:55 tschwinge at gcc dot gnu dot org
2009-12-15 16:57 ` [Bug debug/42380] " tschwinge at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: tschwinge at gcc dot gnu dot org @ 2009-12-15 16:55 UTC (permalink / raw)
To: gcc-bugs
See <http://gcc.gnu.org/ml/gcc/2009-12/msg00183.html>.
To sum up: the question is whether the CFA needs to be adjusted after push
{lr}, and before calling __gnu_mcount_nc. Currently it is not valid until
__gnu_mcount_nc returns.
--
Summary: CFI statements vs. -pg
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tschwinge at gcc dot gnu dot org
GCC target triplet: arm-none-linux-gnueabi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42380
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/42380] CFI statements vs. -pg
2009-12-15 16:55 [Bug debug/42380] New: CFI statements vs. -pg tschwinge at gcc dot gnu dot org
@ 2009-12-15 16:57 ` tschwinge at gcc dot gnu dot org
2009-12-16 9:59 ` tschwinge at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: tschwinge at gcc dot gnu dot org @ 2009-12-15 16:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from tschwinge at gcc dot gnu dot org 2009-12-15 16:57 -------
Richard Earnshaw wrote:
> I'm not sure what other architectures do in this case. Do they also put
> out adjustments to the cfi?
I had a look at x86 and x86_64 -- they still need a frame pointer together with
-pg, which is thus set-up (with CFI information) before calling mcount. I'll
try to locate and have a look at another architecture.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42380
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/42380] CFI statements vs. -pg
2009-12-15 16:55 [Bug debug/42380] New: CFI statements vs. -pg tschwinge at gcc dot gnu dot org
2009-12-15 16:57 ` [Bug debug/42380] " tschwinge at gcc dot gnu dot org
@ 2009-12-16 9:59 ` tschwinge at gcc dot gnu dot org
2009-12-16 13:15 ` drow at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: tschwinge at gcc dot gnu dot org @ 2009-12-16 9:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from tschwinge at gcc dot gnu dot org 2009-12-16 09:58 -------
As a tiny, years-old pointer: in
<http://gcc.gnu.org/ml/gcc-patches/2005-05/msg01006.html>, Daniel J. suggested
that ``appropriate dwarf2 frame gunk'' should be added.
--
tschwinge at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |drow at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42380
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/42380] CFI statements vs. -pg
2009-12-15 16:55 [Bug debug/42380] New: CFI statements vs. -pg tschwinge at gcc dot gnu dot org
2009-12-15 16:57 ` [Bug debug/42380] " tschwinge at gcc dot gnu dot org
2009-12-16 9:59 ` tschwinge at gcc dot gnu dot org
@ 2009-12-16 13:15 ` drow at gcc dot gnu dot org
2009-12-17 10:49 ` ramana at gcc dot gnu dot org
2010-01-06 17:57 ` tschwinge at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: drow at gcc dot gnu dot org @ 2009-12-16 13:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from drow at gcc dot gnu dot org 2009-12-16 13:15 -------
The CFA also needs to be adjusted after __gnu_mcount_nc returns;
__gnu_mcount_nc is a pop instruction from the point-of-view of the caller.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42380
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/42380] CFI statements vs. -pg
2009-12-15 16:55 [Bug debug/42380] New: CFI statements vs. -pg tschwinge at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-12-16 13:15 ` drow at gcc dot gnu dot org
@ 2009-12-17 10:49 ` ramana at gcc dot gnu dot org
2010-01-06 17:57 ` tschwinge at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-12-17 10:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from ramana at gcc dot gnu dot org 2009-12-17 10:49 -------
Confirmed -
--
ramana at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-12-17 10:49:01
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42380
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/42380] CFI statements vs. -pg
2009-12-15 16:55 [Bug debug/42380] New: CFI statements vs. -pg tschwinge at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-12-17 10:49 ` ramana at gcc dot gnu dot org
@ 2010-01-06 17:57 ` tschwinge at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: tschwinge at gcc dot gnu dot org @ 2010-01-06 17:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from tschwinge at gcc dot gnu dot org 2010-01-06 17:57 -------
This bug exists, by the way, not only when GCC is emitting CFI statements, but
also when it's emitting .debug_frame directly.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42380
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-01-06 17:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-15 16:55 [Bug debug/42380] New: CFI statements vs. -pg tschwinge at gcc dot gnu dot org
2009-12-15 16:57 ` [Bug debug/42380] " tschwinge at gcc dot gnu dot org
2009-12-16 9:59 ` tschwinge at gcc dot gnu dot org
2009-12-16 13:15 ` drow at gcc dot gnu dot org
2009-12-17 10:49 ` ramana at gcc dot gnu dot org
2010-01-06 17:57 ` tschwinge 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).