www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Compiler internal error

reply Aleksey S. Skidan <al.skidan gmail.com> writes:
Windows XP, MinGW 3.4.2:
C:\3>gdc -S test.d
test.d:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.

The test.d:

 const{
	uint	KZERO = 0xB000_0000;
}

uint
v2p(uint x)
{
	return x-KZERO;
}

extern(C) void
start()
{
	asm{
		naked;
		xor	EAX, EAX;
		mov	EBX, v2p(KZERO);
	}
}

The error in "mov EBX, v2p(KZERO)" seems to cause the internal compiler error.
Dec 17 2006
parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
I was going to say "Please file bug reports in the bugzilla tracking system:
http://d.puremagic.com/issues/"

But that system doesn't have any categories for GDC bugs.  Is there a 
separate tracker for GDC?


--bb

Aleksey S. Skidan wrote:
 Windows XP, MinGW 3.4.2:
 C:\3>gdc -S test.d
 test.d:0: internal compiler error: Segmentation fault
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <URL:http://www.mingw.org/bugs.shtml> for instructions.
 
 The test.d:
 
  const{
 	uint	KZERO = 0xB000_0000;
 }
 
 uint
 v2p(uint x)
 {
 	return x-KZERO;
 }
 
 extern(C) void
 start()
 {
 	asm{
 		naked;
 		xor	EAX, EAX;
 		mov	EBX, v2p(KZERO);
 	}
 }
 
 The error in "mov EBX, v2p(KZERO)" seems to cause the internal compiler error.
Dec 17 2006
parent reply =?UTF-8?B?QW5kZXJzIEYgQmrDtnJrbHVuZA==?= <afb algonet.se> writes:
Bill Baxter wrote:

 I was going to say "Please file bug reports in the bugzilla tracking 
 system:
 http://d.puremagic.com/issues/"
 
 But that system doesn't have any categories for GDC bugs.  Is there a 
 separate tracker for GDC?
Sure it does, d.puremagic.com does GDC too ? (showing 12 GDC issues left, after GDC 0.20) DMD issues are filed under the "D" product, GDC issues are filed under the "GDC" product. Reporting to the D.gnu newsgroup also works, in case d.puremagic.com disappears again... --anders
Dec 17 2006
parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
Anders F Björklund wrote:
 Bill Baxter wrote:
 
 I was going to say "Please file bug reports in the bugzilla tracking 
 system:
 http://d.puremagic.com/issues/"

 But that system doesn't have any categories for GDC bugs.  Is there a 
 separate tracker for GDC?
Sure it does, d.puremagic.com does GDC too ? (showing 12 GDC issues left, after GDC 0.20) DMD issues are filed under the "D" product, GDC issues are filed under the "GDC" product. Reporting to the D.gnu newsgroup also works, in case d.puremagic.com disappears again... --anders
Oh, yeh. I see. <g> I always just instinctively click on that "D" at the top of the list because that's the only option there I've ever needed. :-) Brad, is there any way to rearrange that list of "products" so that GDC appears second after D? If it's just hard coded to be alphabetical, maybe you could change it to be "D - GDC" or something else that will sort right after "D". And I think you can eliminate "TestProduct" from the list, too. ;-) --bb
Dec 17 2006
parent reply Brad Roberts <braddr puremagic.com> writes:
Bill Baxter wrote:
 Anders F Björklund wrote:
 Bill Baxter wrote:

 I was going to say "Please file bug reports in the bugzilla tracking 
 system:
 http://d.puremagic.com/issues/"

 But that system doesn't have any categories for GDC bugs.  Is there a 
 separate tracker for GDC?
Sure it does, d.puremagic.com does GDC too ? (showing 12 GDC issues left, after GDC 0.20) DMD issues are filed under the "D" product, GDC issues are filed under the "GDC" product. Reporting to the D.gnu newsgroup also works, in case d.puremagic.com disappears again... --anders
Oh, yeh. I see. <g> I always just instinctively click on that "D" at the top of the list because that's the only option there I've ever needed. :-) Brad, is there any way to rearrange that list of "products" so that GDC appears second after D? If it's just hard coded to be alphabetical, maybe you could change it to be "D - GDC" or something else that will sort right after "D". And I think you can eliminate "TestProduct" from the list, too. ;-) --bb
I did a bit of renaming since the version of bugzilla I use doesn't provide sort order control (didn't go digging into more recent versions). The old 'GDC' product is now 'DGCC aka GDC' to help sort it better. I also renamed 'd.puremagic.com' to 'puremagic.com' for similar reasons. Lastly, I disabled the TestProduct. That leaves the list looking something like:
 Enter Issue	 First, you must pick a product on which to enter an issue.
 D:		 The DigitalMars D compiler and its various components
 DGCC aka GDC:	 The D frontend for GCC
 DStress:	 Bugs and feature tracking for the dstress system itself
 puremagic.com: Issues related to the hosting of bugzilla or anything else the
d related stuff at *.puremagic.com
Later, Brad
Dec 17 2006
parent Bill Baxter <dnewsgroup billbaxter.com> writes:
Brad Roberts wrote:
 Bill Baxter wrote:
 I did a bit of renaming since the version of bugzilla I use doesn't 
 provide sort order control (didn't go digging into more recent 
 versions).  The old 'GDC' product is now 'DGCC aka GDC' to help sort it 
 better.  I also renamed 'd.puremagic.com' to 'puremagic.com' for similar 
 reasons.  Lastly, I disabled the TestProduct.  That leaves the list 
 looking something like:
 
 Enter Issue     First, you must pick a product on which to enter an 
 issue.
 D:         The DigitalMars D compiler and its various components
 DGCC aka GDC:     The D frontend for GCC
 DStress:     Bugs and feature tracking for the dstress system itself
 puremagic.com: Issues related to the hosting of bugzilla or anything 
 else the d related stuff at *.puremagic.com
Later, Brad
Much better! Thanks. --bb
Dec 17 2006