Skip to content
Snippets Groups Projects
Commit aa688dd6 authored by Paul-Antoine Arras's avatar Paul-Antoine Arras
Browse files

Only apply adjust_args in OpenMP dispatch if variant substitution occurs

This is a followup to
084ea8ad OpenMP: middle-end support for dispatch + adjust_args.

This patch fixes a bug that caused arguments in an OpenMP dispatch call to be
modified even when no variant substitution occurred.

gcc/ChangeLog:

	* gimplify.cc (gimplify_call_expr): Create variable
	variant_substituted_p to control whether adjust_args applies.

gcc/testsuite/ChangeLog:

	* c-c++-common/gomp/adjust-args-4.c: New test.
parent 405c99c1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment