[no subject]

2022-04-24 Thread Ashlyn Harris via Gcc
Greetings

my name is Ashlyn Harris I would love to know you better please reply me


[committed] exec-stack warning for test which wants executable stacks

2022-04-24 Thread Jeff Law via Gcc
About a week ago many targets started failing pr94157_0.c test like this 
(bfin-elf, but many other targets are also affected):


spawn -ignore SIGHUP /home/jlaw/test/obj/bfin-elf/obj/gcc/gcc/xgcc 
-B/home/jlaw/test/obj/bfin-elf/obj/gcc/gcc/ c_lto_pr94157_0.o 
-fdiagnostics-plain-output -dumpbase  -O0 -fipa-vrp -flto 
-Wa,--noexecstack -Wa,--noexecstack -Wa,--execstack -Wa,--execstack 
-Wa,--execstack -Wa,--execstack -Wa,--execstack -Wa,--execstack 
-Wa,--execstack -Wa,--execstack -Wa,--execstack -Wa,--execstack 
-Wa,--execstack -Wa,--execstack -Wa,--execstack -Wa,--execstack -msim 
-Wl,-wrap,exit -Wl,-wrap,_exit -Wl,-wrap,main -Wl,-wrap,abort 
-Wl,gcc_tg.o -o gcc-dg-lto-pr94157-01.exe^M
/home/jlaw/test/obj/bfin-elf/installed/bfin-elf/bin/ld: warning: 
/tmp/ccfJUEvZ.ltrans0.ltrans.o: requires executable stack (because the 
.note.GNU-stack section is executable)^M
FAIL: gcc.dg/lto/pr94157 c_lto_pr94157_0.o-c_lto_pr94157_0.o link,  
-O0 -fipa-vrp -flto -Wa,--noexecstack -Wa,--noexecstack 
-Wa,--execstack  -Wa,--execstack -Wa,--execstack -Wa,--execstack 
-Wa,--execstack -Wa,--execstack -Wa,--execstack -Wa,--execstack 
-Wa,--execstack -Wa,--execstack -Wa,--execstack -Wa,--execstack 
-Wa,--execstack -Wa,--execstack


This is due to a new binutils warning.  This patch just suppresses the 
warning for the one test where we explicitly wanted an executable stack.


I'm guessing the repeated -Wa,--noexecstack options in this test are 
supposed to trigger a  buffer overflow or something similar, so I left 
those alone and just appended to the argument list.


I used -z execstack rather than --no-warn-execstack as the former is 
recognized by older versions of ld, but the latter is a new option.


The other approach would have been to prune the warning, but this seemed 
better since we'd like most tests to fail if somehow their stacks were 
executable.



Committed to the trunk.

Jeff

commit 6b7441a46c771aa6ecdc0c8ed96197417d036b9a
Author: Jeff Law 
Date:   Sun Apr 24 13:38:14 2022 -0400

[committed] exec-stack warning for test which wants executable stacks

gcc/testsuite
* gcc.dg/lto/pr94157_0.c: Also request executable stack from
the linker.

diff --git a/gcc/testsuite/gcc.dg/lto/pr94157_0.c 
b/gcc/testsuite/gcc.dg/lto/pr94157_0.c
index a6e308b855b..a76141b1809 100644
--- a/gcc/testsuite/gcc.dg/lto/pr94157_0.c
+++ b/gcc/testsuite/gcc.dg/lto/pr94157_0.c
@@ -1,6 +1,6 @@
 /* { dg-lto-do link } */
 /* { dg-require-effective-target gas } */
-/* { dg-lto-options { { -O0 -fipa-vrp -flto -Wa,--noexecstack 
-Wa,--noexecstack -Wa,--execstack  -Wa,--execstack -Wa,--execstack 
-Wa,--execstack -Wa,--execstack -Wa,--execstack -Wa,--execstack -Wa,--execstack 
-Wa,--execstack -Wa,--execstack -Wa,--execstack -Wa,--execstack -Wa,--execstack 
-Wa,--execstack } } } */
+/* { dg-lto-options { { -O0 -fipa-vrp -flto -Wa,--noexecstack 
-Wa,--noexecstack -Wa,--execstack  -Wa,--execstack -Wa,--execstack 
-Wa,--execstack -Wa,--execstack -Wa,--execstack -Wa,--execstack -Wa,--execstack 
-Wa,--execstack -Wa,--execstack -Wa,--execstack -Wa,--execstack -Wa,--execstack 
-Wa,--execstack -Wl,-z,execstack} } } */
 
 int main() {
 


gcc-12-20220424 is now available

2022-04-24 Thread GCC Administrator via Gcc
Snapshot gcc-12-20220424 is now available on
  https://gcc.gnu.org/pub/gcc/snapshots/12-20220424/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.

This snapshot has been generated from the GCC 12 git branch
with the following options: git://gcc.gnu.org/git/gcc.git branch master 
revision 6b7441a46c771aa6ecdc0c8ed96197417d036b9a

You'll find:

 gcc-12-20220424.tar.xz   Complete GCC

  SHA256=56c5e14e2b30ffe44cfdf9eb1e63eaa0251633a3bd34d933ba7d4290d32dda17
  SHA1=3395e838c47aaefc47130c7f4d6cdb610f13463c

Diffs from 12-20220417 are available in the diffs/ subdirectory.

When a particular snapshot is ready for public consumption the LATEST-12
link is updated and a message is sent to the gcc list.  Please do not use
a snapshot before it has been announced that way.