<sevan>
I have added it as a comment on the review but haven't commited it in case this was even more wrong. Tested with GCC 4.0 & 5.5
<karlp>
as far as I can tell, gcc added support for 0b literalls in 4.3.
<karlp>
they've been non-portable ~forever though really.
<karlp>
I guess the armv8 code all came in well after binary literals were commonly available,
<sevan>
this cuts down a day+ to compile a new compiler when you have 4.0 out of the box :)
<karlp>
same with xcf, that only landed in 2016, so no-one notice.d
<karlp>
yeah, I'm all for replacing the binary with hex literals, no objections,
<sevan>
thanks
<sevan>
karlp: the patch I posted up partially converts target/armv8_opcodes.h to hex, for the sake of completeness everything should be replaced in that file?
<karlp>
I'm not pushing this in any direction, nor can I merge it :) but a repo wide replacement of binary literals to hex would be a sane "portability fix" for me and I'llgive it a +1 :)
<Haohmaru>
what's wrong with 0bXXXX ?
<karlp>
it's a gcc extension until C23, so not all compilers support it.
<karlp>
though, in recent years, more of them ahve than haven't, unless you're retroputing...
<Haohmaru>
museumputing
<Haohmaru>
well, gcc ftw anyway
<sevan>
Haohmaru: not GCC 4.0 though :)
<Haohmaru>
gcc 4 was still nicer than $whatever the others had
vfazio has joined #openocd
dliviu has quit [Quit: Going away]
dliviu has joined #openocd
rkta has quit [Remote host closed the connection]
damex has quit [Read error: Connection reset by peer]
damex has joined #openocd
<sevan>
pushed the current patch to review. Will look to finish off converting src/target/armv8_opcodes.h if there are no issues.
damex has quit [Read error: Connection reset by peer]