summaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-15 14:27:18 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-15 14:27:18 +0000
commit0b35068ba02d1aac44545c603f9e6b3d87359f97 (patch)
tree675c658fb5a68a4856057fc5a1a9a8a4ba5b3a12 /gcc/except.c
parentecd88073a29b0558281cb330f48da026040b9a84 (diff)
downloadgcc-0b35068ba02d1aac44545c603f9e6b3d87359f97.tar.gz
* except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
* tree-eh.c (lower_try_finally_switch): Initialize tf_loc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148493 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/except.c b/gcc/except.c
index 8ec252bbab3..0e207d53509 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -221,12 +221,12 @@ init_eh (void)
sjlj_fc_type_node = lang_hooks.types.make_type (RECORD_TYPE);
- f_prev = build_decl (DECL_SOURCE_LOCATION (current_function_decl),
+ f_prev = build_decl (BUILTINS_LOCATION,
FIELD_DECL, get_identifier ("__prev"),
build_pointer_type (sjlj_fc_type_node));
DECL_FIELD_CONTEXT (f_prev) = sjlj_fc_type_node;
- f_cs = build_decl (DECL_SOURCE_LOCATION (current_function_decl),
+ f_cs = build_decl (BUILTINS_LOCATION,
FIELD_DECL, get_identifier ("__call_site"),
integer_type_node);
DECL_FIELD_CONTEXT (f_cs) = sjlj_fc_type_node;
@@ -235,16 +235,16 @@ init_eh (void)
tmp = build_array_type (lang_hooks.types.type_for_mode
(targetm.unwind_word_mode (), 1),
tmp);
- f_data = build_decl (DECL_SOURCE_LOCATION (current_function_decl),
+ f_data = build_decl (BUILTINS_LOCATION,
FIELD_DECL, get_identifier ("__data"), tmp);
DECL_FIELD_CONTEXT (f_data) = sjlj_fc_type_node;
- f_per = build_decl (DECL_SOURCE_LOCATION (current_function_decl),
+ f_per = build_decl (BUILTINS_LOCATION,
FIELD_DECL, get_identifier ("__personality"),
ptr_type_node);
DECL_FIELD_CONTEXT (f_per) = sjlj_fc_type_node;
- f_lsda = build_decl (DECL_SOURCE_LOCATION (current_function_decl),
+ f_lsda = build_decl (BUILTINS_LOCATION,
FIELD_DECL, get_identifier ("__lsda"),
ptr_type_node);
DECL_FIELD_CONTEXT (f_lsda) = sjlj_fc_type_node;
@@ -265,7 +265,7 @@ init_eh (void)
#endif
tmp = build_index_type (tmp);
tmp = build_array_type (ptr_type_node, tmp);
- f_jbuf = build_decl (DECL_SOURCE_LOCATION (current_function_decl),
+ f_jbuf = build_decl (BUILTINS_LOCATION,
FIELD_DECL, get_identifier ("__jbuf"), tmp);
#ifdef DONT_USE_BUILTIN_SETJMP
/* We don't know what the alignment requirements of the