[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] [BUG] x86_64-tcc compiled by i386-tcc is wrong
From: |
Sergey Korshunoff |
Subject: |
Re: [Tinycc-devel] [BUG] x86_64-tcc compiled by i386-tcc is wrong |
Date: |
Fri, 20 Mar 2015 19:00:51 +0300 |
Another test program which can't be compiled by x86_64-tcc but
compiles by gcc on x86_64
#include <stdio.h>
#define NARGS 20000
int ARG[NARGS];
int *ARGSPACE = ARG;
long long ARGP = ((long long)ARG - 4LL); // error: initializer element
is not computable at load
main()
{
printf("%p %p %p\n", ARGSPACE, ARG - 1, (int *)ARGP);
}