Bug 25160 - error: suggest parentheses around ‘+’ in operand of ‘&’ [-Werror=parentheses]
Summary: error: suggest parentheses around ‘+’ in operand of ‘&’ [-Werror=parentheses]
Status: NEW
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-04 10:58 UTC by Martin Cermak
Modified: 2019-11-04 10:58 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Cermak 2019-11-04 10:58:48 UTC
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 #