Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building for full profiling fails #105

Open
GoogleCodeExporter opened this issue May 5, 2016 · 3 comments
Open

building for full profiling fails #105

GoogleCodeExporter opened this issue May 5, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

building with -p fails due to:

/home/jaka/dev/sx/inst-binutils-head/lib/gcc/sx8-nec-superux/4.2.2/../../../../s
x8-nec-superux/lib/mcrt3.o:mcrt3.s:(.text+0x568):
undefined reference to `_prof_nfunc'
collect2: ld returned 1 exit status

it seems that SX mcrt3.o requires the compiler to introduce the above
symbol (it's not found in any SX libs, just referenced from mcrt?.o
objects) - gcc does not, though.

the question is: do we fix this for superux libc target, or do we just
leave it be until we provide our own startup files (probably as part of
newlib/glibc port).

this issue touches testcase gcc.dg/20021014-1.c

Original issue reported on code.google.com by [email protected] on 9 Feb 2009 at 3:02

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 9 Feb 2009 at 3:03

  • Added labels: gcc, profiling

@GoogleCodeExporter
Copy link
Author

also need to implement FUNCTION_PROFILER (file, labelno) hook. attaching a diff
between SX assembly with (new) and without (old) profiling enabled to see how
profiling call looks like.

counters are per-function (and should be added to data by gcc). calling _mcount 
is a
bit weird wrt. common calls.

Original comment by [email protected] on 18 Feb 2009 at 10:48

@GoogleCodeExporter
Copy link
Author

argh ... attaching for real this time.

Original comment by [email protected] on 18 Feb 2009 at 10:52

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant