From: SourceForge.net <no...@so...> - 2005-11-15 09:23:49
|
Bugs item #1357221, was opened at 2005-11-15 22:23 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1357221&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Simon (smcauliffe) Assigned to: Nobody/Anonymous (nobody) Summary: Static variable causes segv Initial Comment: Static variables cause segment violations (previously fixed I think, but may have surfaced again). This is sdcc version 2.5.1 #1151 eg: ------------------------- #define __16f627 #include <pic/pic16f627.h> #include "pic14.h" typedef unsigned int config; config at 0x2007 __CONFIG = _CP_OFF & _WDT_OFF & _BODEN_OFF & _PWRTE_ON & _INTRC_OSC_CLKOUT & _MCLRE_OFF & _LVP_OFF; #include "serial-inc.h" static byte test = 0; void main() { } ------------------------- Command was: sdcc -S -V --debug -mpic14 -p16f627 --fommit-frame-pointer bug2.c Output is: Processor: 16f627 + "/usr/local/bin/sdcpp" -nostdinc -Wall -std=c99 -DSDCC=1 -DSDCC_MODEL_SMALL -DSDCC_pic14 -D__pic14 -I"/usr/local/bin/../share/sdcc/include/pic14" -I"/usr/local/share/sdcc/include/pic14" -I"/usr/local/bin/../share/sdcc/include" -I"/usr/local/share/sdcc/include" "bug2.c" Caught signal 11: SIGSEGV ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1357221&group_id=599 |