summaryrefslogtreecommitdiff
path: root/gcc/dwarfout.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-01-14 20:57:58 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-01-14 20:57:58 +0000
commit220345e0620e402f170696f15570e3f47a1bec43 (patch)
tree028c0425d9847ebff16ca9566dcf696998e902b9 /gcc/dwarfout.c
parent4b2eb5772fc4730e07ae4881d2deca5cc50331b6 (diff)
downloadgcc-220345e0620e402f170696f15570e3f47a1bec43.tar.gz
Bring in final gcc-2.8.0 changes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17355 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r--gcc/dwarfout.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c
index 528886a34f8..46815239ecb 100644
--- a/gcc/dwarfout.c
+++ b/gcc/dwarfout.c
@@ -58,6 +58,15 @@ extern time_t time ();
#endif
#endif
+/* We cannot use <assert.h> in GCC source, since that would include
+ GCC's assert.h, which may not be compatible with the host compiler. */
+#undef assert
+#ifdef NDEBUG
+# define assert(e)
+#else
+# define assert(e) do { if (! (e)) abort (); } while (0)
+#endif
+
extern char *getpwd ();
#ifdef NEED_DECLARATION_INDEX