Follow-up Comment #4, bug #19050 (project avr-libc):
In atmega256 is solved one more general issue.
As Bjorn Haase wrote:
Two other general issues are fixed with gcc part of the present patch
family:
1.) citing from the gcc info pages:
`-fdelete-null-pointer-checks'
Use global dataflow analysis to identify and eliminate useless
checks for null pointers. The compiler assumes that dereferencing
a null pointer would have halted the program. If a pointer is
checked after it has already been dereferenced, it cannot be null.
In some environments, this assumption is not true, and programs can
safely dereference null pointers. Use
`-fno-delete-null-pointer-checks' to disable this optimization for
programs which depend on that behavior.
The AVR HW does not implement null-pointer-checks and this option now is
allways used for the avr target.
2.) make main a normal function
.....
I split "mega256-wo-main-as-normal.diff" patch in "mega256.diff" and
"null-pointer-checks.diff".
(file #11992, file #11993)
_______________________________________________________
Additional Item Attachment:
File name: mega256.diff Size:11 KB
File name: null-pointer-checks.diff Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?19050>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev