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

            Bug ID: 98754
           Summary: gnatmake no longer recognizes -P option
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: emr-gnu at hev dot psu.edu
  Target Milestone: ---

Using 10.2.0, "gnatmake -Pfoo" does not appear to be a valid command line
anymore.  Contents of foo.gpr:

project foo is
   for Source_Dirs use (".");
   for Object_Dir use "./build";
   for Exec_Dir use ".";
   for Main use ("hello");

   package Compiler is
      for Default_Switches ("Ada")
          use ("-fstack-check",
               "-ffloat-store",
               "-msse2",
               "-mfpmath=sse",
               "-O0",
               "-gnatws",
               "-gnatE",
               "-gnato");
   end Compiler;
end foo

I would expect gnat to start building the program defined by "hello", but
instead I receive:

try "gnatmake-10.2 --help" for more information.

----------------------------

Configured with: -v --enable-languages=c,c++,ada,fortran
--prefix=/opt/gcc-10.2.0 --program-suffix=-10.2 --enable-shared
--enable-linker-build-id --with-system-zlib --libexecdir=/opt/gcc-10.2.0/lib
--without-included-gettext --enable-threads=posix --libdir=/opt/gcc-10.2.0/lib
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify
--enable-default-pie --enable-plugin --with-arch-32=i686
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu --disable-nls --wihtout-cuda-driver --enable-libada

Reply via email to