https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101362

            Bug ID: 101362
           Summary: can_change_signature does not consider 'used'
                    attribute
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

For

static int __attribute__((used)) fn (int x)
{
  return x;
}

int main() { return fn (0); }

compute_fn_summary will end up with ->can_change_signature = true; but I think
'used' implies the function will be used in ways not visible to GCC.

Reply via email to