Launchpad has imported 5 comments from the remote bug at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44633.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://documentation.ubuntu.com/launchpad/user/reference/bugs/multi-project-bugs/about-multi-project-bugs/#bugs-in-external-trackers.

------------------------------------------------------------------------
On 2010-06-22T14:37:46+00:00 Pini-os wrote:

When using the -s flag of gnat make, the flag -gnatW8 is stripped during
switches comparison (and therefore forces unnecessary compilation).

Example:
>  cat dummy.adb 
procedure Dummy is
begin
   null;
end;


>  gnat make -v -s -gnat05 -gnatW8 dummy

GNATMAKE 4.4.3
Copyright (C) 1995-2008, Free Software Foundation, Inc.
  "dummy.ali" being checked ...
  -> "dummy.adb" different number of switches
-gnat05 -gnatW8
-gnat05
gcc-4.4 -c -gnat05 -gnatW8 dummy.adb
End of compilation
gnatbind -x dummy.ali
gnatlink dummy.ali


The line "-gnat05 -gnatW8" has the flags used at the previous compilation (they 
are correct). The line "-gnat05" has the flags used for the current compilation 
(they are incorrect: -gnatW8 given on the command line was stripped here).

The unit is recompiled also the expected behavior was not to do it.


>  gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' 
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared 
--enable-multiarch --enable-linker-build-id --with-system-zlib 
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix 
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls 
--enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc 
--enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic 
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu 
--target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)

Reply at:
https://bugs.launchpad.net/ubuntu/+source/gnat-4.4/+bug/597291/comments/0

------------------------------------------------------------------------
On 2010-06-22T14:40:51+00:00 Pini-os wrote:

Created attachment 20980
Test case (compile twice with "gnat make -s -gnatW8 dummy")

Reply at:
https://bugs.launchpad.net/ubuntu/+source/gnat-4.4/+bug/597291/comments/2

------------------------------------------------------------------------
On 2010-06-23T09:15:10+00:00 Charlet-v wrote:

Subject: Bug 44633

Author: charlet
Date: Wed Jun 23 09:14:55 2010
New Revision: 161264

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161264
Log:
2010-06-23  Thomas Quinot  <[email protected]>

        * sem_util.adb: Minor code cleanup: test for proper entity instead of
        testing just Chars attribute when checking whether a given scope is
        System.
        * exp_ch4.adb, einfo.adb: Minor reformatting.

2010-06-23  Vincent Celier  <[email protected]>

        PR ada/44633
        * switch-m.adb (Normalize_Compiler_Switches): Take into account
        switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
        -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.

2010-06-23  Ed Schonberg  <[email protected]>

        * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
        operation with a universal real operand, and the right operand is a
        range with universal bounds, find unique fixed point that may be
        candidate, and warn appropriately.


Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/einfo.adb
    trunk/gcc/ada/exp_ch4.adb
    trunk/gcc/ada/sem_res.adb
    trunk/gcc/ada/sem_util.adb
    trunk/gcc/ada/switch-m.adb


Reply at:
https://bugs.launchpad.net/ubuntu/+source/gnat-4.4/+bug/597291/comments/3

------------------------------------------------------------------------
On 2010-06-23T09:15:49+00:00 Charlet-v wrote:

Fixed on trunk.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/gnat-4.4/+bug/597291/comments/4

------------------------------------------------------------------------
On 2010-06-23T09:53:46+00:00 Pini-os wrote:

(In reply to comment #3)
> Fixed on trunk.
> 

Thanks for the fix and the reactivity.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/gnat-4.4/+bug/597291/comments/5

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/597291

Title:
  Incorrect behaviour of gnat make -s with -gnatW8 flag

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/597291/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to