Rainer Orth <[email protected]> writes: > We currently have two ways to distinguish GNU and non-GNU assemblers and > linkers: > > * USE_GAS and USE_GLD, defined via gcc/config/usegas.h and usegld.h > which are included via config.gcc > > * HAVE_GNU_AS and HAVE_GNU_LD, determined from gcc/configure.ac > > This is confusing and leads to weird mistakes like combining both into > an undefined USE_GNU_LD. Since both are based on the same info ($gas > resp. $gnu_ld in gcc/configure.ac), it seems best to standardise on one > of them. Since the USE_* form is almost exclusively used in > Solaris-specific contexts, it's clearer to use the HAVE_GNU_* forms > instead. > > This is what this patch does. > > Most of the changes are either Solaris-specific or border on obvious. > > Outside of Solaris code, there are only two cases: > > * Uses of usegas.h in various powerpc*-*-* configurations in > gcc/config.gcc. Those changes make no difference since USE_GAS isn't > used in any of the affected files. > > * gcc/config/ia64/hpux.h has one macro guarded by !USE_GAS. However, > judging from gcc/config.gcc ia64*-*-hpux* is gas-only, so this > instance can simply be removed. > > Bootstrapped without regressions on i386-pc-solaris2.11 and > sparc-sun-solaris2.11 (as/ld, gas/ld, and gas/gld configurations). > > Ok for trunk?
The gcc/go changes are fine. Thanks. Ian
