• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

google / benchmark / 1004
92%

Build:
DEFAULT BRANCH: master
Ran 02 Jun 2017 10:49PM UTC
Jobs 1
Files 35
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1004

push

travis-ci

dominichamon
Fix #342: DoNotOptimize causes compile errors on older GCC versions. (#398)

* Fix #342: DoNotOptimize causes compile errors on older GCC versions.

DoNotOptimize uses inline assembly contraints to tell
the compiler what the type of the input variable. The 'g'
operand allows the input to be any register, memory, or
immediate integer operand. However this constraint seems
to be too weak on older GCC versions, and certain inputs
will cause compile errors.

This patch changes the constraint to 'X', which is documented
as "any operand whatsoever is allowed". This appears to fix
the issues with older GCC versions.

However Clang doesn't seem to like "X", and will attempt
to put the input into a register even when it can't/shouldn't;
causing a compile error. However using "g" seems to work like
"X" with GCC, so for this reason Clang still uses "g".

* Try alternative formulation to placate GCC

1 of 1 new or added line in 1 file covered. (100.0%)

1376 of 1591 relevant lines covered (86.49%)

3606312.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1004.1 (COMPILER=g++ C_COMPILER=gcc BUILD_TYPE=Coverage) 02 Jun 2017 10:49PM UTC 0
86.49
Travis Job 1004.1
Source Files on build 1004
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1004
  • 93bfabc8 on github
  • Prev Build on master (#996)
  • Next Build on master (#1007)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc