This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15485] New: [tree-ssa] The C++ front-end generates a lot of (void) casts for statements


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]