OSDN Git Service

sync mainline to 3.1
authorkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 May 2002 05:18:08 +0000 (05:18 +0000)
committerkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 May 2002 05:18:08 +0000 (05:18 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53034 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/fixinc/check.tpl
gcc/fixinc/inclhack.def
gcc/fixinc/tests/base/assert.h

index 59a01f2..04e6b17 100644 (file)
@@ -5,6 +5,12 @@
         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
         PRE_INC and PRE_DEC for altivec modes.
 
+2002-05-01  Bruce Korb  <bkorb@gnu.org>
+
+       * fixinc/check.tpl(set-writable): make sure the function exists first
+       * fixinc/inclhack.def(alpha_assert): fix test_text
+       * fixinc/tests/base/assert.h: add in missing result
+
 2002-05-01  Jeff Law  <law@redhat.com>
 
        * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
index fd03b3e..a241d18 100644 (file)
@@ -171,6 +171,6 @@ else
 fi
 $exitok[=
 
-(set-writable)
+(if (defined? 'set-writable) (set-writable))
 
 =]
index 0f1a210..764f621 100644 (file)
@@ -2089,7 +2089,7 @@ fix = {
     select   = '__cplusplus < 54321L';
     sed      = 's/defined(__cplusplus) && (__cplusplus < 54321L)/0/';
 
-    test_text = '#if\tdefined(__cplusplus) && (__cplusplus < 54321L)';
+    test_text = "#if\tdefined(__cplusplus) && (__cplusplus < 54321L)";
 };
 
 /*
index 45716a3..5140e89 100644 (file)
@@ -24,6 +24,11 @@ extern void __assert(const char *, const char *, int);
 #endif  /* ALPHA___ASSERT_CHECK */
 
 
+#if defined( ALPHA_ASSERT_CHECK )
+#define assert(EX) ((EX) ? (void)0 : __assert(#EX, __FILE__, __LINE__))
+#endif  /* ALPHA_ASSERT_CHECK */
+
+
 #if defined( BROKEN_ASSERT_STDIO_CHECK )
 extern FILE* stderr;
 #endif  /* BROKEN_ASSERT_STDIO_CHECK */