This is the mail archive of the gcc@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]

Re: Debug class optimization


Mad Hatter <slokus@yahoo.com> writes:

> Hi,
>
> I'm trying to write a small debug class that will output debug
> messages if DEBUG is true and suppress them completely if false.
> Though the output is suppressed as expected when DEBUG is false,
> I find that the generated assembler file still seems to have
> the calls even though they do nothing.

Try marking the operator<< definitions 'inline'.

zw


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