Project

General

Profile

Actions

Bug #5396

closed

fix longjmp clobbering errors

Added by Gary Mills almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
tools - gate/build tools
Start date:
2014-12-05
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

When building illumos with gcc 4.8.2, these errors appear:


input.c:66:12: error: variable 'savesig' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
dmake: Warning: Command failed for target `input.o'
display.c:390:12: error: variable 'savesig' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
dmake: Warning: Command failed for target `display.o'
dmake: Warning: Target `install' not remade because of errors
The following command caused the error:
dmake: Warning: Command failed for target `cscope-fast'

These are both in usr/src/tools/cscope-fast . When I look at the code in the mygetch() function, I can't determine how it's supposed to work. Maybe somebody who knows more about signal handling than I can tell us. My workaround, which only suppresses the error, consists of this addition to the Makefile:


CERRWARN += -_gcc=-Wno-clobbered

Note that many other errors have also been suppressed in a similar manner in the Makefile .

Actions

Also available in: Atom PDF