[Bug middle-end/24015] Wrong code generated when using optimizer

2005-09-22 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Severity|critical|normal Component|c |middle-end Keywords|

[Bug middle-end/24015] Wrong code generated when using optimizer

2005-09-22 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-22 16:26 --- Of course, we cannot guess what the issue is from your description. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24015

[Bug middle-end/24015] Wrong code generated when using optimizer

2005-09-22 Thread buergel at limmat dot ch
--- Additional Comments From buergel at limmat dot ch 2005-09-22 16:28 --- Created an attachment (id=9792) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9792action=view) Testcase. Unpack and make reproduces the bug Testcase requires flex (= 2.5.4) lexical scanner to be installed

[Bug middle-end/24015] Wrong code generated when using optimizer

2005-09-22 Thread buergel at limmat dot ch
--- Additional Comments From buergel at limmat dot ch 2005-09-22 16:39 --- How-To-Repeat: Unpack the attached archive, cd showbug, make. It will first compile the program, then process and display some test data. Prerequisites: You must have the flex lexical parser installed for this

[Bug middle-end/24015] Wrong code generated when using optimizer

2005-09-22 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-22 16:40 --- html_purify.l:24: warning: operation on `data' may be undefined -- What|Removed |Added

[Bug middle-end/24015] Wrong code generated when using optimizer

2005-09-22 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-22 16:43 --- (In reply to comment #4) html_purify.l:24: warning: operation on `data' may be undefined Does fixing that line help? It should look like: static void strtolower(char *data) { while (*data != '\0') { *data

[Bug middle-end/24015] Wrong code generated when using optimizer

2005-09-22 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-22 17:04 --- From the private email: Hello and thanks for the quick answer! Yes it does! But: I am not getting the warning: operation on `data' may be undefined when using gcc 3.4.4 and -Wall. So how could I (and

[Bug middle-end/24015] Wrong code generated when using optimizer

2005-09-22 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-22 17:06 --- (In reply to comment #6) Hello and thanks for the quick answer! Yes it does! But: I am not getting the warning: operation on `data' may be undefined when using gcc 3.4.4 and -Wall. Try at -O0, glibc