-
Notifications
You must be signed in to change notification settings - Fork 17
PS-10970 fix clang volatile warnings #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -101,6 +101,7 @@ typedef struct fpxregs { /* SSE registers */ | |
| #define FPREGS fpxregs | ||
| #else | ||
| typedef struct fpxregs { /* x86-64 stores FPU registers in SSE struct */ | ||
| uint8_t unused; | ||
| } fpxregs; | ||
| typedef struct fpregs { /* FPU registers */ | ||
| #define FPREGS fpregs | ||
|
|
@@ -123,6 +124,7 @@ typedef struct fpregs { /* FPU registers */ | |
| #define regs i386_regs /* General purpose registers */ | ||
| #elif defined(__ARM_ARCH_3__) | ||
| typedef struct fpxregs { /* No extended FPU registers on ARM */ | ||
| uint8_t unused; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't analyze the whole thing, but see that there are places like |
||
| } fpxregs; | ||
| typedef struct fpregs { /* FPU registers */ | ||
| struct fp_reg { | ||
|
|
@@ -142,6 +144,7 @@ typedef struct fpregs { /* FPU registers */ | |
| #define regs arm_regs /* General purpose registers */ | ||
| #elif defined(__mips__) | ||
| typedef struct fpxregs { /* No extended FPU registers on MIPS */ | ||
| uint8_t unused; | ||
| } fpxregs; | ||
| typedef struct fpregs { | ||
| uint64_t fpuregs[32]; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -187,12 +187,14 @@ static volatile int *sig_pids, sig_num_threads, sig_proc, sig_marker; | |
| static void SignalHandler(int signum, siginfo_t *si, void *data) { | ||
| if (sig_pids != NULL) { | ||
| if (signum == SIGABRT) { | ||
| while (sig_num_threads-- > 0) { | ||
| while (sig_num_threads > 0) { | ||
| const int next_thread = sig_num_threads - 1; | ||
| sig_num_threads = next_thread; | ||
| /* Not sure if sched_yield is really necessary here, but it does not */ | ||
| /* hurt, and it might be necessary for the same reasons that we have */ | ||
| /* to do so in sys_ptrace_detach(). */ | ||
| sys_sched_yield(); | ||
| sys_ptrace(PTRACE_KILL, sig_pids[sig_num_threads], 0, 0); | ||
| sys_ptrace(PTRACE_KILL, sig_pids[next_thread], 0, 0); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The issue here seems to be |
||
| } | ||
| } else if (sig_num_threads > 0) { | ||
| ResumeAllProcessThreads(sig_num_threads, (int *)sig_pids); | ||
|
|
@@ -306,7 +308,9 @@ static void ListerThread(struct ListerParams *args) { | |
| * check there first, and then fall back on the older naming | ||
| * convention if necessary. | ||
| */ | ||
| if ((sig_proc = proc = c_open(*proc_path, O_RDONLY | O_DIRECTORY, 0)) < 0) { | ||
| proc = c_open(*proc_path, O_RDONLY | O_DIRECTORY, 0); | ||
| sig_proc = proc; | ||
| if (proc < 0) { | ||
| if (*++proc_path != NULL) continue; | ||
| goto failure; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may require a quite new cmake version. Please check it.