Fix section encoding on Darwin
Stan Shebs
shebs@apple.com
Thu May 1 20:30:00 GMT 2003
This patch just adds the obvious call to default_encode_section_info.
Bootstrapped and tested on Darwin 6.5, no regressions observed.
Stan
2003-05-01 Stan Shebs <shebs@apple.com>
* config/darwin.c (darwin_encode_section_info): Call
default_encode_section_info.
RCS file: /cvs/gcc/gcc/gcc/config/darwin.c,v
retrieving revision 1.36
diff -p -r1.36 darwin.c
*** config/darwin.c 20 Apr 2003 18:20:37 -0000 1.36
--- config/darwin.c 1 May 2003 17:39:45 -0000
*************** darwin_encode_section_info (decl, rtl, f
*** 986,991 ****
--- 986,997 ----
char *new_str;
size_t len, new_len;
+ /* Do the standard encoding things first. */
+ default_encode_section_info (decl, rtl, first);
+
+ /* With the introduction of symbol_ref flags, some of the following
+ code has become redundant and should be removed at some point. */
+
if ((TREE_CODE (decl) == FUNCTION_DECL
|| TREE_CODE (decl) == VAR_DECL)
&& !DECL_EXTERNAL (decl)
More information about the Gcc-patches
mailing list