This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: more hot-cold partitioning problems



On Apr 14, 2004, at 10:21 AM, Richard Henderson wrote:


What I did *not* do (and in retrospect I can see that I should have)
was to run the SPEC tests with "-g".  I tend not to do that as it
slows down performance, which is what SPEC is usually about.

This had better not be true. If so, you've found a bug. Using -g should not change generated code in ANY way for ANY reason. Why? Because it means that you can no longer debug optimized code and be sure that you're actually debugging the optimized code.



Well it seems to be true. When I run the SPECInt gzip test, without -g (on x86 Linux,
with partitioning), it finishes successfully. When I add the "-g" flag to the spec test,
it fails on the second pass (after Training, when it is doing the partitioning) with:


zip.s:466: Error: subtraction of two symbols in different sections `text.unlikely' {text.unlikely section} - `.LFB26' {.text section} at file address 32
zip.s:525: Error: subtraction of two symbols in different sections `text.unlikely' {text.unlikely section} - `.Ltext0' {.text section} at file address 16
zip.s:528: Error: subtraction of two symbols in different sections `text.unlikely' {text.unlikely section} - `.Ltext0' {.text section} at file address 23
zip.s:529: Error: subtraction of two symbols in different sections `text.unlikely' {text.unlikely section} - `.Ltext0' {.text section} at file address 27
zip.s:552: Error: subtraction of two symbols in different sections `text.unlikely' {text.unlikely section} - `.Ltext0' {.text section} at file address 88
specmake: *** [gzip] Error 1


from zip.s:

Line 466:         .long   .LFE26-.LFB26
Line 525:         .long   .LVL8-.Ltext0
Line 528:         .long   .LVL8-.Ltext0
Line 529:         .long   .LFE26-.Ltext0
Line 552:         .long   .LVL10-.Ltext

Searching the zip.s file created from the run without "-g", there are no symbols or labels in the file containing
"LFE", "LBE", or "Ltext".


-- Caroline



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]