[PATCH] Mark -free as Optimization option.

Martin Liška mliska@suse.cz
Thu Jan 2 11:05:00 GMT 2020


Hi.

The flag is set based on optimization option:
gcc/common/config/i386/i386-common.c:    { OPT_LEVELS_2_PLUS, OPT_free, NULL, 1 },

and so that it should be also per-function. The only usage of the flag is
in gate of a RTL pass, so that it will use on function selection.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
Thanks,
Martin

gcc/ChangeLog:

2020-01-02  Martin Liska  <mliska@suse.cz>

	PR tree-optimization/92860
	* common.opt: Make flag_ree as optimization
	attribute.

gcc/testsuite/ChangeLog:

2020-01-02  Martin Liska  <mliska@suse.cz>

	PR tree-optimization/92860
	* gcc.dg/pr92860.c: New test.
---
  gcc/common.opt                 |  2 +-
  gcc/testsuite/gcc.dg/pr92860.c | 53 ++++++++++++++++++++++++++++++++++
  2 files changed, 54 insertions(+), 1 deletion(-)
  create mode 100644 gcc/testsuite/gcc.dg/pr92860.c


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Mark-free-as-Optimization-option.patch
Type: text/x-patch
Size: 1612 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20200102/0f93ce54/attachment.bin>


More information about the Gcc-patches mailing list