[Bug target/94445] gcc.target/arm/cmse/cmse-15.c fails for cortex-m33

2020-04-02 Thread avieira at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94445 --- Comment #6 from avieira at gcc dot gnu.org --- I have also identified that this only goes wrong in O2 or higher. And it happens sometime between tailcall optimization pass 1 and 2. But there's loads of passes in between.

[Bug target/94445] gcc.target/arm/cmse/cmse-15.c fails for cortex-m33

2020-04-02 Thread avieira at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94445 --- Comment #5 from avieira at gcc dot gnu.org --- Yeah... So far I have checked that 'gimplify_call_expr' creates the right gimple, and up until 'gimplify_modify_expr' I can verify it does by using gimple_call_fntype . Though at expansion

[Bug target/94445] gcc.target/arm/cmse/cmse-15.c fails for cortex-m33

2020-04-02 Thread avieira at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94445 --- Comment #4 from avieira at gcc dot gnu.org --- Yeah... So far I have checked that 'gimplify_call_expr' creates the right gimple, and up until 'gimplify_modify_expr' I can verify it does by using gimple_call_fntype . Though at expansion

[Bug target/94445] gcc.target/arm/cmse/cmse-15.c fails for cortex-m33

2020-04-02 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94445 --- Comment #3 from Christophe Lyon --- I also checked that arm_handle_cmse_nonsecure_call correctly duplicates the type.

[Bug target/94445] gcc.target/arm/cmse/cmse-15.c fails for cortex-m33

2020-04-02 Thread avieira at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94445 --- Comment #2 from avieira at gcc dot gnu.org --- start_decl seems to be doing the right thing, investigation continues...

[Bug target/94445] gcc.target/arm/cmse/cmse-15.c fails for cortex-m33

2020-04-02 Thread avieira at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94445 avieira at gcc dot gnu.org changed: What|Removed |Added CC||avieira at gcc dot gnu.org