From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3601 invoked by alias); 27 May 2011 14:22:55 -0000 Received: (qmail 3589 invoked by uid 22791); 27 May 2011 14:22:54 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,TW_VR X-Spam-Check-By: sourceware.org Received: from mo-p00-ob.rzone.de (HELO mo-p00-ob.rzone.de) (81.169.146.160) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 May 2011 14:22:38 +0000 X-RZG-AUTH: :LXoWVUeid/7A29J/hMvvT2k715jHQaJercGObUOFkj18odoYNahU4Q== X-RZG-CLASS-ID: mo00 Received: from [192.168.0.22] (business-188-111-022-002.static.arcor-ip.net [188.111.22.2]) by post.strato.de (cohen mo33) (RZmta 25.18) with ESMTPA id c03fbbn4RD937Y ; Fri, 27 May 2011 16:22:20 +0200 (MEST) Message-ID: <4DDFB39C.8030802@gjlay.de> Date: Fri, 27 May 2011 16:41:00 -0000 From: Georg-Johann Lay User-Agent: Thunderbird 2.0.0.24 (X11/20100302) MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org CC: "Weddington, Eric" , Denis Chertykov , Anatoly Sokolov Subject: [Patch, 4.6, AVR]: Fix PR45263 References: <4D96175D.8080203@gjlay.de> <4D964B36.3050008@gjlay.de> <8D64F155F1C88743BFDC71288E8E2DA801268051@csomb01.corp.atmel.com> <4D99CF65.3090002@gjlay.de> <4D9C6ADB.4060504@gjlay.de> <4DA33207.9040207@gjlay.de> In-Reply-To: <4DA33207.9040207@gjlay.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg02175.txt.bz2 Georg-Johann Lay schrieb: > Georg-Johann Lay schrieb: >> Georg-Johann Lay schrieb: >>> Weddington, Eric schrieb: >>>>> -----Original Message----- >>>>> From: Georg-Johann Lay [mailto:avr@gjlay.de] >>>>> Sent: Friday, April 01, 2011 4:01 PM >>>>> To: Georg-Johann Lay >>>>> Cc: gcc-patches@gcc.gnu.org; Denis Chertykov; Anatoly Sokolov; Weddington, >>>>> Eric >>>>> Subject: Re: [Patch,AVR]: Fix PR45263 >>>>> >>>>> This is a better fix that does not need push/pop and does not increase >>>>> numer of instructions. >>>>> >>>>> r16 takes the role of r20, and the value formerly in r16, >>>>> i.e. hh8(__dtors_end resp. __ctors_start) is recreated as needed. >>>>> >>>> Hi Johann, >>>> >>>> Have you tested this patch against the test case in bug #45263? >> Tested patch v2 from 2010-04-02 now for atmega2560 on avrtest >> simulator. In main, var1 and var2 are initialized as expected and >> anObject.getVal() is 30. >> >> Without patch the program hangs. > > > 2011-04-11 Georg-Johann Lay > > PR target/45263 > * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): > Don't use > r20 around calls of __tablejump_elpm__ http://gcc.gnu.org/ml/gcc-patches/2011-04/msg00774.html This patch applies similar to 4.6. Ok to install? Johann