How can distinguish DECL in LTO mode?

2018-08-12 Thread zet
Hello, everyone.
Sorry to disturb you, but this question confused me several days, I have
searched the GCC source code cannot find the answers.

I know we can distinguish the different DECL tree using DECL_UID in a
translation unit. But when in LTO mode, lto1 combine some input fat object
files. How can I distinguish the different DECL tree may come from
two different object files?

Thanks.


where is the source code generate crtbegin.o (i386)?

2016-10-23 Thread zet
Hello, all

where is the source code which generate crtbegin.o (i386)?

gcc-6.2.0-source/libgcc/config/i386 only have ctr1.S/crtn.S, where is
the others(crtbegin/crtend/crt1, etc)?


thx

-- 
业精于勤,荒于嬉.


where is the definition of struct gcc_options?

2016-06-15 Thread zet
Hello, All

I am reading the source of gcc(version 4.8.2), there is a important
symbol 'global_options' whose type is struct gcc_options
in cc1' entry function toplev_main().

I have build the gcc with make -g -O0, in gdb use ptype i can get the
content of struct gcc_options,
but in vim I cannot find its definition.

$ ctags -R/ cscope -R

And other symbol jump is correct, just struct gcc_options.
Did I missing something?

thx

-- 
业精于勤,荒于嬉.


when gcc support -z ?

2016-05-23 Thread zet
hello, all

just like the title, when gcc support -z keyword?

if show me the patch, it will be great.

thx

-- 
业精于勤,荒于嬉..


GCC + GNAT- ADA + BUG

2006-02-05 Thread zet

gcc -c hh.adb
+===GNAT BUG DETECTED==+
| 4.0.0 20050519 (Red Hat 4.0.0-8) (i386-redhat-linux-gnu) GCC error:  |
| in expand_assignment, at expr.c:3824 |
| Error detected at hh.adb:19:5|
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.|
| Include the entire contents of this bug box in the report.   |
| Include the exact gcc or gnatmake command that you entered.  |
| Also include sources listed below in gnatchop format |
| (concatenated together with no headers between files).   |
+==+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.

hh.adb

hh.adb:4:11: warning: file name does not match unit name, should be 
marcin.adb

compilation abandoned
gnatmake: hh.adb compilation error



--
Kliknij po wiecej!  http://link.interia.pl/f18ed
with ada.direct_io, ada.integer_text_io,ada.text_io;
use  ada.text_io,ada.integer_text_io;

procedure marcin is
   type powiaty is record
  nazwa :  integer;
  imie  :  integer;
   end record;
   package pliki is new ada.direct_io(powiaty);
   use pliki;

   plik  : pliki.file_type;
--   p : powiaty := (nazwa = 10, imie = 20);
--   n : powiaty := (nazwa = 11, imie = 21);i
begin
 --  open(plik,out_file,dane.bin);
null;
--   if end_of_file(plik) then put(plik pusty); end if;
end marcin;