WIN-18: remove exception.cc dependancy on libstdc++-v3 headers
Tom Tromey
tromey@redhat.com
Tue Feb 12 16:29:00 GMT 2002
>>>>> "Adam" == Adam Megacz <patches@lists.megacz.com> writes:
>> 1. Add a comment before the `namespace std' explaining why we need this.
>> This is the sort of oddity we must document in the source.
>> 2. I think this should be formatted:
Adam> Cool. Committed as shown below:
This patch introduced a new warning. Please make sure not to
introduce warning regressions.
Fixed as appended.
Tom
2002-02-12 Tom Tromey <tromey@redhat.com>
* exception.cc (std::abort): Mark as noreturn.
Index: exception.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/exception.cc,v
retrieving revision 1.19
diff -u -r1.19 exception.cc
--- exception.cc 2002/02/11 22:28:58 1.19
+++ exception.cc 2002/02/12 20:50:05
@@ -1,6 +1,6 @@
// Functions for Exception Support for Java.
-/* Copyright (C) 1998, 1999, 2001 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation
This file is part of libgcj.
@@ -23,7 +23,7 @@
// stdlib.h's abort().
namespace std
{
- void abort ()
+ __attribute__ ((__noreturn__)) void abort ()
{
::abort ();
}
More information about the Java-patches
mailing list