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

            Bug ID: 116069
           Summary: tautological-compare warnings observed only with
                    -save-temps
           Product: gcc
           Version: 14.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jbeulich at suse dot com
  Target Milestone: ---

In a construct using a macro like

# define iommu_call(ops, fn, args...) ({      \
    ASSERT((ops) == &iommu_ops);              \
    alternative_call(iommu_ops.fn, ## args);  \
})

no warning appears when compiling normally, but a warning is raised on every
use site when using -save-temps. Together with -Werror this causes builds to
fail. (For context, this is an arch override for something that has a common
default of

# define iommu_call(ops, fn, args...) ((ops)->fn(args))

.)

Bug 78497 is somewhat related, yet there aren't any comments here to retain
(with -C, as suggested there).

Reply via email to