* [Bug target/65032] [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu
2015-02-12 4:23 [Bug target/65032] New: [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu doko at gcc dot gnu.org
@ 2015-02-12 13:12 ` jakub at gcc dot gnu.org
2015-02-12 13:28 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-12 13:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65032
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2015-02-12
CC| |jakub at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Can't reproduce.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/65032] [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu
2015-02-12 4:23 [Bug target/65032] New: [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu doko at gcc dot gnu.org
2015-02-12 13:12 ` [Bug target/65032] " jakub at gcc dot gnu.org
@ 2015-02-12 13:28 ` rguenth at gcc dot gnu.org
2015-02-22 18:41 ` pbrobinson at gmail dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-02-12 13:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65032
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |5.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/65032] [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu
2015-02-12 4:23 [Bug target/65032] New: [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu doko at gcc dot gnu.org
2015-02-12 13:12 ` [Bug target/65032] " jakub at gcc dot gnu.org
2015-02-12 13:28 ` rguenth at gcc dot gnu.org
@ 2015-02-22 18:41 ` pbrobinson at gmail dot com
2015-02-22 19:39 ` trippels at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pbrobinson at gmail dot com @ 2015-02-22 18:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65032
--- Comment #2 from pbrobinson at gmail dot com ---
Created attachment 34838
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34838&action=edit
preprocessed file from koji
this is from koji if it's of help or different from the other one
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/65032] [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu
2015-02-12 4:23 [Bug target/65032] New: [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu doko at gcc dot gnu.org
` (2 preceding siblings ...)
2015-02-22 18:41 ` pbrobinson at gmail dot com
@ 2015-02-22 19:39 ` trippels at gcc dot gnu.org
2015-02-22 20:53 ` trippels at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-02-22 19:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65032
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
CC| |trippels at gcc dot gnu.org
--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
I cannot reproduce the original issue.
For the testcase from comment 2:
markus@x4 tmp % g++ -c -w -m32 -Os -std=gnu++11 -fPIC -fstack-protector-strong
-fno-strict-aliasing -fno-exceptions -fomit-frame-pointer testc.ii
In file included from
/builddir/build/BUILD/firefox-36.0/mozilla-release/objdir/dom/media/ogg/Unified_cpp_dom_media_ogg0.cpp:20:0:
/builddir/build/BUILD/firefox-36.0/mozilla-release/dom/media/ogg/OggReader.cpp:
In member function ‘nsresult mozilla::OggReader::DecodeVorbis(ogg_packet*)’:
/builddir/build/BUILD/firefox-36.0/mozilla-release/dom/media/ogg/OggReader.cpp:562:1:
internal compiler error: in reload_combine_note_use, at postreload.c:1556
0xbf4b3a reload_combine_note_use
../../gcc/gcc/postreload.c:1556
0xbf48bf reload_combine_note_use
../../gcc/gcc/postreload.c:1643
0xbf65f3 reload_combine
../../gcc/gcc/postreload.c:1423
0xbf76e0 reload_cse_regs
../../gcc/gcc/postreload.c:95
0xbf76e0 execute
../../gcc/gcc/postreload.c:2367
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions
Reducing...
>From gcc-bugs-return-478113-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 22 18:30:58 2015
Return-Path: <gcc-bugs-return-478113-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28318 invoked by alias); 22 Feb 2015 18:30:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 28054 invoked by uid 48); 22 Feb 2015 18:30:54 -0000
From: "jan.kratochvil at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65168] New: diagnostic: missing: reference cannot be bound to dereferenced null pointer
Date: Sun, 22 Feb 2015 19:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jan.kratochvil at redhat 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cf_gcctarget
Message-ID: <bug-65168-4@http.gcc.gnu.org/bugzilla/>
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: 2015-02/txt/msg02445.txt.bz2
Content-length: 964
https://gcc.gnu.org/bugzilla/show_bug.cgi?ide168
Bug ID: 65168
Summary: diagnostic: missing: reference cannot be bound to
dereferenced null pointer
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jan.kratochvil at redhat dot com
Target: x86_64-linux-gnu
int main() {
int *p=static_cast<int *>(0),&r=*p;
return !&r;
}
-Wall
g++ (GCC) 5.0.0 20150221 (experimental)
<nothing>
clang++ (clang-3.5.0-6.fc21.x86_64):
ref.C:3:12: warning: reference cannot be bound to dereferenced null pointer in
well-defined C++ code; pointer may be assumed to always convert to true
[-Wundefined-bool-conversion]
I have no idea if it can be miscompiled by either compiler. Still I find
useful to be notified I write non-conforming C++ code.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/65032] [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu
2015-02-12 4:23 [Bug target/65032] New: [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu doko at gcc dot gnu.org
` (3 preceding siblings ...)
2015-02-22 19:39 ` trippels at gcc dot gnu.org
@ 2015-02-22 20:53 ` trippels at gcc dot gnu.org
2015-02-25 8:46 ` law at redhat dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-02-22 20:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65032
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vmakarov at gcc dot gnu.org
--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 tmp % cat testc.ii
#pragma GCC visibility push(hidden)
#pragma GCC visibility push(default)
extern "C" {
typedef int int64_t __attribute__ ((__mode__ (__DI__)));
}
enum class nsresult;
#pragma GCC visibility pop
class A
{
float mRawPtr;
public:
A (float *);
};
class B
{
public:
B (int64_t, int, int);
};
typedef struct
{
int channels;
} vorbis_info;
template <typename _Key> class C
{
public:
typedef int size_type;
size_type erase (_Key &);
};
template <typename _Key> class D
{
public:
typedef _Key key_type;
typedef C<key_type> _Rep_type;
_Rep_type _M_t;
typename _Rep_type::size_type
erase (key_type p1)
{
return _M_t.erase (p1);
}
};
class F
{
public:
vorbis_info mInfo;
D<int *> mVorbisPacketSamples;
void ValidateVorbisPacketSamples (int *);
int64_t Time (int64_t);
};
class G
{
nsresult DecodeVorbis (int *);
F *mVorbisState;
int64_t mDecodedAudioFrames;
};
int fn1 (float ***);
void fn2 (int);
void
F::ValidateVorbisPacketSamples (int *p1)
{
mVorbisPacketSamples.erase (p1);
}
nsresult
G::DecodeVorbis (int *p1)
{
float **a;
int b;
long long c;
while ((b = fn1 (&a)))
{
mVorbisState->ValidateVorbisPacketSamples (p1);
A (new float);
for (; mVorbisState->mInfo.channels;)
{
}
int64_t d = mVorbisState->Time (c - b);
(B (d, b, mVorbisState->mInfo.channels));
mDecodedAudioFrames -= b;
fn2 (b);
}
}
markus@x4 tmp % g++ -c -m32 -Os -std=gnu++11 -fPIC -fstack-protector-strong
-fomit-frame-pointer testc.ii
testc.ii: In member function ‘nsresult G::DecodeVorbis(int*)’:
testc.ii:84:1: internal compiler error: in reload_combine_note_use, at
postreload.c:1556
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
markus@x4 tmp % /var/tmp/gcc_test/usr/local/bin/g++ -c -m32 -Os -std=gnu++11
-fPIC -fstack-protector-strong -fomit-frame-pointer testc.ii
testc.ii: In member function ‘nsresult G::DecodeVorbis(int*)’:
testc.ii:84:1: internal compiler error: in reload_combine_note_use, at
postreload.c:1556
>From gcc-bugs-return-478123-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 22 20:44:46 2015
Return-Path: <gcc-bugs-return-478123-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20553 invoked by alias); 22 Feb 2015 20:44:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20523 invoked by uid 48); 22 Feb 2015 20:44:42 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65157] Unable to define a static template member function of a nested class as a friend of a sibling class.
Date: Sun, 22 Feb 2015 20:55: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.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.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:
Message-ID: <bug-65157-4-uOnOhINwBx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65157-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65157-4@http.gcc.gnu.org/bugzilla/>
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: 2015-02/txt/msg02455.txt.bz2
Content-length: 284
https://gcc.gnu.org/bugzilla/show_bug.cgi?ide157
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Clang accepts the code, EDG rejects it with:
"x.cc", line 16: error: nontype "A<T>::B::Create" is not a template
friend void B::Create<U>();
^
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/65032] [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu
2015-02-12 4:23 [Bug target/65032] New: [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu doko at gcc dot gnu.org
` (4 preceding siblings ...)
2015-02-22 20:53 ` trippels at gcc dot gnu.org
@ 2015-02-25 8:46 ` law at redhat dot com
2015-02-27 15:10 ` vmakarov at gcc dot gnu.org
2015-02-27 15:14 ` trippels at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: law at redhat dot com @ 2015-02-25 8:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65032
Jeffrey A. Law <law at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |law at redhat dot com
--- Comment #7 from Jeffrey A. Law <law at redhat dot com> ---
I think that in the past we'd just shove in any old hard register and it worked
because we considered the SCRATCH with 'X' as not conflicting with anything.
It's probably not ideal, but I wonder if LRA could do that for us too.
Alternately, maybe replace the scratch with const0_rtx.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/65032] [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu
2015-02-12 4:23 [Bug target/65032] New: [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu doko at gcc dot gnu.org
` (5 preceding siblings ...)
2015-02-25 8:46 ` law at redhat dot com
@ 2015-02-27 15:10 ` vmakarov at gcc dot gnu.org
2015-02-27 15:14 ` trippels at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2015-02-27 15:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65032
--- Comment #8 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
Author: vmakarov
Date: Fri Feb 27 14:15:02 2015
New Revision: 221062
URL: https://gcc.gnu.org/viewcvs?rev=221062&root=gcc&view=rev
Log:
2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
PR target/65032
* lra-remat.c (update_scratch_ops): New.
(do_remat): Call it.
* lra.c (lra_register_new_scratch_op): New. Take code from ...
(remove_scratches): ... here.
* lra-int.h (lra_register_new_scratch_op): New prototype.
2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
PR target/65032
* g++.dg/pr65032.C: New.
Added:
trunk/gcc/testsuite/g++.dg/pr65032.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/lra-int.h
trunk/gcc/lra-remat.c
trunk/gcc/lra.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/65032] [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu
2015-02-12 4:23 [Bug target/65032] New: [5 Regression] ICE in reload_combine_note_use, at postreload.c:1556 on i686-linux-gnu doko at gcc dot gnu.org
` (6 preceding siblings ...)
2015-02-27 15:10 ` vmakarov at gcc dot gnu.org
@ 2015-02-27 15:14 ` trippels at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-02-27 15:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65032
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #9 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Fixed. Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread