From: Ian Lance Taylor <iant@google.com>
To: "Abhijit Nandy" <abhijit.nandy@gmail.com>
Cc: "gcc" <gcc-help@gcc.gnu.org>
Subject: Re: How to insert external global variable declarations and pointer assignment statements through GCC plugin GIMPLE pass
Date: Tue, 31 May 2011 19:40:00 -0000 [thread overview]
Message-ID: <mcrr57fq6my.fsf@coign.corp.google.com> (raw)
In-Reply-To: <E3044324D6DE4D22AAD744F98CFCBE17@abhiPC> (Abhijit Nandy's message of "Tue, 31 May 2011 14:21:48 +0200")
"Abhijit Nandy" <abhijit.nandy@gmail.com> writes:
> Thanks for the pointers. I have been trying to make a simple VAR_DECL
> using the following call :
>
> tree type_node = make_node(POINTER_TYPE);
> //TYPE_NAME(type_node) = type_id;
> tree var_decl = build0(VAR_DECL, type_node);
Use build_decl.
> testcode.c:33:1: internal compiler error: Segmentation fault
When you get a segmentation fault, your first step should be to use the
debugger to find out what went wrong. That will normally point you in
the right direction.
Ian
next prev parent reply other threads:[~2011-05-31 14:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-25 0:41 Abhijit Nandy
2011-05-25 8:20 ` Ian Lance Taylor
2011-05-31 12:47 ` Abhijit Nandy
2011-05-31 19:40 ` Ian Lance Taylor [this message]
2011-06-14 17:29 ` Abhijit Nandy
2011-06-14 17:39 ` Ian Lance Taylor
2011-06-14 18:36 ` Abhijit Nandy
2011-06-14 20:03 ` Ian Lance Taylor
2011-06-15 7:25 ` Abhijit Nandy
2011-06-15 9:14 ` Ian Lance Taylor
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=mcrr57fq6my.fsf@coign.corp.google.com \
--to=iant@google.com \
--cc=abhijit.nandy@gmail.com \
--cc=gcc-help@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).