[Bug middle-end/47610] [4.6 Regression] cp-demangle.c:1970:1: error: cplus_demangle_builtin_types causes a section type conflict
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47610 --- Comment #6 from John David Anglin danglin at gcc dot gnu.org 2011-02-05 15:45:01 UTC --- I'm seeing the following new fail on hppa64-hp-hpux11.11: Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/ /te st/gnu/gcc/gcc/gcc/testsuite/gcc.dg/20051207-3.c -fno-unit-at-a-time -S -o 20 051207-3.s(timeout = 300) FAIL: gcc.dg/20051207-3.c (test for errors, line 7) -bash-3.2$ less /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/20051207-3.c /* GCC doesn't generate any .eh_frame data for this TU itself, so it shouldn't warn about a conflicting with the built-in idea of .eh_frame. The warning therefore belongs on the second decl. */ /* { dg-options -fno-unit-at-a-time } */ /* { dg-require-named-sections } */ int a __attribute__((section (.eh_frame))) = 1; const int b __attribute__((section (.eh_frame))) = 1; /* { dg-error section t ype conflict } */
[Bug middle-end/47610] [4.6 Regression] cp-demangle.c:1970:1: error: cplus_demangle_builtin_types causes a section type conflict
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47610 --- Comment #7 from Jakub Jelinek jakub at gcc dot gnu.org 2011-02-05 16:57:10 UTC --- Can't reproduce that with a cross to hppa64-hp-hpux11.11, I get the expected error instantly.
[Bug middle-end/47610] [4.6 Regression] cp-demangle.c:1970:1: error: cplus_demangle_builtin_types causes a section type conflict
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47610 --- Comment #8 from dave at hiauly1 dot hia.nrc.ca 2011-02-05 17:09:48 UTC --- Can't reproduce that with a cross to hppa64-hp-hpux11.11, I get the expected error instantly. Sorry, this is my fault. I misapplied your patch. Dave
[Bug middle-end/47610] [4.6 Regression] cp-demangle.c:1970:1: error: cplus_demangle_builtin_types causes a section type conflict
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47610 --- Comment #9 from Jakub Jelinek jakub at gcc dot gnu.org 2011-02-05 20:35:19 UTC --- Author: jakub Date: Sat Feb 5 20:35:16 2011 New Revision: 169855 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=169855 Log: PR middle-end/47610 * varasm.c (default_section_type_flags): If decl is NULL, and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit. * gcc.dg/pr47610.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr47610.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/varasm.c
[Bug middle-end/47610] [4.6 Regression] cp-demangle.c:1970:1: error: cplus_demangle_builtin_types causes a section type conflict
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47610 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED --- Comment #10 from Jakub Jelinek jakub at gcc dot gnu.org 2011-02-05 21:04:54 UTC --- Fixed.
[Bug middle-end/47610] [4.6 Regression] cp-demangle.c:1970:1: error: cplus_demangle_builtin_types causes a section type conflict
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47610 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed||2011.02.04 20:19:37 CC||jakub at gcc dot gnu.org Ever Confirmed|0 |1 --- Comment #1 from Jakub Jelinek jakub at gcc dot gnu.org 2011-02-04 20:19:37 UTC --- Please provide preprocessed source, so I can try to reproduce it with a cross compiler.
[Bug middle-end/47610] [4.6 Regression] cp-demangle.c:1970:1: error: cplus_demangle_builtin_types causes a section type conflict
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47610 --- Comment #2 from dave at hiauly1 dot hia.nrc.ca 2011-02-04 20:28:03 UTC --- On Fri, 04 Feb 2011, jakub at gcc dot gnu.org wrote: Please provide preprocessed source, so I can try to reproduce it with a cross compiler. Attached.
[Bug middle-end/47610] [4.6 Regression] cp-demangle.c:1970:1: error: cplus_demangle_builtin_types causes a section type conflict
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47610 John David Anglin danglin at gcc dot gnu.org changed: What|Removed |Added Target|hppa64-hp-hpux11.11 |hppa*-*-* Host|hppa64-hp-hpux11.11 |hppa*-*-* Build|hppa64-hp-hpux11.11 |hppa*-*-* --- Comment #3 from John David Anglin danglin at gcc dot gnu.org 2011-02-04 22:40:30 UTC --- Same error on linux.
[Bug middle-end/47610] [4.6 Regression] cp-demangle.c:1970:1: error: cplus_demangle_builtin_types causes a section type conflict
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47610 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org |gnu.org | --- Comment #4 from Jakub Jelinek jakub at gcc dot gnu.org 2011-02-04 23:08:21 UTC --- Created attachment 23249 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=23249 gcc46-pr47610.patch Untested fix. varasm.c sometimes calls get_named_section (NULL, .data.rel.ro{,.local}, {1,3}) and in that case SECTION_RELRO wasn't being set.
[Bug middle-end/47610] [4.6 Regression] cp-demangle.c:1970:1: error: cplus_demangle_builtin_types causes a section type conflict
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47610 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |NEW Target Milestone|--- |4.6.0
[Bug middle-end/47610] [4.6 Regression] cp-demangle.c:1970:1: error: cplus_demangle_builtin_types causes a section type conflict
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47610 --- Comment #5 from dave at hiauly1 dot hia.nrc.ca 2011-02-05 01:03:51 UTC --- On Fri, 04 Feb 2011, jakub at gcc dot gnu.org wrote: --- Comment #4 from Jakub Jelinek jakub at gcc dot gnu.org 2011-02-04 23:08:21 UTC --- Created attachment 23249 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=23249 gcc46-pr47610.patch Patch fixes build error. Doing full test. Thanks, Dave