public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/52495] New: rs6000.c fails to (cross-) build: "implicit declaration of function ‘ASM_WEAKEN_DECL’"
@ 2012-03-05 21:54 amylaar at gcc dot gnu.org
  2012-08-16 23:14 ` [Bug target/52495] " meissner at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: amylaar at gcc dot gnu.org @ 2012-03-05 21:54 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52495
           Summary: rs6000.c fails to (cross-) build: "implicit
                    declaration of function ‘ASM_WEAKEN_DECL’"
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: amylaar@gcc.gnu.org
              Host: x86_64-unknown-linux-gnu
            Target: powerpc64-linux_altivec, powerpc-eabialtivec,
                    powerpc-eabi, powerpc-eabisimaltivec, powerpc-eabisim,
                    powerpc-eabispe, powerpc-freebsd6, powerpcle-eabi,
                    powerpcle-eabisim, powerpcle-elf,
                    powerpc-linux_paired, powerpc-linux_spe,
                    powerpc-lynxos, powerpc-netb


N.B the target list is incomplete because bugzilla wouldn't let me enter the
full list.

contrib/config-list.mk shows 24 rs6000 configurations as failing for
revision 184927:
log/powerpc64-linux_altivec-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpc-eabialtivec-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpc-eabi-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpc-eabisimaltivec-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpc-eabisim-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpc-eabispe-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpc-freebsd6-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpcle-eabi-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpcle-eabisim-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpcle-elf-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpc-linux_paired-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpc-linux_spe-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpc-lynxos-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpc-netbsd-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpc-rtems4.11OPT-enable-threads=yes-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpc-wrs-vxworksae-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpc-wrs-vxworks-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/powerpc-xilinx-eabi-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/ppc-elf-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7: error:
implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/rs6000-ibm-aix4.3-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/rs6000-ibm-aix5.1.0-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/rs6000-ibm-aix5.2.0-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/rs6000-ibm-aix5.3.0-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]
log/rs6000-ibm-aix6.0-make.out:../../../gcc/gcc/config/rs6000/rs6000.c:27913:7:
error: implicit declaration of function ‘ASM_WEAKEN_DECL’
[-Werror=implicit-function-declaration]


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

* [Bug target/52495] rs6000.c fails to (cross-) build: "implicit declaration of function ‘ASM_WEAKEN_DECL’"
  2012-03-05 21:54 [Bug target/52495] New: rs6000.c fails to (cross-) build: "implicit declaration of function ‘ASM_WEAKEN_DECL’" amylaar at gcc dot gnu.org
@ 2012-08-16 23:14 ` meissner at gcc dot gnu.org
  2012-08-17  1:14 ` hjl.tools at gmail dot com
  2013-02-26 12:03 ` amylaar at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: meissner at gcc dot gnu.org @ 2012-08-16 23:14 UTC (permalink / raw)
  To: gcc-bugs

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

Michael Meissner <meissner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-08-16
                 CC|                            |meissner at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Michael Meissner <meissner at gcc dot gnu.org> 2012-08-16 23:14:17 UTC ---
If the configure scripts think the cross assembler does not support .weak
symbols, the compiler will fail because it does not define ASM_WEAKEN_DECL. 
Note, when I tried this on August 16th, 2012, the current head of binutils
seems broken (the archiver segfaults), but the 2_21 branch builds it fine on my
Linux system with a target of powerpc64-linux and additional targets of
powerpc-linux.  Obviously the compiler should do something more appropriate if
the assembler does not support .weak symbols.


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

* [Bug target/52495] rs6000.c fails to (cross-) build: "implicit declaration of function ‘ASM_WEAKEN_DECL’"
  2012-03-05 21:54 [Bug target/52495] New: rs6000.c fails to (cross-) build: "implicit declaration of function ‘ASM_WEAKEN_DECL’" amylaar at gcc dot gnu.org
  2012-08-16 23:14 ` [Bug target/52495] " meissner at gcc dot gnu.org
@ 2012-08-17  1:14 ` hjl.tools at gmail dot com
  2013-02-26 12:03 ` amylaar at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2012-08-17  1:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2012-08-17 01:13:29 UTC ---
I also run into this.  The bug is in rs6000.h:

#ifdef HAVE_GAS_WEAK
#define RS6000_WEAK 1
#else
#define RS6000_WEAK 0
#endif

#if RS6000_WEAK
/* Used in lieu of ASM_WEAKEN_LABEL.  */
#define ASM_WEAKEN_DECL(FILE, DECL, NAME, VAL)                          \
  do                                                                    \
    {                                                                   \
      fputs ("\t.weak\t", (FILE));                                      \
      RS6000_OUTPUT_BASENAME ((FILE), (NAME));                          \
      if ((DECL) && TREE_CODE (DECL) == FUNCTION_DECL                   \
          && DEFAULT_ABI == ABI_AIX && DOT_SYMBOLS)                     \
        {                                                               \
          if (TARGET_XCOFF)                                 

..


ASM_WEAKEN_DECL is used unconditionally.


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

* [Bug target/52495] rs6000.c fails to (cross-) build: "implicit declaration of function ‘ASM_WEAKEN_DECL’"
  2012-03-05 21:54 [Bug target/52495] New: rs6000.c fails to (cross-) build: "implicit declaration of function ‘ASM_WEAKEN_DECL’" amylaar at gcc dot gnu.org
  2012-08-16 23:14 ` [Bug target/52495] " meissner at gcc dot gnu.org
  2012-08-17  1:14 ` hjl.tools at gmail dot com
@ 2013-02-26 12:03 ` amylaar at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: amylaar at gcc dot gnu.org @ 2013-02-26 12:03 UTC (permalink / raw)
  To: gcc-bugs


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

Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> changed:

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

--- Comment #3 from Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> 2013-02-26 12:02:33 UTC ---
The ASM_WEAKEN_DECL use in rs6000.c is now conditional.

r192101 | jason | 2012-10-04 20:54:13 +0100 (Thu, 04 Oct 2012) | 2 lines

        * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
        ASM_WEAKEN_DECL with #if RS6000_WEAK.


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

end of thread, other threads:[~2013-02-26 12:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-05 21:54 [Bug target/52495] New: rs6000.c fails to (cross-) build: "implicit declaration of function ‘ASM_WEAKEN_DECL’" amylaar at gcc dot gnu.org
2012-08-16 23:14 ` [Bug target/52495] " meissner at gcc dot gnu.org
2012-08-17  1:14 ` hjl.tools at gmail dot com
2013-02-26 12:03 ` amylaar at gcc dot gnu.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).