Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Issues
  • #4086
Closed
Open
Issue created Feb 08, 2020 by Derek Bruening@derekbrueningContributor

32-bit release build fails with warning on gcc 9

FAILED: core/CMakeFiles/dynamorio_static.dir/unix/loader.c.o 
/usr/bin/cc -DSTATIC_LIBRARY -I/home/bruening/dr/git/src/core/drlibc -I/home/bruening/dr/git/src/core/arch/x86 -I/home/bruening/dr/git/src/core/unix -I/home/bruening/dr/git/src/core/arch -I/home/bruening/dr/git/src/core/lib -I. -Iinclude/annotations -m32  -fno-strict-aliasing -fno-stack-protector -mpreferred-stack-boundary=2 -fvisibility=internal  -std=gnu99 -fno-unwind-tables -O3 -g3 -Wall -Werror -Wwrite-strings -Wno-unused-but-set-variable -Wno-stringop-truncation -Wno-format-truncation -Wno-stringop-overflow     -fPIC -MD -MT core/CMakeFiles/dynamorio_static.dir/unix/loader.c.o -MF core/CMakeFiles/dynamorio_static.dir/unix/loader.c.o.d -o core/CMakeFiles/dynamorio_static.dir/unix/loader.c.o   -c /home/bruening/dr/git/src/core/unix/loader.c
/home/bruening/dr/git/src/core/unix/loader.c: In function ‘privload_call_entry’:
/home/bruening/dr/git/src/core/unix/loader.c:990:5: error: listing the stack pointer register ‘esp’ in a clobber list is deprecated [-Werror=deprecated]
  990 |     __asm__ __volatile__("mov %%esp, %%edi\n"       /* Save the pre-alignment sp. */
      |     ^~~~~~~
/home/bruening/dr/git/src/core/unix/loader.c:990:5: note: the value of the stack pointer after an ‘asm’ statement must be the same as it was before the statement
/home/bruening/dr/git/src/core/unix/loader.c:990:5: error: listing the stack pointer register ‘esp’ in a clobber list is deprecated [-Werror=deprecated]
  990 |     __asm__ __volatile__("mov %%esp, %%edi\n"       /* Save the pre-alignment sp. */
      |     ^~~~~~~
/home/bruening/dr/git/src/core/unix/loader.c:990:5: note: the value of the stack pointer after an ‘asm’ statement must be the same as it was before the statement
/home/bruening/dr/git/src/core/unix/loader.c:990:5: error: listing the stack pointer register ‘esp’ in a clobber list is deprecated [-Werror=deprecated]
  990 |     __asm__ __volatile__("mov %%esp, %%edi\n"       /* Save the pre-alignment sp. */
      |     ^~~~~~~
/home/bruening/dr/git/src/core/unix/loader.c:990:5: note: the value of the stack pointer after an ‘asm’ statement must be the same as it was before the statement
/home/bruening/dr/git/src/core/unix/loader.c:990:5: error: listing the stack pointer register ‘esp’ in a clobber list is deprecated [-Werror=deprecated]
  990 |     __asm__ __volatile__("mov %%esp, %%edi\n"       /* Save the pre-alignment sp. */
      |     ^~~~~~~
/home/bruening/dr/git/src/core/unix/loader.c:990:5: note: the value of the stack pointer after an ‘asm’ statement must be the same as it was before the statement
cc1: all warnings being treated as errors
Assignee
Assign to
Time tracking