Christophe MONAT
2014-11-24 16:17:06 UTC
Hi list,
With the attached file and any gcc:
$ gcc c29329.c && ./a.out
PASSED
With the most recent publicly available opencc:
$ opencc -v
Open64 Compiler Suite: Version 5.0
Built on: 2011-11-09 11:16:36 +0800
Thread model: posix
GNU gcc version 4.2.0 (Open64 5.0 driver)
$ opencc c29329.c && ./a.out
FAILED
- there is no need to turn on any optimization to show the issue
- the test case is very small and I believe is well-defined with regard
to standard conformance
- it looks like the offset generated for the access through g_2057 is
just wrong
- old generation opencc based on gnu3 FR do not exhibit the problem
Is someone aware of this issue ? Has anyone a fix for this ?
Thanks,
-- C
STMicroelectronics
Christophe MONAT - BP47
12 rue Jules Horowitz
FR-38019 Grenoble Cedex
Phone: +33 476584252
With the attached file and any gcc:
$ gcc c29329.c && ./a.out
PASSED
With the most recent publicly available opencc:
$ opencc -v
Open64 Compiler Suite: Version 5.0
Built on: 2011-11-09 11:16:36 +0800
Thread model: posix
GNU gcc version 4.2.0 (Open64 5.0 driver)
$ opencc c29329.c && ./a.out
FAILED
- there is no need to turn on any optimization to show the issue
- the test case is very small and I believe is well-defined with regard
to standard conformance
- it looks like the offset generated for the access through g_2057 is
just wrong
- old generation opencc based on gnu3 FR do not exhibit the problem
Is someone aware of this issue ? Has anyone a fix for this ?
Thanks,
-- C
STMicroelectronics
Christophe MONAT - BP47
12 rue Jules Horowitz
FR-38019 Grenoble Cedex
Phone: +33 476584252