Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d0d4af87
Commit
d0d4af87
authored
Mar 25, 1993
by
Mike Stump
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added front-end taggint to object files.
From-SVN: r3874
parent
d1e37dc7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
0 deletions
+43
-0
gcc/c-lang.c
+6
-0
gcc/defaults.h
+10
-0
gcc/objc/objc-act.c
+6
-0
gcc/toplev.c
+18
-0
gcc/tree.h
+3
-0
No files found.
gcc/c-lang.c
View file @
d0d4af87
...
...
@@ -47,6 +47,12 @@ lang_finish ()
{
}
char
*
lang_identify
()
{
return
"c"
;
}
/* Used by c-lex.c, but only for objc. */
tree
lookup_interface
(
arg
)
...
...
gcc/defaults.h
View file @
d0d4af87
...
...
@@ -108,3 +108,13 @@ do { fprintf (FILE, "\t%s\t", ASM_SHORT); \
} \
while (0)
#endif
#ifndef ASM_IDENTIFY_GCC
/* Default the definition, only if ASM_IDENTIFY_GCC is not set,
because if it is set, we might not want ASM_IDENTIFY_LANGUAGE
outputting labels, if we do want it to, then it must be defined
in the tm.h file. */
#ifndef ASM_IDENTIFY_LANGUAGE
#define ASM_IDENTIFY_LANGUAGE(FILE) output_lang_identify (FILE);
#endif
#endif
gcc/objc/objc-act.c
View file @
d0d4af87
...
...
@@ -371,6 +371,12 @@ lang_finish ()
{
}
char
*
lang_identify
()
{
return
"objc"
;
}
int
lang_decode_option
(
p
)
char
*
p
;
...
...
gcc/toplev.c
View file @
d0d4af87
...
...
@@ -52,6 +52,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "rtl.h"
#include "flags.h"
#include "insn-attr.h"
#include "defaults.h"
#ifdef XCOFF_DEBUGGING_INFO
#include "xcoffout.h"
...
...
@@ -1495,6 +1496,17 @@ output_file_directive (asm_file, input_name)
#endif
}
/* Routine to build language identifier for object file. */
static
void
output_lang_identify
(
asm_out_file
)
FILE
*
asm_out_file
;
{
int
len
=
strlen
(
lang_identify
())
+
sizeof
(
"__gnu_compiled_"
)
+
1
;
char
*
s
=
(
char
*
)
alloca
(
len
);
sprintf
(
s
,
"__gnu_compiled_%s"
,
lang_identify
());
ASM_OUTPUT_LABEL
(
asm_out_file
,
s
);
}
/* Compile an entire file of output from cpp, named NAME.
Write a file of assembly output and various debugging dumps. */
...
...
@@ -1789,6 +1801,12 @@ compile_file (name)
#else
ASM_IDENTIFY_GCC
(
asm_out_file
);
#endif
/* Output something to identify which front-end produced this file. */
#ifdef ASM_IDENTIFY_LANGUAGE
ASM_IDENTIFY_LANGUAGE
(
asm_out_file
);
#endif
/* Don't let the first function fall at the same address
as gcc_compiled., if profiling. */
if
(
profile_flag
||
profile_block_flag
)
...
...
gcc/tree.h
View file @
d0d4af87
...
...
@@ -1427,6 +1427,9 @@ extern void init_decl_processing PROTO((void));
extern
void
lang_init
PROTO
((
void
));
extern
void
lang_finish
PROTO
((
void
));
/* Funtion to identify which front-end produced the output file. */
extern
char
*
lang_identify
PROTO
((
void
));
/* Function called with no arguments to parse and compile the input. */
extern
int
yyparse
PROTO
((
void
));
/* Function called with option as argument
...
...
Write
Preview
Markdown
is supported
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