public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: drizzle drizzle <drizzle76@gmail.com>
To: gcc@gcc.gnu.org
Subject: Insertng a call function
Date: Thu, 28 Jul 2005 17:15:00 -0000	[thread overview]
Message-ID: <7326d8e4050728101594b67c1@mail.gmail.com> (raw)

Hi 

      I am inserting a call stmt  in linear_transform_loops. Al though
the call statement gets inserted  , the compilation breaks. Can some
one help me identify if I am missing some information  in the call
node that I create  (thanks Daniel  for all the help until now)



here is the set of statements I have used


		     tree id = get_identifier ("foo");
		     tree t = build_function_type_list (void_type_node,NULL_TREE);
		     tree decl = build_decl (FUNCTION_DECL, id, t);
		     tree call = build_function_call_expr (decl, NULL);
		     bsi_insert_before(&bsi,call,BSI_NEW_STMT);


...Here are the tree dumps of the statement which gets inserted 

dump of debug_tree()

<call_expr 0x401d1478
    type <void_type 0x40165460 void VOID
        align 8 symtab 0 alias set -1
        pointer_to_this <pointer_type 0x401654d0>>
    side-effects
    arg 0 <addr_expr 0x401d2a78
        type <pointer_type 0x401d5000 type <function_type 0x40167460>
            unsigned SI
            size <integer_cst 0x40154428 constant invariant 32>
            unit size <integer_cst 0x40154150 constant invariant 4>
            align 32 symtab 0 alias set -1>
        constant invariant
        arg 0 <function_decl 0x401cdbd0 foo type <function_type 0x40167460>
            SI file main.c line 15>>>
 
#   a_matrixD.1045 = V_MAY_DEF <a_matrixD.1045>;
dump of  debug_generic_stmt(). 
foo ();

 


But this breaks with the follwoing path 

walk_dominator_tree->optimize_stmt->register_definitions_for_stmt->register_new_def
->get_phi_state (var)->var_ann (var)->assert(t)

I will really appreciate any solutions or ideas or debugging tips.
thanks

             reply	other threads:[~2005-07-28 17:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-28 17:15 drizzle drizzle [this message]
2005-07-28 18:16 ` Diego Novillo
2005-07-28 21:02   ` drizzle drizzle
2005-07-29 14:28     ` drizzle drizzle
2005-07-29 14:52       ` Diego Novillo
2005-07-29 15:06         ` drizzle drizzle
2005-07-29 15:21           ` Diego Novillo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7326d8e4050728101594b67c1@mail.gmail.com \
    --to=drizzle76@gmail.com \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).