public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/42543] ICE when using va_arg
       [not found] <bug-42543-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-08 20:46 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-08 20:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42543

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.6.4, 4.7.1
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |4.6.0
      Known to fail|                            |4.5.3
         Resolution|---                         |FIXED

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed in GCC 4.6.0, there was many var_arg changes in GCC 4.6.0 that would have
fixed this.

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

* [Bug middle-end/42543] ICE when using va_arg
  2009-12-29 17:07 [Bug c/42543] New: internal compiler error: in gimplify_expr, at gimplify.c:7098 arnaud dot kodeck at lakoco dot be
                   ` (2 preceding siblings ...)
  2009-12-29 17:33 ` hjl dot tools at gmail dot com
@ 2009-12-31 16:53 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-31 16:53 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|ice-on-valid-code           |ice-on-invalid-code
   Last reconfirmed|0000-00-00 00:00:00         |2009-12-31 16:52:54
               date|                            |


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


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

* [Bug middle-end/42543] ICE when using va_arg
  2009-12-29 17:07 [Bug c/42543] New: internal compiler error: in gimplify_expr, at gimplify.c:7098 arnaud dot kodeck at lakoco dot be
  2009-12-29 17:17 ` [Bug middle-end/42543] ICE when using va_arg pinskia at gcc dot gnu dot org
  2009-12-29 17:32 ` hjl dot tools at gmail dot com
@ 2009-12-29 17:33 ` hjl dot tools at gmail dot com
  2009-12-31 16:53 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-12-29 17:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from hjl dot tools at gmail dot com  2009-12-29 17:33 -------
Icc 11.1 generates:

[hjl@gnu-6 rrs]$ /opt/intel/Compiler/11.1/059/bin/intel64/icc -S pr42543.c
pr42543.c(55): error: cast to type "va_list" is not allowed
              while (index-- > 0 && (arg=va_arg((va_list)args2,char*)) != NULL)
;
                                         ^

compilation aborted for pr42543.c (code 2)
[hjl@gnu-6 rrs]$ 


-- 


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


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

* [Bug middle-end/42543] ICE when using va_arg
  2009-12-29 17:07 [Bug c/42543] New: internal compiler error: in gimplify_expr, at gimplify.c:7098 arnaud dot kodeck at lakoco dot be
  2009-12-29 17:17 ` [Bug middle-end/42543] ICE when using va_arg pinskia at gcc dot gnu dot org
@ 2009-12-29 17:32 ` hjl dot tools at gmail dot com
  2009-12-29 17:33 ` hjl dot tools at gmail dot com
  2009-12-31 16:53 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-12-29 17:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from hjl dot tools at gmail dot com  2009-12-29 17:32 -------
I am not sure if

---
char* FormatStringEx (char str[], size_t max_length, char templ[],
   void* args, unsigned int flags)

{
...
void           *args2;
char           *arg,c;
...
while (index-- > 0 && (arg=va_arg((va_list)args2,char*)) != NULL) ;
...
---

is valid C. But gcc could do better to recover.


-- 


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


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

* [Bug middle-end/42543] ICE when using va_arg
  2009-12-29 17:07 [Bug c/42543] New: internal compiler error: in gimplify_expr, at gimplify.c:7098 arnaud dot kodeck at lakoco dot be
@ 2009-12-29 17:17 ` pinskia at gcc dot gnu dot org
  2009-12-29 17:32 ` hjl dot tools at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-12-29 17:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2009-12-29 17:17 -------
The trunk still ICEs:
gimplification failed:
(char *) args2.4 <nop_expr 0x43600ab8
t.c:56:40: internal compiler error: gimplification failed
Please submit a full bug report,

That is an ICE with i686-darwin.  But I think it will also ICE on GNU/Linux
too.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|minor                       |normal
          Component|c                           |middle-end
   GCC host triplet|Windows 7                   |
 GCC target triplet|                            |i?86-*-*
           Keywords|                            |ice-on-valid-code
            Summary|internal compiler error: in |ICE when using va_arg
                   |gimplify_expr, at           |
                   |gimplify.c:7098             |


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


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

end of thread, other threads:[~2021-08-08 20:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-42543-4@http.gcc.gnu.org/bugzilla/>
2021-08-08 20:46 ` [Bug middle-end/42543] ICE when using va_arg pinskia at gcc dot gnu.org
2009-12-29 17:07 [Bug c/42543] New: internal compiler error: in gimplify_expr, at gimplify.c:7098 arnaud dot kodeck at lakoco dot be
2009-12-29 17:17 ` [Bug middle-end/42543] ICE when using va_arg pinskia at gcc dot gnu dot org
2009-12-29 17:32 ` hjl dot tools at gmail dot com
2009-12-29 17:33 ` hjl dot tools at gmail dot com
2009-12-31 16:53 ` rguenth at gcc dot gnu dot org

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).