This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
egcs problem by someone else
- To: Linux-Egcs <egcs at cygnus dot com>
- Subject: egcs problem by someone else
- From: Alex Buell <alex dot buell at tahallah dot demon dot co dot uk>
- Date: Mon, 6 Jul 1998 02:28:35 -0400 (EDT)
- Reply-To: alex dot buell at tahallah dot demon dot co dot uk
The test program below posted by someone on the list:
---
static int f(int) __attribute__((const));
int main()
{
int f1, f2, x;
x = 1; f1 = f(x);
x = 2; f2 = f(x);
if (f1 != 1 || f2 != 2)
abort ();
exit (0);
}
static int f(int x) { return x; }
---
This works fine on my system - at least, it doesn't call abort().
egcs-1.0.3a (2.90.29), i486, linux-2.1.108, binutils-2.1.9.0.7. Hope this
helps someone.
Cheers,
Alex
--
/\_/\ Legalise cannabis now!
( o.o ) Smoke some cannabis today!
> ^ < Peace, Love, Unity and Respect to all.
http://www.tahallah.demon.co.uk