Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/gas/config The arm .arm.atpcs se...



details:   https://anonhg.NetBSD.org/src/rev/ac4a0ab778d0
branches:  trunk
changeset: 770043:ac4a0ab778d0
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 01 19:25:24 2011 +0000

description:
The arm .arm.atpcs section does not have segment information, so skip it.

diffstat:

 external/gpl3/binutils/dist/gas/config/tc-arm.c |  16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diffs (26 lines):

diff -r 91fb088ca86c -r ac4a0ab778d0 external/gpl3/binutils/dist/gas/config/tc-arm.c
--- a/external/gpl3/binutils/dist/gas/config/tc-arm.c   Sat Oct 01 18:38:39 2011 +0000
+++ b/external/gpl3/binutils/dist/gas/config/tc-arm.c   Sat Oct 01 19:25:24 2011 +0000
@@ -16133,12 +16133,16 @@
   asection *sect;
 
   for (sect = stdoutput->sections; sect != NULL; sect = sect->next)
-    if (seg_info (sect)->tc_segment_info_data.current_it.state
-       == MANUAL_IT_BLOCK)
-      {
-       as_warn (_("section '%s' finished with an open IT block."),
-                sect->name);
-      }
+    {
+      segment_info_type *seginfo = seg_info (sect);
+
+      if (seginfo && seginfo->tc_segment_info_data.current_it.state
+         == MANUAL_IT_BLOCK)
+        {
+         as_warn (_("section '%s' finished with an open IT block."),
+                  sect->name);
+        }
+    }
 #else
   if (now_it.state == MANUAL_IT_BLOCK)
     as_warn (_("file finished with an open IT block."));



Home | Main Index | Thread Index | Old Index