This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32455] [4.1/4.2/4.3 regression] ICE with modified va_list
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Dec 2007 20:38:18 -0000
- Subject: [Bug middle-end/32455] [4.1/4.2/4.3 regression] ICE with modified va_list
- References: <bug-32455-14734@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from reichelt at gcc dot gnu dot org 2007-12-27 20:38 -------
Confirmed. Here's a reduced testcase that crashes when compiled under
i686-pc-linux-gnu:
=========================================
typedef double* va_list;
void __builtin_va_start(va_list, ...);
void foo(const char* s, ...)
{
va_list v;
__builtin_va_start(v, s);
}
=========================================
bug.c: In function 'foo':
bug.c:8: internal compiler error: in convert_move, at expr.c:371
Please submit a full bug report, [etc.]
I don't know whether messing around with va_list and __builtin_va_start
is allowed or not. Btw, with
typedef void* va_list;
instead of
typedef double* va_list;
I get a different ICE:
bug.c: In function 'foo':
bug.c:8: internal compiler error: in simplify_subreg, at simplify-rtx.c:4918
Please submit a full bug report, [etc.]
Btw, the ICE appeared in GCC 4.0.0 (GCC 3.3.x crashed, too).
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Component|target |middle-end
Ever Confirmed|0 |1
GCC target triplet|hppa2.0w-hp-hpux11.11 |
Keywords| |ice-on-valid-code, monitored
Last reconfirmed|0000-00-00 00:00:00 |2007-12-27 20:38:18
date| |
Summary|internal compiler error: in |[4.1/4.2/4.3 regression] ICE
|convert_move, at expr.c:362 |with modified va_list
Target Milestone|--- |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32455