https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81956
Bug ID: 81956 Summary: [7 regression] calling a null procedure is not skipped Product: gcc Version: 7.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: demoonlit at panathenaia dot halfmoon.jp Target Milestone: --- Hello. Has the behavior of null procedures been changed from gcc-7? package p is procedure Null_Proc is null; end p; with p; procedure main is begin p.Null_Proc; end main; With gcc-7.2, the calling Null_Proc is generated into the object code. $ gcc -c -O1 main.adb $ nm main.o 0000000000000010 s EH_frame1 0000000000000000 S __ada_main U _p__null_proc With gcc-6.2, this calling Null_Proc has been skipped. I think this behavior is desirable. $ gcc -c -O1 main.adb $ nm main.o 0000000000000008 s EH_frame1 0000000000000000 S __ada_main