public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/27758]  New: [4.1 regression] -O0 -fpic link failure
@ 2006-05-24 15:46 jakub at gcc dot gnu dot org
  2006-05-24 15:50 ` [Bug target/27758] " jakub at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-24 15:46 UTC (permalink / raw)
  To: gcc-bugs

/* { dg-do run { target fpic } } */
/* { dg-options "-O0 -fpic" } */

typedef int (*fn) (void);

static inline int
foo (void)
{
  return 1;
}

fn
test (void)
{
  return foo;
}

int
main (void)
{
  fn f = test ();
  return f () != 1;
}

doesn't link on i386/x86_64 in 4.1 (regression from 4.0) - function foo isn't
marked as referenced and therefore not emitted.
This was fixed on the trunk in PR25758.


-- 
           Summary: [4.1 regression] -O0 -fpic link failure
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
GCC target triplet: i386-linux, x86_64-linux


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


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

* [Bug target/27758] [4.1 regression] -O0 -fpic link failure
  2006-05-24 15:46 [Bug target/27758] New: [4.1 regression] -O0 -fpic link failure jakub at gcc dot gnu dot org
@ 2006-05-24 15:50 ` jakub at gcc dot gnu dot org
  2006-05-24 15:53 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-24 15:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2006-05-24 15:50 -------
Created an attachment (id=11506)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11506&action=view)
gcc41-pr27758.patch


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED


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


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

* [Bug target/27758] [4.1 regression] -O0 -fpic link failure
  2006-05-24 15:46 [Bug target/27758] New: [4.1 regression] -O0 -fpic link failure jakub at gcc dot gnu dot org
  2006-05-24 15:50 ` [Bug target/27758] " jakub at gcc dot gnu dot org
@ 2006-05-24 15:53 ` pinskia at gcc dot gnu dot org
  2006-05-25  2:42 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-24 15:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-05-24 15:53 -------
I am ok with the back port.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Keywords|                            |link-failure
   Target Milestone|---                         |4.1.1


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


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

* [Bug target/27758] [4.1 regression] -O0 -fpic link failure
  2006-05-24 15:46 [Bug target/27758] New: [4.1 regression] -O0 -fpic link failure jakub at gcc dot gnu dot org
  2006-05-24 15:50 ` [Bug target/27758] " jakub at gcc dot gnu dot org
  2006-05-24 15:53 ` pinskia at gcc dot gnu dot org
@ 2006-05-25  2:42 ` mmitchel at gcc dot gnu dot org
  2006-05-26 14:18 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-25  2:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mmitchel at gcc dot gnu dot org  2006-05-25 02:35 -------
Will not be fixed in 4.1.1; adjust target milestone to 4.1.2.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.1                       |4.1.2


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


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

* [Bug target/27758] [4.1 regression] -O0 -fpic link failure
  2006-05-24 15:46 [Bug target/27758] New: [4.1 regression] -O0 -fpic link failure jakub at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-05-25  2:42 ` mmitchel at gcc dot gnu dot org
@ 2006-05-26 14:18 ` jakub at gcc dot gnu dot org
  2006-05-26 14:19 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-26 14:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2006-05-26 14:17 -------
Subject: Bug 27758

Author: jakub
Date: Fri May 26 14:17:47 2006
New Revision: 114132

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114132
Log:
        PR target/27758
        Backported from mainline
        2006-01-25  Andrew Pinski  <pinskia@physics.uc.edu>

        PR target/25758
        * config/i386/i386.c (output_pic_addr_const) <case SYMBOL_REF>:
        Use output_addr_const instead of assemble_name.

        * gcc.dg/pr27758.c: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pr27758.c
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/config/i386/i386.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug target/27758] [4.1 regression] -O0 -fpic link failure
  2006-05-24 15:46 [Bug target/27758] New: [4.1 regression] -O0 -fpic link failure jakub at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-05-26 14:18 ` jakub at gcc dot gnu dot org
@ 2006-05-26 14:19 ` jakub at gcc dot gnu dot org
  2006-05-26 16:15 ` pinskia at gcc dot gnu dot org
  2006-06-09 16:56 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-26 14:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2006-05-26 14:19 -------
Subject: Bug 27758

Author: jakub
Date: Fri May 26 14:19:16 2006
New Revision: 114133

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114133
Log:
        PR target/27758
        * gcc.dg/pr27758.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr27758.c
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug target/27758] [4.1 regression] -O0 -fpic link failure
  2006-05-24 15:46 [Bug target/27758] New: [4.1 regression] -O0 -fpic link failure jakub at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-05-26 14:19 ` jakub at gcc dot gnu dot org
@ 2006-05-26 16:15 ` pinskia at gcc dot gnu dot org
  2006-06-09 16:56 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-26 16:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-05-26 16:15 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug target/27758] [4.1 regression] -O0 -fpic link failure
  2006-05-24 15:46 [Bug target/27758] New: [4.1 regression] -O0 -fpic link failure jakub at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-05-26 16:15 ` pinskia at gcc dot gnu dot org
@ 2006-06-09 16:56 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-09 16:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2006-06-09 16:52 -------
*** Bug 27978 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ykar at list dot ru


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


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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-24 15:46 [Bug target/27758] New: [4.1 regression] -O0 -fpic link failure jakub at gcc dot gnu dot org
2006-05-24 15:50 ` [Bug target/27758] " jakub at gcc dot gnu dot org
2006-05-24 15:53 ` pinskia at gcc dot gnu dot org
2006-05-25  2:42 ` mmitchel at gcc dot gnu dot org
2006-05-26 14:18 ` jakub at gcc dot gnu dot org
2006-05-26 14:19 ` jakub at gcc dot gnu dot org
2006-05-26 16:15 ` pinskia at gcc dot gnu dot org
2006-06-09 16:56 ` 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).