Skip to content

gccrs: Wrap rust_debugs into a do-while wrapper - #4793

Closed
philberty wants to merge 1 commit into
masterfrom
phil/debug
Closed

gccrs: Wrap rust_debugs into a do-while wrapper#4793
philberty wants to merge 1 commit into
masterfrom
phil/debug

Conversation

@philberty

Copy link
Copy Markdown
Member

This reduces compile time when debug is turned off due to evaultion of any passed arguments.

gcc/rust/ChangeLog:

* rust-diagnostics.cc (rust_debug_loc): rename
(rust_debug_loc_internal): no longer check if debug is enabled
* rust-diagnostics.h (rust_debug): new wrapper
(rust_debug_loc): likewise
(rust_debug_loc_internal): likewise

This reduces compile time when debug is turned off due to evaultion
of any passed arguments.

gcc/rust/ChangeLog:

	* rust-diagnostics.cc (rust_debug_loc): rename
	(rust_debug_loc_internal): no longer check if debug is enabled
	* rust-diagnostics.h (rust_debug): new wrapper
	(rust_debug_loc): likewise
	(rust_debug_loc_internal): likewise

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
@P-E-P
P-E-P enabled auto-merge August 17, 2026 19:19
@philberty philberty closed this Aug 17, 2026
auto-merge was automatically disabled August 17, 2026 19:24

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants