This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/15730] New: ICE (segfault) passing 128 bit int trough variable arguments


The following program:
typedef __builtin_va_list __gnuc_va_list;
typedef __gnuc_va_list va_list;

typedef int __attribute__ ((mode(TI))) PascalLongestInt;

void f (int global_flags, ...)
{
  va_list p;
  __builtin_va_start(p,global_flags);
  {
    long long int num = __builtin_va_arg(p,PascalLongestInt);
  }
  __builtin_va_end(p);
}

couses a segfault in `cc1' for native x86_64 compiler. I have tried
3.3, 3.4.0 and 3.5.0 20040516 (experimental) with the same result.

-- 
           Summary: ICE (segfault) passing 128 bit int trough variable
                    arguments
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hebisch at math dot uni dot wroc dot pl
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]