[KAZAN] has quit [Quit: Caressing your head while touching my head with my other hand's fingers.]
[KAZAN] has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
Putti has quit [Ping timeout: 256 seconds]
AneoX has quit [Ping timeout: 260 seconds]
AneoX has joined #linux-sunxi
diego_r has joined #linux-sunxi
suprothunderbolt has quit [Ping timeout: 246 seconds]
Mangy_Dog has joined #linux-sunxi
macc24 has joined #linux-sunxi
pg12 has quit [Ping timeout: 260 seconds]
pg12 has joined #linux-sunxi
<corecode>
i wonder what this jtag_sel stuff is
lurchi__ is now known as lurchi_
jbrown has quit [Ping timeout: 265 seconds]
jbrown has joined #linux-sunxi
gediz539 has quit [Remote host closed the connection]
gediz539 has joined #linux-sunxi
indy has joined #linux-sunxi
kaspter has quit [Ping timeout: 240 seconds]
kaspter has joined #linux-sunxi
<megi>
heh, gcc 9.3 -flto will happily optimize away volatile pointer access in a tight loop like while(!TX_READY); and treat the whole putc() function as containing while(1);
<megi>
as long as the function is not named 'putc'
<megi>
wth? :)
<KotCzarny>
maybe your functions are overshadowed?
<mru>
you're probably using volatile wrong
<corecode>
how would it optimize away volatile accesses
<mru>
where's the actual code?
<megi>
just chaging the code from real_putc() to putc(c) { real_putc(c); } fixes it
<mru>
can you show us the code?
<megi>
I will, give me a sec
<megi>
but it's a readl from u-boot, so I doubt it's using volatile wrog
<mru>
gcc does have magic in it for standard function names
<corecode>
now i can start with the schematic soon
<kevans91>
h
<mru>
i
indy has quit [Ping timeout: 240 seconds]
<megi>
it was a case of pebkac :)
<mru>
do tell
indy has joined #linux-sunxi
<megi>
I was trying to rename my standard printf implementation's functions so that I can silence and optimize out all the strings from my bootloader binary except for the ones where I specifically call real_printf/real_puts, etc. (I defined putc,puts, etc. to expand to nothing in the header)
<megi>
of course I let real_prtinf to still call putc() instead of real_putc() so it expanded to nothing and real_printf did nothing
<mru>
oh, that kind of mixup
<megi>
+ some other macro mess
indy has quit [Read error: Connection reset by peer]
dddddd has joined #linux-sunxi
indy has joined #linux-sunxi
diego_r has quit [Ping timeout: 264 seconds]
diego_r has joined #linux-sunxi
gaston1980 has joined #linux-sunxi
cnxsoft has quit [Remote host closed the connection]