diff --git a/gcc/ChangeLog b/gcc/ChangeLog index abdc2855ac0..c5e642c5e10 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2006-03-13 Jie Zhang + + * config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC. + 2006-03-13 Jeff Law * tree-vrp.c (stmt_interesting_for_vrp): Some statements with diff --git a/gcc/config/bfin/uclinux.h b/gcc/config/bfin/uclinux.h index 4372af24257..7476df8255a 100644 --- a/gcc/config/bfin/uclinux.h +++ b/gcc/config/bfin/uclinux.h @@ -1,3 +1,7 @@ +/* The GNU C++ standard library requires that these macros be defined. */ +#undef CPLUSPLUS_CPP_SPEC +#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)" + #undef STARTFILE_SPEC #define STARTFILE_SPEC \ "crt1%O%s crti%O%s crtbegin%O%s crtlibid%O%s"