@@ -113,7 +113,15 @@ Boston, MA 02111-1307, USA. */
113113 N_ ("Restore a4 in all functions" ) }, \
114114 { "no-always-restore-a4" , - MASK_ALWAYS_RESTORE_A4 , \
115115 N_ ("Do not restore a4 in all functions" ) }
116-
116+
117+
118+ /* Support sections in chip memory, currently '.datachip' only. */
119+ extern void
120+ amiga_named_section (const char * name , unsigned int flags , tree decl );
121+
122+ #undef TARGET_ASM_NAMED_SECTION
123+ #define TARGET_ASM_NAMED_SECTION amiga_named_section
124+
117125#if 0
118126/* Various ABI issues. */
119127
@@ -139,9 +147,6 @@ Boston, MA 02111-1307, USA. */
139147#undef PIC_OFFSET_TABLE_REGNUM
140148#define PIC_OFFSET_TABLE_REGNUM (flag_pic ? 12 : INVALID_REGNUM)
141149
142- #undef PIC_REG
143- #define PIC_REG 12
144-
145150/* Use A5 as framepointer instead of A6, since the AmigaOS ABI requires A6
146151 to be used as a shared library base pointer in direct library calls. */
147152
@@ -182,9 +187,7 @@ Boston, MA 02111-1307, USA. */
182187
183188/* XXX: section support */
184189#if 0
185- /* Support sections in chip memory, currently '.datachip' only. */
186- #undef TARGET_ASM_NAMED_SECTION
187- #define TARGET_ASM_NAMED_SECTION amiga_named_section
190+
188191
189192/* We define TARGET_ASM_NAMED_SECTION, but we don't support arbitrary sections,
190193 including '.gcc_except_table', so we emulate the standard behaviour. */
0 commit comments