Bug 25898 - [4.2 Regression] All Ada tests fail when using installed Ada compiler
Summary: [4.2 Regression] All Ada tests fail when using installed Ada compiler
Status: RESOLVED DUPLICATE of bug 14435
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: 4.2.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-21 08:06 UTC by Andrew Pinski
Modified: 2006-01-24 14:10 UTC (History)
5 users (show)

See Also:
Host:
Target: x86_64-*-linux-gnu
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-01-24 13:46:18


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2006-01-21 08:06:00 UTC
Every Ada tests fail on the mainline with the following error:
/home/pinskia/src/checkin/trunk/objdir/gcc/testsuite/ada/acats/tests/a/a22006b.ada:0: error: bad value (generic) for -mtune= switch
Comment 1 Andrew Pinski 2006-01-21 08:06:56 UTC
Caused by:
2006-01-19  Jan Hubicka  <jh@suse.cz>
            H.J. Lu  <hongjiu.lu@intel.com>
            Evandro Menezes <evandro.menezes@amd.com>

        * invoke.texi (generic): Document
        (i686) Update.
Comment 2 Andrew Pinski 2006-01-21 08:07:44 UTC
Oh, I don't understand why -mcpu and -mtune don't take the same arguments.  Maybe Ada is assuming they do.
Comment 3 H.J. Lu 2006-01-22 04:36:30 UTC
I can't duplicate this. See:

http://gcc.gnu.org/ml/gcc-testresults/2006-01/msg01110.html
Comment 4 H.J. Lu 2006-01-22 07:03:03 UTC
Here is the result on Linux/ia32:

http://gcc.gnu.org/ml/gcc-testresults/2006-01/msg01114.html
Comment 5 Richard Biener 2006-01-22 11:30:04 UTC
I did see the same effect on interal builds of 4.1 with the patches applied, but Honza could not reproduce either.  I believe there's some magic going on in that Ada uses the host compiler for some/all tests?
Comment 6 Laurent GUERBY 2006-01-22 11:49:52 UTC
ACATS use the host base compiler for compiling two tools that are used to preprocess test sources. Everything else is done using the just built gnatmake.

I can't find special processing for tune/cpu in the Ada sources. 

Andrew did you add -mtune or something to your copy of gcc/testsuite/ada/acats/run_all.sh? If not could you post a bit more from ada/acats/acats.log? (full gnatmake commands are displayed IIRC)
Comment 7 H.J. Lu 2006-01-22 14:45:33 UTC
It looks like an old bug.
Comment 8 H.J. Lu 2006-01-22 14:47:25 UTC
I will be that the installed gcc Ada 4.2 compiler was used for "make check",
similar to PR 14435.

*** This bug has been marked as a duplicate of 14435 ***
Comment 9 Andrew Pinski 2006-01-22 17:11:14 UTC
Reopen, this is a bug in Ada's checking mechanism and not really in the driver.
Comment 10 H.J. Lu 2006-01-22 17:28:24 UTC
Can you remove the installed gcc 4.2 and rerun the Ada tests to see what
happens?
Comment 11 H.J. Lu 2006-01-23 21:29:14 UTC
Since there are no real regressions, I am changing summary.
Comment 12 Andrew Pinski 2006-01-24 13:29:12 UTC
This is still a regression, even though the change exposed a latent bug.
Comment 13 H.J. Lu 2006-01-24 13:43:52 UTC
It has been this way since March, 2004:

http://gcc.gnu.org/ml/gcc-bugs/2004-03/msg00641.html

Why do you think it is a regression?

*** This bug has been marked as a duplicate of 14435 ***
Comment 14 Andrew Pinski 2006-01-24 13:45:29 UTC
Because your change exposed it.
Comment 15 Andrew Pinski 2006-01-24 13:46:18 UTC
It does not matter if it is a latent bug or not.  This is still a regression.  HJL get that through your head.
Comment 16 H.J. Lu 2006-01-24 14:02:08 UTC
It is the identical bug as my old one. Should you reopen my bug report and make
this one as duplicate since the detailed analysis is in my bug report?
Comment 17 H.J. Lu 2006-01-24 14:10:46 UTC

*** This bug has been marked as a duplicate of 14435 ***