Fix PR other/29639

Eric Botcazou ebotcazou@adacore.com
Thu Nov 2 18:41:00 GMT 2006


I recently commited a patch that had a long history

2006-10-28  Eric Botcazou  <ebotcazou@adacore.com>

	* except.h (output_function_exception_table): Add 'const char*' param.
	* except.c (switch_to_exception_section): Add 'const char*' param.
	If named sections are supported and HAVE_LD_EH_GC_SECTIONS is defined
	and flag_function_sections is set, use a function-specific section.
	(output_function_exception_table): Add 'const char*' param.
	Adjust call to switch_to_exception_section.
	* final.c (rest_of_handle_final): Adjust calls to
	output_function_exception_table.
	* configure.ac (HAVE_LD_EH_GC_SECTIONS): New check.
	* config.in: Regenerate.
	* configure: Likewise.

Initial discussion: http://gcc.gnu.org/ml/gcc/2004-03/msg00506.html
First submission: http://gcc.gnu.org/ml/gcc-patches/2004-04/msg01768.html
Second submission: http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01265.html

It turns out that the changes related to the section anchor stuff had been
installed in-between and had slightly changed the code, which I totally 
overlooked, thus causing PR other/29639.  Sorry about that.

Bootstrapped/regtested on i586-suse-linux, w/ and w/o binutils support, and 
installed on the mainline as obvious.


2006-11-02  Eric Botcazou  <ebotcazou@adacore.com>

	PR other/29639
	* except.c (switch_to_exception_section): Do not cache the section
	if named sections are supported and HAVE_LD_EH_GC_SECTIONS is defined
	and flag_function_sections is set.


2006-11-02  Eric Botcazou  <ebotcazou@adacore.com>

	* g++.dg/eh/gcsec1.C: New test.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr29639.diff
Type: text/x-diff
Size: 1470 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061102/713b7c07/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr29639.C
Type: text/x-c++src
Size: 616 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061102/713b7c07/attachment-0001.bin>


More information about the Gcc-patches mailing list