[Bug target/71767] Endless stream of warnings when using GCC with -Wa,-q and Clang Integrated Assembler
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Wed Sep 14 11:41:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71767
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-09-14
CC| |howarth.at.gcc at gmail dot com,
| |iains at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
I see the problem after having updated to Xcode 8.0. I am currently testing the
following patch
--- ../_clean/gcc/config/darwin-sections.def 2016-01-04 19:51:16.000000000
+0100
+++ gcc/config/darwin-sections.def 2016-09-14 12:01:44.000000000 +0200
@@ -29,7 +29,7 @@ along with GCC; see the file COPYING3.
/* The .text section is generated in varasm.c */
DEF_SECTION (text_coal_section, SECTION_CODE|SECTION_NO_ANCHOR,
- ".section __TEXT,__textcoal_nt,coalesced,pure_instructions", 0)
+ ".section __TEXT,__text,coalesced,pure_instructions", 0)
DEF_SECTION (text_hot_section, SECTION_CODE,
".section __TEXT,__text_hot,regular,pure_instructions", 0)
@@ -52,7 +52,7 @@ DEF_SECTION (text_exit_coal_section, SEC
/* const */
DEF_SECTION (const_section, 0, ".const", 0)
DEF_SECTION (const_coal_section, SECTION_NO_ANCHOR,
- ".section __TEXT,__const_coal,coalesced", 0)
+ ".section __TEXT,__const,coalesced", 0)
/* Place to put zero-sized to avoid issues with section anchors. */
DEF_SECTION (zobj_const_section, SECTION_NO_ANCHOR,
".section\t__DATA,__zobj_const", 0)
@@ -60,7 +60,7 @@ DEF_SECTION (zobj_const_section, SECTION
/* Write-able data. '.data' handled in varasm.c */
DEF_SECTION (static_data_section, SECTION_WRITE, ".static_data", 0)
DEF_SECTION (data_coal_section, SECTION_WRITE|SECTION_NO_ANCHOR,
- ".section __DATA,__datacoal_nt,coalesced", 0)
+ ".section __DATA,__data,coalesced", 0)
/* Place to put zero-sized to avoid issues with section anchors. */
DEF_SECTION (zobj_data_section, SECTION_WRITE|SECTION_NO_ANCHOR,
".section\t__DATA,__zobj_data", 0)
@@ -73,7 +73,7 @@ DEF_SECTION (zobj_bss_section, SECTION_W
/* const data */
DEF_SECTION (const_data_section, 0, ".const_data", 0)
DEF_SECTION (const_data_coal_section, SECTION_NO_ANCHOR,
- ".section __DATA,__const_coal,coalesced", 0)
+ ".section __DATA,__const,coalesced", 0)
/* Place to put zero-sized to avoid issues with section anchors. */
DEF_SECTION (zobj_const_data_section, SECTION_NO_ANCHOR,
".section\t__DATA,__zobj_cnst_data", 0)
--- ../_clean/libffi/src/x86/sysv.S 2015-01-19 23:40:03.000000000 +0100
+++ libffi/src/x86/sysv.S 2016-09-14 12:04:05.000000000 +0200
@@ -790,7 +790,7 @@ ENDF(C(ffi_closure_raw_THISCALL))
#ifdef X86_DARWIN
# define COMDAT(X) \
- .section __TEXT,__textcoal_nt,coalesced,pure_instructions; \
+ .section __TEXT,__text,coalesced,pure_instructions; \
.weak_definition X; \
.private_extern X
#elif defined __ELF__ && !(defined(__sun__) && defined(__svr4__))
--- ../_clean/gcc/testsuite/g++.dg/abi/key2.C 2014-05-10 23:18:30.000000000
+0200
+++ gcc/testsuite/g++.dg/abi/key2.C 2016-09-14 12:03:17.000000000 +0200
@@ -2,9 +2,9 @@
// PR darwin/25908
// { dg-do compile { target *-*-darwin* } }
-// { dg-final { scan-assembler ".globl __ZTV1f\\n .weak_definition
__ZTV1f(\\n .section __DATA,__const_coal,coalesced)?\\n .align" } }
-// { dg-final { scan-assembler ".globl __ZTS1f\\n .weak_definition
__ZTS1f\\n .section __TEXT,__const_coal,coalesced" } }
-// { dg-final { scan-assembler ".globl __ZTI1f\\n .weak_definition
__ZTI1f(\\n .section __DATA,__const_coal,coalesced)?\\n .align" } }
+// { dg-final { scan-assembler ".globl __ZTV1f\\n .weak_definition
__ZTV1f(\\n .section __DATA,__const,coalesced)?\\n .align" } }
+// { dg-final { scan-assembler ".globl __ZTS1f\\n .weak_definition
__ZTS1f\\n .section __TEXT,__const,coalesced" } }
+// { dg-final { scan-assembler ".globl __ZTI1f\\n .weak_definition
__ZTI1f(\\n .section __DATA,__const,coalesced)?\\n .align" } }
class f
{
More information about the Gcc-bugs
mailing list