re PR bootstrap/44807 (bootstrap failure on i686 with BOOT_CFLAGS='-O3')
2010-11-03 Richard Guenther <rguenther@suse.de> PR tree-optimization/44807 * gcc.dg/torture/pr44807.c: New testcase. From-SVN: r166256
This commit is contained in:
parent
34e1a1443f
commit
b7fa98e27b
2 changed files with 45 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-11-03 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/44807
|
||||
* gcc.dg/torture/pr44807.c: New testcase.
|
||||
|
||||
2010-11-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR libgfortran/43899
|
||||
|
|
40
gcc/testsuite/gcc.dg/torture/pr44807.c
Normal file
40
gcc/testsuite/gcc.dg/torture/pr44807.c
Normal file
|
@ -0,0 +1,40 @@
|
|||
/* { dg-do compile } */
|
||||
|
||||
struct jobstats
|
||||
{
|
||||
int j_jobslots;
|
||||
};
|
||||
struct jobstats js;
|
||||
int *jobs;
|
||||
|
||||
typedef int sh_job_map_func_t (int *, int, int, int);
|
||||
|
||||
static void
|
||||
map_over_jobs (sh_job_map_func_t func)
|
||||
{
|
||||
int i;
|
||||
int set, oset;
|
||||
if (js.j_jobslots)
|
||||
return;
|
||||
sigemptyset (&set);
|
||||
sigaddset (set, 17);
|
||||
sigemptyset (&oset);
|
||||
sigprocmask (0, set, oset);
|
||||
for (i = 0; js.j_jobslots; i++)
|
||||
if (jobs[i])
|
||||
func (jobs, 0, 0, 0);
|
||||
sigprocmask (oset, ((void *) 0));
|
||||
}
|
||||
|
||||
int
|
||||
print_job (int *job, int format, int state, int job_index)
|
||||
{
|
||||
map_over_jobs (print_job);
|
||||
}
|
||||
|
||||
void
|
||||
list_running_jobs (void)
|
||||
{
|
||||
map_over_jobs (print_job);
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue