diff options
author | Pranil Dey <mkdeyp@gmail.com> | 2024-09-30 19:03:42 +0530 |
---|---|---|
committer | Pranil Dey <mkdeyp@gmail.com> | 2024-09-30 19:03:42 +0530 |
commit | b602de4ed9f872aa2a07e8cf74d5b3c8446de221 (patch) | |
tree | 0d1fa6e4793d0a240fee8b958764cb93fc837aab /gcc/go | |
parent | c16d4a0ae162abc00d97bb73e598ca00d16cf555 (diff) | |
parent | 87905f63a6521eef1f38082e2368e18c637ef092 (diff) | |
download | gcc-b602de4ed9f872aa2a07e8cf74d5b3c8446de221.zip gcc-b602de4ed9f872aa2a07e8cf74d5b3c8446de221.tar.gz gcc-b602de4ed9f872aa2a07e8cf74d5b3c8446de221.tar.bz2 |
Merge branch 'master' of git+ssh://gcc.gnu.org/git/gcc into devel/nothrow-detection
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 | ||||
-rw-r--r-- | gcc/go/gofrontend/expressions.cc | 6 | ||||
-rw-r--r-- | gcc/go/gofrontend/lex.h | 8 | ||||
-rw-r--r-- | gcc/go/lang.opt.urls | 2 |
5 files changed, 20 insertions, 3 deletions
diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index 890930e..c880b67 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,8 @@ +2024-09-25 Mikael Morin <mikael@gcc.gnu.org> + + PR other/116801 + * lang.opt.urls: Regenerate. + 2024-06-25 Kewen Lin <linkw@linux.ibm.com> * go-gcc.cc (Gcc_backend::float_type): Use TYPE_PRECISION of diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 9a4b402..3a83941 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -60f985a7852632834936b4b859aa75d9df88f038 +6aa463fef2d8f04e0bd2675f63a6529df080a44a The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc index 238d5a5..2b0e40f 100644 --- a/gcc/go/gofrontend/expressions.cc +++ b/gcc/go/gofrontend/expressions.cc @@ -11137,6 +11137,12 @@ Builtin_call_expression::do_determine_type(Gogo* gogo, is_print = false; break; + case BUILTIN_PANIC: + arg_type = + Type::make_empty_interface_type(Linemap::predeclared_location()); + is_print = false; + break; + case BUILTIN_PRINT: case BUILTIN_PRINTLN: // Do not force a large integer constant to "int". diff --git a/gcc/go/gofrontend/lex.h b/gcc/go/gofrontend/lex.h index 701e5d4..452ef95 100644 --- a/gcc/go/gofrontend/lex.h +++ b/gcc/go/gofrontend/lex.h @@ -12,6 +12,12 @@ #include "operator.h" #include "go-linemap.h" +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# define GO_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) +#else +# define GO_ATTRIBUTE_UNUSED +#endif + struct Unicode_range; // The keywords. These must be in sorted order, other than @@ -561,7 +567,7 @@ class Lex gather_embed(const char*, const char*); // The input file name. - const char* input_file_name_ ATTRIBUTE_UNUSED; + const char* input_file_name_ GO_ATTRIBUTE_UNUSED; // The input file. FILE* input_file_; // The object used to keep track of file names and line numbers. diff --git a/gcc/go/lang.opt.urls b/gcc/go/lang.opt.urls index 34d3154..051f706 100644 --- a/gcc/go/lang.opt.urls +++ b/gcc/go/lang.opt.urls @@ -10,7 +10,7 @@ UrlSuffix(gcc/Directory-Options.html#index-L) LangUrlSuffix_D(gdc/Directory-Opti ; duplicate: 'gcc/Standard-Libraries.html#index-Wall-1' ; duplicate: 'gcc/Warning-Options.html#index-Wall' Wall -LangUrlSuffix_D(gdc/Warnings.html#index-Wall) +LangUrlSuffix_D(gdc/Warnings.html#index-Wall) LangUrlSuffix_Fortran(gfortran/Error-and-Warning-Options.html#index-Wall) o UrlSuffix(gcc/Overall-Options.html#index-o) |