[Bug middle-end/18152] corrupted profile info after optimized compilation and --fprofile-use

2005-04-05 Thread joc at presence-pc dot com

--- Additional Comments From joc at presence-pc dot com  2005-04-05 19:44 
---
Any news about this issue ?

Thanks !
  Jocelyn

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18152


[Bug c/21167] internal compiler error in get_indirect_ref_operands at tree-ssa-operands.c when compiling MySQL

2005-04-22 Thread joc at presence-pc dot com

--- Additional Comments From joc at presence-pc dot com  2005-04-23 01:13 
---
A much simpler compile line ;) :

gcc -I../include -O2 -c -o default.o default.c; 

With 

gcc -I../include -O -c -o default.o default.c; 

the compilation no more fails

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21167


[Bug c/21167] internal compiler error in get_indirect_ref_operands at tree-ssa-operands.c when compiling MySQL

2005-04-22 Thread joc at presence-pc dot com

--- Additional Comments From joc at presence-pc dot com  2005-04-23 01:01 
---
Created an attachment (id=8712)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8712&action=view)
file needed to reproduce internal compiler error: in get_indirect_ref_operands


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21167


[Bug c/21167] ICE in get_indirect_ref_operands at tree-ssa-operands.c when compiling MySQL-4.1

2005-04-22 Thread joc at presence-pc dot com


-- 
   What|Removed |Added

Summary|internal compiler error in  |ICE in
   |get_indirect_ref_operands at|get_indirect_ref_operands at
   |tree-ssa-operands.c when|tree-ssa-operands.c when
   |compiling MySQL |compiling MySQL-4.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21167


[Bug c/21167] New: internal compiler error in get_indirect_ref_operands at tree-ssa-operands.c when compiling MySQL

2005-04-23 Thread joc at presence-pc dot com
Hi,

When trying to compile MySQL 4.1, it fails with the following error :

default.c: In function 'search_default_file_with_ext':
default.c:346: internal compiler error: in get_indirect_ref_operands, at
tree-ssa-operands.c:1449
Please submit a full bug report,
with preprocessed source if appropriate.

Download gcc-bug.tar.gz, and execute :

if /home/joce/bin/gcc -DDEFAULT_BASEDIR=\"/usr/local/mysql\"
-DDATADIR="\"/usr/local/mysql/var\""
-DDEFAULT_CHARSET_HOME="\"/usr/local/mysql\""
-DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I..
-I../include -I.-O3 -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs
-Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare
-Wwrite-strings -Wunused -mtune=athlon-mp -march=athlon-mp -mfpmath=sse -mmmx
-msse -m3dnow -O3 -fno-omit-frame-pointer   -MT default.o -MD -MP -MF
".deps/default.Tpo" -c -o default.o default.c; \
then mv -f ".deps/default.Tpo" ".deps/default.Po"; else rm -f
".deps/default.Tpo"; fi

in the mysys directory

Thanks and regards,
  Jocelyn

-- 
   Summary: internal compiler error in get_indirect_ref_operands at
tree-ssa-operands.c when compiling MySQL
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Severity: critical
      Priority: P1
     Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: joc at presence-pc dot com
CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21167


[Bug c/18152] New: corrupted profile info after optimized compilation and --fprofile-use

2004-10-25 Thread joc at presence-pc dot com
Hi,

When trying to compile a file compiled with optimized flag, I got the following
error :


gcc -DHAVE_CONFIG_H -I.-O3 -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch
-Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare
-Wwrite-strings -Wunused -mtune=athlon-mp -march=athlon-mp -mfpmath=sse -mmmx
-msse -m3dnow -O3 -fomit-frame-pointer -fmove-all-movables -freduce-all-givs
-frename-registers -fprofile-use -fbranch-target-load-optimize2   -MT
ctype-latin1.o -MD -MP -MF ".deps/ctype-latin1.Tpo" -c -o ctype-latin1.o
ctype-latin1.c;
ctype-latin1.c: In function `my_mb_wc_latin1':
ctype-latin1.c:363: error: corrupted profile info: number of executions for edge
3-4 thought to be 13
ctype-latin1.c:363: error: corrupted profile info: number of executions for edge
3-5 thought to be -12

However if I compile the file without the -O3 flag, it only issues warning :

gcc -DHAVE_CONFIG_H -I.-DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch
-Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare
-Wwrite-strings -Wunused -mtune=athlon-mp -march=athlon-mp -mfpmath=sse -mmmx
-msse -m3dnow -fomit-frame-pointer -fmove-all-movables -freduce-all-givs
-frename-registers -fprofile-use -fbranch-target-load-optimize2   -MT
ctype-latin1.o -MD -MP -MF ".deps/ctype-latin1.Tpo" -c -o ctype-latin1.o
ctype-latin1.c;
ctype-latin1.c: In function `my_mb_wc_latin1':
ctype-latin1.c:363: warning: no coverage for function 'my_mb_wc_latin1' found.
ctype-latin1.c: In function `my_wc_mb_latin1':
ctype-latin1.c:379: warning: no coverage for function 'my_wc_mb_latin1' found.
ctype-latin1.c: In function `my_strnncoll_latin1_de':
ctype-latin1.c:570: warning: no coverage for function 'my_strnncoll_latin1_de'
found.
ctype-latin1.c: In function `my_strnncollsp_latin1_de':
ctype-latin1.c:633: warning: no coverage for function 'my_strnncollsp_latin1_de'
found.
ctype-latin1.c: In function `my_strnxfrm_latin1_de':
ctype-latin1.c:651: warning: no coverage for function 'my_strnxfrm_latin1_de' found.
ctype-latin1.c: In function `my_hash_sort_latin1_de':
ctype-latin1.c:677: warning: no coverage for function 'my_hash_sort_latin1_de'
found.

So it seems something is wrong with profile-generate / profile-use in this case.

I'm uploading the c, gcda and h files to reproduce the problem with profile-use.

Thanks,
  Jocelyn

-- 
   Summary: corrupted profile info after optimized compilation and -
-fprofile-use
   Product: gcc
   Version: 3.4.1
Status: UNCONFIRMED
  Severity: normal
      Priority: P2
     Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: joc at presence-pc dot com
CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18152


[Bug middle-end/18152] corrupted profile info after optimized compilation and --fprofile-use

2004-10-25 Thread joc at presence-pc dot com

--- Additional Comments From joc at presence-pc dot com  2004-10-25 21:53 ---
Created an attachment (id=7409)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7409&action=view)
c/h files and gcda file to reproduce -fprofile-use bug


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18152


[Bug middle-end/18152] corrupted profile info after optimized compilation and --fprofile-use

2004-10-25 Thread joc at presence-pc dot com

--- Additional Comments From joc at presence-pc dot com  2004-10-25 21:56 ---
The file has been compiled with 

gcc -DHAVE_CONFIG_H -I. -O3 -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch
-Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare
-Wwrite-strings -Wunused -mtune=athlon-mp -march=athlon-mp -mfpmath=sse -mmmx
-msse -m3dnow -O3 -fomit-frame-pointer -fmove-all-movables -freduce-all-givs
-frename-registers -fprofile-generate -fbranch-target-load-optimize2   -MT
ctype-latin1.o -MD -MP -MF ".deps/ctype-latin1.Tpo" -c -o ctype-latin1.o
ctype-latin1.c

command line

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18152


[Bug middle-end/18152] corrupted profile info after optimized compilation and --fprofile-use

2004-10-25 Thread joc at presence-pc dot com

--- Additional Comments From joc at presence-pc dot com  2004-10-25 22:03 ---
Note also that occurs when trying to compile MySQL with -fprofile-use flag, and
several other files are affected by the problem (but now all the files).

For example, an other error during compilation :

[EMAIL PROTECTED] /usr/local/mysql-4.1/innobase/page> gcc -DHAVE_CONFIG_H -I. -I.
-I.. -I./../include -I./../../include -I../../include-DDBUG_OFF -O3
-DDBUG_OFF -mtune=athlon-mp -march=athlon-mp -fprofile-use -DDEBUG_OFF
-DUNIV_LINUX -DUNIV_INTEL_X86 -MT page0page.o -MD -MP -MF ".deps/page0page.Tpo"
-c -o page0page.o page0page.c; 
page0page.c: In function `page_rec_get_n_recs_before':
page0page.c:1112: error: corrupted profile info: number of executions for edge
1-2 thought to be -1
page0page.c:1112: error: corrupted profile info: number of executions for edge
1-11 thought to be 1497932
page0page.c:1112: error: corrupted profile info: number of iterations for basic
block 2 thought to be -1
page0page.c:1112: error: corrupted profile info: number of executions for edge
16-17 thought to be -3
page0page.c:1112: error: corrupted profile info: number of executions for edge
16-26 thought to be 107993545

When removing the -mtune / -march flags :

[EMAIL PROTECTED] /usr/local/mysql-4.1/innobase/page> gcc -DHAVE_CONFIG_H -I. -I.
-I.. -I./../include -I./../../include -I../../include-DDBUG_OFF -O3
-DDBUG_OFF  -fprofile-use -DDEBUG_OFF -DUNIV_LINUX -DUNIV_INTEL_X86 -MT
page0page.o -MD -MP -MF ".deps/page0page.Tpo" -c -o page0page.o page0page.c;
page0page.c: In function `page_delete_rec_list_end':
page0page.c:700: error: coverage mismatch for function
'page_delete_rec_list_end' while reading counter 'arcs'.
page0page.c:700: error: number of counters is 250 instead of 251

When removing the -O3 flag, a lot of "warning: no coverage for function
'function_name' found", but no more compilation errors.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18152