From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7908 invoked by alias); 1 Dec 2011 13:23:35 -0000 Received: (qmail 7899 invoked by uid 22791); 1 Dec 2011 13:23:33 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 01 Dec 2011 13:23:19 +0000 From: "andyw at pobox dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/51374] [avr] insn combine reorders volatile memory accesses Date: Thu, 01 Dec 2011 13:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: major X-Bugzilla-Who: andyw at pobox dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.3 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-12/txt/msg00054.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51374 --- Comment #4 from andyw at pobox dot com 2011-12-01 13:22:44 UTC --- Compiler command line & -v output showing configure options (thought I had pasted this in the initial report - apparently not.) Do not know what happened to the attachment, the box said text/plain... $ avr-gcc -mmcu=atmega128 -Wall -O2 -g -c -save-temps -v test.c Using built-in specs. COLLECT_GCC=avr-gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/avr/4.6.2/lto-wrapper Target: avr Configured with: ../configure --target=avr --enable-languages=c,c++ --disable-nls --disable-libssp --with-dwarf2 : (reconfigured) ../configure --target=avr --enable-languages=c,c++ --disable-nls --disable-libssp --with-dwarf2 --with-gmp=/usr/local --with-mpc=/usr/local --with-mpfr=/usr/local Thread model: single gcc version 4.6.2 (GCC) COLLECT_GCC_OPTIONS='-mmcu=atmega128' '-Wall' '-O2' '-g' '-c' '-save-temps' '-v' /usr/local/libexec/gcc/avr/4.6.2/cc1 -E -quiet -v -imultilib avr51 test.c -mmcu=atmega128 -Wall -g -fworking-directory -O2 -fpch-preprocess -o test.i ignoring nonexistent directory "/usr/local/lib/gcc/avr/4.6.2/../../../../avr/sys-include" #include "..." search starts here: #include <...> search starts here: /usr/local/lib/gcc/avr/4.6.2/include /usr/local/lib/gcc/avr/4.6.2/include-fixed /usr/local/lib/gcc/avr/4.6.2/../../../../avr/include End of search list. COLLECT_GCC_OPTIONS='-mmcu=atmega128' '-Wall' '-O2' '-g' '-c' '-save-temps' '-v' /usr/local/libexec/gcc/avr/4.6.2/cc1 -fpreprocessed test.i -quiet -dumpbase test.c -mmcu=atmega128 -auxbase test -g -O2 -Wall -version -o test.s GNU C (GCC) version 4.6.2 (avr) compiled by GNU C version 4.1.2 20070925 (Red Hat 4.1.2-33), GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU C (GCC) version 4.6.2 (avr) compiled by GNU C version 4.1.2 20070925 (Red Hat 4.1.2-33), GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 8445704570d64b6b795b8847e7060bc6 test.c: In function '__vector_18': test.c:10:16: warning: unused variable 'data' [-Wunused-variable] COLLECT_GCC_OPTIONS='-mmcu=atmega128' '-Wall' '-O2' '-g' '-c' '-save-temps' '-v' /usr/local/lib/gcc/avr/4.6.2/../../../../avr/bin/as -mmcu=atmega128 -o test.o test.s COMPILER_PATH=/usr/local/libexec/gcc/avr/4.6.2/:/usr/local/libexec/gcc/avr/4.6.2/:/usr/local/libexec/gcc/avr/:/usr/local/lib/gcc/avr/4.6.2/:/usr/local/lib/gcc/avr/:/usr/local/lib/gcc/avr/4.6.2/../../../../avr/bin/ LIBRARY_PATH=/usr/local/lib/gcc/avr/4.6.2/avr51/:/usr/local/lib/gcc/avr/4.6.2/../../../../avr/lib/avr51/:/usr/local/lib/gcc/avr/4.6.2/:/usr/local/lib/gcc/avr/4.6.2/../../../../avr/lib/ COLLECT_GCC_OPTIONS='-mmcu=atmega128' '-Wall' '-O2' '-g' '-c' '-save-temps' '-v' $