Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 650
    • Issues 650
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyPy
  • pypypypy
  • Issues
  • #3135

Closed
Open
Created Dec 24, 2019 by Bitbucket Importer@bitbucket_importerMaintainer

Compiler warnings when translating

Created originally on Bitbucket by mattip

There are many warnings when translating.

‌

This one (one example of tens of such warnings)

[platform:WARNING] rpython_rlib_4.c: In function ‘pypy_g_TimSort_merge_collapse_13’:
[platform:WARNING] /<path>/pypy/rpython/translator/c/src/int.h:32:30: warning: assuming \
        signed overflow does not occur when assuming that (X - c) <= X is always true \
        [-Wstrict-overflow]
[platform:WARNING]  #define OP_INT_LT(x,y,r)   r = ((x) <  (y))
[platform:WARNING] rpython_rlib_4.c:9390:4: note: in expansion of macro ‘OP_INT_LT’
[platform:WARNING]     OP_INT_LT(l_index_11327, l_v2221820, l_v2221848);

is strange. All the values are Signed which is long. When I try to replicate with godbolt, I do not get that warning

We also discard const qualifiers when accessing a struct field:

platform:WARNING] pypy_module_time.c: In function ‘pypy_g__init_timezone’:
[platform:WARNING] pypy_module_time.c:370:11: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
[platform:WARNING]   l_cp_134 = RPyField(l_res_2143, tm_zone);

There are many more warnings, but these overshadow the other warnings.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking