gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to track down problem with packed.com from testsuite


From: john o goyo
Subject: Re: Trying to track down problem with packed.com from testsuite
Date: Sun, 11 Aug 2024 20:54:03 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

Greetings, Gaius.

On 2024-08-11 14:30, Gaius Mulley wrote (in part):
john o goyo <jog37@riddermarkfarm.ca> writes:

Greetings, Gaius.

Here is an oddity:

[~/opt/gm2/testsuite]=> gm2-14 -c -O -fomit-frame-pointer
-finline-functions -fiso packed.mod
[~/opt/gm2/testsuite]=> gm2-14 -c -O0 -fomit-frame-pointer
-finline-functions -fiso packed.mod
[~/opt/gm2/testsuite]=> gm2-14 -c -O1 -fomit-frame-pointer
-finline-functions -fiso packed.mod
[~/opt/gm2/testsuite]=> gm2-14 -c -O2 -fomit-frame-pointer
-finline-functions -fiso packed.mod
gm2: internal compiler error: Segmentation Fault signal terminated
program cc1gm2
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
[~/opt/gm2/testsuite]=> gm2-14 -c -Ofast -fomit-frame-pointer
-finline-functions -fiso packed.mod
gm2: internal compiler error: Segmentation Fault signal terminated
program cc1gm2
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.

Basically, optimisation level 2 and above causes problems.

I am trying to chase down the problem but I have clue where the gm2
compilation starts. Please inform me on which function to break.

Sincerely,
john
Hi John,

that is an interesting observation.

One way to debug is to set a break point on: gimplify_function_tree(tree_node*)

which is called by the front end at each end of function when the
statement tree is complete.  The statement tree can be dumped as follows
below.  For small test programs this can be useful - even to see which
function causes the sigsegv.  You can also dump the gimple IR via
command line -fm2-dump=all.

Your option is not recognised:

[~/opt/gm2/testsuite]=> gm2-14 -c -O1 -fomit-frame-pointer -finline-functions -fiso -fm2-dump=all packed.mod
gm2: error: unrecognized command-line option "-fm2-dump=all"

Remember that I am using gm2-14.2.0.

Sincerely,
john



reply via email to

[Prev in Thread] Current Thread [Next in Thread]