From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12142 invoked by alias); 26 Oct 2014 18:30:41 -0000 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 Received: (qmail 12120 invoked by uid 48); 26 Oct 2014 18:30:38 -0000 From: "daniel.kruegler at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/63650]=?UTF-8?Q?=20conflicting=20type=20attributes=20specified=20for=20=E2=80=98virtual?=..' Date: Sun, 26 Oct 2014 18:34:00 -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.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.kruegler at googlemail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 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-SW-Source: 2014-10/txt/msg02028.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63650 Daniel Kr=C3=BCgler changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler@googlemail. | |com --- Comment #1 from Daniel Kr=C3=BCgler --- As written the code is ill-formed because of the unterminated second #ifnde= f. What is the real code? >>From gcc-bugs-return-465008-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 26 18:34:36 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13614 invoked by alias); 26 Oct 2014 18:34:34 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 13579 invoked by uid 48); 26 Oct 2014 18:34:30 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/63620] RELOAD lost SET_GOT dependency on Darwin Date: Sun, 26 Oct 2014 18:36: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-Version: 5.0 X-Bugzilla-Keywords: ra X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cf_gcctarget bug_status cf_reconfirmed_on target_milestone everconfirmed 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-SW-Source: 2014-10/txt/msg02029.txt.bz2 Content-length: 2472 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63620 Uro=C5=A1 Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ra Target|Darwin |x86 Status|UNCONFIRMED |NEW Last reconfirmed| |2014-10-26 Target Milestone|--- |5.0 Ever confirmed|0 |1 --- Comment #3 from Uro=C5=A1 Bizjak --- Confirmed. This will affect all SSE targets. This is an RA issue. When RA kicks the constant to a memory, PIC register should be marked as live for the insn that accesses memory. We start with: (insn 21 17 22 3 (set (mem:TF (pre_dec:SI (reg/f:SI 7 sp)) [1 S16 A128]) (const_double:TF 1.0e+29 [0x0.a18f07d736b90be55p+97])) pr63620.c:21= 121 {*pushtf} (expr_list:REG_ARGS_SIZE (const_int 16 [0x10]) (nil))) and RA does: Choosing alt 0 in insn 21: (0) =3D< (1) x {*pushtf} Creating newreg=3D93, assigning class GENERAL_REGS to addr r93 Change to class INDEX_REGS for r93 Creating newreg=3D94, assigning class SSE_REGS to r94 21: [--sp:SI]=3Dr94:TF REG_ARGS_SIZE 0x10 Inserting insn reload before: 46: r93:SI=3Dr87:SI+const(unspec[`*LC0'] 10) REG_EQUAL `*LC0' 47: r94:TF=3D[r93:SI] which results in: (insn 46 17 47 3 (set (reg:SI 0 ax [93]) (plus:SI (reg:SI 0 ax [87]) (const:SI (unspec:SI [ (symbol_ref/u:SI ("*LC0") [flags 0x2]) ] UNSPEC_MACHOPIC_OFFSET)))) pr63620.c:21 213 {*leasi} (expr_list:REG_EQUAL (symbol_ref/u:SI ("*LC0") [flags 0x2]) (nil))) (insn 47 46 21 3 (set (reg:TF 23 xmm2 [94]) (mem/u/c:TF (reg:SI 0 ax [93]) [1 S16 A128])) pr63620.c:21 126 {*movtf_internal} (nil)) (insn 21 47 22 3 (set (mem:TF (pre_dec:SI (reg/f:SI 7 sp)) [1 S16 A128]) (reg:TF 23 xmm2 [94])) pr63620.c:21 121 {*pushtf} (expr_list:REG_ARGS_SIZE (const_int 16 [0x10]) (nil))) When the constant is pushed to a memory to satisfy operand constraints, the= PIC register should be marked as live (=3D=3D used by the insn that reads memor= y). RA even sets the REG_EQUAL to a symbol_ref in the reloading insn. The patch at Comment #2 will just paper over the issue. >>From gcc-bugs-return-465009-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 26 18:36:47 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14850 invoked by alias); 26 Oct 2014 18:36:47 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 14816 invoked by uid 48); 26 Oct 2014 18:36:43 -0000 From: "richard at netbsd dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/63650]=?UTF-8?Q?=20conflicting=20type=20attributes=20specified=20for=20=E2=80=98virtual?=..' Date: Sun, 26 Oct 2014 18:38:00 -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.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: richard at netbsd dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-10/txt/msg02030.txt.bz2 Content-length: 4087 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63650 --- Comment #2 from Richard PALO --- Created attachment 33812 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33812&action=edit nsFastLoadFile.ii this is the original error: > gmake[4]: Entering directory '/tmp/pkgsrc/devel/xulrunner192/work/mozilla-1.9.2/xpcom/io' > nsFastLoadFile.cpp > g++ -o nsFastLoadFile.o -c -I../../dist/system_wrappers -include ../../config/gcc_hidden.h -DMOZILLA_INTERNAL_API -DOSTYPE=\"SunOS5\" -DOSARCH=SunOS -D_IMPL_NS_COM -I.. -I. -I. -I../../dist/include -I../../dist/include/nsprpub -I/tmp/pkgsrc/devel/xulrunner192/work/mozilla-1.9.2/dist/include/nspr -I/tmp/pkgsrc/devel/xulrunner192/work/mozilla-1.9.2/dist/include/nss -I/opt/local/include -fPIC -I/usr/include -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/freetype2 -I/opt/local/include -fno-rtti -fno-exceptions -Wno-long-long -O2 -I/usr/include -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/freetype2 -fno-strict-aliasing -fshort-wchar -pthread -DNDEBUG -DTRIMMED -O2 -I/usr/include -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/freetype2 -I/opt/local/include -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsFastLoadFile.pp nsFastLoadFile.cpp > nsFastLoadService.cpp > g++ -o nsFastLoadService.o -c -I../../dist/system_wrappers -include ../../config/gcc_hidden.h -DMOZILLA_INTERNAL_API -DOSTYPE=\"SunOS5\" -DOSARCH=SunOS -D_IMPL_NS_COM -I.. -I. -I. -I../../dist/include -I../../dist/include/nsprpub -I/tmp/pkgsrc/devel/xulrunner192/work/mozilla-1.9.2/dist/include/nspr -I/tmp/pkgsrc/devel/xulrunner192/work/mozilla-1.9.2/dist/include/nss -I/opt/local/include -fPIC -I/usr/include -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/freetype2 -I/opt/local/include -fno-rtti -fno-exceptions -Wno-long-long -O2 -I/usr/include -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/freetype2 -fno-strict-aliasing -fshort-wchar -pthread -DNDEBUG -DTRIMMED -O2 -I/usr/include -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/freetype2 -I/opt/local/include -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsFastLoadService.pp nsFastLoadService.cpp > In file included from nsFastLoadService.cpp:47:0: > nsFastLoadFile.h:298:19: error: conflicting type attributes specified for 'virtual nsresult nsFastLoadFileReader::ReadSegments(nsWriteSegmentFun, void*, PRUint32, PRUint32*)' > NS_IMETHODIMP ReadSegments(nsWriteSegmentFun aWriter, void* aClosure, > ^ > In file included from ../../dist/include/nsIBinaryInputStream.h:10:0, > from ../../dist/include/nsIObjectInputStream.h:10, > from nsBinaryStream.h:44, > from nsFastLoadFile.h:49, > from nsFastLoadService.cpp:47: > nsBinaryStream.h:113:5: error: overriding 'virtual nsresult nsBinaryInputStream::ReadSegments(nsWriteSegmentFun, void*, PRUint32, PRUint32*)' > NS_DECL_NSIINPUTSTREAM > ^ > In file included from nsFastLoadFile.cpp:58:0: > nsFastLoadFile.h:298:19: error: conflicting type attributes specified for 'virtual nsresult nsFastLoadFileReader::ReadSegments(nsWriteSegmentFun, void*, PRUint32, PRUint32*)' > NS_IMETHODIMP ReadSegments(nsWriteSegmentFun aWriter, void* aClosure, > ^ > In file included from ../../dist/include/nsIBinaryInputStream.h:10:0, > from ../../dist/include/nsIObjectInputStream.h:10, > from nsBinaryStream.h:44, > from nsFastLoadFile.cpp:57: > nsBinaryStream.h:113:5: error: overriding 'virtual nsresult nsBinaryInputStream::ReadSegments(nsWriteSegmentFun, void*, PRUint32, PRUint32*)' > NS_DECL_NSIINPUTSTREAM > ^ > ../../config/rules.mk:1408: recipe for target 'nsFastLoadService.o' failed > gmake[4]: *** [nsFastLoadService.o] Error 1 > gmake[4]: *** Waiting for unfinished jobs.... > ../../config/rules.mk:1408: recipe for target 'nsFastLoadFile.o' failed