avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] avr-gcc (GCC) 3.4.5 Bug: copying structure through po


From: Eric Weddington
Subject: Re: [avr-gcc-list] avr-gcc (GCC) 3.4.5 Bug: copying structure through pointer will destroy the pointer
Date: Wed, 01 Mar 2006 11:43:54 -0700
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Joerg Wunsch wrote:
"Dmitry K." <address@hidden> wrote:


Here's the smallest reproducible test case:


Avr-gcc 3.3.5 is correct:


By trial & error, I narrowed it down to be a change between GCC 3.4.3
and GCC 3.4.4.  After reviewing the ChangeLog, the following caught my
attention:

2005-03-19  Andy Hutchinson  <address@hidden>

       PR target/18251
       * config/avr/avr.md (movstrhi): Rewrite as RTL loop.
       (*movstrqi_insn): Delete.
       (*movstrhi): Delete.

It corresponds to the following SVN log entry:

Revision 96732 - (view) (download) - [select for diffs]
Modified Sat Mar 19 15:45:41 2005 UTC (11 months, 1 week ago) by marekm
File length: 79688 byte(s)
Diff to previous 96394 (colored)

        PR target/18251
        * config/avr/avr.md (movstrhi): Rewrite as RTL loop.
        (*movstrqi_insn): Delete.
        (*movstrhi): Delete.

I'm attaching the diff that caused it.  If I unpatch a GCC 3.4.4
(using patch -p2 -R < avr.md.patch -- remember you have to revert the
original change, thus the -R), it generates the correct code again.

Please be sure to put this in the bug report, which should be IIRC:
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26118>

Also, it wouldn't hurt to also notify Denis Chertykov too.

Thanks
Eric




reply via email to

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