Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 777117 | Differences between
and this patch

Collapse All | Expand All

(-)a/config/cet.m4 (-3 / +16 lines)
Lines 130-135 fi Link Here
130
if test x$may_have_cet = xyes; then
130
if test x$may_have_cet = xyes; then
131
  if test x$cross_compiling = xno; then
131
  if test x$cross_compiling = xno; then
132
    AC_TRY_RUN([
132
    AC_TRY_RUN([
133
int
134
main ()
135
{
136
  asm ("endbr32");
137
  return 0;
138
}
139
    ],
140
    [have_multi_byte_nop=yes],
141
    [have_multi_byte_nop=no])
142
    have_cet=no
143
    if test x$have_multi_byte_nop = xyes; then
144
      AC_TRY_RUN([
133
static void
145
static void
134
foo (void)
146
foo (void)
135
{
147
{
Lines 155-163 main () Link Here
155
  bar ();
167
  bar ();
156
  return 0;
168
  return 0;
157
}
169
}
158
    ],
170
      ],
159
    [have_cet=no],
171
      [have_cet=no],
160
    [have_cet=yes])
172
      [have_cet=yes])
173
    fi
161
    if test x$enable_cet = xno -a x$have_cet = xyes; then
174
    if test x$enable_cet = xno -a x$have_cet = xyes; then
162
      AC_MSG_ERROR([Intel CET must be enabled on Intel CET enabled host])
175
      AC_MSG_ERROR([Intel CET must be enabled on Intel CET enabled host])
163
    fi
176
    fi
(-)a/gcc/configure (+29 lines)
Lines 32416-32421 else Link Here
32416
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32416
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32417
/* end confdefs.h.  */
32417
/* end confdefs.h.  */
32418
32418
32419
int
32420
main ()
32421
{
32422
  asm ("endbr32");
32423
  return 0;
32424
}
32425
32426
_ACEOF
32427
if ac_fn_cxx_try_run "$LINENO"; then :
32428
  have_multi_byte_nop=yes
32429
else
32430
  have_multi_byte_nop=no
32431
fi
32432
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32433
  conftest.$ac_objext conftest.beam conftest.$ac_ext
32434
fi
32435
32436
    have_cet=no
32437
    if test x$have_multi_byte_nop = xyes; then
32438
      if test "$cross_compiling" = yes; then :
32439
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32440
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32441
as_fn_error $? "cannot run test program while cross compiling
32442
See \`config.log' for more details" "$LINENO" 5; }
32443
else
32444
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32445
/* end confdefs.h.  */
32446
32419
static void
32447
static void
32420
foo (void)
32448
foo (void)
32421
{
32449
{
Lines 32452-32457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ Link Here
32452
  conftest.$ac_objext conftest.beam conftest.$ac_ext
32480
  conftest.$ac_objext conftest.beam conftest.$ac_ext
32453
fi
32481
fi
32454
32482
32483
    fi
32455
    if test x$enable_cet = xno -a x$have_cet = xyes; then
32484
    if test x$enable_cet = xno -a x$have_cet = xyes; then
32456
      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32485
      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32457
    fi
32486
    fi
(-)a/libbacktrace/configure (+29 lines)
Lines 12517-12522 else Link Here
12517
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518
/* end confdefs.h.  */
12518
/* end confdefs.h.  */
12519
12519
12520
int
12521
main ()
12522
{
12523
  asm ("endbr32");
12524
  return 0;
12525
}
12526
12527
_ACEOF
12528
if ac_fn_c_try_run "$LINENO"; then :
12529
  have_multi_byte_nop=yes
12530
else
12531
  have_multi_byte_nop=no
12532
fi
12533
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12534
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12535
fi
12536
12537
    have_cet=no
12538
    if test x$have_multi_byte_nop = xyes; then
12539
      if test "$cross_compiling" = yes; then :
12540
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12541
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12542
as_fn_error $? "cannot run test program while cross compiling
12543
See \`config.log' for more details" "$LINENO" 5; }
12544
else
12545
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546
/* end confdefs.h.  */
12547
12520
static void
12548
static void
12521
foo (void)
12549
foo (void)
12522
{
12550
{
Lines 12553-12558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ Link Here
12553
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12581
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12554
fi
12582
fi
12555
12583
12584
    fi
12556
    if test x$enable_cet = xno -a x$have_cet = xyes; then
12585
    if test x$enable_cet = xno -a x$have_cet = xyes; then
12557
      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
12586
      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
12558
    fi
12587
    fi
(-)a/libcc1/configure (+29 lines)
Lines 14653-14658 else Link Here
14653
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654
/* end confdefs.h.  */
14654
/* end confdefs.h.  */
14655
14655
14656
int
14657
main ()
14658
{
14659
  asm ("endbr32");
14660
  return 0;
14661
}
14662
14663
_ACEOF
14664
if ac_fn_c_try_run "$LINENO"; then :
14665
  have_multi_byte_nop=yes
14666
else
14667
  have_multi_byte_nop=no
14668
fi
14669
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14670
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14671
fi
14672
14673
    have_cet=no
14674
    if test x$have_multi_byte_nop = xyes; then
14675
      if test "$cross_compiling" = yes; then :
14676
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14677
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14678
as_fn_error $? "cannot run test program while cross compiling
14679
See \`config.log' for more details" "$LINENO" 5; }
14680
else
14681
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682
/* end confdefs.h.  */
14683
14656
static void
14684
static void
14657
foo (void)
14685
foo (void)
14658
{
14686
{
Lines 14689-14694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ Link Here
14689
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14717
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14690
fi
14718
fi
14691
14719
14720
    fi
14692
    if test x$enable_cet = xno -a x$have_cet = xyes; then
14721
    if test x$enable_cet = xno -a x$have_cet = xyes; then
14693
      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
14722
      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
14694
    fi
14723
    fi
(-)a/libcpp/configure (+29 lines)
Lines 7668-7673 else Link Here
7668
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669
/* end confdefs.h.  */
7669
/* end confdefs.h.  */
7670
7670
7671
int
7672
main ()
7673
{
7674
  asm ("endbr32");
7675
  return 0;
7676
}
7677
7678
_ACEOF
7679
if ac_fn_c_try_run "$LINENO"; then :
7680
  have_multi_byte_nop=yes
7681
else
7682
  have_multi_byte_nop=no
7683
fi
7684
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7685
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7686
fi
7687
7688
    have_cet=no
7689
    if test x$have_multi_byte_nop = xyes; then
7690
      if test "$cross_compiling" = yes; then :
7691
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7692
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7693
as_fn_error $? "cannot run test program while cross compiling
7694
See \`config.log' for more details" "$LINENO" 5; }
7695
else
7696
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697
/* end confdefs.h.  */
7698
7671
static void
7699
static void
7672
foo (void)
7700
foo (void)
7673
{
7701
{
Lines 7704-7709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ Link Here
7704
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7732
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7705
fi
7733
fi
7706
7734
7735
    fi
7707
    if test x$enable_cet = xno -a x$have_cet = xyes; then
7736
    if test x$enable_cet = xno -a x$have_cet = xyes; then
7708
      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
7737
      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
7709
    fi
7738
    fi
(-)a/libdecnumber/configure (+29 lines)
Lines 5321-5326 else Link Here
5321
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322
/* end confdefs.h.  */
5322
/* end confdefs.h.  */
5323
5323
5324
int
5325
main ()
5326
{
5327
  asm ("endbr32");
5328
  return 0;
5329
}
5330
5331
_ACEOF
5332
if ac_fn_c_try_run "$LINENO"; then :
5333
  have_multi_byte_nop=yes
5334
else
5335
  have_multi_byte_nop=no
5336
fi
5337
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5338
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5339
fi
5340
5341
    have_cet=no
5342
    if test x$have_multi_byte_nop = xyes; then
5343
      if test "$cross_compiling" = yes; then :
5344
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5345
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5346
as_fn_error $? "cannot run test program while cross compiling
5347
See \`config.log' for more details" "$LINENO" 5; }
5348
else
5349
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350
/* end confdefs.h.  */
5351
5324
static void
5352
static void
5325
foo (void)
5353
foo (void)
5326
{
5354
{
Lines 5357-5362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ Link Here
5357
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5385
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5358
fi
5386
fi
5359
5387
5388
    fi
5360
    if test x$enable_cet = xno -a x$have_cet = xyes; then
5389
    if test x$enable_cet = xno -a x$have_cet = xyes; then
5361
      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5390
      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5362
    fi
5391
    fi
(-)a/libiberty/configure (+29 lines)
Lines 5396-5401 else Link Here
5396
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397
/* end confdefs.h.  */
5397
/* end confdefs.h.  */
5398
5398
5399
int
5400
main ()
5401
{
5402
  asm ("endbr32");
5403
  return 0;
5404
}
5405
5406
_ACEOF
5407
if ac_fn_c_try_run "$LINENO"; then :
5408
  have_multi_byte_nop=yes
5409
else
5410
  have_multi_byte_nop=no
5411
fi
5412
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5413
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5414
fi
5415
5416
    have_cet=no
5417
    if test x$have_multi_byte_nop = xyes; then
5418
      if test "$cross_compiling" = yes; then :
5419
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5420
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5421
as_fn_error $? "cannot run test program while cross compiling
5422
See \`config.log' for more details" "$LINENO" 5; }
5423
else
5424
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425
/* end confdefs.h.  */
5426
5399
static void
5427
static void
5400
foo (void)
5428
foo (void)
5401
{
5429
{
Lines 5432-5437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ Link Here
5432
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5460
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5433
fi
5461
fi
5434
5462
5463
    fi
5435
    if test x$enable_cet = xno -a x$have_cet = xyes; then
5464
    if test x$enable_cet = xno -a x$have_cet = xyes; then
5436
      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5465
      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5437
    fi
5466
    fi
(-)a/lto-plugin/configure (-1 / +29 lines)
Lines 5791-5796 else Link Here
5791
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792
/* end confdefs.h.  */
5792
/* end confdefs.h.  */
5793
5793
5794
int
5795
main ()
5796
{
5797
  asm ("endbr32");
5798
  return 0;
5799
}
5800
5801
_ACEOF
5802
if ac_fn_c_try_run "$LINENO"; then :
5803
  have_multi_byte_nop=yes
5804
else
5805
  have_multi_byte_nop=no
5806
fi
5807
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5808
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5809
fi
5810
5811
    have_cet=no
5812
    if test x$have_multi_byte_nop = xyes; then
5813
      if test "$cross_compiling" = yes; then :
5814
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5815
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5816
as_fn_error $? "cannot run test program while cross compiling
5817
See \`config.log' for more details" "$LINENO" 5; }
5818
else
5819
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820
/* end confdefs.h.  */
5821
5794
static void
5822
static void
5795
foo (void)
5823
foo (void)
5796
{
5824
{
Lines 5827-5832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ Link Here
5827
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5855
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5828
fi
5856
fi
5829
5857
5858
    fi
5830
    if test x$enable_cet = xno -a x$have_cet = xyes; then
5859
    if test x$enable_cet = xno -a x$have_cet = xyes; then
5831
      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5860
      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5832
    fi
5861
    fi
5833
- 

Return to bug 777117