This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug boehm-gc/66886] New: trunk/boehm-gc/darwin_stop_world.c: 2 * redundant code


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66886

            Bug ID: 66886
           Summary: trunk/boehm-gc/darwin_stop_world.c: 2 * redundant code
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: boehm-gc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

1.

[trunk/boehm-gc/darwin_stop_world.c:335]: (style) Redundant condition:
GC_use_mach_handler_thread. 'A && (!A || B)' is equivalent to 'A || B'

    (!GC_use_mach_handler_thread
     || (GC_use_mach_handler_thread
         && GC_mach_handler_thread != thread))) {

2.

[trunk/boehm-gc/darwin_stop_world.c:474]: (style) Redundant condition:
GC_use_mach_handler_thread. 'A && (!A || B)' is equivalent to 'A || B'

      (!GC_use_mach_handler_thread ||
       (GC_use_mach_handler_thread && GC_mach_handler_thread != thread))) {


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