[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-07-29 Thread aaronavay62 at aaronwl dot com


--- Comment #13 from aaronavay62 at aaronwl dot com  2008-07-29 19:43 
---
Eric, this failure seems to be fixed now on trunk.  Thanks!

Ada is back in business now on mingw32, modulo some Makefile.in problems which
I'm fixing now.


-- 

aaronavay62 at aaronwl dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-07-29 Thread ebotcazou at gcc dot gnu dot org


--- Comment #14 from ebotcazou at gcc dot gnu dot org  2008-07-29 20:47 
---
 Eric, this failure seems to be fixed now on trunk.

Great!

 Ada is back in business now on mingw32, modulo some Makefile.in problems which
 I'm fixing now.

Thanks for spending a bit of your time on Ada.


-- 


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-07-27 Thread ebotcazou at gcc dot gnu dot org


--- Comment #12 from ebotcazou at gcc dot gnu dot org  2008-07-27 17:11 
---
Aaron, could you update your tree and attemp a clean bootstrap?  The fix is
supposed to be

2008-07-17  Olivier Hainque  [EMAIL PROTECTED]

* utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
argument, to apply to references in addition to definitions.  Prevent
setting TREE_STATIC on externals.
(gnat_pushdecl): Always clear DECL_CONTEXT on public externals.


-- 


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-07-14 Thread aaronavay62 at aaronwl dot com


--- Comment #8 from aaronavay62 at aaronwl dot com  2008-07-14 08:57 ---
Eric, with that change, I see this:

../../../svn/libgcc/../gcc/libgcc2.c: In function '__do_global_ctors':  
../../../svn/libgcc/../gcc/libgcc2.c:2161: internal compiler error: in
i386_pe_binds_local_p, at config/i386/winnt.c:337

debug_tree(exp)
 var_decl 04C036E0 __CTOR_LIST__
type array_type 04C0EC98
type pointer_type 04C0EC30 func_ptr type function_type 03CC4888
public unsigned SI
size integer_cst 03C987C0 constant 32
unit size integer_cst 03C98560 constant 4
align 32 symtab 79753888 alias set -1 canonical type 041F5D68
pointer_to_this pointer_type 04C0ED00
BLK
align 32 symtab 0 alias set -1 canonical type 04C0EDD0
pointer_to_this pointer_type 04C12270
addressable used public external common BLK file
../../../svn/libgcc/../gcc/
gbl-ctors.h line 48 col 17
align 32
(mem/s/c:BLK (symbol_ref:SI (__CTOR_LIST__) var_decl 04C036E0
__CTOR_LIST
__) [2 __CTOR_LIST__+0 A32]) chain var_decl 04C03738 __DTOR_LIST__


-- 


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-07-14 Thread ebotcazou at gcc dot gnu dot org


--- Comment #9 from ebotcazou at gcc dot gnu dot org  2008-07-14 09:03 
---
 Eric, with that change, I see this:
 
 ../../../svn/libgcc/../gcc/libgcc2.c: In function '__do_global_ctors':
   
 ../../../svn/libgcc/../gcc/libgcc2.c:2161: internal compiler error: in
 i386_pe_binds_local_p, at config/i386/winnt.c:337

OK, thanks, the assertion is too broad.  Could you replace it with

  gcc_assert (!(TREE_CODE (exp) == VAR_DECL
 TREE_STATIC (exp)
 DECL_EXTERNAL (exp)));

instead?


-- 


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-07-14 Thread aaronavay62 at aaronwl dot com


--- Comment #10 from aaronavay62 at aaronwl dot com  2008-07-14 14:38 
---
(In reply to comment #9)

   gcc_assert (!(TREE_CODE (exp) == VAR_DECL
  TREE_STATIC (exp)
  DECL_EXTERNAL (exp)));

Eric, OK, now I get:

/mingw/src/gccada/./prev-gcc/xgcc -B/mingw/src/gccada/./prev-gcc/
-B/mingw/i386-pc-mingw32/bin/ -c -g -O2 -D__USE_MINGW_ACCESS  -gnatpg
-gnata -gnatwns -g -O1 -fno-inline \
 -nostdinc -I- -I. -Iada -I../../svn/gcc/ada
../../svn/gcc/ada/a-except.adb -o ada/a-except.o
+===GNAT BUG DETECTED==+
| 4.4.0 20080713 (experimental) (i386-pc-mingw32) GCC error:   |
| in i386_pe_binds_local_p, at config/i386/winnt.c:339 |
| Error detected around ../../svn/gcc/ada\a-exexda.adb:647 | 
...
raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:424 

debug_tree(exp)
 var_decl 03D11D68 system__soft_links__get_current_excep
type pointer_type 03D142D8 system__soft_links__get_eoa_call
type function_type 03D141A0 system__soft_links__T10s type
pointer_type
 038E5A90 ada__exceptions__exception_occurrence_access
sizes-gimplified asm_written visited QI
size integer_cst 000C8520 constant 8
unit size integer_cst 000C8540 constant 1
align 8 symtab 64062056 alias set -1 canonical type 03D141A0
arg-types tree_list 03D16DC0 value void_type 000DA7B8 void
pointer_to_this pointer_type 03D142D8
system__soft_links__get_eoa_call  
sizes-gimplified visited unsigned SI
size integer_cst 000C86E0 constant 32
unit size integer_cst 000C8480 constant 4
align 32 symtab 64062280 alias set -1 canonical type 03D142D8
side-effects addressable volatile public static unsigned external SI file
../../svn/gcc/ada\s-soflin.ads line 255 col 4 size integer_cst 000C86E0 32
unit size integer_cst 000C8480 4
align 32
(mem/v/f/c/i:SI (symbol_ref:SI (system__soft_links__get_current_excep)
var_decl 03D11D68 system__soft_links__get_current_excep) [0
system__soft_links__get_current_excep+0 S4 A32])


-- 


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-07-14 Thread ebotcazou at gcc dot gnu dot org


--- Comment #11 from ebotcazou at gcc dot gnu dot org  2008-07-14 14:44 
---
 /mingw/src/gccada/./prev-gcc/xgcc -B/mingw/src/gccada/./prev-gcc/
 -B/mingw/i386-pc-mingw32/bin/ -c -g -O2 -D__USE_MINGW_ACCESS  -gnatpg
 -gnata -gnatwns -g -O1 -fno-inline \
  -nostdinc -I- -I. -Iada -I../../svn/gcc/ada
 ../../svn/gcc/ada/a-except.adb -o ada/a-except.o
 +===GNAT BUG DETECTED==+  
   
 | 4.4.0 20080713 (experimental) (i386-pc-mingw32) GCC error:   |  
   
 | in i386_pe_binds_local_p, at config/i386/winnt.c:339 |  
   
 | Error detected around ../../svn/gcc/ada\a-exexda.adb:647 | 

Thanks.  We have identified the potential source of the problem in Gigi.


-- 


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-07-11 Thread ebotcazou at gcc dot gnu dot org


--- Comment #7 from ebotcazou at gcc dot gnu dot org  2008-07-11 21:20 
---
 I think it's actually the same problem, the patch that has fixed it on other
 platforms probably doesn't behave the same everywhere.

Yep, PE-COFF has a custom binds_local_p hook that doesn't reject DECL_EXTERNAL.
That's OK according to http://gcc.gnu.org/ml/gcc/2008-07/msg00205.html

Aaron, could you conduct a small experiment?  In winnt.c:i386_pe_binds_local_p,
just before the 'return true', could you add

gcc_assert (!(TREE_CODE (exp) == VAR_DECL  DECL_EXTERNAL (exp)));

and see whether it triggers during an Ada bootstrap?  If so, what's 'exp'?

Thanks in advance.


-- 


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-06-25 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P4


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-06-03 Thread aaronavay62 at aaronwl dot com


--- Comment #5 from aaronavay62 at aaronwl dot com  2008-06-03 19:32 ---
Apparently not related to PR35493, because its still present.  I'll give
debugging this another shot later.


-- 

aaronavay62 at aaronwl dot com changed:

   What|Removed |Added

   Last reconfirmed|2008-05-13 13:50:21 |2008-06-03 19:32:55
   date||


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-06-03 Thread ebotcazou at gcc dot gnu dot org


--- Comment #6 from ebotcazou at gcc dot gnu dot org  2008-06-03 19:57 
---
 Apparently not related to PR35493, because its still present.

I think it's actually the same problem, the patch that has fixed it on other
platforms probably doesn't behave the same everywhere.


-- 


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-05-22 Thread pinskia at gcc dot gnu dot org


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
   Severity|critical|normal
   Target Milestone|--- |4.4.0


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-05-17 Thread dannysmith at users dot sourceforge dot net


--- Comment #4 from dannysmith at users dot sourceforge dot net  2008-05-17 
07:27 ---
Is this related to PR35493?
A possibly related cygwin failure was also reported here.
http://gcc.gnu.org/ml/gcc/2008-03/msg00681.html.

My last successful build of Ada on mingw was:
gcc version 4.4.0 20080312 (experimental) (GCC)

Danny


-- 

dannysmith at users dot sourceforge dot net changed:

   What|Removed |Added

 CC||dannysmith at users dot
   ||sourceforge dot net


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-05-13 Thread aaronavay62 at aaronwl dot com


--- Comment #3 from aaronavay62 at aaronwl dot com  2008-05-13 13:50 ---
Here is the information.  I included the stage1 compiler as well just for
comparison purposes.  For some reason, the source line information is missing
from both, but I suspect thats not very important.

Unfortunately, I don't see anything wrong here, so I'm not quite sure how to
proceed.

stage1

0014 _get_target_char_size:
  14:   55  push   %ebp
  15:   89 e5   mov%esp,%ebp
  17:   b8 08 00 00 00  mov$0x8,%eax
  1c:   5d  pop%ebp
  1d:   c3  ret

 _ttypes___elabs:
   0:   55  push   %ebp
   1:   89 e5   mov%esp,%ebp
   3:   83 ec 08sub$0x8,%esp
   6:   e8 00 00 00 00  call   b _ttypes___elabs+0xb
7: DISP32   _get_target_char_size
   b:   a3 00 00 00 00  mov%eax,0x0
c: dir32.bss
  10:   a1 00 00 00 00  mov0x0,%eax
11: dir32   .bss
  15:   89 04 24mov%eax,(%esp)
  18:   e8 00 00 00 00  call   1d _ttypes___elabs+0x1d



stage2

0018 _get_target_char_size:
  18:   55  push   %ebp
  19:   89 e5   mov%esp,%ebp
  1b:   b8 08 00 00 00  mov$0x8,%eax
  20:   c9  leave  
  21:   c3  ret
  22:   66 90   xchg   %ax,%ax


 _ttypes___elabs:
   0:   55  push   %ebp
   1:   89 e5   mov%esp,%ebp
   3:   83 ec 08sub$0x8,%esp
   6:   e8 00 00 00 00  call   b _ttypes___elabs+0xb
7: DISP32   _get_target_char_size
   b:   a3 00 00 00 00  mov%eax,0x0
c: dir32.bss
  10:   89 04 24mov%eax,(%esp)
  13:   e8 00 00 00 00  call   18 _ttypes___elabs+0x18


-- 

aaronavay62 at aaronwl dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2008-05-13 13:50:21
   date||


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-05-12 Thread aaronavay62 at aaronwl dot com


-- 

aaronavay62 at aaronwl dot com changed:

   What|Removed |Added

   Severity|major   |critical


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-05-12 Thread sam at gcc dot gnu dot org


--- Comment #1 from sam at gcc dot gnu dot org  2008-05-12 12:11 ---
Could you post the disassembly of the previous stage get_target_char_size
from targtyps.o? (objdump --source targtyps.o)

On i686-pc-linux-gnu, I get:

Pos
get_target_char_size (void)
{
  14:   55  push   %ebp
  15:   89 e5   mov%esp,%ebp
  return CHAR_TYPE_SIZE;
  17:   b8 08 00 00 00  mov$0x8,%eax
}
  1c:   5d  pop%ebp
  1d:   c3  ret

This function is called to initialize Standard_Short_Short_Integer_Size. If
CHAR_TYPE_SIZE is not defined for your target, it defaults to BITS_PER_UNIT
(gigi.h).


-- 


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



[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595

2008-05-12 Thread sam at gcc dot gnu dot org


--- Comment #2 from sam at gcc dot gnu dot org  2008-05-12 12:18 ---
The beginning of objdump --disassemble-all -r ttypes.o should be interesting
as well:

 ttypes___elabs:
   0:   55  push   %ebp
   1:   89 e5   mov%esp,%ebp
   3:   83 ec 08sub$0x8,%esp
   6:   e8 fc ff ff ff  call   7 ttypes___elabs+0x7
7: R_386_PC32   get_target_char_size
   b:   89 04 24mov%eax,(%esp)
   e:   a3 00 00 00 00  mov%eax,0x0
f: R_386_32   
ttypes__standard_short_short_integer_size


-- 


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