public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/45234]  New: ICE in expand_call, at calls.c:2845 when passing aligned function argument from unaligned stack after alloca
@ 2010-08-08 21:04 truedfx at gentoo dot org
  2010-08-10 13:37 ` [Bug middle-end/45234] [4.4/4.5/4.6 Regression] " hjl dot tools at gmail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 18+ messages in thread
From: truedfx at gentoo dot org @ 2010-08-08 21:04 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1187 bytes --]

$ cat bug.c
extern void f (__float128);
void g(void)
{
  __builtin_alloca (2);
  f (0);
}
$ gcc -m32 -mpreferred-stack-boundary=2 -c bug.c
bug.c: In function ‘g’:
bug.c:5:5: internal compiler error: in expand_call, at calls.c:2840
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.

First seen in modified GCC, but with some modifications to the code the ICE
also triggers on unpatched GCC on x86 with the above code. Tested with GCC
4.4.4 from Fedora and GCC 4.5.0 from Gentoo.

With -mno-accumulate-outgoing-args, GCC accepts the code.


-- 
           Summary: ICE in expand_call, at calls.c:2845 when passing aligned
                    function argument from unaligned stack after alloca
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: truedfx at gentoo dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45234


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2012-07-02 10:42 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-45234-4@http.gcc.gnu.org/bugzilla/>
2010-09-24 14:57 ` [Bug middle-end/45234] [4.4/4.5/4.6 Regression] ICE in expand_call, at calls.c:2845 when passing aligned function argument from unaligned stack after alloca jakub at gcc dot gnu.org
2010-09-24 15:08 ` jakub at gcc dot gnu.org
2010-09-24 15:11 ` jakub at gcc dot gnu.org
2010-09-24 15:33 ` [Bug middle-end/45234] [4.4/4.5 " jakub at gcc dot gnu.org
2010-10-01 11:50 ` jakub at gcc dot gnu.org
2011-04-16 10:10 ` jakub at gcc dot gnu.org
2012-03-13 14:24 ` [Bug middle-end/45234] [4.5 " jakub at gcc dot gnu.org
2012-07-02 10:42 ` rguenth at gcc dot gnu.org
2010-08-08 21:04 [Bug c/45234] New: " truedfx at gentoo dot org
2010-08-10 13:37 ` [Bug middle-end/45234] [4.4/4.5/4.6 Regression] " hjl dot tools at gmail dot com
2010-08-30 15:53 ` rguenth at gcc dot gnu dot org
2010-09-06 18:40 ` howarth at nitro dot med dot uc dot edu
2010-09-17 18:01 ` hjl at gcc dot gnu dot org
2010-09-18 20:51 ` sezeroz at gmail dot com
2010-09-20 20:33 ` hjl at gcc dot gnu dot org
2010-09-20 20:39 ` hjl at gcc dot gnu dot org
2010-09-20 20:40 ` hjl dot tools at gmail dot com
2010-09-22 17:24 ` jakub at gcc dot gnu dot org
2010-09-22 21:36 ` hjl dot tools at gmail 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).