Patent ID: 9207921
Filing Date: 2015-12-08
Classification: G06F

Abstract:
1. A compilation method for correcting internal compiler errors that may include compiler internal failures and errors produced by running a validation suite, comprising: running a compiler on a computer; receiving a source file by the compiler; identifying a set of functions in the source file, wherein each of the set of functions in the source file is a procedure or a routine provided in code of the source file; storing a set of optimization levels for each of the set of functions in the source file in a memory accessible by the compiler; using an optimization adjustment module to assign an original optimization level for each of the set of functions in the source file; using a plurality of compiler components to compile each of the set of functions in the source file using the originally-assigned optimization level, wherein the compiling of each of the set of function in the source file comprises, when an internal error occurs for one of the set of functions in the source file, reporting the internal error along with an identification of the one of the set of functions in the source file being compiled to a compiler driver; using the optimization adjustment module to process the internal error reported for the one of the set of functions in the source file including assigning an adjusted optimization level for the one of the set of functions in the source file, wherein the adjusted optimization level is selected from the stored set of optimization levels for the one of the set of functions in the source file in the memory and is a lower level of optimization than the originally-assigned optimization level for the one of the set of functions in the source file; and repeating the compiling of the one of the set of functions in the source file using the adjusted optimization level and using the originally-assigned optimization level for other ones of the set of functions in the source file.