Skip to content

Use pretty printer instead ofcall to open_memstream#4487

Open
P-E-P wants to merge 1 commit intoRust-GCC:masterfrom
P-E-P:mingw_open_memstream
Open

Use pretty printer instead ofcall to open_memstream#4487
P-E-P wants to merge 1 commit intoRust-GCC:masterfrom
P-E-P:mingw_open_memstream

Conversation

@P-E-P
Copy link
Member

@P-E-P P-E-P commented Mar 12, 2026

Remove open_memstream call. Code from @pinskia

Fixes #4483

@P-E-P P-E-P requested a review from philberty March 12, 2026 13:36
@powerboat9
Copy link
Collaborator

How should authorship/sign-off be handled?

@pinskia
Copy link
Contributor

pinskia commented Mar 12, 2026

How should authorship/sign-off be handled?

Signed-off-by: Andrew Pinski andrew.pinski@oss.qualcomm.com

open_memstream is a POSIX call which is not available on mingw platform.

gcc/rust/ChangeLog:

	* typecheck/rust-tyty.cc (generate_tree_str): Remove opem_memstream
	and print_generic_stmt call with call to dump_generic_node.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
@P-E-P P-E-P force-pushed the mingw_open_memstream branch from c7c1ace to ca3fe7c Compare March 13, 2026 15:01
@P-E-P
Copy link
Member Author

P-E-P commented Mar 13, 2026

How should authorship/sign-off be handled?

Initially I put andrew as the author of the commit, I wasn't sure if andrew has any fsf attribution hence the missing sign off. With andrew's recent confirmation I added a sign-off.

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.

generate_tree_str uses non-standard open_memstream

3 participants