This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/34562] New: FAIL: g++.dg/other/first-global.C scan-assembler _GLOBAL__I_foobar


Instead of _GLOBAL__I_foobar, we have _GLOBAL__I_65535_0_foobar.
This arises as follows:

(gdb) p (char *)$r26
$1 = 0x7eff0bc8 "I_65535_0"
(gdb) bt
#0  get_file_function_name (
    type=0x49 <Error reading address 0x49: Bad address>)
    at ../../gcc/gcc/tree.c:6716
#1  0x004b7db0 in cgraph_build_static_cdtor (which=73 'I', body=0x7ae59660,
    priority=65535) at ../../gcc/gcc/cgraphunit.c:1474
#2  0x004b8348 in build_cdtor (ctor_p=1 '\001', cdtors=0x7ae592e8, len=1)
    at ../../gcc/gcc/cgraphunit.c:236
#3  0x004baf8c in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:306
#4  0x000e7664 in cp_write_global_declarations ()
    at ../../gcc/gcc/cp/decl2.c:3429
#5  0x003bb72c in toplev_main (argc=1074132200, argv=0x4005f5f8)
    at ../../gcc/gcc/toplev.c:1055
#6  0x00200f8c in main (argc=2130643912, argv=0x6) at ../../gcc/gcc/main.c:35

Should the test be changed to also allow a constructor with priority and
counter in the name?


-- 
           Summary: FAIL: g++.dg/other/first-global.C scan-assembler
                    _GLOBAL__I_foobar
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa2.0w-hp-hpux11.11
  GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34562


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]