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

            Bug ID: 113877
           Summary: gnatchop -c puts gnat.adc in the current working
                    directory
           Product: gcc
           Version: 13.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: simon at pushface dot org
                CC: dkm at gcc dot gnu.org
  Target Milestone: ---

Created attachment 57387
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57387&action=edit
Demonstrator

In the attached demo, where demo-00.a contains only a configuration pragma,
you’d have expected "gnatchop -c *.a tmp" to put the configuration file 
"gnat.adc" into the same directory "tmp/" as the chopped code. Instead, it’s
output into the current directory.

$ gnatchop -c *.a tmp
writing configuration pragmas from demo-00.a to gnat.adc
splitting demo-00.a into:
splitting demo-01.a into:
   tmp/demo.ads

$ ls -R
demo-00.a       demo-01.a       gnat.adc        tmp

./tmp:
demo.ads

Reply via email to