Modifying GCC source code

2024-04-04 Thread Dan via Gcc
Hello! I am trying to slightly modify the source code of GCC to display some messages when the compiler is executed in the terminal. For example, when 'gcc source.c' is executed, I want a print message saying "Building with GCC..." and if the build is successful, "Build Successful!" should be disp

Successful GCC source build to installation on GNU/Linux

2023-08-01 Thread Nevil
I sent this note after reading "Final install" and seeing the buildstat.html hasn't had 14.x yet, indicating my success in building and installing GCC. config.guess output: x86_64-pc-linux-gnu gcc -v output: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64

Re: struct vs. class in GCC source

2023-01-10 Thread Jason Merrill via Gcc
On Tue, Jan 10, 2023 at 9:51 AM Paul Koning via Gcc wrote: > Building on Mac with Clang I get warnings like this: > > ../../../gcc/gcc/cgraph.h:2629:28: warning: struct 'cgraph_edge' was > previously declared as a class; this is valid, but may result in linker > errors under the Microsoft C++ ABI

struct vs. class in GCC source

2023-01-10 Thread Paul Koning via Gcc
Building on Mac with Clang I get warnings like this: ../../../gcc/gcc/cgraph.h:2629:28: warning: struct 'cgraph_edge' was previously declared as a class; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags] It seems to be talking about a MS bug (since C

Re: How do I create a GCC source code tarball?

2022-10-09 Thread Richard Biener via Gcc
On Sat, Oct 8, 2022 at 12:54 AM James K. Lowden wrote: > > On Tue, 4 Oct 2022 12:03:12 -0700 > Andrew Pinski via Gcc wrote: > > > > Building a full distribution of this tree isn't done > > > via 'make dist'. Check out the etc/ subdirectory > ... > > You just tar up the source. > > Yo

Re: How do I create a GCC source code tarball?

2022-10-07 Thread James K. Lowden
On Tue, 4 Oct 2022 12:03:12 -0700 Andrew Pinski via Gcc wrote: > > Building a full distribution of this tree isn't done > > via 'make dist'. Check out the etc/ subdirectory ... > You just tar up the source. > You could use maintainer-scripts/gcc_release to make a snapshot but in > th

RE: How do I create a GCC source code tarball?

2022-10-04 Thread Robert Dubner
-- From: Andrew Pinski Sent: Tuesday, October 4, 2022 15:03 To: Robert Dubner Cc: gcc@gcc.gnu.org Subject: Re: How do I create a GCC source code tarball? On Mon, Oct 3, 2022 at 4:32 PM Robert Dubner wrote: > > I have modified the source code of GCC, and I need a tarball for that > modifie

Re: How do I create a GCC source code tarball?

2022-10-04 Thread Andrew Pinski via Gcc
On Mon, Oct 3, 2022 at 4:32 PM Robert Dubner wrote: > > I have modified the source code of GCC, and I need a tarball for that > modified source. > > My code is based on the trunk branch of the repository at > git://gcc.gnu.org/git/gcc.git > > I attempted to execute "make dist", and have encountere

How do I create a GCC source code tarball?

2022-10-03 Thread Robert Dubner
I have modified the source code of GCC, and I need a tarball for that modified source. My code is based on the trunk branch of the repository at git://gcc.gnu.org/git/gcc.git I attempted to execute "make dist", and have encountered the response Building a full distribution of this tree isn

Re: Compiling GCC source

2022-02-07 Thread Richard Biener via Gcc
On Sun, Feb 6, 2022 at 8:14 PM Mohamed Atef via Gcc wrote: > > After i built it > I tried make - j 8 and it's recompiling now i thought i will have messege > like > Every thing is up to date or there are no change done > But it actually started to compile again If you modify parts of gcc/ only th

Re: Compiling GCC source

2022-02-06 Thread Martin Jambor
Hello, On Sun, Feb 06 2022, Mohamed Atef via Gcc wrote: > Hello everyone, > I built gcc from the repo and it took around 2 hours but I am > wondering should I wait two hours after every modification? > Is there any way to recompile faster. > That's very important as we will add some files

Re: Compiling GCC source

2022-02-06 Thread Mohamed Atef via Gcc
45 mins and i am waiting في الأحد، ٦ فبراير، ٢٠٢٢ ٩:١٨ م Mir Immad كتب: > The build system probably first tries to make sure if everything is in > place and if there were any changes and re-compiles the new/changed files. > > How much time does it take when you try to rebuild? > > On Mon, Feb 7,

Re: Compiling GCC source

2022-02-06 Thread Mir Immad via Gcc
The build system probably first tries to make sure if everything is in place and if there were any changes and re-compiles the new/changed files. How much time does it take when you try to rebuild? On Mon, Feb 7, 2022, 12:43 AM Mohamed Atef wrote: > After i built it > I tried make - j 8 and it'

Re: Compiling GCC source

2022-02-06 Thread Mohamed Atef via Gcc
After i built it I tried make - j 8 and it's recompiling now i thought i will have messege like Every thing is up to date or there are no change done But it actually started to compile again في الأحد، ٦ فبراير، ٢٠٢٢ ٩:٠٨ م Mir Immad كتب: > Yes, that is right. > > On Mon, Feb 7, 2022, 12:38 AM M

Re: Compiling GCC source

2022-02-06 Thread Mir Immad via Gcc
Yes, that is right. On Mon, Feb 7, 2022, 12:38 AM Mohamed Atef wrote: > Hello, > Only modified files will be recompiled, won't it? > > > في الأحد، ٦ فبراير، ٢٠٢٢ ٩:٠٥ م Mir Immad كتب: > >> Make sure to use all the cores available. >> >> make -j N >> >> e.g; make -j 8 >> >> >> On Mon, Feb

Re: Compiling GCC source

2022-02-06 Thread Mohamed Atef via Gcc
Hello, Only modified files will be recompiled, won't it? في الأحد، ٦ فبراير، ٢٠٢٢ ٩:٠٥ م Mir Immad كتب: > Make sure to use all the cores available. > > make -j N > > e.g; make -j 8 > > > On Mon, Feb 7, 2022, 12:26 AM Mohamed Atef via Gcc > wrote: > >> Hello everyone, >> I built g

Re: Compiling GCC source

2022-02-06 Thread Mir Immad via Gcc
Make sure to use all the cores available. make -j N e.g; make -j 8 On Mon, Feb 7, 2022, 12:26 AM Mohamed Atef via Gcc wrote: > Hello everyone, > I built gcc from the repo and it took around 2 hours but I am > wondering should I wait two hours after every modification? > Is there any w

Compiling GCC source

2022-02-06 Thread Mohamed Atef via Gcc
Hello everyone, I built gcc from the repo and it took around 2 hours but I am wondering should I wait two hours after every modification? Is there any way to recompile faster. That's very important as we will add some files and tests for OMPD. Thanks

Re: Rename C files to .c in GCC source

2015-02-16 Thread Jonathan Wakely
On 16 February 2015 at 17:45, Jonny Grant wrote: > While I remember: > Stroustrup lists C++ extensions as .cxx and .cpp > http://www.stroustrup.com/glossary.html > > ISO sample sources use .cpp: > http://standards.iso.org/ittf/PubliclyAvailableStandards/c043351_ISO_IEC_TR_18015_2006(E).zip > > .C i

Re: Rename C files to .c in GCC source

2015-02-16 Thread Jonny Grant
On 2 February 2015 at 23:56, Jonathan Wakely wrote: > On 2 February 2015 at 21:11, Jonny Grant wrote: >> Is this a consensus agreement to rename those .C -> .cc ? > > No. While I remember: Stroustrup lists C++ extensions as .cxx and .cpp http://www.stroustrup.com/glossary.html ISO sample sources

Re: Rename C files to .c in GCC source

2015-02-08 Thread Oleg Endo
On Sat, 2015-02-07 at 23:17 +, Jonny Grant wrote: > On 03/02/15 23:20, Andreas Schwab wrote: > > Jonny Grant writes: > > > >> How many minutes labor is this task? > > > > What does it fix? > > Consistency. Less important if these files are only compiled after GCC > available, to use as a tes

Re: Rename C files to .c in GCC source

2015-02-07 Thread Jonny Grant
On 03/02/15 23:20, Andreas Schwab wrote: Jonny Grant writes: How many minutes labor is this task? What does it fix? Consistency. Less important if these files are only compiled after GCC available, to use as a testsuite. Although I understood from other replies that other files needed h

Re: Rename C files to .c in GCC source

2015-02-04 Thread Jonathan Wakely
On 4 February 2015 at 00:22, Kevin Ingwersen (Ingwie Phoenix) wrote: > How many hacks/workarounds can be avoided? How many new hacks/workaround will be needed for exploring the files' version control history, even with a VCS that supports renaming? Renaming the files has downsides as well as upsi

Re: Rename C files to .c in GCC source

2015-02-03 Thread Andrew Pinski
On Tue, Feb 3, 2015 at 4:22 PM, Kevin Ingwersen (Ingwie Phoenix) wrote: > >> Am 04.02.2015 um 00:20 schrieb Andreas Schwab : >> >> Jonny Grant writes: >> >>> How many minutes labor is this task? >> >> What does it fix? > > How many hacks/workarounds can be avoided? None.

Re: Rename C files to .c in GCC source

2015-02-03 Thread Kevin Ingwersen (Ingwie Phoenix)
> Am 04.02.2015 um 00:20 schrieb Andreas Schwab : > > Jonny Grant writes: > >> How many minutes labor is this task? > > What does it fix? How many hacks/workarounds can be avoided?

Re: Rename C files to .c in GCC source

2015-02-03 Thread Joseph Myers
On Tue, 3 Feb 2015, Jonny Grant wrote: > > There are around 11k files that have the .C ending to them; all in the > > testsuite. I don't think it make sense to move them. > > How many minutes labor is this task? It's desirable for test names to be stable so that results can be compared over ti

Re: Rename C files to .c in GCC source

2015-02-03 Thread Andreas Schwab
Jonny Grant writes: > How many minutes labor is this task? What does it fix? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: Rename C files to .c in GCC source

2015-02-03 Thread Jonny Grant
On 02/02/15 21:18, Andrew Pinski wrote: On Mon, Feb 2, 2015 at 1:11 PM, Jonny Grant wrote: On 01/02/15 16:34, Kevin Ingwersen (Ingwie Phoenix) wrote: Am 01.02.2015 um 17:09 schrieb Eli Zaretskii : Date: Sat, 31 Jan 2015 01:55:29 + From: Jonathan Wakely Cc: Andrew Pinski , "gcc@gc

Re: Rename C files to .c in GCC source

2015-02-02 Thread Jonathan Wakely
On 2 February 2015 at 21:11, Jonny Grant wrote: > Is this a consensus agreement to rename those .C -> .cc ? No.

Re: Rename C files to .c in GCC source

2015-02-02 Thread Andrew Pinski
On Mon, Feb 2, 2015 at 1:11 PM, Jonny Grant wrote: > > > On 01/02/15 16:34, Kevin Ingwersen (Ingwie Phoenix) wrote: >> >> >>> Am 01.02.2015 um 17:09 schrieb Eli Zaretskii : >>> Date: Sat, 31 Jan 2015 01:55:29 + From: Jonathan Wakely Cc: Andrew Pinski , "gcc@gcc.gnu.org" ,

Re: Rename C files to .c in GCC source

2015-02-02 Thread Jonny Grant
On 01/02/15 16:34, Kevin Ingwersen (Ingwie Phoenix) wrote: Am 01.02.2015 um 17:09 schrieb Eli Zaretskii : Date: Sat, 31 Jan 2015 01:55:29 + From: Jonathan Wakely Cc: Andrew Pinski , "gcc@gcc.gnu.org" , Jonny Grant These files are only compiled by GCC's own build system, with GCC's o

Re: Rename C files to .c in GCC source

2015-02-02 Thread David Malcolm
On Fri, 2015-01-30 at 23:24 +0100, Kevin Ingwersen (Ingwie Phoenix) wrote: > > Am 30.01.2015 um 22:39 schrieb DJ Delorie : > > > > > > pins...@gmail.com writes: > >> No because they are c++ code so capital C is correct. > > > > However, we should avoid relying on case-sensitive file systems > >

Re: Rename C files to .c in GCC source

2015-02-01 Thread Kevin Ingwersen (Ingwie Phoenix)
> Am 01.02.2015 um 17:09 schrieb Eli Zaretskii : > >> Date: Sat, 31 Jan 2015 01:55:29 + >> From: Jonathan Wakely >> Cc: Andrew Pinski , "gcc@gcc.gnu.org" , >> Jonny Grant >> >> These files are only compiled by GCC's own build system, with GCC's >> own makefiles, so we know we invoke the C

Re: Rename C files to .c in GCC source

2015-02-01 Thread Eli Zaretskii
> Date: Sat, 31 Jan 2015 01:55:29 + > From: Jonathan Wakely > Cc: Andrew Pinski , "gcc@gcc.gnu.org" , > Jonny Grant > > These files are only compiled by GCC's own build system, with GCC's > own makefiles, so we know we invoke the C++ compiler and so the > language isn't inferred from the fi

Re: Rename C files to .c in GCC source

2015-02-01 Thread Eli Zaretskii
> From: DJ Delorie > Cc: gcc@gcc.gnu.org, Jonny Grant > Date: Fri, 30 Jan 2015 16:39:51 -0500 > > However, we should avoid relying on case-sensitive file systems > (Windows) and use .cc or .cxx for C++ files ("+" is not a valid file > name character on Windows, so we can't use .c++). Actually,

Re: Rename C files to .c in GCC source

2015-01-31 Thread Kevin Ingwersen (Ingwie Phoenix)
> Am 31.01.2015 um 21:21 schrieb DJ Delorie : > > >> Aren't current Windows file systems case-preserving? Then they >> shouldn't have no problems with .C files. > > They are case preserving, but not case sensitive. A wildcard search > for *.c will match foo.C and bar.c, and foo.c can be opene

Re: Rename C files to .c in GCC source

2015-01-31 Thread DJ Delorie
> Aren't current Windows file systems case-preserving? Then they > shouldn't have no problems with .C files. They are case preserving, but not case sensitive. A wildcard search for *.c will match foo.C and bar.c, and foo.c can be opened as FOO.C.

Re: Rename C files to .c in GCC source

2015-01-31 Thread Mikhail Maltsev
31.01.2015 14:10, Florian Weimer writes: > Aren't current Windows file systems case-preserving? Then they > shouldn't have no problems with .C files. They are, but with some limitations: you can't create two files with names differing only by case. I didn't try API functions, but here is how it

Re: Rename C files to .c in GCC source

2015-01-31 Thread Florian Weimer
* DJ Delorie: > pins...@gmail.com writes: >> No because they are c++ code so capital C is correct. > > However, we should avoid relying on case-sensitive file systems > (Windows) and use .cc or .cxx for C++ files Aren't current Windows file systems case-preserving? Then they shouldn't have no p

Re: Rename C files to .c in GCC source

2015-01-31 Thread Andreas Schwab
John Marino writes: > Even if this issue is normally hidden due to gcc's makefiles There are no makefiles involved. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: Rename C files to .c in GCC source

2015-01-31 Thread John Marino
On 1/31/2015 02:55, Jonathan Wakely wrote: > On 30 January 2015 at 21:39, DJ Delorie wrote: >> >> pins...@gmail.com writes: >>> No because they are c++ code so capital C is correct. >> >> However, we should avoid relying on case-sensitive file systems >> (Windows) and use .cc or .cxx for C++ files

Re: Rename C files to .c in GCC source

2015-01-30 Thread Kevin Ingwersen (Ingwie Phoenix)
; rather than add a third extension. Oh, I did not know this detail since I haven’t peered into the GCC source in a felt forever. Would make sense to use .cc then if it has already been used elsewhere in the source.

Re: Rename C files to .c in GCC source

2015-01-30 Thread Jonathan Wakely
On 30 January 2015 at 22:24, Kevin Ingwersen (Ingwie Phoenix) wrote: > Apple’s HFS is, on a default OS X install, case insensitive. Which doesn't matter, see my previous reply. > But .c++ is valid. .cxx sounds pretty straight forward to me, since people > also use the $CXX variable. We already

Re: Rename C files to .c in GCC source

2015-01-30 Thread Jonathan Wakely
On 30 January 2015 at 21:39, DJ Delorie wrote: > > pins...@gmail.com writes: >> No because they are c++ code so capital C is correct. > > However, we should avoid relying on case-sensitive file systems > (Windows) and use .cc or .cxx for C++ files ("+" is not a valid file > name character on Window

Re: Rename C files to .c in GCC source

2015-01-30 Thread Kevin Ingwersen (Ingwie Phoenix)
> Am 30.01.2015 um 22:39 schrieb DJ Delorie : > > > pins...@gmail.com writes: >> No because they are c++ code so capital C is correct. > > However, we should avoid relying on case-sensitive file systems > (Windows) and use .cc or .cxx for C++ files ("+" is not a valid file > name character on

Re: Rename C files to .c in GCC source

2015-01-30 Thread Kevin Ingwersen (Ingwie Phoenix)
> Am 30.01.2015 um 21:30 schrieb Jonny Grant : > > > > On 30/01/15 17:09, pins...@gmail.com wrote: >> >> >> >> >>> On Jan 30, 2015, at 4:22 AM, Jonny Grant wrote: >>> >>> Hello >>> >>> When I checked out from the trunk I saw that various files had .C >>> capital extension. Its not a big

Re: Rename C files to .c in GCC source

2015-01-30 Thread DJ Delorie
pins...@gmail.com writes: > No because they are c++ code so capital C is correct. However, we should avoid relying on case-sensitive file systems (Windows) and use .cc or .cxx for C++ files ("+" is not a valid file name character on Windows, so we can't use .c++).

Re: Rename C files to .c in GCC source

2015-01-30 Thread Jonny Grant
On 30/01/15 17:09, pins...@gmail.com wrote: On Jan 30, 2015, at 4:22 AM, Jonny Grant wrote: Hello When I checked out from the trunk I saw that various files had .C capital extension. Its not a big issue.. but I wondered if they should be .c like regular source files? No because they a

Re: Rename C files to .c in GCC source

2015-01-30 Thread pinskia
> On Jan 30, 2015, at 4:22 AM, Jonny Grant wrote: > > Hello > > When I checked out from the trunk I saw that various files had .C > capital extension. Its not a big issue.. but I wondered if they should > be .c like regular source files? No because they are c++ code so capital C is correct.

Rename C files to .c in GCC source

2015-01-30 Thread Jonny Grant
Hello When I checked out from the trunk I saw that various files had .C capital extension. Its not a big issue.. but I wondered if they should be .c like regular source files? libitm\testsuite\libitm.c++\static_ctor.C libitm\testsuite\libitm.c++\dropref.C libitm\testsuite\libitm.c++\eh-1.C libit

Re: gcc source

2014-08-20 Thread Tomsy Paul
Thank you very much for the quick help!! Let me look into the articles & contact you for further help. On 8/21/14, Manuel López-Ibáñez wrote: > On 21 August 2014 00:31, Tomsy Paul wrote: >> Hello, >> >> I am designing a new language. I hope I can customize the front end of >> gcc to suit my lang

Re: gcc source

2014-08-20 Thread Manuel López-Ibáñez
On 21 August 2014 00:31, Tomsy Paul wrote: > Hello, > > I am designing a new language. I hope I can customize the front end of > gcc to suit my language. I am comfortable with lex & yacc. I went > through the source code of gcc but could not locate any lex or yacc > source file. > > I prefer to mo

Re: gcc source

2014-08-20 Thread Andrew Pinski
On Wed, Aug 20, 2014 at 3:31 PM, Tomsy Paul wrote: > Hello, > > I am designing a new language. I hope I can customize the front end of > gcc to suit my language. I am comfortable with lex & yacc. I went > through the source code of gcc but could not locate any lex or yacc > source file. > > I pref

gcc source

2014-08-20 Thread Tomsy Paul
Hello, I am designing a new language. I hope I can customize the front end of gcc to suit my language. I am comfortable with lex & yacc. I went through the source code of gcc but could not locate any lex or yacc source file. I prefer to modify the C compiler. Can you please explain the source fi

Re: Vim format in gcc source?

2014-03-03 Thread lin zuojian
Thx,Jonathan. -- Regards lin zuojian On Mon, Mar 03, 2014 at 09:37:01AM +, Jonathan Wakely wrote: > On 3 March 2014 07:00, lin zuojian wrote: > > Hi guys, > > How do I set the format of vim,so that my code doen't look alien? > > Do you mean how do you set vim to match the GCC coding style

Re: Vim format in gcc source?

2014-03-03 Thread Jonathan Wakely
On 3 March 2014 07:00, lin zuojian wrote: > Hi guys, > How do I set the format of vim,so that my code doen't look alien? Do you mean how do you set vim to match the GCC coding style? It's not quite right, and it's mostly used for C++, but I use: setl formatoptions=croql cindent cinoptions=:0

Vim format in gcc source?

2014-03-02 Thread lin zuojian
Hi guys, How do I set the format of vim,so that my code doen't look alien? -- Regards lin zuojian

Re: anonymous namespaces in GCC source code

2013-03-19 Thread Alec Teal
On 18/03/13 18:50, Lawrence Crowl wrote: On 3/18/13, Gabriel Dos Reis wrote: I have been having discussion with Andrew about uses of anonymous namespaces in GCC source code. I seem to remember that they used to cause troubles when doing binary diff during bootsrap because we use random names

Re: anonymous namespaces in GCC source code

2013-03-18 Thread Gabriel Dos Reis
Jason Merrill writes: | On 03/18/2013 10:57 AM, Gabriel Dos Reis wrote: | > I have been having discussion with Andrew about uses of anonymous | > namespaces in GCC source code. I seem to remember that they used to | > cause troubles when doing binary diff during bootsrap becau

Re: anonymous namespaces in GCC source code

2013-03-18 Thread Lawrence Crowl
On 3/18/13, Gabriel Dos Reis wrote: > I have been having discussion with Andrew about uses of anonymous > namespaces in GCC source code. I seem to remember that they used > to cause troubles when doing binary diff during bootsrap because > we use random names to ensure uniqueness o

anonymous namespaces in GCC source code

2013-03-18 Thread Gabriel Dos Reis
Hi Jason, Lawrence, I have been having discussion with Andrew about uses of anonymous namespaces in GCC source code. I seem to remember that they used to cause troubles when doing binary diff during bootsrap because we use random names to ensure uniqueness of names; but are we still doing that

Re: anonymous namespaces in GCC source code

2013-03-18 Thread Jason Merrill
On 03/18/2013 10:57 AM, Gabriel Dos Reis wrote: I have been having discussion with Andrew about uses of anonymous namespaces in GCC source code. I seem to remember that they used to cause troubles when doing binary diff during bootsrap because we use random names to ensure uniqueness of names

Re: help on gcc source code odification

2010-01-29 Thread Ian Lance Taylor
swati raina writes: > Now , i recompiled the gcc using following commands, > > 1)Changed to path to build directory, > > cd /home/swati/newgcc/objdir/build-i686-pc-linux-gnu/gcc/build/ > > 2) Configured with --disable-bootstrap modification. > > /home/swati/newgcc/gcc-4.4.2/configure --disable-

help on gcc source code odification

2010-01-29 Thread swati raina
Hi, I am working with gcc 4.4.2. I installed the same on my machine using the following command lines. 1)To extract in a new directory,i used, mkdir gcc1 cd gcc1 tar -xvf gcc-4.4.2.tar.gz set srcdir = "/home/swati/gcc1/gcc-4.4.2" set objdir = "/home/swati/gcc1/gcc-bin" set insdir = "/home/swati

Re: gcc source: how can access asmspec_tree in function push_parm_decl

2008-10-03 Thread Bernd Roesch
Hello Ian On 03.10.08, you wrote: >> but the func >> >> push_parm_decl >> >> have no parameter asmspec_tree. > > It shouldn't need one. > > I'm not sure what the semantics of this should be. Are you trying to > change the calling convention for a function? Should it change what > callers

Re: gcc source: how can access asmspec_tree in function push_parm_decl

2008-10-02 Thread Ian Lance Taylor
Bernd Roesch <[EMAIL PROTECTED]> writes: > Is this best List to get help for GCC coding problems ? Probably. > but the func > > push_parm_decl > > have no parameter asmspec_tree. It shouldn't need one. I'm not sure what the semantics of this should be. Are you trying to change the calling

gcc source: how can access asmspec_tree in function push_parm_decl

2008-10-02 Thread Bernd Roesch
parameter asmspec_tree. is there a way to get access to it, without many code changes, or below func can use in a better place ? the amigaos target need that functions. does somebody can tell me a more easy way to add this feature, so not so many gcc source must change when make a amiga OS Port ?.

gcc source: how can access asmspec_tree in function push_parm_decl

2008-10-01 Thread Bernd Roesch
ut many code changes, or below func can use to a better place ? the amiga os target need that functions.does somebody can tell me a more easy way to add this feature, so not so many gcc source must change when make a amiga OS Port ?. here is a short testprog to see what need.it is the featur

Re: How to use gcc source and try new optmization techniques

2008-08-23 Thread Rohan Sreeram
Seema Ravandale <[EMAIL PROTECTED]> Cc: Rohan Sreeram <[EMAIL PROTECTED]>; [EMAIL PROTECTED] Sent: Thursday, August 21, 2008 4:17:12 AM Subject: Re: How to use gcc source and try new optmization techniques Rohan, Welcome to GCC and I hope you achieve what you want. I would recommend

Re: How to use gcc source and try new optmization techniques

2008-08-23 Thread Rohan Sreeram
, 2008 11:35:10 PM Subject: Re: How to use gcc source and try new optmization techniques Hi Rohan, I have already worked on cfg data structure, plugin "data flow pass" on cfg. For this purpose, following links would be useful. http://www.cse.iitb.ac.in/~uday/gcc-workshop/?file=downl

Re: How to use gcc source and try new optmization techniques

2008-08-23 Thread Rohan Sreeram
anks, Rohan - Original Message From: Matthew <[EMAIL PROTECTED]> To: Rohan Sreeram <[EMAIL PROTECTED]> Sent: Wednesday, August 20, 2008 10:30:07 PM Subject: Re: How to use gcc source and try new optmization techniques I'm in a similar position, but some pointers. > 1) Und

Re: How to use gcc source and try new optmization techniques

2008-08-21 Thread Manuel López-Ibáñez
Rohan, Welcome to GCC and I hope you achieve what you want. I would recommend you check our wiki: http://gcc.gnu.org/wiki which has some very useful links: http://gcc.gnu.org/wiki/GettingStarted It is a wiki, so feel free to correct mistakes, improve stuff and add links. If you want to create

Re: How to use gcc source and try new optmization techniques

2008-08-20 Thread Seema Ravandale
Hi Rohan, I have already worked on cfg data structure, plugin "data flow pass" on cfg. For this purpose, following links would be useful. http://www.cse.iitb.ac.in/~uday/gcc-workshop/?file=downloads more info can be available at http://www.cse.iitb.ac.in/grc/ - Seema On Thu, Aug 21, 2008 at 6

Re: How to use gcc source and try new optmization techniques

2008-08-20 Thread Pranav Bhandarkar
Hi, I may not have correctly understood your questions but from what I understand I think you mean to ask how you could easily plug in your optimization pass into GCC so as to test your implementation of some optimization. Well, the way to do that would be to understand the pass structure and dec

How to use gcc source and try new optmization techniques

2008-08-20 Thread Rohan Sreeram
Hi, I am a student in Utah State University researching on compilers optimization techniques. I wanted to know how I could use gcc for experimenting with optimization. Here is what I intend to do: 1) Understand the control flow graphs being generated by GCC, which I could build using the -fdum

Re: How to understand gcc source code?

2008-03-24 Thread David Daney
NightStrike wrote: On Sun, Mar 23, 2008 at 3:04 PM, Abhijat Vichare <[EMAIL PROTECTED]> wrote: On Sat, 2008-03-22 at 16:59 +0800, =?GB2312?B?wbqI0g==?= wrote: > But still, I cannot manage the source code of gcc. > I don't know how to start reading it. You can try: http://www.cfdvs.iitb.a

Re: How to understand gcc source code?

2008-03-24 Thread NightStrike
On Sun, Mar 23, 2008 at 3:04 PM, Abhijat Vichare <[EMAIL PROTECTED]> wrote: > On Sat, 2008-03-22 at 16:59 +0800, =?GB2312?B?wbqI0g==?= wrote: > > > But still, I cannot manage the source code of gcc. > > I don't know how to start reading it. > > You can try: http://www.cfdvs.iitb.ac.in/~amv/gcc-i

Re: How to understand gcc source code?

2008-03-23 Thread Abhijat Vichare
On Sat, 2008-03-22 at 16:59 +0800, =?GB2312?B?wbqI0g==?= wrote: > But still, I cannot manage the source code of gcc. > I don't know how to start reading it. You can try: http://www.cfdvs.iitb.ac.in/~amv/gcc-int-docs/#gccdocs > Last night I want to read the code of symbol table used in gcc, I sea

Re: How to understand gcc source code?

2008-03-22 Thread Tim Prince
Basile STARYNKEVITCH wrote: Hello All. Denys Vlasenko wrote: On Saturday 22 March 2008 11:14, Basile STARYNKEVITCH wrote: * on the positive side, GCC is still doing well and alive Why Intel and MS compilers are surpassing it? Honestly, I never coded last years on any Microsoft systems (exc

Re: How to understand gcc source code?

2008-03-22 Thread Robert Dewar
Basile STARYNKEVITCH wrote: Aaron Gray wrote: * what is the proportion of cross-compilation? I have no real clue. I would suppose that during all the GCC runs in the last month, only a minority was cross-compilation (for some embedded systems). Of these, what are the favorite target machines

Re: How to understand gcc source code?

2008-03-22 Thread Aaron Gray
Aaron Gray wrote: * what is the proportion of cross-compilation? I have no real clue. I would suppose that during all the GCC runs in the last month, only a minority was cross-compilation (for some embedded systems). Of these, what are the favorite target machines & systems. I really don't kn

Re: How to understand gcc source code?

2008-03-22 Thread Basile STARYNKEVITCH
Aaron Gray wrote: * what is the proportion of cross-compilation? I have no real clue. I would suppose that during all the GCC runs in the last month, only a minority was cross-compilation (for some embedded systems). Of these, what are the favorite target machines & systems. I really don't kn

Re: How to understand gcc source code?

2008-03-22 Thread Aaron Gray
* what is the proportion of cross-compilation? I have no real clue. I would suppose that during all the GCC runs in the last month, only a minority was cross-compilation (for some embedded systems). Of these, what are the favorite target machines & systems. I really don't know this one (maybe

Re: How to understand gcc source code?

2008-03-22 Thread Basile STARYNKEVITCH
Andrew Pinski wrote: Here are some answers from a PS3 prosective. The mean code size is around 200 million lines or so. The final binary results anywhere between 20 Megs to 40 Megs. Are you sure of that figure? 200MLOC for a single program? That is huge! Even for all the software installed

Re: How to understand gcc source code?

2008-03-22 Thread Andrew Pinski
Here are some answers from a PS3 prosective. On Sat, Mar 22, 2008 at 12:15 PM, Basile STARYNKEVITCH <[EMAIL PROTECTED]> wrote: > * about X thousands developers run GCC at least once in the last > month (I would imagine X is more than 100, ie more 100K developers are > using GCC) Right now all o

Re: How to understand gcc source code?

2008-03-22 Thread Basile STARYNKEVITCH
Hello All. Denys Vlasenko wrote: On Saturday 22 March 2008 11:14, Basile STARYNKEVITCH wrote: * on the positive side, GCC is still doing well and alive I did not meant that everything is perfect. But I would not qualify GCC as a sick or dead project. This is why I wrote "doing well & alive"

Re: How to understand gcc source code?

2008-03-22 Thread Richard Guenther
On Sat, Mar 22, 2008 at 7:16 PM, Denys Vlasenko <[EMAIL PROTECTED]> wrote: > On Saturday 22 March 2008 11:14, Basile STARYNKEVITCH wrote: > > Actually you ask an interesting & difficult question. Some thoughts from > > somebody who works on GCC for more than a year but still considers > > himsel

Re: How to understand gcc source code?

2008-03-22 Thread Denys Vlasenko
On Saturday 22 March 2008 11:14, Basile STARYNKEVITCH wrote: > Actually you ask an interesting & difficult question. Some thoughts from > somebody who works on GCC for more than a year but still considers > himself a newbie: > > * my impression is that nobody understands fully the GCC compiler.

Re: How to understand gcc source code?

2008-03-22 Thread Manuel López-Ibáñez
On 22/03/2008, 梁�� <[EMAIL PROTECTED]> wrote: > > Any advice to be invovled in development of gcc ? > Thank you very much. > Sorry for disturbing. http://gcc.gnu.org/wiki/GettingStarted My advice would be: * Narrowly focus on what you are truly interested in: front-end, middle-end, back-end.

Re: How to understand gcc source code?

2008-03-22 Thread Basile STARYNKEVITCH
Hello All LiangKun 梁堃 wrote: Hello, everyone : I am learning compiler techniques. I want a live example. I also want to do my contributions to open source. So I turn to gcc. Last year I have added some instruction templates to one specific gcc backend as a task in work. I have read a little of

How to understand gcc source code?

2008-03-22 Thread 梁�
Hello, everyone : I am learning compiler techniques. I want a live example. I also want to do my contributions to open source. So I turn to gcc. Last year I have added some instruction templates to one specific gcc backend as a task in work. I have read a little of "Using and Porting GCC". But st

Re: warnings in GCC source?

2007-09-06 Thread Andreas Schwab
Basile STARYNKEVITCH <[EMAIL PROTECTED]> writes: > So is there an easy way to have some acceptable warnings in GCC? See gcc/Makefile.in, look for -Wno-error. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fing

RE: warnings in GCC source?

2007-09-06 Thread Dave Korn
On 06 September 2007 16:55, Basile STARYNKEVITCH wrote: > 2. generated code: when some C files are generated, it may be hard to > avoid some warnings, typically a generated C function might have unused > arguments (which might be not very easy to detect at generation stage). Generate "__attrib

warnings in GCC source?

2007-09-06 Thread Basile STARYNKEVITCH
Hello All, In most of GCC source code, it is perfectly normal to expect that no warnings should appear, even if the sources are compiled with -Wall or more. Actually the GCC bootstrap process seems to require this. However, I see some occasions where warnings might be quite difficult to

Compiling gcc source: unknown command gcctabopt

2006-11-27 Thread Andrea Callia D'Iddio
Hi all, I'm trying to compile gcc 4.1 source (from debian). I need to be able to compile it because I have to modify and add some code and recompile. When I try to compile gcc I get the following error message: ../.././fastjar/fastjar.texi:119: Unknown command `gcctabopt'. ../.././fastjar/fastja

Re: Problem compiling GCC source code in AIX

2006-07-26 Thread Kithsiri Lekamge
Thanks a lot David , You saved my time. I have not installed bash earlier. When i installed the bash and sat the environment varialble. % CONFIG_SHELL=/usr/local/bin % export CONFIG_SHELL Then everything is OK. :) AIX shell is not supported compiling GCC source code. Rgs, Kithsiri On 7/24/06

Re: Problem compiling GCC source code in AIX

2006-07-24 Thread David Edelsohn
>>>>> Kithsiri Lekamge writes: Kithsiri> I am in great difficult compiling GCC source code in AIX box. Kithsiri> I installed the binary of GCC 3.3.2 and using this compiler I started Kithsiri> to compile the GCC 3.4.6 source codes. Kithsiri> After 5 hrs of compilin

Problem compiling GCC source code in AIX

2006-07-24 Thread Kithsiri Lekamge
Hi All, I am in great difficult compiling GCC source code in AIX box. I installed the binary of GCC 3.3.2 and using this compiler I started to compile the GCC 3.4.6 source codes. After 5 hrs of compiling I received the following error. 46286 Segmentation fault: Configure-target-libstdc++-v3

Re: Would like to use gcc source code to improve compiler development skills

2006-03-14 Thread Ben Elliston
> I have C/C++/Java programming skills. I have also studied a couple > of books on compiler development. I would like to start with a > project that will provide me with the experience of having > participated in a real compiler development effort. I am interested > in C/C++/Java. If you would lik

Re: Would like to use gcc source code to improve compiler development skills

2006-03-09 Thread Jim Blandy
On 3/9/06, Lalit Gidwani <[EMAIL PROTECTED]> wrote: > I have C/C++/Java programming skills. I have also > studied a couple of books on compiler development. I > would like to start with a project that will provide > me with the experience of having participated in a > real compiler development effo

  1   2   >