public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44878] New: Build fails when compiling libstdc++
@ 2010-07-08 21:52 sje at cup dot hp dot com
2010-07-08 21:53 ` [Bug c++/44878] " sje at cup dot hp dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: sje at cup dot hp dot com @ 2010-07-08 21:52 UTC (permalink / raw)
To: gcc-bugs
The patch to PR 44813 broke the build on ia64-hp-hpux11.23. The patch went in
at r161898. Attached is a test case which causes an ICE when compiled with GCC
on ia64-hp-hpux11.23. No options are needed during the compile. The failure
is:
x.cc: In function 'std::__exception_ptr::exception_ptr
std::current_exception()':
x.cc:19:1: internal compiler error: in emit_move_insn, at expr.c:3397
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
In the debugger I see:
(gdb) p mode
$1 = DImode
(gdb) p debug_rtx(x)
(reg/f:DI 341 [ <retval>+-4 ])
$2 = void
(gdb) p debug_rtx(y)
(subreg/s/v:SI (reg/f:DI 341 [ <retval>+-4 ]) 4)
so the problem is the mismatch in the modes. IA64 generates 32 bit pointers by
default but they need to be extended to 64 bits before being dereferenced.
--
Summary: Build fails when compiling libstdc++
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sje at cup dot hp dot com
GCC build triplet: ia64-hp-hpux11.23
GCC host triplet: ia64-hp-hpux11.23
GCC target triplet: ia64-hp-hpux11.23
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44878
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/44878] Build fails when compiling libstdc++
2010-07-08 21:52 [Bug c++/44878] New: Build fails when compiling libstdc++ sje at cup dot hp dot com
@ 2010-07-08 21:53 ` sje at cup dot hp dot com
2010-07-08 21:54 ` [Bug middle-end/44878] [4.6 Regression] " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: sje at cup dot hp dot com @ 2010-07-08 21:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from sje at cup dot hp dot com 2010-07-08 21:53 -------
Created an attachment (id=21152)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21152&action=view)
Test case that fails on ia64-hp-hpux11.23
This test case generates an ICE on ia64-hp-hpux11.23. No options are required
during compile.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44878
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/44878] [4.6 Regression] Build fails when compiling libstdc++
2010-07-08 21:52 [Bug c++/44878] New: Build fails when compiling libstdc++ sje at cup dot hp dot com
2010-07-08 21:53 ` [Bug c++/44878] " sje at cup dot hp dot com
@ 2010-07-08 21:54 ` pinskia at gcc dot gnu dot org
2010-07-09 16:11 ` sje at cup dot hp dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-07-08 21:54 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |middle-end
Keywords| |build, ice-on-valid-code
Summary|Build fails when compiling |[4.6 Regression] Build fails
|libstdc++ |when compiling libstdc++
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44878
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/44878] [4.6 Regression] Build fails when compiling libstdc++
2010-07-08 21:52 [Bug c++/44878] New: Build fails when compiling libstdc++ sje at cup dot hp dot com
2010-07-08 21:53 ` [Bug c++/44878] " sje at cup dot hp dot com
2010-07-08 21:54 ` [Bug middle-end/44878] [4.6 Regression] " pinskia at gcc dot gnu dot org
@ 2010-07-09 16:11 ` sje at cup dot hp dot com
2010-07-22 18:15 ` sje at gcc dot gnu dot org
2010-07-22 22:29 ` sje at cup dot hp dot com
4 siblings, 0 replies; 6+ messages in thread
From: sje at cup dot hp dot com @ 2010-07-09 16:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from sje at cup dot hp dot com 2010-07-09 16:10 -------
Here is a smaller test case:
class e
{
public:
e(void* __e);
e(const e&);
};
void * v() { }
e foo() { return e(v()); }
It only fails on IA64 in 32 bit mode and the problem seems to be related to
the change in needs_to_live_in_memory. If I undo the one line change in that
function then the example will compile.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44878
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/44878] [4.6 Regression] Build fails when compiling libstdc++
2010-07-08 21:52 [Bug c++/44878] New: Build fails when compiling libstdc++ sje at cup dot hp dot com
` (2 preceding siblings ...)
2010-07-09 16:11 ` sje at cup dot hp dot com
@ 2010-07-22 18:15 ` sje at gcc dot gnu dot org
2010-07-22 22:29 ` sje at cup dot hp dot com
4 siblings, 0 replies; 6+ messages in thread
From: sje at gcc dot gnu dot org @ 2010-07-22 18:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from sje at gcc dot gnu dot org 2010-07-22 18:15 -------
Subject: Bug 44878
Author: sje
Date: Thu Jul 22 18:14:27 2010
New Revision: 162423
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162423
Log:
2010-07-22 Steve Ellcey <sje@cup.hp.com>
PR middle-end/44878
* stmt.c (expand_value_return): Call promote_function_mode with
a for_return argument of 2 when returning by reference.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/stmt.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44878
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/44878] [4.6 Regression] Build fails when compiling libstdc++
2010-07-08 21:52 [Bug c++/44878] New: Build fails when compiling libstdc++ sje at cup dot hp dot com
` (3 preceding siblings ...)
2010-07-22 18:15 ` sje at gcc dot gnu dot org
@ 2010-07-22 22:29 ` sje at cup dot hp dot com
4 siblings, 0 replies; 6+ messages in thread
From: sje at cup dot hp dot com @ 2010-07-22 22:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from sje at cup dot hp dot com 2010-07-22 22:29 -------
Fixed, I can now bootstrap GCC *with partial inlining turned off*. Partial
inlining still doesn't work on IA64 HP-UX, that problem is PR 44716.
--
sje at cup dot hp dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44878
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-07-22 22:29 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-08 21:52 [Bug c++/44878] New: Build fails when compiling libstdc++ sje at cup dot hp dot com
2010-07-08 21:53 ` [Bug c++/44878] " sje at cup dot hp dot com
2010-07-08 21:54 ` [Bug middle-end/44878] [4.6 Regression] " pinskia at gcc dot gnu dot org
2010-07-09 16:11 ` sje at cup dot hp dot com
2010-07-22 18:15 ` sje at gcc dot gnu dot org
2010-07-22 22:29 ` sje at cup dot hp dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).