public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/55143] New: vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus)
@ 2012-10-31  3:35 amylaar at gcc dot gnu.org
  2014-07-31 20:58 ` [Bug target/55143] " mliska at suse dot cz
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: amylaar at gcc dot gnu.org @ 2012-10-31  3:35 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55143
           Summary: vms-c.o:(.toc+0x0): undefined reference to
                    `c_default_pointer_mode' (building cc1plus)
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: amylaar@gcc.gnu.org
                CC: rth@gcc.gnu.org, sje@gcc.gnu.org, wilson@tuliptree.org
            Blocks: 47093
            Target: alpha-dec-vms, alpha64-dec-vms, ia64-hp-vms


g++   -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common 
-DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -o cc1plus \
      cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o
cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o
cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o
cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o
cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o
cp/cp-gimplify.o attribs.o incpath.o c-family/c-common.o
c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o
c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o
c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o
tree-mudflap.o vms-c.o default-c.o cc1plus-checksum.o libbackend.a main.o
tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a  
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a   -L/opt/cfarm/mpc/lib -lmpc -lmpfr -lgmp
-rdynamic -ldl  -L../zlib -lz
vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode'
collect2: error: ld returned 1 exit status
make[1]: *** [cc1plus] Error 1
make[1]: Leaving directory `/home/amylaar/multi/alpha-dec-vms/gcc'
make: *** [all-gcc] Error 2
[amylaar@gcc1-power7 alpha-dec-vms]$


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

* [Bug target/55143] vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus)
  2012-10-31  3:35 [Bug target/55143] New: vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus) amylaar at gcc dot gnu.org
@ 2014-07-31 20:58 ` mliska at suse dot cz
  2014-08-27  2:12 ` jbglaw@lug-owl.de
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mliska at suse dot cz @ 2014-07-31 20:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55143

Martin Liška <mliska at suse dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mliska at suse dot cz

--- Comment #1 from Martin Liška <mliska at suse dot cz> ---
Problem is still present in 4.10.0.
>From gcc-bugs-return-457497-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 31 21:12:19 2014
Return-Path: <gcc-bugs-return-457497-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30773 invoked by alias); 31 Jul 2014 21:12:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30748 invoked by uid 48); 31 Jul 2014 21:12:10 -0000
From: "carrot at google dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/61984] New: use mr. to remove extra cmp instruction on ppc
Date: Thu, 31 Jul 2014 21:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.10.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: carrot at google dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cf_gcctarget
Message-ID: <bug-61984-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-07/txt/msg02088.txt.bz2
Content-length: 1134

https://gcc.gnu.org/bugzilla/show_bug.cgi?ida984

            Bug ID: 61984
           Summary: use mr. to remove extra cmp instruction on ppc
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: carrot at google dot com
            Target: powerpc64le

Compile following code with options  -m64 -mcpu=power8 -O2


extern void free (void *__ptr);

void my_free ( void* p, void* addr )
{
   if (addr != ((void *)0)) free ( addr );
}


Trunk gcc generates:

my_free:
0:    addis 2,12,.TOC.-0b@ha
    addi 2,2,.TOC.-0b@l
    .localentry    my_free,.-my_free
    cmpdi 0,4,0     //    mr.  3,4
    beqlr 0         //    beqlr 0
    mflr 0          //    mflr  0
    mr 3,4          //
    std 0,16(1)
    stdu 1,-32(1)
    bl free
    nop
    addi 1,1,32
    ld 0,16(1)
    mtlr 0
    blr


The instructions from cmpdi to mr can be changed to following

        mr.   3, 4
        beqlr 0
        mflr  0
        ...

so we can remove the cmpdi instruction.


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

* [Bug target/55143] vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus)
  2012-10-31  3:35 [Bug target/55143] New: vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus) amylaar at gcc dot gnu.org
  2014-07-31 20:58 ` [Bug target/55143] " mliska at suse dot cz
@ 2014-08-27  2:12 ` jbglaw@lug-owl.de
  2015-04-08 19:04 ` aldot at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jbglaw@lug-owl.de @ 2014-08-27  2:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55143

Jan-Benedict Glaw <jbglaw@lug-owl.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jbglaw@lug-owl.de

--- Comment #2 from Jan-Benedict Glaw <jbglaw@lug-owl.de> ---
With today's GCC (2014-08-26, r214550, build
http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=347199), this is
still present:

g++   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common
 -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -o cc1plus \
      cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o
cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o
cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o
cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o
cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o
cp/cp-cilkplus.o cp/cp-gimplify.o cp/cp-array-notation.o cp/lambda.o
cp/vtable-class-hierarchy.o attribs.o incpath.o c-family/c-common.o
c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o
c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o
c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o
c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o
c-family/c-ubsan.o vms-c.o default-c.o cc1plus-checksum.o libbackend.a main.o
tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a  
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a    -L/opt/cfarm/mpc/lib -lmpc -lmpfr -lgmp
-rdynamic -ldl  -L../zlib -lz
/usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only handles
version 2 and 3 information.
vms-c.o: In function `handle_pragma_pointer_size(char const*)':
vms-c.c:(.text+0x6cd): undefined reference to `c_default_pointer_mode'
/usr/bin/ld: Dwarf Error: found dwarf version '0', this reader only handles
version 2 and 3 information.
vms-c.c:(.text+0x6e2): undefined reference to `c_default_pointer_mode'
/usr/bin/ld: Dwarf Error: found dwarf version '17874', this reader only handles
version 2 and 3 information.
vms-c.c:(.text+0x6fa): undefined reference to `c_default_pointer_mode'
/usr/bin/ld: Dwarf Error: found dwarf version '33796', this reader only handles
version 2 and 3 information.
vms-c.c:(.text+0x718): undefined reference to `c_default_pointer_mode'
/usr/bin/ld: Dwarf Error: found dwarf version '22528', this reader only handles
version 2 and 3 information.
vms-c.o: In function `vms_c_common_override_options()':
vms-c.c:(.text+0x9fc): undefined reference to `c_default_pointer_mode'
/usr/bin/ld: Dwarf Error: found dwarf version '12288', this reader only handles
version 2 and 3 information.
vms-c.o:vms-c.c:(.text+0xa12): more undefined references to
`c_default_pointer_mode' follow
collect2: error: ld returned 1 exit status
make[2]: *** [cc1plus] Error 1


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

* [Bug target/55143] vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus)
  2012-10-31  3:35 [Bug target/55143] New: vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus) amylaar at gcc dot gnu.org
  2014-07-31 20:58 ` [Bug target/55143] " mliska at suse dot cz
  2014-08-27  2:12 ` jbglaw@lug-owl.de
@ 2015-04-08 19:04 ` aldot at gcc dot gnu.org
  2015-04-10  7:55 ` aldot at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: aldot at gcc dot gnu.org @ 2015-04-08 19:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55143

Bernhard Reutner-Fischer <aldot at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|2013-02-27 00:00:00         |2015-04-08
                 CC|                            |aldot at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Bernhard Reutner-Fischer <aldot at gcc dot gnu.org> ---
Confirmed with trunk@221914.

c/c-decl.o gets linked into cc1 but not into cc1plus.

Sounds like c_default_pointer_mode should be moved to e.g. c-family/c-common.c


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

* [Bug target/55143] vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus)
  2012-10-31  3:35 [Bug target/55143] New: vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus) amylaar at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-04-08 19:04 ` aldot at gcc dot gnu.org
@ 2015-04-10  7:55 ` aldot at gcc dot gnu.org
  2015-04-10  8:06 ` aldot at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: aldot at gcc dot gnu.org @ 2015-04-10  7:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55143

--- Comment #4 from Bernhard Reutner-Fischer <aldot at gcc dot gnu.org> ---
Author: aldot
Date: Fri Apr 10 07:54:46 2015
New Revision: 221968

URL: https://gcc.gnu.org/viewcvs?rev=221968&root=gcc&view=rev
Log:
PR target/55143: undefined reference to c_default_pointer_mode

for all-gcc on ia64-hp-vms

gcc/c/ChangeLog:

2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

    PR target/55143
    * c-decl.c (c_default_pointer_mode): Remove definition.
    * c-tree.h (c_default_pointer_mode): Remove declaration.

gcc/c-family/ChangeLog:

2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

    PR target/55143
    * c-common.c (c_default_pointer_mode): Add definition.
    * c-common.h (c_default_pointer_mode): Add declaration.


Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/c-family/c-common.h
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.c
    trunk/gcc/c/c-tree.h


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

* [Bug target/55143] vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus)
  2012-10-31  3:35 [Bug target/55143] New: vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus) amylaar at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2015-04-10  7:55 ` aldot at gcc dot gnu.org
@ 2015-04-10  8:06 ` aldot at gcc dot gnu.org
  2021-08-26  5:26 ` pinskia at gcc dot gnu.org
  2021-08-26  5:26 ` pinskia at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: aldot at gcc dot gnu.org @ 2015-04-10  8:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55143

Bernhard Reutner-Fischer <aldot at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gingold at gcc dot gnu.org,
                   |                            |rupp at gnat dot com
      Known to work|                            |5.0

--- Comment #5 from Bernhard Reutner-Fischer <aldot at gcc dot gnu.org> ---
Fixed on the trunk for 5.0.

Eventual backport including beef-up of the impl is left to the port
maintainers.


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

* [Bug target/55143] vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus)
  2012-10-31  3:35 [Bug target/55143] New: vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus) amylaar at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2015-04-10  8:06 ` aldot at gcc dot gnu.org
@ 2021-08-26  5:26 ` pinskia at gcc dot gnu.org
  2021-08-26  5:26 ` pinskia at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-26  5:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55143

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.0

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

* [Bug target/55143] vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus)
  2012-10-31  3:35 [Bug target/55143] New: vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus) amylaar at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2021-08-26  5:26 ` pinskia at gcc dot gnu.org
@ 2021-08-26  5:26 ` pinskia at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-26  5:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55143

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jay.krell at cornell dot edu

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 58765 has been marked as a duplicate of this bug. ***

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

end of thread, other threads:[~2021-08-26  5:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-31  3:35 [Bug target/55143] New: vms-c.o:(.toc+0x0): undefined reference to `c_default_pointer_mode' (building cc1plus) amylaar at gcc dot gnu.org
2014-07-31 20:58 ` [Bug target/55143] " mliska at suse dot cz
2014-08-27  2:12 ` jbglaw@lug-owl.de
2015-04-08 19:04 ` aldot at gcc dot gnu.org
2015-04-10  7:55 ` aldot at gcc dot gnu.org
2015-04-10  8:06 ` aldot at gcc dot gnu.org
2021-08-26  5:26 ` pinskia at gcc dot gnu.org
2021-08-26  5:26 ` pinskia 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).