This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
nosys _exit.c
- From: "Florian La Roche" <F dot LaRoche at pilz dot de>
- To: newlib at sourceware dot org
- Date: Mon, 1 Apr 2019 16:06:05 +0200
- Subject: nosys _exit.c
- Ironport-sdr: rwYmlKKAoSlipqZ7bPmULeUctrBxnsWKXO8Yaa2eyz77uUBNZ8QggTz8CDbGp0OOmNxrfxtQUT rZMtmYh8k4ITsoPFJKRsjcHhQPgjn0jPv+AX7u8q8WVaUesWCYReKEDWNm4OZMb3/2euCqa9VE VWqCIDZHEOsDPyaVI4jCAoRkfpfg3xs3HyDuQAjyDpr/G72kkHu0U62vxvdaNuARb5UJA7mscN tmiralmPjhaxWaEL50F8cd1Y/1DTZZo8HMR5WnfGDTDWgrCQwIQW0Tw46eoRVMS9lOrhAryCsy 7fE=
Hello,
in libgloss/libnosys/_exit.c the comments say that a "divide by 0
exception" is tried. gcc optimizes this
away with -O1 and -O2, so the code could also be removed competely, then
only the endless loop
remains for _exit().
best regards,
Florian La Roche
Geschäftsführung: Susanne Kunschert, Thomas Pilz
Pilz GmbH & Co. KG, Sitz: Ostfildern, HRA 210 893, Amtsgericht Stuttgart
Kompl. Ges. Peter Pilz GmbH, Sitz: Ostfildern, HRB 210 612, Amtsgericht Stuttgart
Umsatzsteuer: ID-Nr. DE 145 355 773, WEEE-Reg.-Nr. DE 71636849
This email is intended solely for the use of the named address(es). Any unauthorised disclosure, copying or distribution of these confidential information contained therein, or the taking of any action based on it, is prohibited. The sender disclaims any liability for the integrity of this email. Legally binding declarations must be in written form.
Umweltschutz liegt uns am Herzen! - Bitte denken Sie an unsere Umwelt, bevor Sie diese E-Mail drucken.
We do care about the environment! - Please consider the environment before printing this e-mail.