public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "markus at trippelsdorf dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug gcov-profile/51113] New: [4.7 regression] rev. 181105 causes Firefox profiledbuild failure
Date: Sat, 12 Nov 2011 23:36:00 -0000	[thread overview]
Message-ID: <bug-51113-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             Bug #: 51113
           Summary: [4.7 regression] rev. 181105 causes Firefox
                    profiledbuild failure
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: markus@trippelsdorf.de


Firefox fails to build during the -fprofile-generate phase 
of a "profiledbuild":

c++ -o js  -fno-rtti -pedantic -Wall -Wpointer-arith -Woverloaded-virtual
-Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -W
no-invalid-offsetof -Wno-variadic-macros -Werror=return-type -Wno-long-long
-march=native -fvisibility-inlines-hidden -Wno-delete-non-virtual-dtor -p
thread -pipe  -DNDEBUG -DTRIMMED -fprofile-generate -O3 -fomit-frame-pointer
js.i_o jsworkers.i_o jsoptparse.i_o jsheaptools.i_o   -lpthread -Wl,-O1,
--hash-style=gnu,--as-needed,--no-keep-memory,--gc-sections  -fprofile-generate
-Wl,-rpath-link,../../../dist/bin -Wl,-rpath-link,/var/tmp/mozilla-ce
ntral/moz-build-dir/dist/lib   -Wl,--whole-archive
../../../dist/lib/libmozutils.a -Wl,--no-whole-archive -rdynamic
-L../../../dist/bin -L../../../di
st/lib -Wl,-R/usr/lib64 -L/usr/lib64 -lplds4 -lplc4 -lnspr4 -lpthread -ldl
../editline/libeditline.a ../libjs_static.a -ldl    
jsoptparse.i_o:jsoptparse.cpp:function vtable for
js::cli::detail::StringOption: warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol '_ZN2js3cli6detail12StringOptionD1Ev' is not defi
ned locally
jsoptparse.i_o:jsoptparse.cpp:function vtable for
js::cli::detail::StringOption: warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol '_ZN2js3cli6detail12StringOptionD0Ev' is not defi
ned locally
jsoptparse.i_o:jsoptparse.cpp:function vtable for
js::cli::detail::StringOption: warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol '_ZNK2js3cli6detail12ValuedOption8isValuedEv' is 
not defined locally
jsoptparse.i_o:jsoptparse.cpp:function vtable for js::cli::detail::IntOption:
warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol '_ZN2js3cli6detail9IntOptionD1Ev' is not defined 
locally
jsoptparse.i_o:jsoptparse.cpp:function vtable for js::cli::detail::IntOption:
warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol '_ZN2js3cli6detail9IntOptionD0Ev' is not defined 
locally
jsoptparse.i_o:jsoptparse.cpp:function vtable for js::cli::detail::IntOption:
warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol '_ZNK2js3cli6detail12ValuedOption8isValuedEv' is 
not defined locally
jsoptparse.i_o:jsoptparse.cpp:function vtable for
js::cli::detail::MultiStringOption: warning: relocation refers to discarded
section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol '_ZN2js3cli6detail17MultiStringOptionD1Ev' is not
 defined locally
jsoptparse.i_o:jsoptparse.cpp:function vtable for
js::cli::detail::MultiStringOption: warning: relocation refers to discarded
section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol '_ZN2js3cli6detail17MultiStringOptionD0Ev' is not
 defined locally
jsoptparse.i_o:jsoptparse.cpp:function vtable for
js::cli::detail::MultiStringOption: warning: relocation refers to discarded
section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol '_ZNK2js3cli6detail12ValuedOption8isValuedEv' is 
not defined locally
...

I've git bisected this to the following commit:
5014df5d02d9d90bb0a749a035f86bbfbe94bfa4 is the first bad commit
commit 5014df5d02d9d90bb0a749a035f86bbfbe94bfa4
Author: nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Mon Nov 7 18:14:46 2011 +0000

        libgcc/
        * libgcov.c (struct gcov_fn_buffer): New struct.
        (buffer_fn_data): New helper.
        (gcov_exit): Rework for new gcov data structures.

        gcc/
        * gcov.c (object_summary): Replace with ...
        (object_runs): ... this.
        (process_file): Remove functions with no data.
        (generate_results): Ignore files with no lines.
        (release_function): New helper, broken out of ...
        (release_structures): ... here.  Use it.
        (read_count_file): Adjust for new data file format.
        (output_lines): Use object_runs.
        * gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete.
        (struct gcov_ctr_info): Move definition.
        (struct gcov_fn_info): Add key field, use gcov_ctr_info for
        trailing array.
        (struct gcov_info): Add merge function array, remove mask and
        counts.  Trailing array is array of pointers to function info.
        * coverage.c (struct function_list): Replace counter numbers with
        counter arrays.  Add fndecl field.  GTYify.
        (counts_entry): Remove chain workspace.
        (functions_head): GTYify.
        (prg_n_ctrs): Remove.
        (fn_v_ctrs): New.
        (tree_ctr_tables): Remove.
        (read_counts_file): Cope with blank entries and expect program
        summaries before functions.  Don't warn on missing entries.
        (coverage_counter_alloc): Allocate individual function arrays.
        (tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust
        for individual function arrays.
        (coverage_end_function): GTYify function list object. Finalize
        function's counter arrays.
        (build_var): New.  Create a counter-related variable with
        appropriate linkage.
        (build_fn_info_type): Adjust for new runtime structure.
        (build_fn_info_value): Rename to ...
        (build_fn_info): ... here.  Build new format data.
        (build_ctr_info_type, build_ctr_info_value): Remove.
        (build_info_type): New. Build new format data structure.
        (build_info): Adjust for new format data.
        (create_coverage): Likewise.
        * gcov-dump.c (tag_function): Recognize placeholders.

        gcc/testsuite/
        * gcc.dg/profile-dir-1.c: Adjust final scan.
        * gcc.dg/profile-dir-2.c: Adjust final scan.
        * gcc.dg/profile-dir-3.c: Adjust final scan.
        * gcc.misc-tests/gcov.exp: Adjust regexp.
        * gcc.misc-tests/gcov-12.c: New.
        * gcc.misc-tests/gcov-13.c: New.
        * gcc.misc-tests/gcovpart-13b.c: New.
        * gcc.misc-tests/gcov-14.c: New.



    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181105
138bc75d-0d04-0410-961f-82ee72b054a4

Reverting the commit "fixes" the problem.


             reply	other threads:[~2011-11-12 23:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-12 23:36 markus at trippelsdorf dot de [this message]
2011-11-13 11:31 ` [Bug gcov-profile/51113] " nathan at gcc dot gnu.org
2011-11-13 12:39 ` markus at trippelsdorf dot de
2011-11-13 14:00 ` markus at trippelsdorf dot de
2011-11-15  8:36 ` markus at trippelsdorf dot de
2011-11-15  9:02 ` markus at trippelsdorf dot de
2011-11-15  9:34 ` markus at trippelsdorf dot de
2011-11-15 10:09 ` markus at trippelsdorf dot de
2011-11-15 20:28 ` nathan at acm dot org
2011-11-15 22:15 ` nathan at gcc dot gnu.org
2011-11-20 10:13 ` nathan at gcc dot gnu.org
2011-12-01 20:00 ` nathan at gcc dot gnu.org
2011-12-05 14:13 ` rguenth at gcc dot gnu.org
2011-12-06  7:23 ` jakub at gcc dot gnu.org
2011-12-06  7:26 ` nathan at gcc dot gnu.org
2011-12-06  8:32 ` jakub at gcc dot gnu.org
2011-12-06  8:53 ` markus at trippelsdorf dot de

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-51113-4@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).