public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/casm-refactoring-v1)] Rename in header files.
@ 2021-09-15 11:57 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-09-15 11:57 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:c493b80e9350756b7af9e55d2daf578f2644b532
commit c493b80e9350756b7af9e55d2daf578f2644b532
Author: Martin Liska <mliska@suse.cz>
Date: Wed Sep 15 13:56:55 2021 +0200
Rename in header files.
Diff:
---
gcc/config/aarch64/aarch64.h | 2 +-
gcc/config/alpha/elf.h | 4 ++--
gcc/config/arm/aout.h | 2 +-
gcc/config/arm/arm.h | 2 +-
gcc/config/arm/unknown-elf.h | 4 ++--
gcc/config/bfin/bfin.h | 2 +-
gcc/config/c6x/c6x.h | 4 ++--
gcc/config/frv/frv.h | 2 +-
gcc/config/ft32/ft32.h | 6 +++---
gcc/config/i386/cygming.h | 2 +-
gcc/config/i386/darwin.h | 2 +-
gcc/config/i386/sol2.h | 6 +++---
gcc/config/ia64/sysv4.h | 4 ++--
gcc/config/lm32/lm32.h | 8 ++++----
gcc/config/m32r/m32r.h | 2 +-
gcc/config/mcore/mcore-elf.h | 4 ++--
gcc/config/microblaze/microblaze.h | 8 ++++----
gcc/config/nios2/nios2.h | 4 ++--
gcc/config/pru/pru.h | 2 +-
gcc/config/rs6000/sysv4.h | 2 +-
gcc/config/sparc/sol2.h | 6 +++---
gcc/config/tilegx/tilegx.h | 2 +-
gcc/config/tilepro/tilepro.h | 2 +-
gcc/config/visium/visium.h | 4 ++--
gcc/dwarf2out.h | 4 ++--
25 files changed, 45 insertions(+), 45 deletions(-)
diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h
index a5ba6c24037..3ed2d54078e 100644
--- a/gcc/config/aarch64/aarch64.h
+++ b/gcc/config/aarch64/aarch64.h
@@ -1123,7 +1123,7 @@ typedef struct
/* Put trampolines in the text section so that mapping symbols work
correctly. */
-#define TRAMPOLINE_SECTION text_section
+#define TRAMPOLINE_SECTION casm->sec.text
/* To start with. */
#define BRANCH_COST(SPEED_P, PREDICTABLE_P) \
diff --git a/gcc/config/alpha/elf.h b/gcc/config/alpha/elf.h
index b735f279b30..5a34bccccad 100644
--- a/gcc/config/alpha/elf.h
+++ b/gcc/config/alpha/elf.h
@@ -46,9 +46,9 @@ along with GCC; see the file COPYING3. If not see
#define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGN) \
do { \
if ((SIZE) <= (unsigned HOST_WIDE_INT) g_switch_value) \
- switch_to_section (sbss_section); \
+ switch_to_section (casm->sec.sbss); \
else \
- switch_to_section (bss_section); \
+ switch_to_section (casm->sec.bss); \
ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "object"); \
if (!flag_inhibit_size_directive) \
ASM_OUTPUT_SIZE_DIRECTIVE (FILE, NAME, SIZE); \
diff --git a/gcc/config/arm/aout.h b/gcc/config/arm/aout.h
index 25a2812a663..01743bb040e 100644
--- a/gcc/config/arm/aout.h
+++ b/gcc/config/arm/aout.h
@@ -288,7 +288,7 @@
#define ASM_OUTPUT_ALIGNED_LOCAL(STREAM, NAME, SIZE, ALIGN) \
do \
{ \
- switch_to_section (bss_section); \
+ switch_to_section (casm->sec.bss); \
ASM_OUTPUT_ALIGN (STREAM, floor_log2 (ALIGN / BITS_PER_UNIT)); \
ASM_OUTPUT_LABEL (STREAM, NAME); \
fprintf (STREAM, "\t.space\t%d\n", (int)(SIZE)); \
diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h
index 015299c1534..845b965f75f 100644
--- a/gcc/config/arm/arm.h
+++ b/gcc/config/arm/arm.h
@@ -1613,7 +1613,7 @@ machine_function;
#define ARM_GE_BITS_READ (arm_ge_bits_access ())
/* As in the machine_function, a global set of call-via labels, for code
- that is in text_section. */
+ that is in casm->sec.text. */
extern GTY(()) rtx thumb_call_via_label[14];
/* The number of potential ways of assigning to a co-processor. */
diff --git a/gcc/config/arm/unknown-elf.h b/gcc/config/arm/unknown-elf.h
index cca6f0ece54..6aba52284c3 100644
--- a/gcc/config/arm/unknown-elf.h
+++ b/gcc/config/arm/unknown-elf.h
@@ -61,7 +61,7 @@
if (IN_NAMED_SECTION_P (DECL)) \
switch_to_section (get_named_section (DECL, NULL, 0)); \
else \
- switch_to_section (bss_section); \
+ switch_to_section (casm->sec.bss); \
\
ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT)); \
\
@@ -78,7 +78,7 @@
if ((DECL) != NULL && IN_NAMED_SECTION_P (DECL)) \
switch_to_section (get_named_section (DECL, NULL, 0)); \
else \
- switch_to_section (bss_section); \
+ switch_to_section (casm->sec.bss); \
\
ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT)); \
ASM_OUTPUT_LABEL (FILE, NAME); \
diff --git a/gcc/config/bfin/bfin.h b/gcc/config/bfin/bfin.h
index 823ca2d7124..4aaee42e0e6 100644
--- a/gcc/config/bfin/bfin.h
+++ b/gcc/config/bfin/bfin.h
@@ -1053,7 +1053,7 @@ do { char __buf[256]; \
#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \
do { \
- switch_to_section (data_section); \
+ switch_to_section (casm->sec.data); \
if ((SIZE) >= (unsigned int) 4 ) ASM_OUTPUT_ALIGN(FILE,2); \
ASM_OUTPUT_SIZE_DIRECTIVE (FILE, NAME, SIZE); \
ASM_OUTPUT_LABEL (FILE, NAME); \
diff --git a/gcc/config/c6x/c6x.h b/gcc/config/c6x/c6x.h
index 9e0a20d20cb..4b9ec51bd72 100644
--- a/gcc/config/c6x/c6x.h
+++ b/gcc/config/c6x/c6x.h
@@ -557,9 +557,9 @@ do { char __buf[256]; \
#define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \
do { \
if (PLACE_IN_SDATA_P (DECL)) \
- switch_to_section (sbss_section); \
+ switch_to_section (casm->sec.sbss); \
else \
- switch_to_section (bss_section); \
+ switch_to_section (casm->sec.bss); \
ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "object"); \
if (!flag_inhibit_size_directive) \
ASM_OUTPUT_SIZE_DIRECTIVE (FILE, NAME, SIZE); \
diff --git a/gcc/config/frv/frv.h b/gcc/config/frv/frv.h
index 65091952ebd..6fd072c25d8 100644
--- a/gcc/config/frv/frv.h
+++ b/gcc/config/frv/frv.h
@@ -1540,7 +1540,7 @@ do { \
if ((SIZE) > 0 && (SIZE) <= (unsigned HOST_WIDE_INT) g_switch_value) \
switch_to_section (get_named_section (NULL, ".sbss", 0)); \
else \
- switch_to_section (bss_section); \
+ switch_to_section (casm->sec.bss); \
ASM_OUTPUT_ALIGN (STREAM, floor_log2 ((ALIGN) / BITS_PER_UNIT)); \
ASM_DECLARE_OBJECT_NAME (STREAM, NAME, DECL); \
ASM_OUTPUT_SKIP (STREAM, (SIZE) ? (SIZE) : 1); \
diff --git a/gcc/config/ft32/ft32.h b/gcc/config/ft32/ft32.h
index f8d0763e394..8e2b0667b64 100644
--- a/gcc/config/ft32/ft32.h
+++ b/gcc/config/ft32/ft32.h
@@ -478,9 +478,9 @@ extern int ft32_is_mem_pm(rtx o);
#define ASM_OUTPUT_SYMBOL_REF(stream, sym) \
do { \
assemble_name (stream, XSTR (sym, 0)); \
- int section_debug = in_section && \
- (SECTION_STYLE (in_section) == SECTION_NAMED) && \
- (in_section->named.common.flags & SECTION_DEBUG); \
+ int section_debug = casm->in_section && \
+ (SECTION_STYLE (casm->in_section) == SECTION_NAMED) && \
+ (casm->in_section->named.common.flags & SECTION_DEBUG); \
if (!section_debug && SYMBOL_REF_FLAGS (sym) & 0x1000) \
asm_fprintf (stream, "-0x800000"); \
} while (0)
diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h
index da872d10cd3..2826d2c35c6 100644
--- a/gcc/config/i386/cygming.h
+++ b/gcc/config/i386/cygming.h
@@ -187,7 +187,7 @@ along with GCC; see the file COPYING3. If not see
\f
#define drectve_section() \
(fprintf (asm_out_file, "\t.section .drectve\n"), \
- in_section = NULL)
+ casm->in_section = NULL)
/* Older versions of gas don't handle 'r' as data.
Explicitly set data flag with 'd'. */
diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h
index c4a6f4dfda7..d402a9a8b55 100644
--- a/gcc/config/i386/darwin.h
+++ b/gcc/config/i386/darwin.h
@@ -216,7 +216,7 @@ along with GCC; see the file COPYING3. If not see
do { \
if ((LOG) != 0) \
{ \
- if (in_section == text_section) \
+ if (casm->in_section == casm->sec.text) \
fprintf (FILE, "\t%s %d,0x90\n", ALIGN_ASM_OP, (LOG)); \
else \
fprintf (FILE, "\t%s %d\n", ALIGN_ASM_OP, (LOG)); \
diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h
index 29b37a143f5..7297db2bb70 100644
--- a/gcc/config/i386/sol2.h
+++ b/gcc/config/i386/sol2.h
@@ -195,9 +195,9 @@ along with GCC; see the file COPYING3. If not see
do \
{ \
if (TARGET_SUN_TLS \
- && in_section \
- && ((in_section->common.flags & SECTION_TLS) == SECTION_TLS)) \
- switch_to_section (bss_section); \
+ && casm->in_section \
+ && ((casm->in_section->common.flags & SECTION_TLS) == SECTION_TLS)) \
+ switch_to_section (casm->sec.bss); \
x86_elf_aligned_decl_common (FILE, DECL, NAME, SIZE, ALIGN); \
} \
while (0)
diff --git a/gcc/config/ia64/sysv4.h b/gcc/config/ia64/sysv4.h
index a4133d3beab..a68f28074fb 100644
--- a/gcc/config/ia64/sysv4.h
+++ b/gcc/config/ia64/sysv4.h
@@ -69,9 +69,9 @@ extern int size_directive_output;
#define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \
do { \
if ((DECL) && sdata_symbolic_operand (XEXP (DECL_RTL (DECL), 0), Pmode)) \
- switch_to_section (sbss_section); \
+ switch_to_section (casm->sec.sbss); \
else \
- switch_to_section (bss_section); \
+ switch_to_section (casm->sec.bss); \
ASM_OUTPUT_ALIGN (FILE, floor_log2 ((ALIGN) / BITS_PER_UNIT)); \
ASM_DECLARE_OBJECT_NAME (FILE, NAME, DECL); \
ASM_OUTPUT_SKIP (FILE, SIZE ? SIZE : 1); \
diff --git a/gcc/config/lm32/lm32.h b/gcc/config/lm32/lm32.h
index a13c0c50ee1..d665c38f0e3 100644
--- a/gcc/config/lm32/lm32.h
+++ b/gcc/config/lm32/lm32.h
@@ -385,9 +385,9 @@ enum reg_class
#define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGN) \
do { \
if ((SIZE) <= (unsigned HOST_WIDE_INT) g_switch_value) \
- switch_to_section (sbss_section); \
+ switch_to_section (casm->sec.sbss); \
else \
- switch_to_section (bss_section); \
+ switch_to_section (casm->sec.bss); \
ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "object"); \
if (!flag_inhibit_size_directive) \
ASM_OUTPUT_SIZE_DIRECTIVE (FILE, NAME, SIZE); \
@@ -403,7 +403,7 @@ do \
{ \
if ((SIZE) <= (unsigned HOST_WIDE_INT) g_switch_value) \
{ \
- switch_to_section (sbss_section); \
+ switch_to_section (casm->sec.sbss); \
(*targetm.asm_out.globalize_label) (FILE, NAME); \
ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "object"); \
if (!flag_inhibit_size_directive) \
@@ -414,7 +414,7 @@ do \
} \
else \
{ \
- switch_to_section (bss_section); \
+ switch_to_section (casm->sec.bss); \
fprintf ((FILE), "%s", COMMON_ASM_OP); \
assemble_name ((FILE), (NAME)); \
fprintf ((FILE), "," HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
diff --git a/gcc/config/m32r/m32r.h b/gcc/config/m32r/m32r.h
index 047805fd808..64b5f69f3a7 100644
--- a/gcc/config/m32r/m32r.h
+++ b/gcc/config/m32r/m32r.h
@@ -897,7 +897,7 @@ L2: .word STATIC
&& (SIZE) <= (unsigned HOST_WIDE_INT) g_switch_value) \
switch_to_section (get_named_section (NULL, ".sbss", 0)); \
else \
- switch_to_section (bss_section); \
+ switch_to_section (casm->sec.bss); \
ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT)); \
last_assemble_variable_decl = DECL; \
ASM_DECLARE_OBJECT_NAME (FILE, NAME, DECL); \
diff --git a/gcc/config/mcore/mcore-elf.h b/gcc/config/mcore/mcore-elf.h
index d50f578c3dd..02278eec3c3 100644
--- a/gcc/config/mcore/mcore-elf.h
+++ b/gcc/config/mcore/mcore-elf.h
@@ -33,7 +33,7 @@ along with GCC; see the file COPYING3. If not see
fprintf (STREAM, "\t.section .exports\n"); \
fprintf (STREAM, "\t.ascii \" -export:%s\"\n", \
(* targetm.strip_name_encoding) (NAME)); \
- in_section = NULL; \
+ casm->in_section = NULL; \
} \
while (0)
@@ -63,7 +63,7 @@ along with GCC; see the file COPYING3. If not see
HOST_WIDE_INT size; \
if (mcore_dllexport_name_p (NAME)) \
{ \
- section *save_section = in_section; \
+ section *save_section = casm->in_section; \
MCORE_EXPORT_NAME (FILE, NAME); \
switch_to_section (save_section); \
} \
diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h
index 2ecec750526..3f1368d0884 100644
--- a/gcc/config/microblaze/microblaze.h
+++ b/gcc/config/microblaze/microblaze.h
@@ -623,11 +623,11 @@ do { \
&& (int) (SIZE) <= microblaze_section_threshold \
&& TARGET_XLGPOPT) \
{ \
- switch_to_section (sbss_section); \
+ switch_to_section (casm->sec.sbss); \
} \
else \
{ \
- switch_to_section (bss_section); \
+ switch_to_section (casm->sec.bss); \
} \
fprintf (FILE, "%s", COMMON_ASM_OP); \
assemble_name ((FILE), (NAME)); \
@@ -643,11 +643,11 @@ do { \
&& (int) (SIZE) <= microblaze_section_threshold \
&& TARGET_XLGPOPT) \
{ \
- switch_to_section (sbss_section); \
+ switch_to_section (casm->sec.sbss); \
} \
else \
{ \
- switch_to_section (bss_section); \
+ switch_to_section (casm->sec.bss); \
} \
fprintf (FILE, "%s", LCOMMON_ASM_OP); \
assemble_name ((FILE), (NAME)); \
diff --git a/gcc/config/nios2/nios2.h b/gcc/config/nios2/nios2.h
index dfca12cc525..c2da347062b 100644
--- a/gcc/config/nios2/nios2.h
+++ b/gcc/config/nios2/nios2.h
@@ -470,9 +470,9 @@ while (0)
#define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \
do { \
if (targetm.in_small_data_p (DECL)) \
- switch_to_section (sbss_section); \
+ switch_to_section (casm->sec.sbss); \
else \
- switch_to_section (bss_section); \
+ switch_to_section (casm->sec.bss); \
ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "object"); \
if (!flag_inhibit_size_directive) \
ASM_OUTPUT_SIZE_DIRECTIVE (FILE, NAME, SIZE); \
diff --git a/gcc/config/pru/pru.h b/gcc/config/pru/pru.h
index 9b6be323e6d..68a55ba6fc7 100644
--- a/gcc/config/pru/pru.h
+++ b/gcc/config/pru/pru.h
@@ -542,7 +542,7 @@ while (0)
#undef ASM_OUTPUT_ALIGNED_LOCAL
#define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGN) \
do { \
- switch_to_section (bss_section); \
+ switch_to_section (casm->sec.bss); \
ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "object"); \
if (!flag_inhibit_size_directive) \
ASM_OUTPUT_SIZE_DIRECTIVE (FILE, NAME, SIZE); \
diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
index 23ff59403a3..09bd4ed64bc 100644
--- a/gcc/config/rs6000/sysv4.h
+++ b/gcc/config/rs6000/sysv4.h
@@ -427,7 +427,7 @@ do { \
do { \
if ((DECL) && rs6000_elf_in_small_data_p (DECL)) \
{ \
- switch_to_section (sbss_section); \
+ switch_to_section (casm->sec.sbss); \
ASM_OUTPUT_ALIGN (FILE, exact_log2 (ALIGN / BITS_PER_UNIT)); \
ASM_OUTPUT_LABEL (FILE, NAME); \
ASM_OUTPUT_SKIP (FILE, SIZE); \
diff --git a/gcc/config/sparc/sol2.h b/gcc/config/sparc/sol2.h
index 1b4aa28bd21..1dd33daa447 100644
--- a/gcc/config/sparc/sol2.h
+++ b/gcc/config/sparc/sol2.h
@@ -399,9 +399,9 @@ extern const char *host_detect_local_cpu (int argc, const char **argv);
do \
{ \
if (TARGET_SUN_TLS \
- && in_section \
- && ((in_section->common.flags & SECTION_TLS) == SECTION_TLS)) \
- switch_to_section (bss_section); \
+ && casm->in_section \
+ && ((casm->in_section->common.flags & SECTION_TLS) == SECTION_TLS)) \
+ switch_to_section (casm->sec.bss); \
fprintf ((FILE), "%s", COMMON_ASM_OP); \
assemble_name ((FILE), (NAME)); \
fprintf ((FILE), "," HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
diff --git a/gcc/config/tilegx/tilegx.h b/gcc/config/tilegx/tilegx.h
index b0dcccfa3aa..931d900002b 100644
--- a/gcc/config/tilegx/tilegx.h
+++ b/gcc/config/tilegx/tilegx.h
@@ -290,7 +290,7 @@ enum reg_class
#define TRAMPOLINE_SIZE (TARGET_32BIT ? 48 : 56)
#define TRAMPOLINE_ALIGNMENT 64
-#define TRAMPOLINE_SECTION text_section
+#define TRAMPOLINE_SECTION casm->sec.text
\f
/* Call frame debugging information. */
diff --git a/gcc/config/tilepro/tilepro.h b/gcc/config/tilepro/tilepro.h
index 1986f80084c..3f9720c582a 100644
--- a/gcc/config/tilepro/tilepro.h
+++ b/gcc/config/tilepro/tilepro.h
@@ -253,7 +253,7 @@ enum reg_class
#define TRAMPOLINE_SIZE 48
#define TRAMPOLINE_ALIGNMENT 64
-#define TRAMPOLINE_SECTION text_section
+#define TRAMPOLINE_SECTION casm->sec.text
\f
/* Call frame debugging information. */
diff --git a/gcc/config/visium/visium.h b/gcc/config/visium/visium.h
index 66e3decd0cc..dbe65766d09 100644
--- a/gcc/config/visium/visium.h
+++ b/gcc/config/visium/visium.h
@@ -1235,8 +1235,8 @@ do \
`EXTRA_SECTION_FUNCTIONS'
One or more functions to be defined in `varasm.c'. These functions
- should do jobs analogous to those of `text_section' and
- `data_section', for your additional sections. Do not define this
+ should do jobs analogous to those of `casm->sec.text' and
+ `casm->sec.data', for your additional sections. Do not define this
macro if you do not define `EXTRA_SECTIONS'.
`JUMP_TABLES_IN_TEXT_SECTION' Define this macro if jump tables (for
diff --git a/gcc/dwarf2out.h b/gcc/dwarf2out.h
index 312a9909784..6491b44da95 100644
--- a/gcc/dwarf2out.h
+++ b/gcc/dwarf2out.h
@@ -103,9 +103,9 @@ struct GTY(()) dw_fde_node {
unsigned stack_realign : 1;
/* Whether dynamic realign argument pointer register has been saved. */
unsigned drap_reg_saved: 1;
- /* True iff dw_fde_begin label is in text_section or cold_text_section. */
+ /* True iff dw_fde_begin label is in casm->sec.text or cold_text_section. */
unsigned in_std_section : 1;
- /* True iff dw_fde_second_begin label is in text_section or
+ /* True iff dw_fde_second_begin label is in casm->sec.text or
cold_text_section. */
unsigned second_in_std_section : 1;
/* True if Rule 18 described in dwarf2cfi.c is in action, i.e. for dynamic
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-15 11:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-15 11:57 [gcc(refs/users/marxin/heads/casm-refactoring-v1)] Rename in header files Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).