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: Gaius Mulley
Subject: Re: Trying to track down problem with packed.com from testsuite
Date: Mon, 12 Aug 2024 14:02:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

john o goyo <jog37@riddermarkfarm.ca> writes:

> 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.

Hi John,

ah yes it appeared on 2024-05-02 in gm2-15.  I'll back port many of the
gm2-15 patches once the -Wodr warnings have all been fixed (currently
nearly complete - the bulk were git pushed last evening),

regards,
Gaius



reply via email to

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