dc hitting a compiler bug, or undefined behavior

Lauri Kasanen curaga at operamail.com
Sun Mar 30 18:42:47 UTC 2014


On Sun, Mar 30, 2014, at 18:26, Ralf Friedl wrote:
> > What's even worse is that adding any output to push(), even a puts("hi")
> > that does not print the argument or any of the stack vars, fixes it. So
> > something magic is going on inside the GCC optimization, I'm afraid this
> > is above my pay grade.
>
> Could you send the file miscutils/dc.o that is created with and without 
> this puts("hi") in push()?

Attached.

- Lauri

-- 
http://www.fastmail.fm - Email service worth paying for. Try it for free

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fail-dc.o.gz
Type: application/x-gzip
Size: 7380 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20140330/0d6dac30/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: success-dc.o.gz
Type: application/x-gzip
Size: 7445 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20140330/0d6dac30/attachment-0003.bin>


More information about the busybox mailing list