This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15485] New: [tree-ssa] The C++ front-end generates a lot of (void) casts for statements
- From: "dann at godzilla dot ics dot uci dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 May 2004 04:39:07 -0000
- Subject: [Bug c++/15485] New: [tree-ssa] The C++ front-end generates a lot of (void) casts for statements
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The .original dump for C++ files contains a lot of (void) casts, that are
probably not needed, they increase the memory footprint.
For example:
;; Function std::_Refcount_Base::_Refcount_Base(size_t)
{
(void)((this)->_M_ref_count = __n);
{
struct pthread_mutex* __tmp = 0u
(void)((this)->_M_ref_count_lock = __tmp);
}
}
For the testcase in PR8361, the .generic dump has ~15000 statements, and ~3000
of them start with (void)
--
Summary: [tree-ssa] The C++ front-end generates a lot of (void)
casts for statements
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dann at godzilla dot ics dot uci dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15485