This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[COMMITED][GOLD] Revert change in dynobj.h


Hi,

    I have just committed the patch is this mail to revert:

http://sourceware.org/ml/binutils-cvs/2009-08/msg00043.html

Ian thinks that patch should not be checked in.

>I'm not sure if this went in already, but this patch should not go in.
>Using gold_unreachable should be enough for the compiler to know that
>the function does not return.  If using a compiler which does not
>understand that, the compiler should not be using warning flags.  I
>would prefer to see an autoconf test to control the warning options,
>rather than adding this useless return statement to the function.
>
>Ian

-Doug

2009-08-09  Doug Kwan  <dougkwan@google.com>

        * dynobj.h (Sized_dynobj::do_section_entsize): Revert the previous
        patch.

Index: gold/dynobj.h
===================================================================
RCS file: /cvs/src/src/gold/dynobj.h,v
retrieving revision 1.30
diff -u -r1.30 dynobj.h
--- gold/dynobj.h       7 Aug 2009 18:48:44 -0000       1.30
+++ gold/dynobj.h       10 Aug 2009 02:28:26 -0000
@@ -201,7 +201,7 @@
   // Not used for dynobj.
   uint64_t
   do_section_entsize(unsigned int )
-  { gold_unreachable(); return 0; }
+  { gold_unreachable(); }

   // Return section address.
   uint64_t


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]