-fcode-hoisting in GCC 6.2

Matt Godbolt matt@godbolt.org
Sun Sep 4 21:29:00 GMT 2016


Hi all,

According to the docs at
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html and as
mentioned in https://gcc.gnu.org/ml/gcc/2016-08/msg00134.html GCC 6.2
supports an "-fcode-hoisting" option. However, in my home-built GCC
6.2 there doesn't seem to be such an option:

 /> /opt/gcc-explorer/gcc-6.2.0/bin/g++ --version
g++ (GCC-Explorer-Build) 6.2.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 /> /opt/gcc-explorer/gcc-6.2.0/bin/g++ -fcode-hoisting
g++: error: unrecognized command line option ‘-fcode-hoisting’; did
you mean ‘-Wno-hiding’?
g++: fatal error: no input files
compilation terminated.

/> /opt/gcc-explorer/gcc-6.2.0/bin/g++ --help=optimizers | grep hoist
  -fhoist-adjacent-loads      Enable hoisting adjacent loads to
encourage generating conditional move
  -fira-hoist-pressure        Use IRA based register pressure
calculation in RTL hoist optimizations.
  -ftree-phiprop              Enable hoisting loads from conditional pointers.

Have I missed something? The Redhat message I link above mentions this
as something available in the "development versions" of the software,
and I'm not sure what that means. The fact it's on the main GNU online
documentation implies it ought to be in normal builds.

Thanks in advance for any help,

--matt



More information about the Gcc-help mailing list