[Bug target/58218] -mcmodel=medium cause assembler warning "ignoring incorrect section type for .lbss"

2020-02-10 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58218

--- Comment #4 from CVS Commits  ---
The master branch has been updated by Jakub Jelinek :

https://gcc.gnu.org/g:36a798fd192ced25eefaeee345507fa1a0c0356e

commit r10-6544-g36a798fd192ced25eefaeee345507fa1a0c0356e
Author: Jakub Jelinek 
Date:   Mon Feb 10 15:02:39 2020 +0100

i386: Fix strncmp last arguments in x86_64_elf_section_type_flags

Clearly I can't count, so we would consider as SECTION_BSS even sections
like .lbssfoo or .gnu.linkonce.lbbar, even when linker only considers as
special .lbss or .lbss.baz or .gnu.linkonce.lb.qux.

2020-02-10  Jakub Jelinek  

PR target/58218
PR other/93641
* config/i386/i386.c (x86_64_elf_section_type_flags): Fix up last
arguments of strncmp.

[Bug target/58218] -mcmodel=medium cause assembler warning ignoring incorrect section type for .lbss

2013-08-23 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58218

Jakub Jelinek jakub at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Jakub Jelinek jakub at gcc dot gnu.org ---
Author: jakub
Date: Fri Aug 23 09:57:44 2013
New Revision: 201938

URL: http://gcc.gnu.org/viewcvs?rev=201938root=gccview=rev
Log:
PR target/58218
* config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
* config/i386/i386.c (x86_64_elf_section_type_flags): New function.

* gcc.target/i386/pr58218.c: New test.

Added:
trunk/gcc/testsuite/gcc.target/i386/pr58218.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
trunk/gcc/config/i386/x86-64.h
trunk/gcc/testsuite/ChangeLog

Author: jakub
Date: Fri Aug 23 10:01:34 2013
New Revision: 201939

URL: http://gcc.gnu.org/viewcvs?rev=201939root=gccview=rev
Log:
PR target/58218
* config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
* config/i386/i386.c (x86_64_elf_section_type_flags): New function.

* gcc.target/i386/pr58218.c: New test.

Added:
branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr58218.c
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/config/i386/i386.c
branches/gcc-4_8-branch/gcc/config/i386/x86-64.h
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog

Fixed for 4.8+.


[Bug target/58218] -mcmodel=medium cause assembler warning ignoring incorrect section type for .lbss

2013-08-22 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58218

--- Comment #1 from Mikael Pettersson mikpe at it dot uu.se ---
I can reproduce with gcc-4.7.3.  It generates:

   .section.lbss,aw,@progbits

gas doesn't like ,@progbits on .lbss and ignores it; readelf on the produced .o
file then shows:

  [ 4] .lbss NOBITS   40 010004 00 WAl 
0   0 32

which appears to confirm that @progbits is wrong.  (.bss is also NOBITS.)


[Bug target/58218] -mcmodel=medium cause assembler warning ignoring incorrect section type for .lbss

2013-08-22 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58218

Jakub Jelinek jakub at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2013-08-22
 CC||jakub at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #2 from Jakub Jelinek jakub at gcc dot gnu.org ---
Created attachment 30688
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30688action=edit
gcc49-pr58218.patch

Untested fix.