Optimisation bug on Sparc
Ludovic Drolez
ludovic.drolez@freealter.com
Mon Apr 17 01:02:00 GMT 2000
GCC: 2.95.2 / Sparc
System: Sun SS20 on Solaris 2.5
Options: -O
Tcl 8.3.0 when compiled with the default option (-O)
has a problem with the 'glob' function, which should
return the list of files in the current directory.
example: 'glob *'
with -O: returns: {} {} {} {} {} {} {} {} {}
=> empty list = bug
with -O2: returns: index.html loca.ps mbox ...
=> list of files in the current directory = OK
To fix the compilation bug, I set the optimisation
flag to -O2 (instead of -O).
Strange bug ? Usualy when you ask for higher optimisation
you have more trouble. Here it's the contrary !
regards,
Ludovic Drolez.
More information about the Gcc-bugs
mailing list