aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTodd Vierling <tv@pobox.com>1998-01-27 21:16:28 +0000
committerJeff Law <law@gcc.gnu.org>1998-01-27 14:16:28 -0700
commite95f01957fbd55ec6d44e96142bbd441dd0f6562 (patch)
tree9bca0b1d738fd02492a58c037cff4703d57a7289 /gcc
parente1467ff26b70f3475d37606d391e3b458dec4798 (diff)
downloadgcc-e95f01957fbd55ec6d44e96142bbd441dd0f6562.zip
gcc-e95f01957fbd55ec6d44e96142bbd441dd0f6562.tar.gz
gcc-e95f01957fbd55ec6d44e96142bbd441dd0f6562.tar.bz2
* fixincludes: Tweak fix for struct exception in math.h
From-SVN: r17513
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rwxr-xr-xgcc/fixincludes12
2 files changed, 12 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 41e4418..07b42ad 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jan 27 22:14:48 1998 Todd Vierling <tv@pobox.com>
+
+ * fixincludes: Tweak fix for struct exception in math.h
+
Tue Jan 27 17:21:09 1998 Gavin Koch (gavin@cygnus.com)
* mips/mips.c (mips_expand_prologue,mips_expand_epilogue):
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 42d81b9..22d6c0e 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -2822,21 +2822,25 @@ if [ -r ${LIB}/$file ]; then
sed -e '/struct exception/i\
#ifdef __cplusplus\
#define exception __math_exception\
-#endif'\
+#endif
+'\
-e '/struct exception/a\
#ifdef __cplusplus\
#undef exception\
-#endif' ${LIB}/$file > ${LIB}/${file}.sed
+#endif
+' ${LIB}/$file > ${LIB}/${file}.sed
rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
if egrep 'matherr()' ${LIB}/$file >/dev/null 2>&1; then
sed -e '/matherr/i\
#ifdef __cplusplus\
#define exception __math_exception\
-#endif'\
+#endif
+'\
-e '/matherr/a\
#ifdef __cplusplus\
#undef exception\
-#endif' ${LIB}/$file > ${LIB}/${file}.sed
+#endif
+' ${LIB}/$file > ${LIB}/${file}.sed
rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
fi
if cmp $file ${LIB}/$file >/dev/null 2>&1; then