diff options
author | Justin Squirek <squirek@adacore.com> | 2018-07-31 09:56:15 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2018-07-31 09:56:15 +0000 |
commit | c992e2e4bd68729e7849c5649a9492263aedc063 (patch) | |
tree | 9dec6198ded128117e19995598975029e63ac364 /gcc/ada/gnatxref.adb | |
parent | a6ed513cb809e1c0da0d021f35835ce0924954ca (diff) | |
download | gcc-c992e2e4bd68729e7849c5649a9492263aedc063.zip gcc-c992e2e4bd68729e7849c5649a9492263aedc063.tar.gz gcc-c992e2e4bd68729e7849c5649a9492263aedc063.tar.bz2 |
[Ada] GNATmake fails to detect missing body
This patch corrects an issue whereby building a multi-unit compilation with
missing sources resulted in a cryptic "code generation" error instead of the
appropriate file not found error.
------------
-- Source --
------------
-- main.adb
with Types;
procedure Main is
begin
null;
end;
-- types.ads
package Types is
procedure Force;
end;
----------------------------
-- Compilation and output --
----------------------------
& gnatmake -q main.adb
gnatmake: "types.adb" not found
2018-07-31 Justin Squirek <squirek@adacore.com>
gcc/ada/
* lib-writ.adb (Write_With_Lines): Modfiy the generation of
dependencies within ali files so that source unit bodies are
properly listed even if said bodies are missing. Perform legacy
behavior in GNATprove mode.
* lib-writ.ads: Modify documentation to reflect current behavior.
From-SVN: r263100
Diffstat (limited to 'gcc/ada/gnatxref.adb')
0 files changed, 0 insertions, 0 deletions