Project

General

Profile

Actions

Bug #13682

closed

libc: '_getcontext' specifies less restrictive attribute than its target

Added by Toomas Soome about 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build error with gcc 10 on SPARC:

    cc1: error: '_getcontext' specifies less restrictive attribute than its target 'getcontext': 'returns_twice' [-Werror=missing-attributes]
    gen/getctxt.c:40:1: note: '_getcontext' target declared here
       40 | getcontext(ucontext_t *ucp)
          | ^~~~~~~~~~
    cc1: all warnings being treated as errors
    *** Error code 1
    dmake: Fatal error: Command failed for target `pics/getctxt.o'

Testing done: build


Related issues

Related to illumos gate - Bug #12151: libc: specifies less restrictive attribute than its targetClosedToomas Soome

Actions
Actions #1

Updated by Toomas Soome about 2 months ago

  • Related to Bug #12151: libc: specifies less restrictive attribute than its target added
Actions #2

Updated by Electric Monk about 2 months ago

  • Gerrit CR set to 1376
Actions #3

Updated by Electric Monk about 1 month ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit dd699a3e07422d6135575d35b14927cd260ef32e

commit  dd699a3e07422d6135575d35b14927cd260ef32e
Author: Toomas Soome <tsoome@me.com>
Date:   2021-04-01T16:52:11.000Z

    13682 libc: '_getcontext' specifies less restrictive attribute than its target
    Reviewed by: Robert Mustacchi <rm@fingolfin.org>
    Approved by: Gordon Ross <gordon.w.ross@gmail.com>

Actions

Also available in: Atom PDF