From af6ad57149a141f96818ec53d27f604a07dfc439 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 15 Jul 2010 09:06:17 +0000 Subject: [PATCH] fix a few whitespace errors and remove spec cruft [r27741] --- ir/be/ia32/ia32_spec.pl | 5 ---- ir/be/sparc/sparc_emitter.c | 8 +++--- ir/be/sparc/sparc_nodes_attr.h | 50 +++++++++++++++++----------------- ir/be/sparc/sparc_spec.pl | 5 ---- 4 files changed, 29 insertions(+), 39 deletions(-) diff --git a/ir/be/ia32/ia32_spec.pl b/ir/be/ia32/ia32_spec.pl index 6e62754f0..cf51d618f 100644 --- a/ir/be/ia32/ia32_spec.pl +++ b/ir/be/ia32/ia32_spec.pl @@ -2,11 +2,6 @@ # $Id$ # This is the specification for the ia32 assembler Firm-operations -use File::Basename; - -my $myname = $0; - -# the cpu architecture (ia32, ia64, mips, sparc, ppc, ...) $arch = "ia32"; # The node description is done as a perl hash initializer with the diff --git a/ir/be/sparc/sparc_emitter.c b/ir/be/sparc/sparc_emitter.c index 892dd8d36..5c553b4c3 100644 --- a/ir/be/sparc/sparc_emitter.c +++ b/ir/be/sparc/sparc_emitter.c @@ -246,7 +246,7 @@ void sparc_emit_fp_load_mode(const ir_node *node) } else if (bits == 64) { be_emit_string("df"); } else { - panic("FP load mode > 64bits not implemented yet"); + panic("FP load mode > 64bits not implemented yet"); } } @@ -266,7 +266,7 @@ void sparc_emit_fp_store_mode(const ir_node *node) } else if (bits == 64) { be_emit_string("df"); } else { - panic("FP store mode > 64bits not implemented yet"); + panic("FP store mode > 64bits not implemented yet"); } } @@ -281,9 +281,9 @@ void sparc_emit_fp_mode_suffix(const ir_node *node) assert(mode_is_float(mode)); if (bits == 32) { - be_emit_string("s"); + be_emit_string("s"); } else if (bits == 64) { - be_emit_string("d"); + be_emit_string("d"); } else { panic("FP mode > 64bits not implemented yet"); } diff --git a/ir/be/sparc/sparc_nodes_attr.h b/ir/be/sparc/sparc_nodes_attr.h index 0ebac3c52..eaa51492d 100644 --- a/ir/be/sparc/sparc_nodes_attr.h +++ b/ir/be/sparc/sparc_nodes_attr.h @@ -34,10 +34,10 @@ typedef struct sparc_attr_t sparc_attr_t; */ struct sparc_attr_t { - except_attr exc; /**< the exception attribute. MUST be the first one. */ - const arch_register_req_t **in_req; /**< register requirements for arguments */ - int immediate_value; /* immediate values */ - bool is_load_store; + except_attr exc; /**< the exception attribute. MUST be the first one. */ + const arch_register_req_t **in_req; /**< register requirements for arguments */ + int immediate_value; /* immediate values */ + bool is_load_store; }; /** @@ -45,8 +45,8 @@ struct sparc_attr_t */ typedef struct sparc_fp_attr_t sparc_fp_attr_t; struct sparc_fp_attr_t { - sparc_attr_t base; /**< generic attribute */ - double fp_immediate; /* the FP immediate value */ + sparc_attr_t base; /**< generic attribute */ + double fp_immediate; /* the FP immediate value */ }; /** @@ -54,8 +54,8 @@ struct sparc_fp_attr_t { */ typedef struct sparc_save_attr_t sparc_save_attr_t; struct sparc_save_attr_t { - sparc_attr_t base; /**< generic attribute */ - int initial_stacksize; /* the min. stack size required by the sparc ABI */ + sparc_attr_t base; /**< generic attribute */ + int initial_stacksize; /* the min. stack size required by the sparc ABI */ }; /** @@ -63,12 +63,12 @@ struct sparc_save_attr_t { */ typedef struct sparc_load_store_attr_t sparc_load_store_attr_t; struct sparc_load_store_attr_t { - sparc_attr_t base; /**< generic attribute */ - ir_mode *load_store_mode; - ir_entity *entity; - int entity_sign; - long offset; - bool is_frame_entity; + sparc_attr_t base; /**< generic attribute */ + ir_mode *load_store_mode; + ir_entity *entity; + int entity_sign; + long offset; + bool is_frame_entity; }; /** @@ -76,9 +76,9 @@ struct sparc_load_store_attr_t { */ typedef struct sparc_symconst_attr_t sparc_symconst_attr_t; struct sparc_symconst_attr_t { - sparc_attr_t base; /**< generic attribute */ - ir_entity *entity; - int fp_offset; + sparc_attr_t base; /**< generic attribute */ + ir_entity *entity; + int fp_offset; }; /** @@ -86,8 +86,8 @@ struct sparc_symconst_attr_t { */ typedef struct sparc_jmp_cond_attr_t sparc_jmp_cond_attr_t; struct sparc_jmp_cond_attr_t { - sparc_attr_t base; /**< generic attribute */ - int proj_num; + sparc_attr_t base; /**< generic attribute */ + int proj_num; }; /** @@ -95,9 +95,9 @@ struct sparc_jmp_cond_attr_t { */ typedef struct sparc_jmp_switch_attr_t sparc_jmp_switch_attr_t; struct sparc_jmp_switch_attr_t { - sparc_attr_t base; /**< generic attribute */ - int n_projs; - long default_proj_num; + sparc_attr_t base; /**< generic attribute */ + int n_projs; + long default_proj_num; }; /** @@ -105,9 +105,9 @@ struct sparc_jmp_switch_attr_t { */ typedef struct sparc_cmp_attr_t sparc_cmp_attr_t; struct sparc_cmp_attr_t { - sparc_attr_t base; /**< generic attribute */ - bool ins_permuted : 1; - bool is_unsigned : 1; + sparc_attr_t base; /**< generic attribute */ + bool ins_permuted : 1; + bool is_unsigned : 1; }; #endif diff --git a/ir/be/sparc/sparc_spec.pl b/ir/be/sparc/sparc_spec.pl index 78b9fb3ef..8bc50af86 100644 --- a/ir/be/sparc/sparc_spec.pl +++ b/ir/be/sparc/sparc_spec.pl @@ -1,10 +1,5 @@ # Creation: 2006/02/13 # $Id$ -# This is a template specification for the Firm-Backend - -$new_emit_syntax = 1; - -# the cpu architecture (ia32, ia64, mips, sparc, ppc, ...) $arch = "sparc"; -- 2.20.1