URL:
  <http://savannah.nongnu.org/patch/?7467>

                 Summary: Add support for c++ new and delete operators
                 Project: AVR C Runtime Library
            Submitted by: bradley_jarvis
            Submitted on: Thu 17 Feb 2011 04:06:48 AM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Patch adds support to avr-libc for the c++ operators new and delete.

This patch wraps the malloc and free c functions in the new and delete
operators, and as such does not support exceptions as the standard c++ new and
delete do.

The patch adds c++ compilation support to configure.ac so that the file new.cc
is compiled into the library. new.cc is added to stdlib. devtools files
Device.am and Architecture.am are updated to fix AM_CXXFLAGS to include -mmcu
and other AVR specific compile options.

This patch includes updating the faq documentation c++ support section to
update the information about new and delete.

Tested on avr-libc from svn 2217 on system with avr c++ support

Todo: test compiling avr-libc on system without avr c++ support. It should
simply not compile and add new.cc to libc



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 17 Feb 2011 04:06:48 AM GMT  Name: stdlib_new_delete.patch  Size:
6kB   By: bradley_jarvis
Add support for c++ operators new and delete (wraps malloc and free)
<http://savannah.nongnu.org/patch/download.php?file_id=22707>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7467>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to