probinson added a comment. As Renato points out, this addresses the user experience of tripping over the lack of -Og, however it does not really address the intent of PR20765 which is to provide a mode of optimizations that don't particularly interfere with debugging. Eventually someone needs to take on the project of "proper -Og" which might or might not result in -Og still matching -O1. I am not opposed to starting out this way, but don't close the PR.
If we later get user complaints about how -Og interferes with debugging, well, then we'll have actual use-cases to work from, which is extremely helpful for this sort of optimization tuning. > init.c:208 > // > +// RUN: %clang_cc1 -Og -E -dM < /dev/null | FileCheck -match-full-lines > -check-prefix O1 %s > +// check-prefix https://reviews.llvm.org/owners/package/1/? Then you don't need the Og: and Og-NOT: lines. https://reviews.llvm.org/D24998 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits