2 msgNeed some help on the options of g++
4 msgAdding marker (.dot) instructions at procedure ...
2 msggcc_assert()

insn_condition table
\ Bharati Bhole (30 Oct 2006)
. \ Ian Lance Taylor (30 Oct 2006)
. . \ Bharati Bhole (31 Oct 2006)
. . . \ Ian Lance Taylor (31 Oct 2006)

1 msggfortran case sensitive
2 msgIssue group
3 msgC++ error: cannot convert 'unsigned int A::*' t...
2 msgFwd: How to deliver my source code???
3 msgcast_stream not declared error
3 msgSyntax Problem
3 msggcc 1.95.3 on solaris 9
2 msgIncluding static libraries
2 msgSeveral GCC Versions
1 msgProblem with gcc-4.0.0
19 msgValgrind - exact leak location.
2 msgcannot link an .o file
3 msgSelect instruction support in GCC
1 msgRe: Problems shifting an int 32 times. Gcc 3.4.5
2 msgg++ compile problem using inttypes.h
2 msgnamespaces composition and selection
Subject:Re: insn_condition table
Group:Gcc-help
From:Ian Lance Taylor
Date:31 Oct 2006


"Bharati Bhole" <bharati.bhole> writes:

> There is no build/gencondmd.c. there is insn-conditions.c though.

Sorry, you're right, that is how it used to work. That's not how it
works now.

> And insn-conditions.c is genrated by genconditions and its .o file is
> liked with genrecog.
> The problem is that, genconditions.c contains main() and genrecog.c
> also contains main() (and there is extern declaration main() in
> genrecog.c) so when the files are linked which main() is called 1st.

If two objects file define the same symbol, you can't link them
together. So it is safe to conclude that genconditions.o and
genrecog.o are not linked together. What happens is that
genconditions.o is linked into genconditions, which generates
insn-conditions.c, which is compiled into insn-conditions.o. And
insn-conditions.o is linked with genrecog.o to produce genrecog (and
insn-conditions.o is also linked into other gen* programs).

> And what macro IN_GCC does?

It indicates whether the file is being compiled in gcc tiself or in a
helper program such as genrecog.

> Please tell me the starting point of the exe file genrecog.

It starts at main, of course.

Ian


© 2004-2008 readlist.com