[Bug translator/25160] New: error: suggest parentheses around ‘+’ in operand of ‘&’ [-Werror=parentheses]

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug translator/25160] New: error: suggest parentheses around ‘+’ in operand of ‘&’ [-Werror=parentheses]

tromey at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25160

            Bug ID: 25160
           Summary: error: suggest parentheses around ‘+’ in operand of
                    ‘&’ [-Werror=parentheses]
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: mcermak at redhat dot com
  Target Milestone: ---

On ppc64, ppc64le, and s390, I'm hitting this error:

scr2   7.8 Server ppc64 # stap -vp4
testsuite/buildok/stap_staticmarkers-detailed.stp
Pass 1: parsed user script and 496 library scripts using
198848virt/79296res/9280shr/64704data kb, in 1310usr/0sys/1310real ms.
Pass 2: analyzed script: 26 probes, 6 functions, 1 embed, 0 globals using
201536virt/83648res/10880shr/67392data kb, in 60usr/0sys/57real ms.
Pass 3: translated to C into
"/tmp/stapd05FjS/stap_3ffa59b26dca194e3a6b62f8f260f577_11533_src.c" using
201728virt/84160res/11264shr/67584data kb, in 20usr/100sys/124real ms.
/tmp/stapd05FjS/stap_3ffa59b26dca194e3a6b62f8f260f577_11533_src.c: In function
‘probe_6473’:
/tmp/stapd05FjS/stap_3ffa59b26dca194e3a6b62f8f260f577_11533_src.c:858:85:
error: suggest parentheses around ‘+’ in operand of ‘&’ [-Werror=parentheses]
           l->__tmp3 = (((int64_t) (/* unprivileged */ /* pure
*/u_fetch_register(10)+(u_fetch_register(9)*1))));
                                                                               
     ^
/tmp/stapd05FjS/stap_3ffa59b26dca194e3a6b62f8f260f577_11533_src.c: At top
level:
cc1: error: unrecognized command line option "-Wno-tautological-compare"
[-Werror]
cc1: all warnings being treated as errors
make[1]: ***
[/tmp/stapd05FjS/stap_3ffa59b26dca194e3a6b62f8f260f577_11533_src.o] Error 1
make: *** [_module_/tmp/stapd05FjS] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_3ffa59b26dca194e3a6b62f8f260f577_11533.ko" in
10300usr/750sys/10919real ms.
Pass 4: compilation failed.  [man error::pass4]
(1) scr2   7.8 Server ppc64 # stap --version
Systemtap translator/driver (version 4.2/0.176, commit
release-4.1-100-ga8c7c8f114fa + changes)
Copyright (C) 2005-2019 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
tested kernel versions: 2.6.18 ... 5.1-rc2
enabled features: AVAHI BOOST_STRING_REF DYNINST BPF JAVA PYTHON2 PYTHON3
LIBRPM LIBSQLITE3 LIBVIRT LIBXML2 NLS NSS READLINE
scr2   7.8 Server ppc64 #

--
You are receiving this mail because:
You are the assignee for the bug.