public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/52717] New: thunk referenced in discarded section when building samba with -flto
@ 2012-03-26  6:53 matt at use dot net
  2012-03-26  8:14 ` [Bug target/52717] " rguenth at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: matt at use dot net @ 2012-03-26  6:53 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52717
           Summary: thunk referenced in discarded section when building
                    samba with -flto
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: matt@use.net


To reproduce from scratch with 4.7.0 and samba-3.6.3 (reduced case
below/attached):
debian-sparc:~/src/samba-3.6.3/source3# CFLAGS="-O2 -flto -mtune=leon
-floop-block -floop-interchange -floop-strip-mine -ftree-loop-distribution
-ftree-loop-distribute-patterns -ftree-loop-im -ftree-loop-ivcanon  -fivopts
-fpredictive-commoning -fipa-cp-clone -ffast-math -fgcse-after-reload -fgcse-sm
-fgcse-las" LDFLAGS="-flto -O2" ./configure --prefix=/opt/samba-3.6.4
--exec-prefix=/opt/samba-3.6.4 --sysconfdir=/opt/samba-3.6.4/etc
--with-configdir=/opt/samba-3.6.4/etc --with-quotas --with-pam
--with-pam_smbpass --build=sparc-linux
--with-logfilebase=/opt/samba-3.6.4/var/log
--with-piddir=/opt/samba-3.6.4/var/run --with-lockdir=/opt/samba-3.6.4/var/lock

debian-sparc:~/src/samba-3.6.3/source3# make
[...]
`__sparc_get_pc_thunk.l7' referenced in section `.text' of
smbta-util.ltrans24.ltrans.o: defined in discarded section
`.text.__sparc_get_pc_thunk.l7.4585[__sparc_get_pc_thunk.l7.4585]' of
smbta-util.ltrans24.ltrans.o

This is different from the previous bug -- there is no ipa-cp-clone here.
Attached is the output from save-temps.

I have yet to have any mid-sized C project fully build with LTO using -O2 or
variants, most coming down to this class of errors.


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-04-23 15:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-26  6:53 [Bug middle-end/52717] New: thunk referenced in discarded section when building samba with -flto matt at use dot net
2012-03-26  8:14 ` [Bug target/52717] " rguenth at gcc dot gnu.org
2012-03-26  8:27 ` ebotcazou at gcc dot gnu.org
2012-03-26 11:02 ` hubicka at ucw dot cz
2012-03-26 11:07 ` ebotcazou at gcc dot gnu.org
2012-03-26 17:15 ` matt at use dot net
2012-03-26 17:49 ` matt at use dot net
2012-03-28  3:58 ` matt at use dot net
2012-04-09  8:54 ` ebotcazou at gcc dot gnu.org
2012-04-09  8:55 ` ebotcazou at gcc dot gnu.org
2012-04-09  8:56 ` ebotcazou at gcc dot gnu.org
2012-04-09  8:56 ` ebotcazou at gcc dot gnu.org
2012-04-09  8:57 ` ebotcazou at gcc dot gnu.org
2012-04-23 15:20 ` matt at use dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).