FreeBSD headers change request
Jeffrey A Law
law@cygnus.com
Mon Mar 23 21:59:00 GMT 1998
In message < 19980322185131.24683@nuxi.com >you write:
> --- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
> +++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
> @@ -35,10 +35,13 @@
> #include "i386/perform.h"
>
> #undef CPP_PREDEFINES
> -#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(
> unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
> +#define CPP_PREDEFINES "-Di386 -Dunix -D__FreeBSD__ -Asystem(unix) -Asyste
> m(FreeBSD) -Acpu(i386) -Amachine(i386)"
Is removing the __386BSD__ predefine going to cause problems with
any older versions of FreeBSD?
> /* Like the default, except no -lg. */
> #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
> +
> +#undef CC1PLUS_SPEC
> +#define CC1PLUS_SPEC "-fsjlj-exceptions"
I assume the point is to disable dwarf2 unwind based exceptions, if
so the proper way to do that is #define DWARF2_UNWIND_INFO 0.
> +++ gcc/config/i386/freebsd-elf.h Sun Mar 22 18:01:59 1998
> @@ -127,6 +127,9 @@
> }
> \
> }
>
> +#undef CC1PLUS_SPEC
> +#define CC1PLUS_SPEC "-fsjlj-exceptions"
Is this really necessary for ELF? I would have expected the unwinder
mechanisms to work for just about any x86 ELF target. Is that not
the case?
jeff
More information about the Gcc-bugs
mailing list