diff options
author | Steve Baird <baird@adacore.com> | 2024-05-10 15:03:37 -0700 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2024-06-20 10:50:49 +0200 |
commit | cba9a6c978da6c5ef559fba9509b89551ed82812 (patch) | |
tree | 3d9217dfe86edf76dc00d934fe1eb8abe141c0a5 /gcc/ada/doc/gnat_rm | |
parent | 21b54dad4789396f6877e08024c3d40eec2861d6 (diff) | |
download | gcc-cba9a6c978da6c5ef559fba9509b89551ed82812.zip gcc-cba9a6c978da6c5ef559fba9509b89551ed82812.tar.gz gcc-cba9a6c978da6c5ef559fba9509b89551ed82812.tar.bz2 |
ada: Improve preprocessor error handling.
In some cases, gnatprep would correctly emit an error message and then
incorrectly exit with a return code of zero, indicating success.
In some cases, a correct message about an error detected by the integrated
preprocessor would be accompanied by an incorrect message indicating that
a source file could not be found.
gcc/ada/
* gprep.adb (Process_Files.Process_One_File): When calling OS_Exit in an error
path, pass in a Status parameter of 1 instead of 0 (because 0
indicates success).
* lib-load.adb (Load_Main_Source): Do not emit a message about a missing source file
if other error messages were generated by calling Load_Source_File;
the file isn't missing - it failed preprocessing.
Diffstat (limited to 'gcc/ada/doc/gnat_rm')
0 files changed, 0 insertions, 0 deletions