avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #19050] gcrt1.S should call main rather than jumping


From: Anatoly Sokolov
Subject: [avr-libc-dev] [bug #19050] gcrt1.S should call main rather than jumping to it
Date: Sat, 17 Feb 2007 11:34:26 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]