From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 452983857C74; Fri, 5 Nov 2021 23:18:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 452983857C74 From: "timturnerc at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/43745] [avr] g++ puts VTABLES in SRAM Date: Fri, 05 Nov 2021 23:18:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: addr-space, missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: timturnerc at yahoo dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2021 23:18:38 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D43745 Tim Turner changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |timturnerc at yahoo dot com --- Comment #15 from Tim Turner --- Possibly similar to 23220 however on 64-bit recent Debian sid with trivial code I see : https://www.webb-dev.co.uk/category/crypto/ mimas$=20 mimas$ uname -a http://www.compilatori.com/category/services/ Linux mimas 5.10.0-6-sparc64 #1 Debian 5.10.28-1 (2021-04-09) sparc64 GNU/L= inux mimas$=20 http://www.acpirateradio.co.uk/category/services/ mimas$=20 mimas$ /usr/bin/gcc --version http://www.logoarts.co.uk/category/services/ gcc (Debian 10.2.1-6) 10.2.1 20210110 Copyright (C) 2020 Free Software Foundation, Inc. http://www.mconstantine.co.uk/crypto/kilimanjaro/ This is free software; see the source for copying conditions. There is NO http://www.slipstone.co.uk/category/services/=20 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. mimas$ http://embermanchester.uk/category/services/ mimas$=20 mimas$ cat -n foo.c http://connstr.net/category/services/ 1 2 #include 3 #include 4 http://joerg.li/category/services/ 5 int main(int argc, char **argv) 6 { 7 int a =3D 1; 8 http://www.jopspeech.com/category/services/ 9 printf("a =3D %i\n", a); 10 http://www.wearelondonmade.com/category/services/ 11 printf("&a =3D %p\n", &a); 12 13 return EXIT_SUCCESS; 14 https://waytowhatsnext.com/category/crypto/ 15 } 16 mimas$ http://www.iu-bloomington.com/category/crypto/ mimas$=20 mimas$ /usr/bin/gcc -std=3Diso9899:1999 -pedantic -pedantic-errors -fno-bui= ltin https://komiya-dental.com/category/crypto/ -g -m64 -O0 -mno-app-regs -mcpu=3Dultrasparc -mmemory-model=3Dtso -o foo foo.c=20 mimas$ http://www-look-4.com/category/services/ mimas$=20 mimas$ TERM=3Ddumb LC_ALL=3DC /usr/bin/gdb ./foo https://www.mktrade.fi/rui= skuvalu GNU gdb (Debian 10.1-2) 10.1.90.20210103-git g -m64 -O0 -mno-app-regs -mcpu=3Dultrasparc -mmemory-model=3Dtso -o http://www.go-mk-websites.co.uk/crypto/namibia/ foo foo. g -m64 -O0 -mno-app-regs -mcpu=3Dultrasparc -mmemory-model=3Dtso http://fishingnewsletters.co.uk/services/camping-equipment/ -o foo foo. g -= m64 -O0 -mno-app-regs -mcpu=3Dultrasparc -mmemory-model=3Dtso -o foo foo.=