This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/14435] [4.2 Regression] gnatchop cannot use the compiled compiler in Ada's testsuite because of changed GCC_EXEC_PREFIX semantics
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jan 2006 14:47:36 -0000
- Subject: [Bug ada/14435] [4.2 Regression] gnatchop cannot use the compiled compiler in Ada's testsuite because of changed GCC_EXEC_PREFIX semantics
- References: <bug-14435-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #20 from hjl at lucon dot org 2006-01-26 14:47 -------
Created an attachment (id=10733)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10733&action=view)
A testcase
[hjl@gnu-12 prefix]$ make
gcc --version
gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-53)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
GCC_EXEC_PREFIX=./ gcc -S foo.i | grep GOOD || exit 1
GOOD
[hjl@gnu-12 prefix]$
[hjl@gnu-16 prefix]$ make
gcc --version
gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
GCC_EXEC_PREFIX=./ gcc -S foo.i | grep GOOD || exit 1
make: *** [foo.s] Error 1
[hjl@gnu-16 prefix]$
With my patch, I got
[hjl@gnu-16 prefix]$ make
/export/build/gnu/gcc/build-x86_64-linux/./prev-gcc//xgcc --version
xgcc (GCC) 4.2.0 20060126 (experimental) [trunk revision 110254 clean]
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
GCC_EXEC_PREFIX=./ /export/build/gnu/gcc/build-x86_64-linux/./prev-gcc//xgcc -S
foo.i | grep GOOD || exit 1
GOOD
[hjl@gnu-16 prefix]$
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14435