Commit f83e2262 by Uros Bizjak

alpha-protos.h (print_operand): Remove.

	* config/alpha/alpha-protos.h (print_operand): Remove.
	(print_operand_address): Remove.
	* config/alpha/alpha.h (PRINT_OPERAND): Remove.
	(PRINT_OPERAND_ADDRESS): Remove.
	(PRINT_OPERAND_PUNCT_VALID_P): Remove.
	* config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
	(TARGET_PRINT_OPERAND_ADDRESS): New hook define.
	(TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
	(print_operand_address): Rename to...
	(alpha_print_operand_address): ...this and make static.
	(print_operand): Rename to...
	(alpha_print_operand): ...this and make static.
	(alpha_print_operand_punct_valid_p): New static function.

From-SVN: r230181
parent e3907f12
2015-11-11 Uros Bizjak <ubizjak@gmail.com>
* config/alpha/alpha-protos.h (print_operand): Remove.
(print_operand_address): Remove.
* config/alpha/alpha.h (PRINT_OPERAND): Remove.
(PRINT_OPERAND_ADDRESS): Remove.
(PRINT_OPERAND_PUNCT_VALID_P): Remove.
* config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
(TARGET_PRINT_OPERAND_ADDRESS): New hook define.
(TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
(print_operand_address): Rename to...
(alpha_print_operand_address): ...this and make static.
(print_operand): Rename to...
(alpha_print_operand): ...this and make static.
(alpha_print_operand_punct_valid_p): New static function.
2015-11-11 Richard Biener <rguenther@suse.de> 2015-11-11 Richard Biener <rguenther@suse.de>
* tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment): * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
...@@ -23,7 +39,6 @@ ...@@ -23,7 +39,6 @@
2015-11-11 Nathan Sidwell <nathan@codesourcery.com> 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
Cesar Philippidis <cesar@codesourcery.com> Cesar Philippidis <cesar@codesourcery.com>
gcc/
* gcc/gimplify.c (enum omp_region_type): Add ORT_ACC, * gcc/gimplify.c (enum omp_region_type): Add ORT_ACC,
ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE. ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
(gimple_add_tmp_var): Add ORT_ACC checks. (gimple_add_tmp_var): Add ORT_ACC checks.
...@@ -68,7 +83,7 @@ ...@@ -68,7 +83,7 @@
2015-11-11 Simon Dardis <simon.dardis@imgtec.com> 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
* config/mips/mips.c (mips_breakable_sequence_p): New function. * config/mips/mips.c (mips_breakable_sequence_p): New function.
(mips_break_sequence): New function. (mips_break_sequence): New function.
(mips_reorg_process_insns): Use them. Use compact branches in selected (mips_reorg_process_insns): Use them. Use compact branches in selected
situations. situations.
...@@ -65,8 +65,6 @@ extern void alpha_expand_builtin_revert_vms_condition_handler (rtx); ...@@ -65,8 +65,6 @@ extern void alpha_expand_builtin_revert_vms_condition_handler (rtx);
extern rtx alpha_return_addr (int, rtx); extern rtx alpha_return_addr (int, rtx);
extern rtx alpha_gp_save_rtx (void); extern rtx alpha_gp_save_rtx (void);
extern void print_operand (FILE *, rtx, int);
extern void print_operand_address (FILE *, rtx);
extern void alpha_initialize_trampoline (rtx, rtx, rtx, int, int, int); extern void alpha_initialize_trampoline (rtx, rtx, rtx, int, int, int);
extern rtx alpha_va_arg (tree, tree); extern rtx alpha_va_arg (tree, tree);
......
...@@ -5041,10 +5041,20 @@ get_round_mode_suffix (void) ...@@ -5041,10 +5041,20 @@ get_round_mode_suffix (void)
gcc_unreachable (); gcc_unreachable ();
} }
/* Print an operand. Recognize special options, documented below. */ /* Implement TARGET_PRINT_OPERAND_PUNCT_VALID_P. */
void static bool
print_operand (FILE *file, rtx x, int code) alpha_print_operand_punct_valid_p (unsigned char code)
{
return (code == '/' || code == ',' || code == '-' || code == '~'
|| code == '#' || code == '*' || code == '&');
}
/* Implement TARGET_PRINT_OPERAND. The alpha-specific
operand codes are documented below. */
static void
alpha_print_operand (FILE *file, rtx x, int code)
{ {
int i; int i;
...@@ -5064,6 +5074,8 @@ print_operand (FILE *file, rtx x, int code) ...@@ -5064,6 +5074,8 @@ print_operand (FILE *file, rtx x, int code)
break; break;
case '/': case '/':
/* Generates the instruction suffix. The TRAP_SUFFIX and ROUND_SUFFIX
attributes are examined to determine what is appropriate. */
{ {
const char *trap = get_trap_mode_suffix (); const char *trap = get_trap_mode_suffix ();
const char *round = get_round_mode_suffix (); const char *round = get_round_mode_suffix ();
...@@ -5074,12 +5086,14 @@ print_operand (FILE *file, rtx x, int code) ...@@ -5074,12 +5086,14 @@ print_operand (FILE *file, rtx x, int code)
} }
case ',': case ',':
/* Generates single precision instruction suffix. */ /* Generates single precision suffix for floating point
instructions (s for IEEE, f for VAX). */
fputc ((TARGET_FLOAT_VAX ? 'f' : 's'), file); fputc ((TARGET_FLOAT_VAX ? 'f' : 's'), file);
break; break;
case '-': case '-':
/* Generates double precision instruction suffix. */ /* Generates double precision suffix for floating point
instructions (t for IEEE, g for VAX). */
fputc ((TARGET_FLOAT_VAX ? 'g' : 't'), file); fputc ((TARGET_FLOAT_VAX ? 'g' : 't'), file);
break; break;
...@@ -5350,8 +5364,10 @@ print_operand (FILE *file, rtx x, int code) ...@@ -5350,8 +5364,10 @@ print_operand (FILE *file, rtx x, int code)
} }
} }
void /* Implement TARGET_PRINT_OPERAND_ADDRESS. */
print_operand_address (FILE *file, rtx addr)
static void
alpha_print_operand_address (FILE *file, machine_mode /*mode*/, rtx addr)
{ {
int basereg = 31; int basereg = 31;
HOST_WIDE_INT offset = 0; HOST_WIDE_INT offset = 0;
...@@ -9877,6 +9893,13 @@ alpha_atomic_assign_expand_fenv (tree *hold, tree *clear, tree *update) ...@@ -9877,6 +9893,13 @@ alpha_atomic_assign_expand_fenv (tree *hold, tree *clear, tree *update)
#define TARGET_STDARG_OPTIMIZE_HOOK alpha_stdarg_optimize_hook #define TARGET_STDARG_OPTIMIZE_HOOK alpha_stdarg_optimize_hook
#endif #endif
#undef TARGET_PRINT_OPERAND
#define TARGET_PRINT_OPERAND alpha_print_operand
#undef TARGET_PRINT_OPERAND_ADDRESS
#define TARGET_PRINT_OPERAND_ADDRESS alpha_print_operand_address
#undef TARGET_PRINT_OPERAND_PUNCT_VALID_P
#define TARGET_PRINT_OPERAND_PUNCT_VALID_P alpha_print_operand_punct_valid_p
/* Use 16-bits anchor. */ /* Use 16-bits anchor. */
#undef TARGET_MIN_ANCHOR_OFFSET #undef TARGET_MIN_ANCHOR_OFFSET
#define TARGET_MIN_ANCHOR_OFFSET -0x7fff - 1 #define TARGET_MIN_ANCHOR_OFFSET -0x7fff - 1
......
...@@ -1005,37 +1005,6 @@ do { \ ...@@ -1005,37 +1005,6 @@ do { \
#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \ #define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \
fprintf (FILE, "\t.gprel32 $L%d\n", (VALUE)) fprintf (FILE, "\t.gprel32 $L%d\n", (VALUE))
/* Print operand X (an rtx) in assembler syntax to file FILE.
CODE is a letter or dot (`z' in `%z0') or 0 if no letter was specified.
For `%' followed by punctuation, CODE is the punctuation and X is null. */
#define PRINT_OPERAND(FILE, X, CODE) print_operand (FILE, X, CODE)
/* Determine which codes are valid without a following integer. These must
not be alphabetic.
~ Generates the name of the current function.
/ Generates the instruction suffix. The TRAP_SUFFIX and ROUND_SUFFIX
attributes are examined to determine what is appropriate.
, Generates single precision suffix for floating point
instructions (s for IEEE, f for VAX)
- Generates double precision suffix for floating point
instructions (t for IEEE, g for VAX)
*/
#define PRINT_OPERAND_PUNCT_VALID_P(CODE) \
((CODE) == '/' || (CODE) == ',' || (CODE) == '-' || (CODE) == '~' \
|| (CODE) == '#' || (CODE) == '*' || (CODE) == '&')
/* Print a memory address as an operand to reference that memory location. */
#define PRINT_OPERAND_ADDRESS(FILE, ADDR) \
print_operand_address((FILE), (ADDR))
/* If we use NM, pass -g to it so it only lists globals. */ /* If we use NM, pass -g to it so it only lists globals. */
#define NM_FLAGS "-pg" #define NM_FLAGS "-pg"
......
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