GCC-4.9.0: Changing the internal object file containing the function dump during unloading

2014-04-19 Thread sameeragrawal

Hi,
I want to change the file in which GCC-4.9.0 writes back the function 
dump on unloading.


With every cgraph node (node) there is an associated member of type 
"lto_file_decl_data", i.e. "node->lto_file_data" . I am trying to change 
the "file_name" associated with this member. I am doing this in the file 
"cgraph.c",


file_data = node->lto_file_data;
file_data->file_name = myfilename;

The code compiled successfully but on using the executable through a 
dynamic plugin, I am getting the following error:
fatal error: bytecode stream generated with LTO version 0.0 instead of 
the expected 3.0


How can I change the required file_name.

Thanking you in advance,

Sameer Kumar Agrawal
IIT Bombay


[buildrobot] arm-eabi broken

2014-04-19 Thread Jan-Benedict Glaw
Hi!

I noticed that between 704db68e45..f2de45326 (209463..r209495),
probbaly in e2ec52cad85e (r209484), building for arm-eabi breaks:

g++ -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions 
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings 
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic 
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  
-DHAVE_CONFIG_H -I. -I. -I/home/vaxbuild/repos/gcc/gcc 
-I/home/vaxbuild/repos/gcc/gcc/. -I/home/vaxbuild/repos/gcc/gcc/../include 
-I/home/vaxbuild/repos/gcc/gcc/../libcpp/include  
-I/home/vaxbuild/repos/gcc/gcc/../libdecnumber 
-I/home/vaxbuild/repos/gcc/gcc/../libdecnumber/dpd -I../libdecnumber 
-I/home/vaxbuild/repos/gcc/gcc/../libbacktrace-o arm.o -MT arm.o -MMD -MP 
-MF ./.deps/arm.TPo /home/vaxbuild/repos/gcc/gcc/config/arm/arm.c
In file included from /home/vaxbuild/repos/gcc/gcc/rtl.h:24:0,
 from /home/vaxbuild/repos/gcc/gcc/config/arm/arm.c:28:
/home/vaxbuild/repos/gcc/gcc/config/arm/arm.c: In function ‘void 
arm_print_operand(FILE*, rtx, int)’:
/home/vaxbuild/repos/gcc/gcc/machmode.h:183:32: error: invalid conversion from 
‘int’ to ‘machine_mode’ [-fpermissive]
? mode_size_inline (MODE) : mode_size[MODE]))
^
/home/vaxbuild/repos/gcc/gcc/config/arm/arm.c:21433:13: note: in expansion of 
macro ‘GET_MODE_SIZE’
 if (GET_MODE_SIZE (mode) != 8 || !REG_P (x))
 ^
/home/vaxbuild/repos/gcc/gcc/machmode.h:183:32: error: invalid conversion from 
‘int’ to ‘machine_mode’ [-fpermissive]
? mode_size_inline (MODE) : mode_size[MODE]))
[...]


Seems the code was changed afterwards again, but even 7abf8754c7 (r209530) is
still broken:

g++ -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions 
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings 
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic 
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  
-DHAVE_CONFIG_H -I. -I. -I/home/jbglaw/repos/gcc/gcc 
-I/home/jbglaw/repos/gcc/gcc/. -I/home/jbglaw/repos/gcc/gcc/../include 
-I/home/jbglaw/repos/gcc/gcc/../libcpp/include  
-I/home/jbglaw/repos/gcc/gcc/../libdecnumber 
-I/home/jbglaw/repos/gcc/gcc/../libdecnumber/dpd -I../libdecnumber 
-I/home/jbglaw/repos/gcc/gcc/../libbacktrace-o arm.o -MT arm.o -MMD -MP -MF 
./.deps/arm.TPo /home/jbglaw/repos/gcc/gcc/config/arm/arm.c
/home/jbglaw/repos/gcc/gcc/config/arm/arm.c: In function ‘void 
arm_print_operand(FILE*, rtx, int)’:
/home/jbglaw/repos/gcc/gcc/config/arm/arm.c:21433:84: error: invalid conversion 
from ‘int’ to ‘machine_mode’ [-fpermissive]
/home/jbglaw/repos/gcc/gcc/config/arm/arm.c:21458:77: error: invalid conversion 
from ‘int’ to ‘machine_mode’ [-fpermissive]
/home/jbglaw/repos/gcc/gcc/config/arm/arm.c:21493:85: error: invalid conversion 
from ‘int’ to ‘machine_mode’ [-fpermissive]
/home/jbglaw/repos/gcc/gcc/config/arm/arm.c:21494:81: error: invalid conversion 
from ‘int’ to ‘machine_mode’ [-fpermissive]
/home/jbglaw/repos/gcc/gcc/config/arm/arm.c:21507:84: error: invalid conversion 
from ‘int’ to ‘machine_mode’ [-fpermissive]
/home/jbglaw/repos/gcc/gcc/config/arm/arm.c:21626:84: error: invalid conversion 
from ‘int’ to ‘machine_mode’ [-fpermissive]
/home/jbglaw/repos/gcc/gcc/config/arm/arm.c:21660:84: error: invalid conversion 
from ‘int’ to ‘machine_mode’ [-fpermissive]
/home/jbglaw/repos/gcc/gcc/config/arm/arm.c: In function ‘void 
thumb_exit(FILE*, int)’:
/home/jbglaw/repos/gcc/gcc/config/arm/arm.c:25960:85: error: invalid conversion 
from ‘int’ to ‘machine_mode’ [-fpermissive]
make[1]: *** [arm.o] Error 1

MfG, JBG

-- 
  Jan-Benedict Glaw  jbg...@lug-owl.de  +49-172-7608481
 Signature of:Arroganz verkürzt fruchtlose Gespräche.
 the second  :   -- Jan-Benedict Glaw


signature.asc
Description: Digital signature


Re: [buildrobot] arm-eabi broken

2014-04-19 Thread Jan-Benedict Glaw
Hi!

On Sat, 2014-04-19 21:54:07 +0200, Jan-Benedict Glaw  wrote:
[...]

sparc64-linux looks similar at 7abf8754c7 (r209530):

g++ -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions 
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings 
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic 
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  
-DHAVE_CONFIG_H -I. -I. -I/home/jbglaw/repos/gcc/gcc 
-I/home/jbglaw/repos/gcc/gcc/. -I/home/jbglaw/repos/gcc/gcc/../include 
-I/home/jbglaw/repos/gcc/gcc/../libcpp/include -I/opt/cfarm/gmp-latest/include 
-I/opt/cfarm/mpfr-latest/include -I/opt/cfarm/mpc-latest/include  
-I/home/jbglaw/repos/gcc/gcc/../libdecnumber 
-I/home/jbglaw/repos/gcc/gcc/../libdecnumber/dpd -I../libdecnumber 
-I/home/jbglaw/repos/gcc/gcc/../libbacktrace-o sparc.o -MT sparc.o -MMD -MP 
-MF ./.deps/sparc.TPo /home/jbglaw/repos/gcc/gcc/config/sparc/sparc.c
In file included from /home/jbglaw/repos/gcc/gcc/tree-core.h:24:0,
 from /home/jbglaw/repos/gcc/gcc/tree.h:23,
 from /home/jbglaw/repos/gcc/gcc/config/sparc/sparc.c:27:
/home/jbglaw/repos/gcc/gcc/config/sparc/sparc.c: In function 'void 
sparc_init_modes()':
/home/jbglaw/repos/gcc/gcc/machmode.h:183:32: error: invalid conversion from 
'int' to 'machine_mode' [-fpermissive]
? mode_size_inline (MODE) : mode_size[MODE]))
^
/home/jbglaw/repos/gcc/gcc/config/sparc/sparc.c:4829:8: note: in expansion of 
macro 'GET_MODE_SIZE'
if (GET_MODE_SIZE (i) < 4)
^
/home/jbglaw/repos/gcc/gcc/machmode.h:183:32: error: invalid conversion from 
'int' to 'machine_mode' [-fpermissive]
? mode_size_inline (MODE) : mode_size[MODE]))
^
[...]

MfG, JBG

-- 
  Jan-Benedict Glaw  jbg...@lug-owl.de  +49-172-7608481
  Signature of:Lauf nicht vor Deinem Glück davon:
  the second  : Es könnte hinter Dir stehen!


signature.asc
Description: Digital signature


Re: [buildrobot] m32r-elf broken

2014-04-19 Thread Jan-Benedict Glaw
On Sat, 2014-04-19 21:54:07 +0200, Jan-Benedict Glaw  wrote:
[...]

m32r-elf looks similar, too:


g++ -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions 
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual 
-Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long 
-Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. 
-I. -I/home/jbglaw/repos/gcc/gcc -I/home/jbglaw/repos/gcc/gcc/. 
-I/home/jbglaw/repos/gcc/gcc/../include 
-I/home/jbglaw/repos/gcc/gcc/../libcpp/include  
-I/home/jbglaw/repos/gcc/gcc/../libdecnumber 
-I/home/jbglaw/repos/gcc/gcc/../libdecnumber/dpd -I../libdecnumber 
-I/home/jbglaw/repos/gcc/gcc/../libbacktrace-o m32r.o -MT m32r.o -MMD -MP 
-MF ./.deps/m32r.TPo /home/jbglaw/repos/gcc/gcc/config/m32r/m32r.c
/home/jbglaw/repos/gcc/gcc/config/m32r/m32r.c: In function ‘void 
init_reg_tables()’:
/home/jbglaw/repos/gcc/gcc/config/m32r/m32r.c:290: error: invalid conversion 
from ‘int’ to ‘machine_mode’
/home/jbglaw/repos/gcc/gcc/config/m32r/m32r.c:292: error: invalid conversion 
from ‘int’ to ‘machine_mode’
/home/jbglaw/repos/gcc/gcc/config/m32r/m32r.c:294: error: invalid conversion 
from ‘int’ to ‘machine_mode’
/home/jbglaw/repos/gcc/gcc/config/m32r/m32r.c:296: error: invalid conversion 
from ‘int’ to ‘machine_mode’
/home/jbglaw/repos/gcc/gcc/config/m32r/m32r.c:303: error: invalid conversion 
from ‘int’ to ‘machine_mode’
/home/jbglaw/repos/gcc/gcc/config/m32r/m32r.c:305: error: invalid conversion 
from ‘int’ to ‘machine_mode’
/home/jbglaw/repos/gcc/gcc/config/m32r/m32r.c:307: error: invalid conversion 
from ‘int’ to ‘machine_mode’
/home/jbglaw/repos/gcc/gcc/config/m32r/m32r.c:309: error: invalid conversion 
from ‘int’ to ‘machine_mode’
make[1]: *** [m32r.o] Error 1

MfG, JBG

-- 
  Jan-Benedict Glaw  jbg...@lug-owl.de  +49-172-7608481
 Signature of:Arroganz verkürzt fruchtlose Gespräche.
 the second  :   -- Jan-Benedict Glaw


signature.asc
Description: Digital signature


gcc-4.7-20140419 is now available

2014-04-19 Thread gccadmin
Snapshot gcc-4.7-20140419 is now available on
  ftp://gcc.gnu.org/pub/gcc/snapshots/4.7-20140419/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.

This snapshot has been generated from the GCC 4.7 SVN branch
with the following options: svn://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch 
revision 209530

You'll find:

 gcc-4.7-20140419.tar.bz2 Complete GCC

  MD5=6cbba57efca0ace04fd87d015a9cb40d
  SHA1=475f08335d7aa966cd4204e9b7b811d8cc1c255c

Diffs from 4.7-20140412 are available in the diffs/ subdirectory.

When a particular snapshot is ready for public consumption the LATEST-4.7
link is updated and a message is sent to the gcc list.  Please do not use
a snapshot before it has been announced that way.