Commit 87881feb by Jeff Law

pa.h (TARGET_TRAILING_COLON): Delete switch.

	* pa.h (TARGET_TRAILING_COLON): Delete switch.
	TARGET_GAS now controls the use of trailing colons.

From-SVN: r5197
parent 94092294
...@@ -62,14 +62,12 @@ extern int target_flags; ...@@ -62,14 +62,12 @@ extern int target_flags;
#define TARGET_DISABLE_INDEXING (target_flags & 32) #define TARGET_DISABLE_INDEXING (target_flags & 32)
/* Force a colon to be tacked onto the end of local and global
labels. An option because the HP assembler croaks on them. */
#define TARGET_TRAILING_COLON (target_flags & 64)
/* Emit directives only understood by GAS. This allows parameter /* Emit directives only understood by GAS. This allows parameter
relocations to work for static functions. There is no way relocations to work for static functions. There is no way
to make them work the HP assembler at this time. */ to make them work the HP assembler at this time.
Also forces a colon to be tacked onto the end of local and
global labes. */
#define TARGET_GAS (target_flags & 128) #define TARGET_GAS (target_flags & 128)
...@@ -92,8 +90,6 @@ extern int target_flags; ...@@ -92,8 +90,6 @@ extern int target_flags;
{"no-long-calls", -16}, \ {"no-long-calls", -16}, \
{"disable-indexing", 32}, \ {"disable-indexing", 32}, \
{"no-disable-indexing", -32},\ {"no-disable-indexing", -32},\
{"trailing-colon", 64}, \
{"no-trailing-colon", -64}, \
{"gas", 128}, \ {"gas", 128}, \
{"no-gas", -128}, \ {"no-gas", -128}, \
{ "", TARGET_DEFAULT}} { "", TARGET_DEFAULT}}
...@@ -1623,7 +1619,7 @@ bss_section () \ ...@@ -1623,7 +1619,7 @@ bss_section () \
#define ASM_OUTPUT_LABEL(FILE, NAME) \ #define ASM_OUTPUT_LABEL(FILE, NAME) \
do { assemble_name (FILE, NAME); \ do { assemble_name (FILE, NAME); \
if (TARGET_TRAILING_COLON) \ if (TARGET_GAS) \
fputc (':', FILE); \ fputc (':', FILE); \
fputc ('\n', FILE); } while (0) fputc ('\n', FILE); } while (0)
...@@ -1680,7 +1676,7 @@ bss_section () \ ...@@ -1680,7 +1676,7 @@ bss_section () \
#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \ #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \
{fprintf (FILE, "%s$%04d", PREFIX, NUM); \ {fprintf (FILE, "%s$%04d", PREFIX, NUM); \
if (TARGET_TRAILING_COLON) \ if (TARGET_GAS) \
fputs (":\n", FILE); \ fputs (":\n", FILE); \
else \ else \
fputs ("\n", FILE);} fputs ("\n", FILE);}
...@@ -1777,7 +1773,7 @@ bss_section () \ ...@@ -1777,7 +1773,7 @@ bss_section () \
#define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED) \ #define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED) \
{ bss_section (); \ { bss_section (); \
assemble_name ((FILE), (NAME)); \ assemble_name ((FILE), (NAME)); \
if (TARGET_TRAILING_COLON) \ if (TARGET_GAS) \
fputc (':', (FILE)); \ fputc (':', (FILE)); \
fputs ("\t.comm ", (FILE)); \ fputs ("\t.comm ", (FILE)); \
fprintf ((FILE), "%d\n", (ROUNDED));} fprintf ((FILE), "%d\n", (ROUNDED));}
...@@ -1789,7 +1785,7 @@ bss_section () \ ...@@ -1789,7 +1785,7 @@ bss_section () \
{ bss_section (); \ { bss_section (); \
fprintf ((FILE), "\t.align %d\n", (SIZE) <= 4 ? 4 : 8); \ fprintf ((FILE), "\t.align %d\n", (SIZE) <= 4 ? 4 : 8); \
assemble_name ((FILE), (NAME)); \ assemble_name ((FILE), (NAME)); \
if (TARGET_TRAILING_COLON) \ if (TARGET_GAS) \
fputc (':', (FILE)); \ fputc (':', (FILE)); \
fprintf ((FILE), "\n\t.block %d\n", (ROUNDED));} fprintf ((FILE), "\n\t.block %d\n", (ROUNDED));}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment