bugGNU Development Chain for 68HC11/68HC12 - Bugs: bug #13879, gcc gets a bus error upon...


You are not allowed to post comments on this tracker with your current authentication level.

bug #13879: gcc gets a bus error upon compiling a file with -mshort and -O2

Submitted by:  None
Submitted on:  Thu 21 Jul 2005 05:51:09 PM UTC  
Category:  gcc Severity:  3 - Normal
Item Group:  sw-bug Status:  Fixed
Privacy:  Public Assigned to:  Stephane Carrez <ciceron>
Open/Closed:  Closed

Sat 18 Feb 2006 09:49:22 PM UTC, comment #2:

Fixed in release 3.1

Stephane Carrez <ciceron>
Project AdministratorIn charge of this item.
Sat 05 Nov 2005 08:40:29 PM UTC, comment #1:

Thanks for the bug report.

Problem is understood.

I have a pending fix that solves the problem.
It will be part of 3.0.2 release.

Stephane Carrez <ciceron>
Project AdministratorIn charge of this item.
Thu 21 Jul 2005 05:51:09 PM UTC, original submission:

if -mshort is not used, or an optimization level < -O2 (or -Os) is used, the attached file comiles files. otherwise:
m68hc12-elf-gcc -mshort -O2 -c udp.foo.c
/Users/jgurney/work/hcs12/src/sereth/contrib/udp.c: In function `udp_getsocket':
/Users/jgurney/work/hcs12/src/sereth/contrib/udp.c:218: internal compiler error: Bus error
Please submit a full bug report,with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

This is with 3.0.1 release.

m68hc12-elf-gcc -v
Reading specs from /Users/jgurney/work/hcs12/gnu-m68hc11/tools/lib/gcc-lib/m68hc12-elf/3.3.5-m68hc1x-20050515/specs
Configured with: ./configure --target=m68hc12-elf --prefix=/Users/jgurney/work/hcs12/gnu-m68hc11/tools --program-prefix=m68hc12-elf- --enable-languages=c
Thread model: single
gcc version 3.3.5-m68hc1x-20050515

The host platform is MacOSX 10.3.9, but I also see this on FreeBSD 5.4-R



Attached Files
file #3258:  udp.foo.c added by None (18KiB - text/plain - post preprocessed C file that causes gcc to bus error)


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-02-18 ciceron StatusIn Progress => Fixed
    Open/ClosedOpen => Closed
2005-11-05 ciceron StatusNone => In Progress
    Assigned toNone => ciceron
2005-07-21 None Attached File- => Added udp.foo.c, #2729

Back to the top

Powered by Savane 3.3