public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/34289]  New: Systematic recompilation of up-to-date object files when using the "-s" gnatmake option GNAT 4.3.0 on x86-*-Darwin8
@ 2007-11-29 12:01 bechir dot zalila at gmail dot com
  2007-11-29 12:01 ` [Bug ada/34289] " bechir dot zalila at gmail dot com
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: bechir dot zalila at gmail dot com @ 2007-11-29 12:01 UTC (permalink / raw)
  To: gcc-bugs

Hi,

When recompiling an Ada file (attachements p.ads p.adb) using "-s" option for
gnatmake. The object file is systemtically rebuild even if it is up-to-date and
if even the compiler flags have not changed.

* How to reproduce the bug:
===========================

INPUT FILES:
============

Attached p.ads and p.adb

COMMAND LINE:
=============

Two successive executions of:

gnatmake -s p.adb

EXPECTED BEHAVIOR:
==================

first: gnatmake -s p.adb

gcc -c p.adb

second: gnatmake -s p.adb

<nothing> (object file is up to date, thus it is not recompiled)

ACTUAL BEHAVIOR:
================

first: gnatmake -s p.adb

gcc -c p.adb

second: gnatmake -s p.adb

gcc -c p.adb

Object file is recompiled systematically at each execution

MINI DIAGNOSTIC:
================

If we use the -v flag of gnatmake, we get the following output:

GNATMAKE  4.3.0 20071119 (experimental)
Copyright (C) 1995-2007, Free Software Foundation, Inc.
  "p.ali" being checked ...
  -> "p.adb" different number of switches
-mmacosx-version-min=10.4

gcc -c p.adb
End of compilation

The command line option '-mmacosx-version-min=10.4' is added automatically 
by gcc when calling gnat1.

Passing -v to gcc (gcc -v -c p.adb) gives the following (truncated) output:

Using built-in specs.
Target: i686-apple-darwin8
Configured with: ../gcc_trunk/configure --disable-nls
--prefix=/Volumes/Stock/dev/gcc-4.3_trunk --host=i686-apple-darwin8
--target=i686-apple-darwin8 --build=i686-apple-darwin8 --enable-languages=c,ada
--with-gmp=/opt/local
Thread model: posix
gcc version 4.3.0 20071119 (experimental) (GCC)

...

.../gnat1 -quiet -dumpbase p.adb -mmacosx-version-min=10.4 -mtune=generic -fPIC
p.adb -o /var/tmp//ccqsMDI3.s

...

There are indeed several options added by gcc to gnat1 (especially
-mmacosx-version-min=10.4 and -mtune=generic). But for some reason, only
-mmacosx-version-min=10.4 causes the problem.

Here is my system configuration:

* the exact version of GCC, as shown by "gcc -v";

Using built-in specs.
Target: i686-apple-darwin8
Configured with: ../gcc_trunk/configure --disable-nls
--prefix=/Volumes/Stock/dev/gcc-4.3_trunk --host=i686-apple-darwin8
--target=i686-apple-darwin8 --build=i686-apple-darwin8 --enable-languages=c,ada
--with-gmp=/opt/local
Thread model: posix
gcc version 4.3.0 20071119 (experimental) (GCC)

* the system type (uname -a);

Darwin xxxxxxxxx.xxxx.xx 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10
18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386

* the options when GCC was configured/built;

../gcc_trunk/configure --disable-nls --prefix=/Volumes/Stock/dev/gcc-4.3_trunk
--host=i686-apple-darwin8 --target=i686-apple-darwin8
--build=i686-apple-darwin8 --enable-languages=c,ada --with-gmp=/opt/local


-- 
           Summary: Systematic recompilation of up-to-date object files when
                    using the "-s" gnatmake option GNAT 4.3.0 on x86-*-
                    Darwin8
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bechir dot zalila at gmail dot com
 GCC build triplet: i686-apple-darwin8
  GCC host triplet: i686-apple-darwin8
GCC target triplet: i686-apple-darwin8


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34289


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2008-11-15 16:20 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-29 12:01 [Bug ada/34289] New: Systematic recompilation of up-to-date object files when using the "-s" gnatmake option GNAT 4.3.0 on x86-*-Darwin8 bechir dot zalila at gmail dot com
2007-11-29 12:01 ` [Bug ada/34289] " bechir dot zalila at gmail dot com
2007-11-29 12:02 ` bechir dot zalila at gmail dot com
2007-11-30  9:19 ` bechir dot zalila at gmail dot com
2007-11-30  9:30 ` bechir dot zalila at gmail dot com
2007-11-30  9:37 ` sam at gcc dot gnu dot org
2007-12-02  9:18 ` sam at gcc dot gnu dot org
2007-12-02  9:58 ` bechir dot zalila at gmail dot com
2007-12-02 10:01 ` bechir dot zalila at gmail dot com
2007-12-02 10:23 ` sam at gcc dot gnu dot org
2007-12-03 13:54 ` bechir dot zalila at gmail dot com
2007-12-03 14:00 ` bechir dot zalila at gmail dot com
2007-12-03 14:23 ` bechir dot zalila at gmail dot com
2007-12-03 15:26 ` bechir dot zalila at gmail dot com
2008-02-22 18:28 ` ebotcazou at gcc dot gnu dot org
2008-02-22 18:28 ` ebotcazou at gcc dot gnu dot org
2008-02-23 14:29 ` [Bug ada/34289] gnatmake -s doesn't work ebotcazou at gcc dot gnu dot org
2008-11-07 10:49 ` ebotcazou at gcc dot gnu dot org
2008-11-07 10:50 ` ebotcazou at gcc dot gnu dot org
2008-11-15 16:18 ` ebotcazou at gcc dot gnu dot org
2008-11-15 16:20 ` ebotcazou at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).