public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/32219]  New: optimizer causes wrong code in pic/hidden/weak symbol checking.
@ 2007-06-05  9:38 pluto at agmk dot net
  2007-06-05 12:53 ` [Bug target/32219] " pluto at agmk dot net
                   ` (11 more replies)
  0 siblings, 12 replies; 15+ messages in thread
From: pluto at agmk dot net @ 2007-06-05  9:38 UTC (permalink / raw)
  To: gcc-bugs

following testcase causes gpf on i386.

$ cat exe.c
extern void f() __attribute__((weak,visibility("hidden")));
extern int puts( char const* );
int main()
{
        f ? f() : puts( "f == null, skipped." );
        return 0;
}

$ gcc exe.c -fPIE --save-temps -m32 -O1 && ./a.out
Segmentation fault

this fails on i386 with gcc 3.4.5, 4.0, 4.1 and 4.2 (4.3 not tested).
x86_64 and ppc works fine, so it looks like a ix86 target bug.


-- 
           Summary: optimizer causes wrong code in pic/hidden/weak symbol
                    checking.
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
GCC target triplet: i386-gnu-linux


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


^ permalink raw reply	[flat|nested] 15+ messages in thread
[parent not found: <bug-32219-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-09-01 15:19 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-05  9:38 [Bug target/32219] New: optimizer causes wrong code in pic/hidden/weak symbol checking pluto at agmk dot net
2007-06-05 12:53 ` [Bug target/32219] " pluto at agmk dot net
2007-06-05 13:30 ` pinskia at gcc dot gnu dot org
2007-06-05 14:10 ` pluto at agmk dot net
2007-06-05 14:13 ` pluto at agmk dot net
2008-02-23 21:10 ` pluto at agmk dot net
2008-02-23 23:12 ` hjl dot tools at gmail dot com
2008-02-25 22:17 ` hjl dot tools at gmail dot com
2009-12-29 23:20 ` castet dot matthieu at free dot fr
2010-03-08 19:28 ` aldot at gcc dot gnu dot org
2010-03-09 12:39 ` rguenth at gcc dot gnu dot org
2010-03-16 13:35 ` aldot at gcc dot gnu dot org
2010-06-30 11:53 ` ncopa at alpinelinux dot org
     [not found] <bug-32219-4@http.gcc.gnu.org/bugzilla/>
2012-06-28 22:51 ` aldot at gcc dot gnu.org
2012-09-01 15:19 ` mikpe at it dot uu.se

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