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 target/47867] New: lto language is not supported on 32-bit HP-UX


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

           Summary: lto language is not supported on 32-bit HP-UX
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: danglin@gcc.gnu.org
              Host: hppa*-*-hpux* (32-bit)
            Target: hppa*-*-hpux* (32-bit)
             Build: hppa*-*-hpux* (32-bit)


If lto is specified in --enable-languages, then many lto testsuite
failures occur.  For example,

Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/  
-
O2 -flto -flto-partition=none  -w -c  -o 20000105-1.o
/test/gnu/gcc/gcc/gcc/test
suite/gcc.c-torture/compile/20000105-1.c    (timeout = 300)
/test/gnu/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/20000105-1.c:25:1:
interna
l compiler error: in default_no_named_section, at varasm.c:6128
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
compiler exited with status 1
output is:
/test/gnu/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/20000105-1.c:25:1:
interna
l compiler error: in default_no_named_section, at varasm.c:6128
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

FAIL: gcc.c-torture/compile/20000105-1.c  -O2 -flto -flto-partition=none 
(inter

Breakpoint 1, default_no_named_section (name=0x7afb56c0
".gnu.lto_.jmpfuncs.92c364e5", flags=2098176, decl=0x0) at
../../gcc/gcc/varasm.c:6128
6128      gcc_unreachable ();
(gdb) bt
#0  default_no_named_section (name=0x7afb56c0 ".gnu.lto_.jmpfuncs.92c364e5",
flags=2098176, decl=0x0) at ../../gcc/gcc/varasm.c:6128
#1  0x0037e54c in switch_to_section (new_section=0x7afaf580) at
../../gcc/gcc/varasm.c:6997
#2  0x0027f9cc in lhd_begin_section (name=0x7afb56c0
".gnu.lto_.jmpfuncs.92c364e5") at ../../gcc/gcc/langhooks.c:631
#3  0x004b7aa0 in lto_begin_section (name=0x7afb56c0
".gnu.lto_.jmpfuncs.92c364e5", compress=1 '\001') at
../../gcc/gcc/lto-section-out.c:130
#4  0x004b4a1c in produce_asm (ob=0x400eaa30, fn=0x200400) at
../../gcc/gcc/lto-streamer-out.c:1873
#5  0x006678c0 in ipa_prop_write_jump_functions (set=0x7af55e40) at
../../gcc/gcc/ipa-prop.c:2853
#6  0x00657c7c in ipcp_write_summary (set=0x7afb56c0, vset=0x200400) at
../../gcc/gcc/ipa-cp.c:1543
#7  0x002b5edc in ipa_write_summaries_2 (pass=0x40024eb8, set=0x7af55e40,
vset=0x7af55e50, state=0x400e87a8) at ../../gcc/gcc/passes.c:1643
#8  0x002b68e8 in ipa_write_summaries () at ../../gcc/gcc/passes.c:1672
#9  0x003a6780 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1814
#10 0x003a69f0 in cgraph_finalize_compilation_unit () at
../../gcc/gcc/cgraphunit.c:1096
#11 0x00055540 in c_write_global_declarations () at ../../gcc/gcc/c-decl.c:9872
#12 0x002e20b0 in toplev_main (argc=0, argv=0x0) at ../../gcc/gcc/toplev.c:591
#13 0x000e539c in main (argc=2063292096, argv=0x200400) at
../../gcc/gcc/main.c:36

-bash-3.2$ ./xgcc -B./ -v
Reading specs from ./specs
COLLECT_GCC=./xgcc
COLLECT_LTO_WRAPPER=./lto-wrapper
Target: hppa2.0w-hp-hpux11.11
Configured with: ../gcc/configure --with-gnu-as --with-as=/opt/gnu/bin/as
--enable-shared --with-local-prefix=/opt/gnu --prefix=/opt/gnu/gcc/gcc-4.6
--with-gmp=/opt/gnu/gcc/gcc-4.6.0 --enable-threads=posix --enable-debug=no
--disable-nls --without-cloog --without-ppl
--enable-languages=c,c++,objc,fortran,java,ada,obj-c++,lto
Thread model: posix
gcc version 4.6.0 20110223 (experimental) [trunk revision 170426] (GCC) 

Either the section handling needs to be fixed or lto language selection
needs to be suppressed on this target.


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