Mercury Bugs - mercury
View Issue Details
0000066mercuryBugpublic2008-07-07 14:472009-11-25 21:29
Reporterwangp 
Assigned Towangp 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
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.
related to 0000039resolved wangp gcc 4.1.2 on x86-64 miscompiles computed gotos 
Attached Files

Notes
(0000127)
juliensf   
2008-08-18 17:21   
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.

Issue History
2008-07-07 14:47wangpNew Issue
2008-08-18 17:21juliensfNote Added: 0000127
2008-08-18 18:42juliensfRelationship addedhas duplicate 0000077
2008-08-19 02:53juliensfRelationship deletedhas duplicate 0000077
2009-09-26 06:26pboneRelationship addedrelated to 0000039
2009-11-24 00:18wangpStatusnew => assigned
2009-11-24 00:18wangpAssigned To => wangp
2009-11-25 21:29wangpStatusassigned => resolved
2009-11-25 21:29wangpResolutionopen => fixed