https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113877

--- Comment #2 from simon at pushface dot org ---
I came across -c in ACATS[1]. I do agree it’s an uncommon usage, and indeed I 
can’t think of other reasons to do it; perhaps it’s to support porting from 
other compilers? (if that’s something we should be concerned about still).

At the moment, if I

  gnatchop -c foo.a -w foo_src
  gnatchop -c bar.a -w bar_src

and both foo.a and bar.a contain a configuration-pragma-only section, then 
bar.a’s configuration pragmas are appended to foo.a’s in gnat.adc in the 
current working directory.

If all configuration pragmas need to be partition-wide, that would justify the
current design, but I don’t think that’s the case.

I just don’t know what the original use case was, or whether there are users 
whose workflows would be disrupted by a change (one of those would _not_ be 
ACATS: it deletes gnatchopped files, including gnat.adc, after each test).

[1]
https://github.com/gcc-mirror/gcc/blob/2c2f57e4158924467afbf4c2fd3938e507287dab/gcc/testsuite/ada/acats/run_all.sh#L332

Reply via email to