diff options
author | Arnaud Charlet <charlet@adacore.com> | 2023-01-18 07:35:17 +0000 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-05-16 10:30:56 +0200 |
commit | 24917325cef92b535f909facdbe1d40c8f1f602a (patch) | |
tree | cb1c36f7c341638ac18a4e08eec97cedc47bb090 /gcc/ada | |
parent | 04606c1229d709250deaf2999895e93ee5c189e9 (diff) | |
download | gcc-24917325cef92b535f909facdbe1d40c8f1f602a.zip gcc-24917325cef92b535f909facdbe1d40c8f1f602a.tar.gz gcc-24917325cef92b535f909facdbe1d40c8f1f602a.tar.bz2 |
ada: Missing dependency with -gnatc
When using -gnatc, dependencies on preprocessor and config files
were not recorded.
gcc/ada/
* gnat1drv.adb: Ensure all dependencies are recorded even when not
generating code.
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/gnat1drv.adb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/ada/gnat1drv.adb b/gcc/ada/gnat1drv.adb index 2386184..e74036e 100644 --- a/gcc/ada/gnat1drv.adb +++ b/gcc/ada/gnat1drv.adb @@ -1396,6 +1396,17 @@ begin Back_End_Mode := Skip; end if; + -- Ensure that we properly register a dependency on system.ads, since + -- even if we do not semantically depend on this, Targparm has read + -- system parameters from the system.ads file. + + Lib.Writ.Ensure_System_Dependency; + + -- Add dependencies, if any, on preprocessing data file and on + -- preprocessing definition file(s). + + Prepcomp.Add_Dependencies; + -- At this stage Back_End_Mode is set to indicate if the backend should -- be called to generate code. If it is Skip, then code generation has -- been turned off, even though code was requested by the original @@ -1542,17 +1553,6 @@ begin return; end if; - -- Ensure that we properly register a dependency on system.ads, since - -- even if we do not semantically depend on this, Targparm has read - -- system parameters from the system.ads file. - - Lib.Writ.Ensure_System_Dependency; - - -- Add dependencies, if any, on preprocessing data file and on - -- preprocessing definition file(s). - - Prepcomp.Add_Dependencies; - if GNATprove_Mode then -- In GNATprove mode we're writing the ALI much earlier than usual |