• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修訂73a229c755847ada2425c767ce15c40cc5801b6b (tree)
時間2016-06-06 05:21:33
作者Trevor Saunders <tbsaunde+binutils@tbsa...>
CommiterTrevor Saunders

Log Message

nds32: constify ptr_arg

it points to the result of strchr on a const char *, so it aliases
something that is const. Further its only passed to a function that expects a
const char *, so there's no reason for it to not be const.

gas/ChangeLog:

2016-06-05 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>

* config/tc-nds32.c (nds32_parse_option): Make the type of ptr_arg
const char *.

Change Summary

差異

--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
1+2016-06-05 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2+
3+ * config/tc-nds32.c (nds32_parse_option): Make the type of ptr_arg
4+ const char *.
5+
16 2016-06-03 Peter Bergner <bergner@vnet.ibm.com>
27
38 PR binutils/20196
--- a/gas/config/tc-nds32.c
+++ b/gas/config/tc-nds32.c
@@ -3193,7 +3193,7 @@ nds32_parse_option (int c, const char *arg)
31933193 {
31943194 struct nds32_parse_option_table *coarse_tune;
31953195 struct nds32_set_option_table *fine_tune;
3196- char *ptr_arg = NULL;
3196+ const char *ptr_arg = NULL;
31973197
31983198 switch (c)
31993199 {