public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/41438] New: [4.5 Regression] VTA: libgomp build fails due to inconsistent debug info
@ 2009-09-22 21:12 sje at cup dot hp dot com
2009-09-29 14:40 ` [Bug debug/41438] " jakub at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: sje at cup dot hp dot com @ 2009-09-22 21:12 UTC (permalink / raw)
To: gcc-bugs
If I compile the included two C files on IA64 HP-UX and then link them into
a shared library using the HP linker I get an error from the HP linker.
$ gcc -mlp64 -shared -fPIC -O2 -g x.c y.c
ld: Non TP-relative relocation for the thread local storage symbol
"gomp_tls_data"
1 errors.
collect2: ld returned 1 exit status
While I do not get this error on IA64 Linux the compiler does generate the same
debug information as on HP-UX, the linker just doesn't complain.
If I look at the generated assembly code for x.c and y.c the .debug_info
section of x.c contains:
data8.ua gomp_tls_data#+8
while the .debug_info section of y.c contains:
data8.ua @dtprel(gomp_tls_data#)
If I change x.s by hand to use dtprel then the HP linker does not complain.
Here are the two C files, x.c and y.c:
============ x.c =============
struct gomp_team_state { };
struct gomp_thread
{
void (*fn) (void *data);
struct gomp_team_state ts;
};
extern __thread struct gomp_thread gomp_tls_data;
inline struct gomp_thread *gomp_thread (void)
{
return &gomp_tls_data;
}
GOMP_parallel_end (void)
{
struct gomp_team_state *ts = &gomp_thread ()->ts;
}
========== y.c ===============
struct gomp_team_state { };
struct gomp_thread
{
void (*fn) (void *data);
struct gomp_team_state ts;
};
__thread struct gomp_thread gomp_tls_data;
--
Summary: [4.5 Regression] VTA: libgomp build fails due to
inconsistent debug info
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: aoliva at gcc dot gnu dot org
ReportedBy: sje at cup dot hp dot com
GCC build triplet: ia64-hp-hpux11.23
GCC host triplet: ia64-hp-hpux11.23
GCC target triplet: ia64-hp-hpux11.23
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41438
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/41438] [4.5 Regression] VTA: libgomp build fails due to inconsistent debug info
2009-09-22 21:12 [Bug debug/41438] New: [4.5 Regression] VTA: libgomp build fails due to inconsistent debug info sje at cup dot hp dot com
@ 2009-09-29 14:40 ` jakub at gcc dot gnu dot org
2009-09-29 17:34 ` jakub at gcc dot gnu dot org
2009-09-29 17:40 ` jakub at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-09-29 14:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jakub at gcc dot gnu dot org 2009-09-29 14:40 -------
My http://gcc.gnu.org/ml/gcc-patches/2009-09/msg02070.html patch fixes this
too.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|aoliva at gcc dot gnu dot |jakub at gcc dot gnu dot org
|org |
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2009-
| |09/msg02070.html
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-09-29 14:40:29
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41438
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/41438] [4.5 Regression] VTA: libgomp build fails due to inconsistent debug info
2009-09-22 21:12 [Bug debug/41438] New: [4.5 Regression] VTA: libgomp build fails due to inconsistent debug info sje at cup dot hp dot com
2009-09-29 14:40 ` [Bug debug/41438] " jakub at gcc dot gnu dot org
@ 2009-09-29 17:34 ` jakub at gcc dot gnu dot org
2009-09-29 17:40 ` jakub at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-09-29 17:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2009-09-29 17:34 -------
Subject: Bug 41438
Author: jakub
Date: Tue Sep 29 17:33:58 2009
New Revision: 152282
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152282
Log:
PR debug/41438
* dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
functions.
(mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
out if !const_ok_for_output.
PR debug/41474
* dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
case VAR_LOCATION>: Remove gcc_unreachable ().
* gcc.dg/debug/dwarf2/const-1.c: Add dg-require-visibility, make x
hidden.
* g++.dg/debug/dwarf2/const-1.C: Likewise.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/debug/dwarf2/const1.C
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/const-1.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41438
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/41438] [4.5 Regression] VTA: libgomp build fails due to inconsistent debug info
2009-09-22 21:12 [Bug debug/41438] New: [4.5 Regression] VTA: libgomp build fails due to inconsistent debug info sje at cup dot hp dot com
2009-09-29 14:40 ` [Bug debug/41438] " jakub at gcc dot gnu dot org
2009-09-29 17:34 ` jakub at gcc dot gnu dot org
@ 2009-09-29 17:40 ` jakub at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-09-29 17:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2009-09-29 17:39 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41438
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-09-29 17:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-22 21:12 [Bug debug/41438] New: [4.5 Regression] VTA: libgomp build fails due to inconsistent debug info sje at cup dot hp dot com
2009-09-29 14:40 ` [Bug debug/41438] " jakub at gcc dot gnu dot org
2009-09-29 17:34 ` jakub at gcc dot gnu dot org
2009-09-29 17:40 ` jakub 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).