Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
710a6adb
Commit
710a6adb
authored
Sep 24, 2009
by
Matthias Braun
Browse files
.word has different size on different architecutres, use .short
[r26647]
parent
1cd6d439
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/begnuas.c
View file @
710a6adb
...
...
@@ -46,7 +46,8 @@
#include
"be_dbgout.h"
/** by default, we generate assembler code for the Linux gas */
be_gas_flavour_t
be_gas_flavour
=
GAS_FLAVOUR_ELF
;
be_gas_flavour_t
be_gas_flavour
=
GAS_FLAVOUR_ELF
;
bool
be_gas_emit_types
=
true
;
static
be_gas_section_t
current_section
=
(
be_gas_section_t
)
-
1
;
...
...
@@ -466,7 +467,7 @@ static void dump_size_type(size_t size) {
break
;
case
2
:
be_emit_cstring
(
"
\t
.
w
or
d
\t
"
);
be_emit_cstring
(
"
\t
.
sh
or
t
\t
"
);
break
;
case
4
:
...
...
@@ -1190,7 +1191,8 @@ static void dump_global(be_gas_decl_env_t *env, ir_entity *ent)
}
if
(
visibility
!=
visibility_external_allocated
&&
!
emit_as_common
&&
be_gas_flavour
==
GAS_FLAVOUR_ELF
)
{
&&
be_gas_flavour
==
GAS_FLAVOUR_ELF
&&
be_gas_emit_types
)
{
be_emit_cstring
(
"
\t
.type
\t
"
);
be_emit_ident
(
ld_ident
);
be_emit_cstring
(
", @object
\n\t
.size
\t
"
);
...
...
ir/be/begnuas.h
View file @
710a6adb
...
...
@@ -27,6 +27,7 @@
#ifndef FIRM_BE_BEGNUAS_H
#define FIRM_BE_BEGNUAS_H
#include
<stdbool.h>
#include
"be.h"
#include
"beemitter.h"
...
...
@@ -60,6 +61,7 @@ typedef enum asm_flavour_t {
/** The variable where the GAS dialect is stored. */
extern
be_gas_flavour_t
be_gas_flavour
;
extern
bool
be_gas_emit_types
;
/**
* Generate all entities.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment