--- Comment #8 from rguenth at gcc dot gnu dot org 2010-01-17 10:23 ---
-Wunreachable-code has been removed.
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #7 from pinskia at gcc dot gnu dot org 2008-10-27 01:49 ---
This requires us to record that the macros came from system headers and so did
the expansion.
Also -Wunreachable-code is useless for most cases in general because of
inlining and such.
--
pinskia at gcc dot gnu
--- Comment #6 from flameeyes at gentoo dot org 2008-10-21 23:48 ---
Created an attachment (id=16525)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16525&action=view)
Preprocessed test case
That's because I forgot to turn on -O2 :/
tc-htons-unrechable.c: In function âmy_htonsâ
--- Comment #5 from manu at gcc dot gnu dot org 2008-10-21 23:36 ---
(In reply to comment #4)
> Created an attachment (id=16524)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16524&action=view) [edit]
> Preprocessed test case
>
I don't see that htons was expanded as a macro there
--- Comment #4 from flameeyes at gentoo dot org 2008-10-21 23:19 ---
Created an attachment (id=16524)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16524&action=view)
Preprocessed test case
For what it's worth this is glibc 2.8 on Gentoo, AMD64 multilib system.
--
http://gcc.
--- Comment #3 from manu at gcc dot gnu dot org 2008-10-21 23:12 ---
I cannot reproduce this because it seems that in my system
x86_64-unknown-linux-gnu, htons is not expanded as a macro.
Could you also add a preprocessed testcase and the exact output from the
compiler? Please, also use
--- Comment #2 from flameeyes at gentoo dot org 2008-10-21 22:56 ---
Created an attachment (id=16523)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16523&action=view)
tc-htons-unreachable.c
Sure here it is, there isn't much of a testcase I admit ;)
--
http://gcc.gnu.org/bugzi
--- Comment #1 from manu at gcc dot gnu dot org 2008-10-21 21:03 ---
We need a complete testcase. See http://gcc.gnu.org/bugs.html
In this case, we would need the unpreprocessed testcase but we still need a
complete one that we can compile ourselves. Thanks.
--
manu at gcc dot gnu d