aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@kyoto.noir.com>1998-04-15 09:17:24 +0000
committerJeff Law <law@gcc.gnu.org>1998-04-15 03:17:24 -0600
commit9aeba741d928c4c1c17d91d4bfaa562bf8c3c278 (patch)
tree9c2de264e7f4a3f4faa99d747e9650d896317b68
parent7878eae79957316b025f9647dd5fb66d3b9b3f91 (diff)
downloadgcc-9aeba741d928c4c1c17d91d4bfaa562bf8c3c278.zip
gcc-9aeba741d928c4c1c17d91d4bfaa562bf8c3c278.tar.gz
gcc-9aeba741d928c4c1c17d91d4bfaa562bf8c3c278.tar.bz2
fixincludes: discard empty C++ comments, as found in sys/time.h on hpux-11.0.
* fixincludes: discard empty C++ comments, as found in sys/time.h on hpux-11.0. From-SVN: r19221
-rw-r--r--gcc/ChangeLog5
-rwxr-xr-xgcc/fixincludes1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6c1a2fe..79918ac 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Tue Apr 14 07:30:57 1998 K. Richard Pixley <rich@kyoto.noir.com>
+
+ * fixincludes: discard empty C++ comments, as found in sys/time.h
+ on hpux-11.0.
+
Wed Apr 15 10:47:21 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* config/m68k/m68k.md (adddi3, subdi3): Optimize for constant
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 08c857f..8400c6f 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -290,6 +290,7 @@ while [ $# != 0 ]; do
s%^\([ ]*#[ ]*endif\)[ ]*\*[^/].*%\1%
s%^\([ ]*#[ ]*endif\)[ ]*[^/* ].*%\1%
/\/\/[^*]/ s|//\(.*\)$|/*\1*/|
+ /^[ ]*\/\/[ ]*/s///
/[ ]_IO[A-Z]*[ ]*(/ s/\(_IO[A-Z]*[ ]*(\)\(.\),/\1'\''\2'\'',/
/[ ]BSD43__IO[A-Z]*[ ]*(/ s/(\(.\),/('\''\1'\'',/
/#[ ]*define[ ]*[ ]_IO/ s/'\''\([cgxtf]\)'\''/\1/g