This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/28834] [4.0/4.1/4.2/4.3 Regression] -O3 -g crashes sometimes when using may_alias and structs
- From: "acahalan at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Nov 2006 00:11:17 -0000
- Subject: [Bug debug/28834] [4.0/4.1/4.2/4.3 Regression] -O3 -g crashes sometimes when using may_alias and structs
- References: <bug-28834-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #17 from acahalan at gmail dot com 2006-11-24 00:11 -------
(In reply to comment #13)
> The question I asked is "why doesn't this happen for 'const'"? That
> turned out to be a good question, because it leads to the better
> question of "what debugging output did you expect for this code,
> anyway"?
>
> It seems to me that __noalias__ is an interesting attribute that
> should be somehow reflected in the DWARF. That would require a GNU
> extension, of course.
Rather than comparing this with "const", compare it with "restrict".
This deserves representation in DWARF if and only if restrict deserves it.
(and that I can't answer, but my gut feeling is that such representation
should be only for things that C++ would put into name mangling)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28834