1 Jul 2002 01:59
gcc.dg/20020312-2.c: check for __PPC__
Aldy Hernandez <aldyh <at> redhat.com>
2002-06-30 23:59:06 GMT
2002-06-30 23:59:06 GMT
__powerpc__ is only defined for: CPP_OS_FREEBSD_SPEC CPP_OS_NETBSD_SPEC checking for __PPC__ is a bit more generic. is this ok? 2002-06-30 Aldy Hernandez <aldyh <at> redhat.com> * gcc.dg/20020312-2.c: Check for __PPC__. Index: testsuite/gcc.dg/20020312-2.c =================================================================== RCS file: /cvs/uberbaum/gcc/testsuite/gcc.dg/20020312-2.c,v retrieving revision 1.7 diff -c -p -r1.7 20020312-2.c *** testsuite/gcc.dg/20020312-2.c 24 Apr 2002 21:47:44 -0000 1.7 --- testsuite/gcc.dg/20020312-2.c 30 Jun 2002 23:56:00 -0000 *************** *** 72,78 **** /* No pic register. */ #elif defined(__pj__) /* No pic register. */ ! #elif defined(__powerpc__) # ifdef __darwin__ # define PIC_REG "31" # else --- 72,78 ----(Continue reading)
( Why in the world is somone else setting OS specific flags.. don't
> answer that, I'll deal with it in my next clean up pass.
Because they're sharing code, with the EXTRA macro holding OS-specific
stuff. It was part of my patch. I don't think there's a better way to
do it, unless you want code duplication.
Neil.
RSS Feed