[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [patch #7467] Add support for c++ new and delete operator
From: |
Bradley Jarvis |
Subject: |
[avr-libc-dev] [patch #7467] Add support for c++ new and delete operators |
Date: |
Thu, 17 Feb 2011 04:06:48 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20110111 Gentoo Firefox/3.6.13 |
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-dev] [patch #7467] Add support for c++ new and delete operators,
Bradley Jarvis <=