2019-08-21 14:18 AEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000066mercuryBugpublic2009-11-25 21:29
Reporterwangp 
Assigned Towangp 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0000066: gcc 4.2 incompatibility
Descriptiongcc 4.2.3 on my x86-64 machine doesn't compile the Mercury compiler properly.
This is in asm_fast.gc grade.

% ./mercury_compile
Mercury.options:085: Warning: variable `GCC_SRC_DIR' is undefined.
mercury_compile: unrecognized option `-O'
Mercury Compiler, version DEV, configured for x86_64-unknown-linux-gnu
Copyright (C) 1993-2008 The University of Melbourne
Usage: mmc [<options>] <arguments>
Use `mmc --help' for more information.

Note the "unrecognized option" message even when there are no arguments.
TagsNo tags attached.
Attached Files

-Relationships
related to 0000039resolvedwangp gcc 4.1.2 on x86-64 miscompiles computed gotos 
+Relationships

-Notes

~0000127

juliensf (administrator)

The problem can be worked around by by compiling the C code at -O0; it looks as
though some gcc optimisation is breaking things. This probably only affects the
asm_fast version of the compiler.
+Notes

-Issue History
Date Modified Username Field Change
2008-07-07 14:47 wangp New Issue
2008-08-18 17:21 juliensf Note Added: 0000127
2008-08-18 18:42 juliensf Relationship added has duplicate 0000077
2008-08-19 02:53 juliensf Relationship deleted has duplicate 0000077
2009-09-26 06:26 pbone Relationship added related to 0000039
2009-11-24 00:18 wangp Status new => assigned
2009-11-24 00:18 wangp Assigned To => wangp
2009-11-25 21:29 wangp Status assigned => resolved
2009-11-25 21:29 wangp Resolution open => fixed
+Issue History