Alan Modra
2018-10-28 05:43:23 UTC
Local symbols don't have a sy_frag field.
PR 23837
* config/tc-hppa.c: Don't include struc-symbol.h.
(pa_build_unwind_subspace): Call get_symbol_frag rather than
referencing sy_frag.
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index ccae68cb40..7ced5ee5d5 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -23,7 +23,6 @@
#include "as.h"
#include "safe-ctype.h"
-#include "struc-symbol.h"
#include "subsegs.h"
#include "dw2gencfi.h"
@@ -5991,7 +5990,7 @@ pa_build_unwind_subspace (struct call_info *call_info)
{
symbolP = symbol_new (name, now_seg,
S_GET_VALUE (call_info->start_symbol),
- call_info->start_symbol->sy_frag);
+ symbol_get_frag (call_info->start_symbol));
gas_assert (symbolP);
S_CLEAR_EXTERNAL (symbolP);
symbol_table_insert (symbolP);
PR 23837
* config/tc-hppa.c: Don't include struc-symbol.h.
(pa_build_unwind_subspace): Call get_symbol_frag rather than
referencing sy_frag.
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index ccae68cb40..7ced5ee5d5 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -23,7 +23,6 @@
#include "as.h"
#include "safe-ctype.h"
-#include "struc-symbol.h"
#include "subsegs.h"
#include "dw2gencfi.h"
@@ -5991,7 +5990,7 @@ pa_build_unwind_subspace (struct call_info *call_info)
{
symbolP = symbol_new (name, now_seg,
S_GET_VALUE (call_info->start_symbol),
- call_info->start_symbol->sy_frag);
+ symbol_get_frag (call_info->start_symbol));
gas_assert (symbolP);
S_CLEAR_EXTERNAL (symbolP);
symbol_table_insert (symbolP);
--
Alan Modra
Australia Development Lab, IBM
Alan Modra
Australia Development Lab, IBM