*_start and *_end symbols for static functions
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3573
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
+
+ * src/z80/gen.c (genFunction, genEndFunction): avoided generating
+ *_start and *_end symbols for static functions
+
2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
* src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
and search crt0.o in all library paths,
(setIncludePath): proper handling of --nostdinc,
* src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
and search crt0.o in all library paths,
(setIncludePath): proper handling of --nostdinc,
/* Create the function header */
emit2 ("!functionheader", sym->name);
/* Create the function header */
emit2 ("!functionheader", sym->name);
- sprintf (buffer, "%s_start", sym->rname);
- emit2 ("!labeldef", buffer);
+ if (!IS_STATIC(sym->etype))
+ {
+ sprintf (buffer, "%s_start", sym->rname);
+ emit2 ("!labeldef", buffer);
+ }
emit2 ("!functionlabeldef", sym->rname);
if (options.profile)
emit2 ("!functionlabeldef", sym->rname);
if (options.profile)
- sprintf (buffer, "%s_end", sym->rname);
- emit2 ("!labeldef", buffer);
+ if (!IS_STATIC(sym->etype))
+ {
+ sprintf (buffer, "%s_end", sym->rname);
+ emit2 ("!labeldef", buffer);
+ }
_G.flushStatics = 1;
_G.stack.pushed = 0;
_G.flushStatics = 1;
_G.stack.pushed = 0;