Mercurial > hg > CbC > CbC_gcc
comparison gcc/ipa-ref.c @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | b7f97abdc517 |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
195 ipa_ref_use_name [ref->use]); | 195 ipa_ref_use_name [ref->use]); |
196 } | 196 } |
197 fprintf (file, "\n"); | 197 fprintf (file, "\n"); |
198 } | 198 } |
199 | 199 |
200 /* Clone all references from SRC to DEST_NODE or DEST_VARPOL_NODE. */ | 200 /* Clone all references from SRC to DEST_NODE or DEST_VARPOOL_NODE. */ |
201 | 201 |
202 void | 202 void |
203 ipa_clone_references (struct cgraph_node *dest_node, | 203 ipa_clone_references (struct cgraph_node *dest_node, |
204 struct varpool_node *dest_varpool_node, | 204 struct varpool_node *dest_varpool_node, |
205 struct ipa_ref_list *src) | 205 struct ipa_ref_list *src) |
213 ref->refered_type == IPA_REF_VARPOOL | 213 ref->refered_type == IPA_REF_VARPOOL |
214 ? ipa_ref_varpool_node (ref) : NULL, | 214 ? ipa_ref_varpool_node (ref) : NULL, |
215 ref->use, ref->stmt); | 215 ref->use, ref->stmt); |
216 } | 216 } |
217 | 217 |
218 /* Clone all refering from SRC to DEST_NODE or DEST_VARPOL_NODE. */ | 218 /* Clone all refering from SRC to DEST_NODE or DEST_VARPOOL_NODE. */ |
219 | 219 |
220 void | 220 void |
221 ipa_clone_refering (struct cgraph_node *dest_node, | 221 ipa_clone_refering (struct cgraph_node *dest_node, |
222 struct varpool_node *dest_varpool_node, | 222 struct varpool_node *dest_varpool_node, |
223 struct ipa_ref_list *src) | 223 struct ipa_ref_list *src) |
231 ref->refering_type == IPA_REF_VARPOOL | 231 ref->refering_type == IPA_REF_VARPOOL |
232 ? ipa_ref_refering_varpool_node (ref) : NULL, | 232 ? ipa_ref_refering_varpool_node (ref) : NULL, |
233 dest_node, dest_varpool_node, | 233 dest_node, dest_varpool_node, |
234 ref->use, ref->stmt); | 234 ref->use, ref->stmt); |
235 } | 235 } |
236 | |
237 /* Return true when execution of REF can load to return from | |
238 function. */ | |
239 bool | |
240 ipa_ref_cannot_lead_to_return (struct ipa_ref *ref) | |
241 { | |
242 return cgraph_node_cannot_return (ipa_ref_refering_node (ref)); | |
243 } |