Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,262
    • Issues 4,262
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 405
    • Merge Requests 405
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #12416

Closed
Open
Opened Jul 21, 2016 by Ben Gamari@bgamari🐢Maintainer

Some GCC versions warn about failed inlines

gcc 4.8.4 on Ubuntu 14.04 warns about failed inlinings. I'm not really sure what to do about this at the moment, so I'm going to leave this here.

In file included from rts/Schedule.h:15:0: error:
    0,                                                                                                                                                                            from rts/Capability.c:23:                                                                                                               In function ‘initCapability’:                                                                                                                                                                                                                                                                                             rts/Trace.h:742:20: error:                                                                                                                                        warning: inlining failed in call to ‘traceSparkCounters.part.10’: call is unlikely and code size would grow [-Winline]                                       INLINE_HEADER void traceSparkCounters(Capability *cap STG_UNUSED)                                                                                                               ^                                                                                                                                    cc1: warning: called from here [-Winline]                                                                                                                    In function ‘yieldCapability’:                                                                                                                                                                                                                                                                                            rts/Trace.h:742:20: error:                                                                                                                                        warning: inlining failed in call to ‘traceSparkCounters.part.10’: call is unlikely and code size would grow [-Winline]                                       INLINE_HEADER void traceSparkCounters(Capability *cap STG_UNUSED)                                                                                                               ^                                                                                                                                    cc1: warning: called from here [-Winline]                                                                                                                    In function ‘shutdownCapabilities’:                                                                                                                                                                                                                                                                                       rts/Trace.h:742:20: error:                                                                                                                                        warning: inlining failed in call to ‘traceSparkCounters.part.10’: call is unlikely and code size would grow [-Winline]                                       INLINE_HEADER void traceSparkCounters(Capability *cap STG_UNUSED)                                                                                                               ^                                                                                                                                    cc1: warning: called from here [-Winline]                                                                   
Trac metadata
Trac field Value
Version 8.0.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC simonmar
Operating system
Architecture
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#12416