public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/52150] New: [4.7 regression] junk at end of line in Firefox PGO build
@ 2012-02-07 17:27 markus at trippelsdorf dot de
2012-02-07 17:41 ` [Bug gcov-profile/52150] " pinskia at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: markus at trippelsdorf dot de @ 2012-02-07 17:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52150
Bug #: 52150
Summary: [4.7 regression] junk at end of line in Firefox PGO
build
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
Consider:
% cat test.i
typedef struct _cairo cairo_t;
cairo_t *_moz_cairo_create ();
__typeof (_moz_cairo_create)
_moz_cairo_create __asm__ ("INT__moz_cairo_create");
cairo_t *_moz_cairo_create ()
{
}
% gcc -c -fprofile-generate test.i
/tmp/ccwYenBS.s: Assembler messages:
/tmp/ccwYenBS.s:41: Error: junk at end of line, first unrecognized character is
`*'
/tmp/ccwYenBS.s:42: Error: bad expression
/tmp/ccwYenBS.s:42: Error: junk at end of line, first unrecognized character is
`I'
/tmp/ccwYenBS.s:66: Error: unrecognized symbol type ""
/tmp/ccwYenBS.s:66: Error: junk at end of line, first unrecognized character is
`*'
/tmp/ccwYenBS.s:67: Error: expected comma after name `__gcov__' in .size
directive
/tmp/ccwYenBS.s:68: Error: invalid character '*' in mnemonic
/tmp/ccwYenBS.s:76: Error: operation combines symbols in different segments
>From test.s:
39 __gcov_indirect_call_counters:
40 .zero 8
41 .local __gcov0_*INT__moz_cairo_create
42 .comm __gcov0_*INT__moz_cairo_create,8,8
43 .text
44 .type _GLOBAL__sub_I_65535_0_INT__moz_cairo_create, @function
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gcov-profile/52150] [4.7 regression] junk at end of line in Firefox PGO build
2012-02-07 17:27 [Bug gcov-profile/52150] New: [4.7 regression] junk at end of line in Firefox PGO build markus at trippelsdorf dot de
@ 2012-02-07 17:41 ` pinskia at gcc dot gnu.org
2012-02-07 17:43 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-02-07 17:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52150
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |assemble-failure
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-02-07
Known to work| |4.6.3
Target Milestone|--- |4.7.0
Ever Confirmed|0 |1
Known to fail| |4.7.0
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-07 17:41:05 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gcov-profile/52150] [4.7 regression] junk at end of line in Firefox PGO build
2012-02-07 17:27 [Bug gcov-profile/52150] New: [4.7 regression] junk at end of line in Firefox PGO build markus at trippelsdorf dot de
2012-02-07 17:41 ` [Bug gcov-profile/52150] " pinskia at gcc dot gnu.org
@ 2012-02-07 17:43 ` pinskia at gcc dot gnu.org
2012-02-08 0:01 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-02-07 17:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52150
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-07 17:42:41 UTC ---
The profiling code forgot to remove the * from the assembly name it looks like.
The * means it is defined.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gcov-profile/52150] [4.7 regression] junk at end of line in Firefox PGO build
2012-02-07 17:27 [Bug gcov-profile/52150] New: [4.7 regression] junk at end of line in Firefox PGO build markus at trippelsdorf dot de
2012-02-07 17:41 ` [Bug gcov-profile/52150] " pinskia at gcc dot gnu.org
2012-02-07 17:43 ` pinskia at gcc dot gnu.org
@ 2012-02-08 0:01 ` jakub at gcc dot gnu.org
2012-02-08 8:04 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-08 0:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52150
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jakub at gcc dot gnu.org
AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org
|gnu.org |
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gcov-profile/52150] [4.7 regression] junk at end of line in Firefox PGO build
2012-02-07 17:27 [Bug gcov-profile/52150] New: [4.7 regression] junk at end of line in Firefox PGO build markus at trippelsdorf dot de
` (2 preceding siblings ...)
2012-02-08 0:01 ` jakub at gcc dot gnu.org
@ 2012-02-08 8:04 ` jakub at gcc dot gnu.org
2012-02-08 8:38 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-08 8:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52150
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-08 08:03:43 UTC ---
Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181105
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gcov-profile/52150] [4.7 regression] junk at end of line in Firefox PGO build
2012-02-07 17:27 [Bug gcov-profile/52150] New: [4.7 regression] junk at end of line in Firefox PGO build markus at trippelsdorf dot de
` (3 preceding siblings ...)
2012-02-08 8:04 ` jakub at gcc dot gnu.org
@ 2012-02-08 8:38 ` jakub at gcc dot gnu.org
2012-02-08 10:31 ` markus at trippelsdorf dot de
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-08 8:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52150
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-08 08:37:41 UTC ---
Created attachment 26607
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26607
gcc47-pr52150.patch
Untested fix. I took the liberty to also overwrite the last _ with . or $,
so that at least when possible these artificial symbols don't clash with user
__gcov__foo etc. symbols (yeah, I know, they are reserved for implementation,
still the assembly would likely fail if those were used).
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gcov-profile/52150] [4.7 regression] junk at end of line in Firefox PGO build
2012-02-07 17:27 [Bug gcov-profile/52150] New: [4.7 regression] junk at end of line in Firefox PGO build markus at trippelsdorf dot de
` (4 preceding siblings ...)
2012-02-08 8:38 ` jakub at gcc dot gnu.org
@ 2012-02-08 10:31 ` markus at trippelsdorf dot de
2012-02-08 13:27 ` jakub at gcc dot gnu.org
2012-02-08 13:39 ` jakub at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: markus at trippelsdorf dot de @ 2012-02-08 10:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52150
--- Comment #5 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-02-08 10:31:27 UTC ---
(In reply to comment #4)
> Created attachment 26607 [details]
> gcc47-pr52150.patch
>
> Untested fix. I took the liberty to also overwrite the last _ with . or $,
> so that at least when possible these artificial symbols don't clash with user
> __gcov__foo etc. symbols (yeah, I know, they are reserved for implementation,
> still the assembly would likely fail if those were used).
The patch fixes the issue and survived a full Firefox PGO build.
Thanks Jakub.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gcov-profile/52150] [4.7 regression] junk at end of line in Firefox PGO build
2012-02-07 17:27 [Bug gcov-profile/52150] New: [4.7 regression] junk at end of line in Firefox PGO build markus at trippelsdorf dot de
` (5 preceding siblings ...)
2012-02-08 10:31 ` markus at trippelsdorf dot de
@ 2012-02-08 13:27 ` jakub at gcc dot gnu.org
2012-02-08 13:39 ` jakub at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-08 13:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52150
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-08 13:27:37 UTC ---
Author: jakub
Date: Wed Feb 8 13:27:31 2012
New Revision: 184006
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184006
Log:
PR gcov-profile/52150
* coverage.c: Include target.h.
(build_var): Call targetm.strip_name_encoding on the assembler name.
Change one _ into . or $ if the target allows it.
* Makefile.in (coverage.o): Depend on $(TARGET_H).
* gcc.dg/tree-prof/pr52150.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/tree-prof/pr52150.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/Makefile.in
trunk/gcc/coverage.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gcov-profile/52150] [4.7 regression] junk at end of line in Firefox PGO build
2012-02-07 17:27 [Bug gcov-profile/52150] New: [4.7 regression] junk at end of line in Firefox PGO build markus at trippelsdorf dot de
` (6 preceding siblings ...)
2012-02-08 13:27 ` jakub at gcc dot gnu.org
@ 2012-02-08 13:39 ` jakub at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-08 13:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52150
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-08 13:39:09 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-02-08 13:39 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-07 17:27 [Bug gcov-profile/52150] New: [4.7 regression] junk at end of line in Firefox PGO build markus at trippelsdorf dot de
2012-02-07 17:41 ` [Bug gcov-profile/52150] " pinskia at gcc dot gnu.org
2012-02-07 17:43 ` pinskia at gcc dot gnu.org
2012-02-08 0:01 ` jakub at gcc dot gnu.org
2012-02-08 8:04 ` jakub at gcc dot gnu.org
2012-02-08 8:38 ` jakub at gcc dot gnu.org
2012-02-08 10:31 ` markus at trippelsdorf dot de
2012-02-08 13:27 ` jakub at gcc dot gnu.org
2012-02-08 13:39 ` jakub 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).