This is the mail archive of the gcc-patches@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]

Re: Unreviewed patches for 3.2/3.3 and BIB...


> On Wed, 27 Nov 2002, Jan Hubicka wrote:
> 
> >   http://gcc.gnu.org/ml/gcc-patches/2002-11/msg00618.html
> >     (Fix c99 builtins)
> 
> The correct version of this is
> http://gcc.gnu.org/ml/gcc-patches/2002-11/msg00627.html
> which is OK if you add a testcase that fails before and passes afterwards.
Thanks!
I am adding the attached testcase that aborts when compiled with
-stc=c99 without the patch

long long a = -1;
long long llabs (long long);
void abort (void);
int
main()
{
  if (llabs (a) != 1)
    abort ();
  return 0;
}
long long llabs (long long b)
{
	abort ();
}


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