Re: compiler

2021-05-02 Thread Frosku
On Sat, May 01, 2021 at 09:51:00PM -0700, Jaime Guzman Gaytan via Gcc wrote:
> How can I get the compiler if I don't have internet in my apartment?

Depending on what platform you're on, there should be a package (deb, rpm, etc)
which you can download at i.e. work or a local library or university. Put that
on a USB stick and take it home, then use your package manager to install it.

-- 
>>= %frosku = { os => 'gnu+linux', editor => 'emacs', coffee => 1 } =<<


C language extension - Automatically cast

2021-05-02 Thread SÅ‚awomir Lach
In desperation made by programming in GTK+ I realized, some of object 
languages could been implemented in C, but only these not require to made 
changes in programs in runtime (compiler output).

One of items is automatically cast. For example I declared variable called 
Button of GtkButton and pass it to function requires GtkWidget. Why do not 
automatically cast to GtkWidget (like in class hierarchy or conversion 
operator in C++ or some extra constructors)? But .. it's rather conversion 
operator.

It could looks like:
__gcc_parent_type GtkWidget __gcc_parent_type_for GtkButton, GtkLabel, 
GtkTextView
__gcc_parent_type GtkBin __gcc_parent_type_for GtkWindow, GtkBox

What do you think?

It makes sense, because in this case there's no way to made mistake by 
avoiding extra conversion. Function expected any of GtkWidget (for example), 
so passing GtkButton is good. Code would be cleaner, hands will be in better 
shape and we save programmers time.




gcc-12-20210502 is now available

2021-05-02 Thread GCC Administrator via Gcc
Snapshot gcc-12-20210502 is now available on
  https://gcc.gnu.org/pub/gcc/snapshots/12-20210502/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.

This snapshot has been generated from the GCC 12 git branch
with the following options: git://gcc.gnu.org/git/gcc.git branch master 
revision 92f59e47f5a468b96b12b15233a6729904b1a1ee

You'll find:

 gcc-12-20210502.tar.xz   Complete GCC

  SHA256=9c420a8c79049796d6bc600bdae8a3bcc06793cac1413fb832b6219dec80356b
  SHA1=40dc29baaee85b669f8ed029a41d8ea1f5a41441

Diffs from 12-20210426 are available in the diffs/ subdirectory.

When a particular snapshot is ready for public consumption the LATEST-12
link is updated and a message is sent to the gcc list.  Please do not use
a snapshot before it has been announced that way.