public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/27978]  New: static inline functions code not generated if -fPIC is used
@ 2006-06-09 16:08 ykar at list dot ru
  2006-06-09 16:21 ` [Bug c/27978] " ykar at list dot ru
  2006-06-09 16:52 ` [Bug target/27978] " pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: ykar at list dot ru @ 2006-06-09 16:08 UTC (permalink / raw)
  To: gcc-bugs

I'm attaching the code which demonstates the bug.
If to compile the attached code with:
cc -fPIC -S testlib.c

you can see, that symbol "foo" is referenced, but no code with "foo" is
generated (even label "foo" is missing in assembler code)

(Workaround is to compile with -O flag, with -O code for "foo" is correctly
generated)

# cc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--enable-nls --without-included-gettext --with-system-zlib --disable-checking
--disable-werror --disable-libunwind-exceptions --disable-multilib
--disable-libmudflap --disable-libssp --disable-libgcj
--enable-languages=c,c++,objc --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1)


-- 
           Summary: static inline functions code not generated if -fPIC is
                    used
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ykar at list dot ru
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


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

* [Bug c/27978] static inline functions code not generated if -fPIC is used
  2006-06-09 16:08 [Bug c/27978] New: static inline functions code not generated if -fPIC is used ykar at list dot ru
@ 2006-06-09 16:21 ` ykar at list dot ru
  2006-06-09 16:52 ` [Bug target/27978] " pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: ykar at list dot ru @ 2006-06-09 16:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ykar at list dot ru  2006-06-09 16:08 -------
Created an attachment (id=11648)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11648&action=view)
test case to demonstrate the bug


-- 


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


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

* [Bug target/27978] static inline functions code not generated if -fPIC is used
  2006-06-09 16:08 [Bug c/27978] New: static inline functions code not generated if -fPIC is used ykar at list dot ru
  2006-06-09 16:21 ` [Bug c/27978] " ykar at list dot ru
@ 2006-06-09 16:52 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-09 16:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-06-09 16:52 -------
This is already fixed in 4.1.2 and the mainline.

*** This bug has been marked as a duplicate of 27758 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2006-06-09 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-09 16:08 [Bug c/27978] New: static inline functions code not generated if -fPIC is used ykar at list dot ru
2006-06-09 16:21 ` [Bug c/27978] " ykar at list dot ru
2006-06-09 16:52 ` [Bug target/27978] " pinskia at gcc dot gnu dot org

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).