This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, ARM] Handle non-core registers in GAS' CFI statement parser


Hi Thomas,

gas/
2010-03-26  Thomas Schwinge<thomas@codesourcery.com>

	* config/tc-arm.c (tc_arm_regname_to_dw2regnum): Re-implement in order
	to also handle non-core registers.

Approved - but please could you also create a test case to check this new behaviour please.


-  if (reg == FAIL)
+  if (!reg)
      return -1;

This is just my opinion here but I would suggest testing "if (reg == NULL)" here since I think that it makes it clearer that reg is a pointer not an integer.


Cheers
  Nick




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]