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

--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Andreas Schwab from comment #1)
> It refers to the source files generated from this file.  You need to look at
> the context to see which file was actually compiled.

g++ -fno-PIE -c   -g -O3 -Wall -Wlogical-op -DIN_GCC     -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H
-I. -I. -I../../trunk/gcc -I../../trunk/gcc/. -I../../trunk/gcc/../include
-I../../trunk/gcc/../libcpp/include  -I../../trunk/gcc/../libdecnumber
-I../../trunk/gcc/../libdecnumber/bid -I../libdecnumber
-I../../trunk/gcc/../libbacktrace   -o insn-latencytab.o -MT insn-latencytab.o
-MMD -MP -MF ./.deps/insn-latencytab.TPo insn-latencytab.c
../../trunk/gcc/config/i386/i386.md: In function ‘int
insn_default_latency_atom(rtx_insn*)’:
../../trunk/gcc/config/i386/i386.md:19853:36: warning: logical ‘or’ of
collectively exhaustive tests is always true [-Wlogical-op]
../../trunk/gcc/config/i386/i386.md: In function ‘int
insn_default_latency_slm(rtx_insn*)’:
../../trunk/gcc/config/i386/i386.md:21035:36: warning: logical ‘or’ of
collectively exhaustive tests is always true [-Wlogical-op]

File insn-latencytab.c seems to be generated in some way.

I can pin the warning downto this piece of source code in the file:

    case 4:  /* *cmpdi_ccno_1 */
    case 3:  /* *cmpsi_ccno_1 */
    case 2:  /* *cmphi_ccno_1 */
    case 1:  /* *cmpqi_ccno_1 */
      extract_constrain_insn_cached (insn);
      if ((which_alternative != 0) || (which_alternative != 1) ||
(get_attr_memory (insn) == MEMORY_NONE))

Reply via email to