public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/35713]  New: invalid type for va_arg with _Decimal128
@ 2008-03-27  0:00 janis at gcc dot gnu dot org
  2008-03-29 20:18 ` [Bug target/35713] [4.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: janis at gcc dot gnu dot org @ 2008-03-27  0:00 UTC (permalink / raw)
  To: gcc-bugs

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

Using va_arg with _Decimal128 for powerpc-linux results in an error
message followed by an ICE, resulting in several new failing GCC
tests.

This testcase:

    void
    foo (int n, ...)
    {
      __builtin_va_list ap;
      _Decimal128 x;

      __builtin_va_start (ap, n);
      x = __builtin_va_arg (ap, _Decimal128);
      __builtin_va_end (ap);
    }

results in these messages:

    elm3b145% /opt/gcc-nightly/trunk/bin/gcc -c va.c
    va.c: In function ‘foo’:
    va.c:3: error: type mismatch in binary expression
    unsigned char

    unsigned char

    unsigned int

    D.1240 = D.1239 | 1
    va.c:3: internal compiler error: verify_gimple failed
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <http://gcc.gnu.org/bugs.html> for instructions.

The failure becomes apparent with r133479, but it also happens with earlier
GCC sources configured with --enable-checking=types.

I plan to continue investigating this problem.


-- 
           Summary: invalid type for va_arg with _Decimal128
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: janis at gcc dot gnu dot org
        ReportedBy: janis at gcc dot gnu dot org
GCC target triplet: powerpc-linux


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


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

end of thread, other threads:[~2008-09-18 18:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-27  0:00 [Bug target/35713] New: invalid type for va_arg with _Decimal128 janis at gcc dot gnu dot org
2008-03-29 20:18 ` [Bug target/35713] [4.4 Regression] " pinskia at gcc dot gnu dot org
2008-04-01 17:59 ` janis at gcc dot gnu dot org
2008-04-04  0:22 ` janis at gcc dot gnu dot org
2008-04-05 21:07 ` pinskia at gcc dot gnu dot org
2008-09-18 18:38 ` janis 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).