[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#226244: [Bug ada/13620] [3.3 regression] gcc -O3 -fprofile-arcs causes an array initalizer to be miscompiled (forwarded from laurent at guerby dot net)



tags 226244 + fixed-upstream
retitle 226244 [fixed in 3.4] [3.3 regression] gcc -O3 -fprofile-arcs causes an array initalizer to be miscompiled
thanks

--- Begin Message ---
------- Additional Comments From laurent at guerby dot net  2004-01-10 11:31 -------
A trivial workaround is to use "-largs -fprofile-arcs" when calling
gnatmake. The code generation bug is no longer present on mainline.

$ gnatls -v

GNATLS 3.4.0 20040105 (experimental) Copyright 1997-2004 Free Software
Foundation, Inc.

Source Search Path:
   <Current_Directory>
  
/home/guerby/work/gcc/install/install-20040105T165135/lib/gcc/i686-pc-linux-gnu/3.4.0/adainclude/


Object Search Path:
   <Current_Directory>
  
/home/guerby/work/gcc/install/install-20040105T165135/lib/gcc/i686-pc-linux-gnu/3.4.0/adalib/

$ gnatmake -f -O3 -fprofile-arcs drgnchss -largs -fprofile-arcs
gcc -c -O3 -fprofile-arcs drgnchss.adb
gcc -c -O3 -fprofile-arcs board_types.ads
gcc -c -O3 -fprofile-arcs print_board.adb
gnatbind -x drgnchss.ali
gnatlink drgnchss.ali -fprofile-arcs
$ ./drgnchss
--*---*---*-
-*-*-*-*-*-*
------------
------------
------------
------------
-*-*-*-*-*-*
--*---*---*-


-- 


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

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.


-- 
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

--- End Message ---

Reply to: