Some options are known to be unsafe to set via pragma GCC optimize. See: https://sourceware.org/ml/libc-alpha/2014-12/msg00597.html and https://sourceware.org/ml/libc-alpha/2014-12/msg00599.html It would be better to add a flag to the *.opt files to mark safe options explicitly, such that specifying any option that is not safe produces a fatal error.
(In reply to Manuel López-Ibáñez from comment #0) > Some options are known to be unsafe to set via pragma GCC optimize. See: > https://sourceware.org/ml/libc-alpha/2014-12/msg00597.html and > https://sourceware.org/ml/libc-alpha/2014-12/msg00599.html > > It would be better to add a flag to the *.opt files to mark safe options > explicitly, such that specifying any option that is not safe produces a > fatal error. Taking Joseph's comments in the linked thread as confirmation.
(In reply to Eric Gallager from comment #1) > (In reply to Manuel López-Ibáñez from comment #0) > > Some options are known to be unsafe to set via pragma GCC optimize. See: > > https://sourceware.org/ml/libc-alpha/2014-12/msg00597.html and > > https://sourceware.org/ml/libc-alpha/2014-12/msg00599.html > > > > It would be better to add a flag to the *.opt files to mark safe options > > explicitly, such that specifying any option that is not safe produces a > > fatal error. > > Taking Joseph's comments in the linked thread as confirmation. ...and cc-ing him.