Bug 10801 - Trivial build failure in gas, tc-arm.c
Summary: Trivial build failure in gas, tc-arm.c
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.20
: P2 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-18 03:43 UTC by Zygmunt Krynicki
Modified: 2009-10-18 08:22 UTC (History)
1 user (show)

See Also:
Host: i486-linux-gnu
Target: arm-none-eabi
Build: i486-linux-gnu
Last reconfirmed:


Attachments
Fix for this issue (250 bytes, patch)
2009-10-18 03:44 UTC, Zygmunt Krynicki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zygmunt Krynicki 2009-10-18 03:43:48 UTC
Binutils fails to build for arm-none-eabi due to gcc warning and -Werror.

diff -Naur binutils-2.20.orig/gas/config/tc-arm.c binutils-2.20/gas/config/tc-arm.c
--- binutils-2.20.orig/gas/config/tc-arm.c	2009-08-30 07:10:59.000000000 +0900
+++ binutils-2.20/gas/config/tc-arm.c	2009-10-18 12:30:59.711116684 +0900
@@ -2486,7 +2486,9 @@
       frag->tc_frag_data.first_map = symbolP;
     }
   if (frag->tc_frag_data.last_map != NULL)
-    know (S_GET_VALUE (frag->tc_frag_data.last_map) < S_GET_VALUE (symbolP));
+    {
+      know (S_GET_VALUE (frag->tc_frag_data.last_map) < S_GET_VALUE (symbolP));
+    }
   frag->tc_frag_data.last_map = symbolP;
 }
Comment 1 Zygmunt Krynicki 2009-10-18 03:44:40 UTC
Created attachment 4299 [details]
Fix for this issue
Comment 2 Alan Modra 2009-10-18 08:22:31 UTC
Patch applied.