Re: Looking for specific pages from Muchnick's book
Steven Bosscher wrote: Hi, I found this old patch (http://gcc.gnu.org/ml/gcc-patches/2003-06/msg01669.html) that refers to pages 202-214 of Muchnick's "Advanced Compiler Design and Implementation" book. That book still is not in my own compiler books collection because of its price. Since you've mentioned it, could you also suggest a few books worth buying (for the benefit of the not-so-compiler-savvy-but-want-to-be :). I think it would be very much appreciated! thnx, -jb -- mathematician, n.: Some one who believes imaginary things appear right before your i's.
Re: Building errors for sh, h8300 and m32c targets
Nitin Shah wrote: Hi, I am building toolchain for Renesas SH, H8300 and M32C targets for ELF format (i.e. sh-elf, h8300-elf, m32c-elf respectively) using the below mentioned sources, Binutils-051107 GCC-4.1-20051107 Newlib-dated 051114 from CVS Host: i686-pc-linux-gnu I am getting the below mentioned error at the stage of gcc building, maybe u want to try 'find -name "*.[ly]|xargs touch' and try force regeneration of all lex, bison stuff -jimmy * Error Text starts gcc -c?? -g -O2 -DIN_GCC -DCROSS_COMPILE? -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -fno-common -Wno-error? -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/home/pradeep/src/gcc-4.1-20051107/gcc -I/home/pradeep/src/gcc-4.1-20051107/gcc/build -I/home/pradeep/src/gcc-4.1-20051107/gcc/../include -I/home/pradeep/src/gcc-4.1-20051107/gcc/../libcpp/include? -o build/gengtype-lex.o gengtype-lex.c /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:31:27: gengtype-yacc.h: No such file or directory /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l: In function `yylex': /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:222: `yylval' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:222: (Each undeclared identifier is reported only once /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:222: for each function it appears in.) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:227: `ENT_TYPEDEF_STRUCT' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:227: `ENT_STRUCT' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:233: `ENT_EXTERNSTATIC' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:239: `ENT_YACCUNION' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:287: `GTY_TOKEN' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:288: `UNION' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:289: `STRUCT' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:290: `ENUM' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:291: `ALIAS' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:292: `NESTED_PTR' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:293: `NUM' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:296: `PARAM_IS' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:308: `SCALAR' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:329: `ID' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:339: `STRING' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:343: `ARRAY' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:347: `PERCENT_ID' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:351: `CHAR' undeclared (first use in this function) /home/pradeep/src/gcc-4.1-20051107/gcc/gengtype-lex.l:367: `PERCENTPERCENT' undeclared (first use in this function) make[1]: *** [build/gengtype-lex.o] Error 1 make[1]: Leaving directory `/home/pradeep/build/gcc/gcc' make: *** [all-gcc] Error 2 Error Text Ends ** After looking into the error, I found that these files are not present in the gcc-4.1 snapshots. Hence I copied the "gengtype-yacc.c" and "gengtype-yacc.h" files from the gcc-4.0.0 sources to the respective directory of gcc-4.1.0 snapshots i.e. "/../gcc-4.1-20051107/gcc/"? After copying of these two files the building process completed successfully. Could any one suggest me the reasons of presence of these files in the previous version and the cause to delete these files in this gcc-4.1 snapshot ? I have already post the same query on the crossgcc mailing list "[EMAIL PROTECTED]", http://sources.redhat.com/ml/crossgcc/2005-11/msg00195.html Thanks in advance. Nitin Shah. KPIT Cummins InfoSystems Ltd. Pune, India Free download of GNU based tool-chains for Renesas' SH and H8 Series. The following site also offers free technical support to its users. Visit http://www.kpitgnutools.com for details. Latest versions of KPIT GNU tools were released on October 12, 2005.
bug in 4.1.1?
When compiling the following the code with gcc 4.1.1 without optimization, the output is wrong. gcc -v is Using built-in specs. Target: i686-pc-linux-gnu Configured with: ./configure --prefix=/home/jb/local Thread model: posix gcc version 4.1.1 <=code=> #include int main() { int b[2] = {3, 5}; b[0] ^= b[1] ^= b[0] ^= b[1]; printf("b[0] = %d, b[1] = %d\n", b[0], b[1]); return 0; } <=/code> with -O0, the output is b[0] = 0, b[1] = 3 whereas with -O1 (or -O2 or -O3), it's b[0] = 5, b[1] = 3 i was able to reproduce this on x86, HP/UX and AIX Please, tell me if you need any more info. -jb -- Endless Loop: n.,see Loop, Endless. Loop Endless: n.,see Endless Loop. -Anonymous
Be
Sent from my iPhone Jimmy Ginn
Re: GCC 7.3 Released
unsubscribe On Thu, Jan 25, 2018 at 4:41 AM, Richard Biener wrote: > > The GNU Compiler Collection version 7.3 has been released. > > GCC 7.3 is a bug-fix release from the GCC 7 branch > containing important fixes for regressions and serious bugs in > GCC 7.2 with more than 99 bugs fixed since the previous release. > > This release includes code generation options to mitigate > Spectre Variant 2 (CVE 2017-5715) for the x86 and powerpc targets. > > This release is available from the FTP servers listed at: > > http://www.gnu.org/order/ftp.html > > Please do not contact me directly regarding questions or comments > about this release. Instead, use the resources available from > http://gcc.gnu.org. > > As always, a vast number of people contributed to this GCC release > -- far too many to thank them individually! >