Creating parameters for functions calls

Daniel Berlin dberlin@dberlin.org
Fri Mar 30 12:59:00 GMT 2007


On 3/30/07, Antoine Eiche <antoine.eiche@ulp.u-strasbg.fr> wrote:
> Daniel Berlin wrote:
> > On 3/27/07, Antoine Eiche <antoine.eiche@ulp.u-strasbg.fr> wrote:
> >> Dear all,
> >>
> >> I want to insert functions calls during a new pass.
> >
> > Which version of GCC?
> > The problem is to
> >> create parameters. At this time, I  successfully create a function call
> >> with two constante as parameter and insert it (I can see that in the
> >> asm's code). But, I want to give the address of an array and a constante
> >> to this function.
> >> I think the problem is the creation of the node which contains the
> >> address of the array.
> >>
> >> For example:
> >> I get from the code (in tree "rhs"):
> >> a[i]
> >> I want build a node like that:
> >> &a[i]
> >> and build a function call like that:
> >> foo(constante,&a[i])
> >>
> >> This is the error message when a try to compile a program with my pass :
> >>
> >> tab.c: In function 'main':
> >> tab.c:7: erreur interne du compilateur: dans lookup_subvars_for_var, à
> >> tree-flow-inline.h:1629
> >>
> > Can you send a backtrace?
> >
> > This means nothing has created the variable annotation for a.
> Hi,
>
> My version of gcc:
>
> version gcc 4.3.0 20070316 (experimental)
>
> I try to do a backtrace with gcc but the program exit normally. So, I
> try to put a breakpoint but :

Are you debugging gcc or cc1?
you need to be debugging cc1

(use -v with your compiled gcc to get the cc1 command line it uses,
and just run "gdb --args <cc1 command line it is using>"

>
> (gdb) b tree-flow-inline.h:1629
> No source file named tree-flow-inline.h.
> Make breakpoint pending on future shared library load? (y or [n]) y
> Breakpoint 1 (tree-flow-inline.h:1629) pending.
>

> I'm sorry but I can't show you a backtrace. (I do compilation with
> option "-g")
> How I can put a breakpoint ?
>
>



More information about the Gcc mailing list