public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "laurent at guerby dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/47056] [4.6 Regression] 10 Ada ACATS tests fail to link with undefined reference on ia64-linux
Date: Mon, 27 Dec 2010 22:26:00 -0000	[thread overview]
Message-ID: <bug-47056-4-U7syNqOMTW@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-47056-4@http.gcc.gnu.org/bugzilla/>

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

Laurent GUERBY <laurent at guerby dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot
                   |                            |gnu.org

--- Comment #1 from Laurent GUERBY <laurent at guerby dot net> 2010-12-27 22:26:40 UTC ---
I took one of the test and it fails to link at -O2 and -O1 but works and PASS
at -O0, see below. So I'm assuming some optimization is creating the issue, any
idea on what to look for?

guerby@Babe:~/tmp$ gnatmake -f -O2 c390002.adb 
gcc -c -O2 c390002.adb
c390002.adb:101:11: warning: unreachable code
gcc -c -O2 report.adb
report.adb:312:30: warning: index for "NAM" may assume lower bound of 1
report.adb:312:30: warning: suggested replacement: "NAM'First + 2"
report.adb:312:33: warning: index for "NAM" may assume lower bound of 1
report.adb:312:33: warning: suggested replacement: "NAM'First + 6"
gnatbind -x c390002.ali
gnatlink c390002.ali -O2
./c390002.o: In function `_ada_c390002':
c390002.adb:(.text+0x1070): undefined reference to
`c390002__vehicle___alignment.1865'
c390002.adb:(.text+0x1071): undefined reference to
`c390002__vehicle__objectDF.1869'
c390002.adb:(.text+0x1072): undefined reference to
`c390002__vehicle__create.1880'
c390002.adb:(.text+0x1082): undefined reference to
`c390002__vehicle__wheels.1883'
c390002.adb:(.text+0x16d0): undefined reference to
`c390002__motivators___alignment.2087'
c390002.adb:(.text+0x1cc0): undefined reference to
`c390002__motivators___alignment__2.2292'
c390002.adb:(.text+0x22a0): undefined reference to
`c390002__motivators___alignment__3.2497'
collect2: ld returned 1 exit status
gnatlink: error when calling /home/guerby/install-trunk/bin/gcc
gnatmake: *** link failed.
guerby@Babe:~/tmp$ gnatmake -f -O1 c390002.adb 
gcc -c -O1 c390002.adb
c390002.adb:101:11: warning: unreachable code
gcc -c -O1 report.adb
report.adb:312:30: warning: index for "NAM" may assume lower bound of 1
report.adb:312:30: warning: suggested replacement: "NAM'First + 2"
report.adb:312:33: warning: index for "NAM" may assume lower bound of 1
report.adb:312:33: warning: suggested replacement: "NAM'First + 6"
gnatbind -x c390002.ali
gnatlink c390002.ali -O1
./c390002.o: In function `_ada_c390002':
c390002.adb:(.text+0x1041): undefined reference to
`c390002__vehicle___alignment.1865'
c390002.adb:(.text+0x1081): undefined reference to
`c390002__vehicle__objectDF.1869'
c390002.adb:(.text+0x11a0): undefined reference to
`c390002__vehicle__wheels.1883'
c390002.adb:(.text+0x1781): undefined reference to
`c390002__motivators___alignment.2087'
c390002.adb:(.text+0x18a0): undefined reference to
`c390002__vehicle__wheels.1883'
c390002.adb:(.text+0x1e71): undefined reference to
`c390002__motivators___alignment__2.2292'
c390002.adb:(.text+0x1f70): undefined reference to
`c390002__vehicle__wheels.1883'
c390002.adb:(.text+0x2531): undefined reference to
`c390002__motivators___alignment__3.2497'
c390002.adb:(.text+0x2620): undefined reference to
`c390002__vehicle__wheels.1883'
collect2: ld returned 1 exit status
gnatlink: error when calling /home/guerby/install-trunk/bin/gcc
gnatmake: *** link failed.
guerby@Babe:~/tmp$ gnatmake -f -O0 c390002.adb 
gcc -c -O0 c390002.adb
c390002.adb:101:11: warning: unreachable code
gcc -c -O0 report.adb
report.adb:312:30: warning: index for "NAM" may assume lower bound of 1
report.adb:312:30: warning: suggested replacement: "NAM'First + 2"
report.adb:312:33: warning: index for "NAM" may assume lower bound of 1
report.adb:312:33: warning: suggested replacement: "NAM'First + 6"
gnatbind -x c390002.ali
gnatlink c390002.ali -O0
guerby@Babe:~/tmp$ ./c390002 

,.,. C390002 ACATS 2.5 10-12-27 23:26:15
---- C390002 Check that a tagged type may be declared and derived from
                in simple, private and extended forms.  Check package
                Ada.Tags.
==== C390002 PASSED ============================.


  parent reply	other threads:[~2010-12-27 22:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-23 20:21 [Bug ada/47056] New: " laurent at guerby dot net
2010-12-27 19:05 ` [Bug ada/47056] " jakub at gcc dot gnu.org
2010-12-27 22:26 ` laurent at guerby dot net [this message]
2010-12-28  8:48 ` laurent at guerby dot net
2010-12-28 15:22 ` ebotcazou at gcc dot gnu.org
2010-12-28 15:23 ` ebotcazou at gcc dot gnu.org
2011-01-02 19:14 ` ebotcazou at gcc dot gnu.org
2011-01-04 10:51 ` [Bug tree-optimization/47056] " ebotcazou at gcc dot gnu.org
2011-01-04 10:53 ` ebotcazou at gcc dot gnu.org
2011-01-04 23:22 ` ebotcazou at gcc dot gnu.org
2011-01-04 23:26 ` ebotcazou at gcc dot gnu.org
2011-01-10 11:47 ` laurent at guerby dot net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-47056-4-U7syNqOMTW@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).