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]

[PATCH] Fix objc/23306, objc exceptions vs unit-at-a-time


The problem here is that we don't finalize the decl on the string
which are generated when lowering the eh expressions. This fixes the issue by
finalize the decl in add_objc_string instead doing that after the file has
finished parsing. This is also one more step to adding back IMA for objc.


I had to fix a testcase as it was not getting what it had thought was expected.
There was a string in-between now but really we did not need to test for that so
I removed that part.


OK? Bootstrapped and tested on powerpc-darwin and x86_64-linux-gnu with no
regressions.


Thanks,
Andrew Pinski

objc/ChangeLog:
	* objc-act.c (generate_strings): Remove and move code to
	finish decl to ...
	(add_objc_string): here when creating a new string decl.
	(finish_objc): Don't call generate_strings.

testsuite/ChangeLog
	* objc.dg/image-info.m: Remove "objc_module_info" check part of the
	scan-assmbler.


Attachment: t2.diff.txt
Description: Text document


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