Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

NullStream constructor and deconstructor not optimized away with GOOGLE_STRIP_LOG #933

@JensHuthmann

Description

@JensHuthmann

When compiling with gcc 13.1 (and other version) and using GOOGLE_STRIP_LOG the output gets optimized away as expected.
However, the constructor and deconstruction calls of NullStream() are left over in the compiled program.

I copied together from 3a0d4d2 with a cmake -DCMAKE_BUILD_TYPE=Release .. generated output.

Link to compiler explorer See line 518 in compiler output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions