This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/28515] CFLAGS not propagated, resulting in object mismatch
- From: "skunk at iskunk dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Aug 2006 16:30:06 -0000
- Subject: [Bug bootstrap/28515] CFLAGS not propagated, resulting in object mismatch
- References: <bug-28515-8784@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from skunk at iskunk dot org 2006-08-02 16:30 -------
Interestingly enough, the test-cc script teased out an apparent bug in
config/depstand.m4 (routines to check the compiler's mode of dependency
generation). When the compiler is invoked, at the $SHELL line in the below
excerpt...
----(begin config/depstand.m4 excerpt)----
depcmd="depmode=$depmode \
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
echo "| $depcmd" | sed -e 's/ */ /g' >&AS_MESSAGE_LOG_FD
if env $depcmd > conftest.err 2>&1 &&
----(end config/depstand.m4 excerpt)----
...no compiler flags are passed to it.
You'll have to work around this in order to make use of the wrapper script, but
would this be worth a new bug report? You could imagine a case where the
compiler does something stupid here (strict K&R mode?) if it doesn't get a
certain flag.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28515