public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/18897] New: [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data)
@ 2004-12-09  4:13 danglin at gcc dot gnu dot org
  2004-12-09  4:16 ` [Bug middle-end/18897] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2004-12-09  4:13 UTC (permalink / raw)
  To: gcc-bugs

stage1/xgcc -Bstage1/ -B/opt/gnu/gcc/gcc-4.0.0/hppa2.0w-hp-hpux11.11/bin/   -g -
O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
 -fno-common   -DHAVE_CONFIG_H -DGENERATOR_FILE  -o build/gengenrtl \
 build/gengenrtl.o build/errors.o ../build-hppa2.0w-hp-hpux11.11/libiberty/libib
erty.a
/usr/ccs/bin/ld: Unsatisfied symbols:
   putchar (first referenced in build/gengenrtl.o) (data)
/usr/ccs/bin/ld: (Warning) Linker features were used that may not be supported i
n future releases. The +vallcompatwarnings option can be used to display more de
tails, and the ld(1) man page contains additional information. This warning can
be suppressed with the +vnocompatwarnings option.
collect2: ld returned 1 exit status
make[2]: *** [build/gengenrtl] Error 1

The above error indicates that .import assembler directives are not
being emitted for undefined functions.  As a result, the type defaults
to "data".

-- 
           Summary: [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols:
                    putchar (first referenced in build/gengenrtl.o) (data)
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: hppa2.0w-hp-hpux11.11
  GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11


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


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

* [Bug middle-end/18897] [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data)
  2004-12-09  4:13 [Bug middle-end/18897] New: [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data) danglin at gcc dot gnu dot org
@ 2004-12-09  4:16 ` pinskia at gcc dot gnu dot org
  2004-12-10  4:38 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-09  4:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-09 04:16 -------
I think this was caused by:
2004-12-08  Zack Weinberg  <zack@codesourcery.com>

        PR 17982
        * varasm.c (pending_assemble_externals): New static.
        (assemble_external_real): Meat of assemble_external split out
        to this new function.
        (process_pending_assemble_externals): New function.
        (assemble_external): Use gcc_assert.  If flag_unit_at_a_time
        is true and the basic test passes, merely cons the decl onto
        the pending list to be handled later.
        * tree.h: Declare process_pending_assemble_externals.
        * cgraphunit.c (cgraph_optimize): Call it.


Can you confirm that?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zack at gcc dot gnu dot org
           Keywords|                            |wrong-code
   Target Milestone|---                         |4.0.0


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


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

* [Bug middle-end/18897] [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data)
  2004-12-09  4:13 [Bug middle-end/18897] New: [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data) danglin at gcc dot gnu dot org
  2004-12-09  4:16 ` [Bug middle-end/18897] " pinskia at gcc dot gnu dot org
@ 2004-12-10  4:38 ` dave at hiauly1 dot hia dot nrc dot ca
  2004-12-11 21:11 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2004-12-10  4:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-12-10 04:38 -------
Subject: Re:  [4.0 Regression] /usr/ccs/bin/ld: Unsatisf

> ------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-09
> 04:16 -------
> I think this was caused by:
> 2004-12-08  Zack Weinberg  <zack@codesourcery.com>
> 
>         PR 17982
>         * varasm.c (pending_assemble_externals): New static.
>         (assemble_external_real): Meat of assemble_external split out
>         to this new function.
>         (process_pending_assemble_externals): New function.
>         (assemble_external): Use gcc_assert.  If flag_unit_at_a_time
>         is true and the basic test passes, merely cons the decl onto
>         the pending list to be handled later.
>         * tree.h: Declare process_pending_assemble_externals.
>         * cgraphunit.c (cgraph_optimize): Call it.
> 
> 
> Can you confirm that?

Yes, it introduced the problem.

Dave


-- 


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


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

* [Bug middle-end/18897] [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data)
  2004-12-09  4:13 [Bug middle-end/18897] New: [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data) danglin at gcc dot gnu dot org
  2004-12-09  4:16 ` [Bug middle-end/18897] " pinskia at gcc dot gnu dot org
  2004-12-10  4:38 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2004-12-11 21:11 ` dave at hiauly1 dot hia dot nrc dot ca
  2004-12-15 22:47 ` sje at cup dot hp dot com
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2004-12-11 21:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-12-11 21:11 -------
Subject: Re:  [4.0 Regression] /usr/ccs/bin/ld: Unsatisf

> ------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-09
> 04:16 -------
> I think this was caused by:
> 2004-12-08  Zack Weinberg  <zack@codesourcery.com>
> 
>         PR 17982
>         * varasm.c (pending_assemble_externals): New static.
>         (assemble_external_real): Meat of assemble_external split out
>         to this new function.
>         (process_pending_assemble_externals): New function.
>         (assemble_external): Use gcc_assert.  If flag_unit_at_a_time
>         is true and the basic test passes, merely cons the decl onto
>         the pending list to be handled later.
>         * tree.h: Declare process_pending_assemble_externals.
>         * cgraphunit.c (cgraph_optimize): Call it.

The problem with this change is that assemble_external is
called in rtx_for_function_call after cgraph_optimize calls
process_pending_assemble_externals.  These additions to the
list are never output in unit-at-a-time mode.

Dave


-- 


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


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

* [Bug middle-end/18897] [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data)
  2004-12-09  4:13 [Bug middle-end/18897] New: [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data) danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-12-11 21:11 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2004-12-15 22:47 ` sje at cup dot hp dot com
  2004-12-16  1:42 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: sje at cup dot hp dot com @ 2004-12-15 22:47 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at cup dot hp dot com


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


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

* [Bug middle-end/18897] [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data)
  2004-12-09  4:13 [Bug middle-end/18897] New: [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data) danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-12-15 22:47 ` sje at cup dot hp dot com
@ 2004-12-16  1:42 ` dave at hiauly1 dot hia dot nrc dot ca
  2004-12-17 13:00 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2004-12-16  1:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-12-16 01:42 -------
Subject: Re:  [4.0 Regression] /usr/ccs/bin/ld: Unsatisf

Steve,

>                  CC|                            |sje at cup dot hp dot com

Until this problem is looked at, I am using the enclosed work around.
Of course, this breaks the ia64 PR fix.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.468
diff -u -3 -p -r1.468 varasm.c
--- varasm.c	9 Dec 2004 10:54:38 -0000	1.468
+++ varasm.c	16 Dec 2004 01:39:23 -0000
@@ -1834,7 +1834,7 @@ assemble_external (tree decl ATTRIBUTE_U
   if (!DECL_P (decl) || !DECL_EXTERNAL (decl) || !TREE_PUBLIC (decl))
     return;
 
-  if (flag_unit_at_a_time)
+  if (0 && flag_unit_at_a_time)
     pending_assemble_externals = tree_cons (0, decl,
 					    pending_assemble_externals);
   else


-- 


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


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

* [Bug middle-end/18897] [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data)
  2004-12-09  4:13 [Bug middle-end/18897] New: [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data) danglin at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-12-16  1:42 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2004-12-17 13:00 ` pinskia at gcc dot gnu dot org
  2004-12-18  6:38 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-17 13:00 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-17 13:00:37
               date|                            |


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


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

* [Bug middle-end/18897] [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data)
  2004-12-09  4:13 [Bug middle-end/18897] New: [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data) danglin at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-12-17 13:00 ` pinskia at gcc dot gnu dot org
@ 2004-12-18  6:38 ` cvs-commit at gcc dot gnu dot org
  2004-12-18  6:42 ` zack at gcc dot gnu dot org
  2004-12-18 15:38 ` dave at hiauly1 dot hia dot nrc dot ca
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-18  6:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-18 06:38 -------
Subject: Bug 18897

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	zack@gcc.gnu.org	2004-12-18 06:38:26

Modified files:
	gcc            : ChangeLog toplev.c 

Log message:
	PR 18897
	* toplev.c (compile_file): Call process_pending_assemble_externals
	just before targetm.asm_out.file_end.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6871&r2=2.6872
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/toplev.c.diff?cvsroot=gcc&r1=1.934&r2=1.935



-- 


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


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

* [Bug middle-end/18897] [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data)
  2004-12-09  4:13 [Bug middle-end/18897] New: [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data) danglin at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-12-18  6:38 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-18  6:42 ` zack at gcc dot gnu dot org
  2004-12-18 15:38 ` dave at hiauly1 dot hia dot nrc dot ca
  8 siblings, 0 replies; 10+ messages in thread
From: zack at gcc dot gnu dot org @ 2004-12-18  6:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From zack at gcc dot gnu dot org  2004-12-18 06:42 -------
Fixed.

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


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


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

* [Bug middle-end/18897] [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data)
  2004-12-09  4:13 [Bug middle-end/18897] New: [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data) danglin at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2004-12-18  6:42 ` zack at gcc dot gnu dot org
@ 2004-12-18 15:38 ` dave at hiauly1 dot hia dot nrc dot ca
  8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2004-12-18 15:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-12-18 15:38 -------
Subject: Re:  [4.0 Regression] /usr/ccs/bin/ld: Unsatisf

> Fixed.

Thanks very much.

Dave


-- 


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


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

end of thread, other threads:[~2004-12-18 15:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-09  4:13 [Bug middle-end/18897] New: [4.0 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data) danglin at gcc dot gnu dot org
2004-12-09  4:16 ` [Bug middle-end/18897] " pinskia at gcc dot gnu dot org
2004-12-10  4:38 ` dave at hiauly1 dot hia dot nrc dot ca
2004-12-11 21:11 ` dave at hiauly1 dot hia dot nrc dot ca
2004-12-15 22:47 ` sje at cup dot hp dot com
2004-12-16  1:42 ` dave at hiauly1 dot hia dot nrc dot ca
2004-12-17 13:00 ` pinskia at gcc dot gnu dot org
2004-12-18  6:38 ` cvs-commit at gcc dot gnu dot org
2004-12-18  6:42 ` zack at gcc dot gnu dot org
2004-12-18 15:38 ` dave at hiauly1 dot hia dot nrc dot ca

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