Prevent dead code on !x86 in prepare_dynamic_rel
commit776aa0c093cc6083cbb61d0db8e303209b21bbad
authorThomas Preud'homme <robotux@celest.fr>
Sat, 24 Feb 2018 15:50:14 +0000 (24 15:50 +0000)
committerThomas Preud'homme <robotux@celest.fr>
Sat, 24 Feb 2018 19:35:15 +0000 (24 19:35 +0000)
tree0092974992ee82aa3971f6003dbf18d754ad1fd1
parent3e6515b64fe615b90dc758d95862a1626494862f
Prevent dead code on !x86 in prepare_dynamic_rel

In prepare_dynamic_rel() on non x86 targets the count++ statements
appear before any case label and are therefore dead code. This triggers
build failure when building with -Werror. This patch adds an extra guard
around all the x86 case labels and their associated action, leaving just
the default case label for non x86 targets which builds fine.

Origin: vendor
Forwarded: no
Last-Updated: 2018-02-24
tccelf.c